/* Hero section styles */
:root {
  --hero-bg-color: #f8f9fa;
  --hero-padding: 0;
  --hero-height: auto;
  --hero-min-height: 550px;
}

html[data-theme="dark"] {
  --hero-bg-color: var(--surface-1-dark);
}

/* Main content adjustments for hero layout */
.full-width {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.hero-container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
}

/* Hero section and transparent header */
.hero-layout header.main-header {
  background: transparent;
  border-bottom: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  margin-bottom: 0;
}

.hero-layout .main-nav {
  background: transparent;
  border: none;
  padding-top: var(--size-5);
  padding-bottom: var(--size-5);
}

.nav-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation links */

.hero-layout .nav-toggle {
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-layout .nav-toggle-bar {
  background: var(--text-1);
}

.hero-layout .nav-links .nav-link,
.hero-layout .nav-links .nav-button {
  color: var(--text-1);
}

.hero-layout .nav-links .nav-button {
  background-color: var(--blue-9);
}

.hero-layout .nav-links .nav-button:hover {
  background-color: var(--blue-8);
  transform: translateY(-2px);
}

.hero-layout .nav-right {
  display: flex;
  align-items: center;
  gap: var(--size-3);
}

/* Brand styling for hero layout */
.hero-layout .brand {
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-9);
}

/* Hero section container */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--hero-min-height);
  height: auto;
  position: relative;
  padding: 100px var(--size-6) 0;
  background: var(--hero-bg-color);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.hero-screenshot {
  position: absolute;
  top: clamp(6rem, 18vh, 12rem);
  right: clamp(1.5rem, 6vw, 6rem);
  width: clamp(280px, 38vw, 640px);
  height: auto;
  /*border-radius: var(--radius-3);
  box-shadow: var(--shadow-4, 0 20px 40px rgba(15, 23, 42, 0.15));*/
  pointer-events: none;
  opacity: 0;
  transform: translateX(55%);
  animation: heroScreenshotSlideFade 6s ease-out forwards;
  transition: opacity 0.2s ease;
}

@keyframes heroScreenshotSlideFade {
  0% {
    opacity: 1;
    transform: translateX(85%) scale(0.98);
  }
  40% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.15;
    transform: translateX(30%) scale(1);
  }
}

@media (max-width: 900px) {
  .hero-screenshot {
    display: none;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--font-weight-9);
  margin-top: var(--size-2);
  margin-bottom: var(--size-6);
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: var(--font-weight-5);
  color: var(--text-1);
  line-height: 1.4;
  max-width: 700px;
  margin-bottom: var(--size-7);
}

.hero-description {
  font-size: var(--font-size-1);
  color: var(--text-2);
  max-width: 700px;
  margin-top: var(--size-7);
  margin-bottom: var(--size-4);
  line-height: 1.6;
}

.hero-beta-spotlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.85em;
  margin-bottom: 0.35em;
  border-radius: 999px;
  background-image: linear-gradient(120deg, #e0f2ff, #60a5ff, #2563eb);
  color: transparent;
  font-weight: var(--font-weight-7);
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroBetaPulse 1s ease-in-out infinite;
}

html[data-theme="dark"] .hero-beta-spotlight {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.hero-beta-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(37, 99, 235, 0.12);
  z-index: -1;
}

.hero-beta-spotlight::after {
  content: '';
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -50%;
  width: 55%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  opacity: 0.9;
  transform: translateX(-120%) skewX(-15deg);
  filter: blur(0.5px);
  animation: heroBetaSpotlight 4.7s ease-in-out infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

@keyframes heroBetaPulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    opacity: 1;
  }
}

.hero-cta {
  display: inline-block;
  font-size: var(--font-size-3);
  font-weight: var(--font-weight-6);
  padding: var(--size-4) var(--size-8);
  background: var(--blue-9);
  color: white;
  border-radius: var(--radius-3);
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--blue-8);
  transform: translateY(-2px);
}

.hero-stat {
  display: inline-flex;
  align-items: center;
  padding: var(--size-1) var(--size-2);
  background: white;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-round);
  color: var(--text-2);
  font-weight: var(--font-weight-6);
  margin-bottom: var(--size-2);
  margin-top: var(--size-4);
  box-shadow: var(--shadow-1);
}

.bell-hover-message {
  margin-left: var(--size-2);
  font-size: var(--font-size-0);
  color: var(--brand-7);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bell-hover-message.visible {
  opacity: 1;
}

/* Bell animation */
@keyframes bellRing {
  0%, 100% {
    transform: rotate(0);
  }
  10%, 30%, 50%, 70% {
    transform: rotate(8deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(-8deg);
  }
  90% {
    transform: rotate(4deg);
  }
  95% {
    transform: rotate(-4deg);
  }
}

@keyframes bellRingActive {
  0%, 100% {
    transform: rotate(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: rotate(12deg);
  }
  20%, 40%, 60%, 80% {
    transform: rotate(-12deg);
  }
}

.hero-stat svg {
  margin-right: var(--size-2);
}

.ringing-bell {
  transform-origin: top center;
  animation: bellRing 3s ease-in-out infinite;
  animation-play-state: running;
  cursor: pointer;
  transition: filter 0.3s;
}

.ringing-bell:hover {
  animation-name: bellRingActive;
  animation-duration: 0.6s;
  animation-timing-function: ease-in-out;
  filter: drop-shadow(0 0 2px rgba(0, 122, 255, 0.5));
}

.ringing-bell.ringing-active {
  animation-name: bellRingActive;
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.36, 0.07, 0.19, 0.97);
  animation-iteration-count: 2;
  filter: drop-shadow(0 0 3px rgba(0, 122, 255, 0.8));
}

/* Dark mode overrides */
html[data-theme="dark"] .hero-stat {
  background: var(--surface-2-dark);
  border-color: var(--surface-3-dark);
}
