/* YearDrop landing – cosmic game UI */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg-deep: #04040a;
  --bg-mid: #0a0814;
  --surface: rgba(14, 12, 28, 0.72);
  --surface-border: rgba(120, 140, 255, 0.14);
  --text: #f2f0f8;
  --text-muted: #9b94b8;
  --text-dim: #6e6788;
  --blue: #2f8cff;
  --blue-bright: #5cadff;
  --blue-glow: rgba(47, 140, 255, 0.45);
  --purple: #a855f7;
  --purple-glow: rgba(168, 85, 247, 0.35);
  --gold: #f5c842;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --header-h: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric layers */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 15% 20%, rgba(88, 40, 180, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, rgba(30, 90, 200, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(47, 140, 255, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #06040f 0%, var(--bg-deep) 40%, #080612 100%);
}

.bg-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1px 1px at 240px 180px, rgba(255, 255, 255, 0.2), transparent),
    radial-gradient(1px 1px at 320px 40px, rgba(255, 255, 255, 0.3), transparent);
  background-size: 360px 220px;
  opacity: 0.55;
  animation: drift-stars 120s linear infinite;
}

@keyframes drift-stars {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-220px);
  }
}

.bg-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layout */
.page {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

@media (max-width: 480px) {
  .wrap {
    width: min(1120px, calc(100% - 1.25rem));
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(8, 7, 18, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(4, 4, 10, 0.98);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.site-header .wrap {
  width: min(1120px, calc(100% - 1.25rem));
}

@media (min-width: 600px) {
  .site-header .wrap {
    width: min(1120px, calc(100% - 2.5rem));
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-height: 44px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.35);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.1em;
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}

.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(47, 140, 255, 0.22);
  border-color: rgba(92, 173, 255, 0.55);
  box-shadow: 0 0 20px -4px var(--blue-glow);
}

.btn-header {
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #4da3ff 0%, #1a74f0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 0 0 1px rgba(120, 190, 255, 0.5),
    0 6px 28px rgba(47, 140, 255, 0.55);
}

.btn-header:hover {
  background: linear-gradient(180deg, #6bb4ff 0%, #2b82f5 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 0 0 1px rgba(140, 200, 255, 0.6),
    0 10px 36px rgba(47, 140, 255, 0.65);
}

.btn-label-short {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-backdrop.is-visible {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .header-inner {
    gap: 1rem;
  }

  .site-nav {
    margin-left: auto;
    gap: 0.5rem;
  }
}

@media (max-width: 767px) {
  :root {
    --header-h: 60px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding: 0.35rem 0;
    min-height: 56px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    order: 10;
    padding: 0.75rem 0 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }

  .btn-header .btn-label-full {
    display: none;
  }

  .btn-header .btn-label-short {
    display: inline;
  }
}


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
    background 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #3d9aff 0%, #1a6fe8 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 4px 24px var(--blue-glow),
    0 0 0 1px rgba(47, 140, 255, 0.3);
}

.btn-primary:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 32px var(--blue-glow),
    0 0 0 1px rgba(47, 140, 255, 0.45);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--blue-bright);
  background: rgba(47, 140, 255, 0.08);
  border: 1px solid rgba(47, 140, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(47, 140, 255, 0.14);
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 10vw, 6rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero-copy {
  text-align: center;
}

@media (min-width: 900px) {
  .hero-copy {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(47, 140, 255, 0.1);
  border: 1px solid rgba(47, 140, 255, 0.28);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #fff 30%, var(--blue-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 28rem;
}

@media (min-width: 900px) {
  .hero-lead {
    margin-inline: 0;
  }
}

.hero-lead strong {
  color: var(--text);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
  margin-inline: auto;
}

.hero-actions .btn {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 480px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    width: auto;
  }

  .hero-actions .btn {
    width: auto;
  }
}

@media (min-width: 900px) {
  .hero-actions {
    justify-content: flex-start;
    margin-inline: 0;
  }
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-stats {
    justify-content: flex-start;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value,
.stat-label {
  margin: 0;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--blue-bright);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Phone mockup */
.phone-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
}

.phone {
  position: relative;
  width: min(280px, 72vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(145deg, #1c1c24 0%, #0a0a10 50%, #14141c 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(0, 0, 0, 0.5),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 80px -10px var(--purple-glow),
    -20px 0 60px -20px var(--blue-glow);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s var(--ease-out);
}

.phone:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #0c021c;
}

.phone-screen img,
.phone-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 65%);
  opacity: 0.35;
  z-index: -1;
  filter: blur(40px);
}

/* Section shared */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Video block */
.video-block {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .video-block {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.video-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.video-copy p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.video-hints {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-hints li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.video-hints li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue-glow);
}

.phone--video {
  width: min(300px, 80vw);
  transform: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 0 3px rgba(0, 0, 0, 0.5),
    0 50px 100px -30px rgba(0, 0, 0, 0.75),
    0 0 100px -20px var(--blue-glow);
}

.phone--video .phone-screen video {
  background: #000;
}

.video-play-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.phone-screen:hover .video-play-hint {
  opacity: 1;
}

/* Feature rows */
.feature-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: clamp(4rem, 10vw, 6rem);
}

.feature-row:last-child {
  margin-bottom: 0;
}

@media (min-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-row--flip .feature-copy {
    order: 2;
  }

  .feature-row--flip .feature-visual {
    order: 1;
  }
}

.feature-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.feature-copy p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
}

.tag--accent {
  color: var(--blue-bright);
  border-color: rgba(47, 140, 255, 0.35);
  background: rgba(47, 140, 255, 0.08);
}

.feature-visual {
  display: flex;
  justify-content: center;
}

.phone--feature {
  width: min(260px, 70vw);
  transform: rotateY(3deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 60px -15px var(--purple-glow);
}

.feature-row--flip .phone--feature {
  transform: rotateY(-3deg);
}

/* Topics grid */
.topics-panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .topics-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
  }
}

.topic-chip {
  padding: 0.65rem 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.topic-chip.is-hot {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.35);
  background: rgba(192, 132, 252, 0.08);
}

.topic-chip.is-green {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
}

.topic-chip.is-blue {
  color: var(--blue-bright);
  border-color: rgba(47, 140, 255, 0.35);
  background: rgba(47, 140, 255, 0.08);
}

/* Difficulty pills */
.difficulty-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.diff-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.diff-pill strong {
  color: var(--text);
  font-weight: 600;
}

.diff-pill .icon {
  font-size: 1.1rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 8vw, 4.5rem) 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(47, 140, 255, 0.12) 0%, rgba(168, 85, 247, 0.1) 100%),
    var(--surface);
  border: 1px solid var(--surface-border);
  box-shadow: 0 0 80px -30px var(--blue-glow);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--surface-border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.footer-links a {
  color: var(--blue-bright);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}
.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Doc pages (support, privacy) */
.page-doc main {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 8vw, 5rem);
}

