/* Landing overlay animation */
.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Dark liquid glass: light blur lets page show through */
  background: rgba(8, 12, 16, 0.55);
  backdrop-filter: blur(20px) saturate(160%) brightness(0.85);
  -webkit-backdrop-filter: blur(20px) saturate(160%) brightness(0.85);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.landing-overlay.landing-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.landing-inner {
  text-align: center;
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: 28px;
  /* Liquid glass card — dark mode */
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  /* Layered borders: outer edge + specular top highlight */
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25),
    inset 1px 0 rgba(255, 255, 255, 0.06),
    inset -1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

/* Subtle refraction shimmer across the top of the card */
.landing-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.01) 40%,
    transparent 65%
  );
  pointer-events: none;
}

.landing-heading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.35rem, 1.5vw, 1.2rem);
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: clamp(0.08rem, 0.6vw, 0.35rem);
  text-transform: uppercase;
  position: relative;
}

.landing-heading span {
  position: relative;
  display: inline-block;
  color: var(--mint);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.landing-heading span::after {
  content: attr(data-char);
  position: absolute;
  inset: 0;
  color: rgba(255, 255, 255, 0.06);
  filter: blur(10px);
  transform: translateZ(0);
  pointer-events: none;
}

.landing-heading span:hover,
.landing-heading span:focus-visible {
  transform: translateY(-10%);
}

.landing-heading .spacer {
  width: clamp(1.2rem, 5vw, 3rem);
  pointer-events: none;
}

.landing-tagline {
  font-size: clamp(1rem, 2.3vw, 1.4rem);
  color: rgba(231, 237, 243, 0.85);
  max-width: min(620px, 80vw);
  margin: 0 auto;
}

.landing-continue {
  justify-self: center;
  padding: 0.85rem 2.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--mint) 35%, rgba(0, 0, 0, 0.8));
  background: var(--mint);
  color: #051e14;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-continue:hover,
.landing-continue:focus-visible {
  transform: translateY(-2px) scale(1.01);
  background: color-mix(in oklab, var(--mint) 85%, #ffffff);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 720px) {
  .landing-heading {
    flex-wrap: wrap;
    gap: 0.4rem;
    letter-spacing: 0.25rem;
  }

  .landing-heading .spacer {
    width: 100%;
    height: 0;
  }

  .landing-inner {
    padding: 2rem 1.5rem;
  }
}

/* ========================================
   Light Mode Overrides — Apple liquid glass
   ======================================== */

html.light .landing-overlay {
  /* Light liquid glass: brighter, less opaque for better view */
  background: rgba(240, 245, 248, 0.15);
  backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.05);
}

html.light .landing-inner {
  /* Frosted bright glass card — more transparent */
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.05);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.12),
    0 6px 16px rgba(0, 0, 0, 0.07),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06),
    inset 1px 0 rgba(255, 255, 255, 0.5),
    inset -1px 0 rgba(255, 255, 255, 0.5);
}

html.light .landing-inner::before {
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 40%,
    transparent 65%
  );
}

html.light .landing-heading span {
  color: #0fb989;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

html.light .landing-heading span::after {
  color: rgba(10, 30, 28, 0.08);
}

html.light .landing-heading span:hover,
html.light .landing-heading span:focus-visible {
  filter: drop-shadow(0 12px 20px rgba(16, 185, 129, 0.35));
}

html.light .landing-tagline {
  color: rgba(10, 30, 28, 0.85);
}

html.light .landing-continue {
  background: var(--mint);
  color: #051e14;
  border-color: color-mix(in oklab, var(--mint) 35%, rgba(0, 0, 0, 0.15));
}

html.light .landing-continue:hover,
html.light .landing-continue:focus-visible {
  background: color-mix(in oklab, var(--mint) 85%, #ffffff);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
}
/* ========================================
   Hero Section — Sequential Fade-In Animation
   ======================================== */

.hero-section {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: clamp(4rem, 10vh, 8rem) 2rem clamp(3rem, 6vh, 5rem);
  max-width: 950px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.hero-section.hero-hidden [data-hero-item] {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.hero-section.hero-visible [data-hero-item] {
  animation: heroFadeIn 0.8s ease forwards;
}

/* Staggered animation delays based on data-hero-item */
.hero-section.hero-visible [data-hero-item="1"] { animation-delay: 0s; }
.hero-section.hero-visible [data-hero-item="2"] { animation-delay: 0.15s; }
.hero-section.hero-visible [data-hero-item="3"] { animation-delay: 0.3s; }
.hero-section.hero-visible [data-hero-item="4"] { animation-delay: 0.45s; }
.hero-section.hero-visible [data-hero-item="5"] { animation-delay: 0.6s; }

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--mint) 15%, transparent);
  border: 1px solid color-mix(in oklab, var(--mint) 35%, transparent);
  backdrop-filter: blur(8px);
}

.hero-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin: 0;
  background: linear-gradient(135deg, var(--text) 0%, color-mix(in oklab, var(--text) 80%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 800px;
}

.hero-description {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 680px;
  margin: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: none;
}

.hero-btn-primary {
  background: var(--mint);
  color: #051e14;
  box-shadow: 0 4px 12px rgba(62, 230, 176, 0.25);
}

.hero-btn-primary:hover,
.hero-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(62, 230, 176, 0.35);
  background: color-mix(in oklab, var(--mint) 90%, #ffffff);
}

.hero-btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-btn-secondary:hover,
.hero-btn-secondary:focus-visible {
  transform: translateY(-2px);
  background: var(--panel-2);
  border-color: color-mix(in oklab, var(--border) 70%, var(--mint));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Light mode hero overrides */
html.light .hero-badge {
  background: color-mix(in oklab, var(--mint) 10%, transparent);
  border-color: color-mix(in oklab, var(--mint) 25%, transparent);
}

html.light .hero-badge-text {
  color: #0fb989;
}

html.light .hero-title {
  background: linear-gradient(135deg, var(--text) 0%, color-mix(in oklab, var(--text) 85%, transparent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

html.light .hero-btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html.light .hero-btn-secondary:hover,
html.light .hero-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

@media (max-width: 720px) {
  .hero-section {
    padding: 3rem 1.5rem 2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-btn {
    width: 100%;
    justify-content: center;
  }
}