/* Landing overlay animation */
.landing-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(45, 226, 164, 0.12), rgba(11, 15, 20, 0.92) 60%);
  backdrop-filter: blur(18px) saturate(130%);
  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: 24px;
  background: rgba(17, 24, 32, 0.55);
  border: 1px solid rgba(45, 226, 164, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.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: transparent;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #2de2a4 0%, rgba(141, 255, 210, 0.85) 35%, rgba(255, 255, 255, 0.12) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  transition: transform 0.45s ease, filter 0.45s ease, background 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%);
  filter: drop-shadow(0 18px 28px rgba(45, 226, 164, 0.45));
}

.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
   ======================================== */

html.light .landing-overlay {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(62, 230, 176, 0.15), rgba(240, 245, 248, 0.95) 60%);
  backdrop-filter: blur(18px) saturate(110%);
}

html.light .landing-inner {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(62, 230, 176, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html.light .landing-heading span {
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #10b981 0%, rgba(16, 185, 129, 0.85) 35%, rgba(10, 30, 28, 0.25) 70%);
  -webkit-background-clip: text;
  background-clip: text;
}

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);
}