.doc-wrap {
  width: min(680px, calc(100% - 1.25rem));
  margin-inline: auto;
}

@media (min-width: 600px) {
  .doc-wrap {
    width: min(680px, calc(100% - 2.5rem));
  }
}

.doc-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.doc-hero img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 12px 40px -8px rgba(0, 0, 0, 0.5),
    0 0 40px -12px var(--blue-glow);
}

.doc-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.doc-hero .doc-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--blue-bright);
  text-decoration: none;
  transition: opacity 0.2s;
}

.doc-back:hover {
  opacity: 0.85;
}

.doc-back svg {
  width: 1em;
  height: 1em;
}

.prose {
  font-size: 0.98rem;
}

.prose > p:first-of-type {
  color: var(--text-muted);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.85rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  margin: 0 0 0.85rem;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.prose a {
  color: var(--blue-bright);
  text-decoration: none;
  font-weight: 500;
}

.prose a:hover {
  text-decoration: underline;
}

.doc-card {
  padding: 1.5rem 1.65rem;
  margin: 1.25rem 0 2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(12px);
}

.doc-card p:last-child {
  margin-bottom: 0;
}

.doc-card a {
  font-size: 1.1rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.faq-item {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.faq-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.faq-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.doc-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}

.doc-meta p {
  margin: 0 0 0.35rem;
  color: var(--text-dim);
}

.page-doc .site-footer {
  margin-top: 0;
}

/* Mobile polish */
@media (max-width: 767px) {
  .hero {
    padding-top: 1.75rem;
  }

  .hero-stats {
    gap: 1rem 1.5rem;
  }

  .stat-value {
    font-size: 1.45rem;
  }

  .section {
    padding: 2.75rem 0;
  }

  .cta-band {
    padding: 2.25rem 1.25rem;
  }

  .cta-band .btn-primary {
    width: 100%;
    min-height: 48px;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom, 0));
  }
}
