/* ================================================================
   ALARYON — Landing page stylesheet
   Tokens, reset, and accessibility are in tokens.css (loaded first).
   ================================================================ */

/* Landing-only token extensions */
:root {
  --max-w: 1140px;
  --nav-h: 64px;
}


body {
  font-family: var(--f-prose);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--gold-dd);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  /* --t2 on --bg gives ~6.5:1 contrast (WCAG AA); --t3 was only ~4.2:1. */
  color: var(--t2);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--t1); }

.nav-cta {
  font-family: var(--f-ui) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--bg) !important;
  background: var(--gold);
  padding: 10px 24px;
  border-radius: 6px;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  transition: filter 0.2s, transform 0.2s;
  box-shadow: 0 0 20px rgba(208,136,74,0.15);
}
.nav-cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--t2);
  font-size: 24px;
  cursor: pointer;
  /* WCAG 2.5.5 / Apple HIG: 44x44 minimum tap target */
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

@media (max-width: 768px) {
  /* Hamburger on the left, logo beside it; negative margin keeps logo visually aligned despite larger tap target */
  .nav-toggle { display: block; order: -1; margin-left: -10px; }
  .nav-inner { justify-content: flex-start; gap: 12px; }

  /* Dropdown panel below the fixed nav bar — always in layout, toggled via opacity/visibility */
  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--gold-dd);
    list-style: none;
    /* Closed state: faded, lifted, non-interactive */
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s 200ms;
  }
  .nav.open .nav-links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: opacity 200ms ease, transform 200ms ease, visibility 0s 0s;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: none; }
  /* Breathing room above the CTA — Log-In's bottom border already divides the list */
  .nav-links li:last-child { margin-top: 12px; }
  /* Preserve CTA pill shape (gold bg, rounded, centered) inside the flex-column panel */
  .nav-links .nav-cta {
    text-align: center;
    border-radius: 6px;
    padding: 12px 24px;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

/* Atmospheric background layers */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* Darken overlay for text readability; fades to page bg at the bottom */
    linear-gradient(180deg,
      oklch(from var(--bg) calc(l * 0.85) c h / 0.80) 0%,
      oklch(from var(--bg) calc(l * 0.85) c h / 0.60) 30%,
      oklch(from var(--bg) calc(l * 0.85) c h / 0.55) 50%,
      oklch(from var(--bg) calc(l * 0.85) c h / 0.75) 75%,
      var(--bg) 100%),
    url('/static/img/landing/hero-bg.png') center/cover no-repeat;
  z-index: 0;
}

/* Floating particles container */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0% { opacity: 0; transform: translateY(0) translateX(0); }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-100vh) translateX(var(--drift)); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero-tagline {
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
  opacity: 0;
  animation: fade-up 0.8s 0.2s forwards;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 700;
  color: var(--t1);
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9);
  opacity: 0;
  animation: fade-up 0.8s 0.35s forwards;
}
.hero h1 .highlight {
  color: var(--gold);
  display: block;
  text-shadow: 0 2px 20px rgba(208,136,74,0.3), 0 1px 3px rgba(0,0,0,0.9);
}

.hero-sub {
  font-family: var(--f-prose);
  font-size: clamp(17px, 2vw, 20px);
  color: var(--t1);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 40px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.9);
  opacity: 0;
  animation: fade-up 0.8s 0.5s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  opacity: 0;
  animation: fade-up 0.8s 0.65s forwards;
}

.btn-primary {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  border: none;
  padding: 16px 36px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(208,136,74,0.2), 0 4px 16px rgba(0,0,0,0.3);
}
.btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(208,136,74,0.3), 0 8px 24px rgba(0,0,0,0.4);
}

.btn-ghost {
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--t2);
  background: transparent;
  border: 1.5px solid var(--t4);
  padding: 15px 32px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Game screenshot mock */
.hero-screenshot {
  position: relative;
  z-index: 2;
  max-width: 840px;
  width: 100%;
  margin: 0 auto;
  opacity: 0;
  animation: fade-up 1s 0.8s forwards;
}

.screenshot-frame {
  background: var(--bg-surface);
  border: 1px solid rgba(208,136,74,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(208,136,74,0.05);
  position: relative;
}

/* Mini game UI inside the screenshot */
.mini-game {
  display: grid;
  grid-template-columns: 1fr 200px;
  grid-template-rows: 28px 100px 1fr;
  height: 380px;
  font-size: 13px;
}

.mini-hud {
  grid-column: 1 / -1;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  font-family: var(--f-ui);
  font-size: 10px;
  color: var(--t3);
  border-bottom: 1px solid rgba(208,136,74,0.06);
}
.mini-hud .hp-label { color: var(--t4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 8px; }
.mini-hud .hp-bar { width: 48px; height: 4px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.mini-hud .hp-fill { width: 85%; height: 100%; background: var(--sage); border-radius: 2px; }
.mini-hud .hp-val { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--t2); }

.mini-banner {
  grid-column: 1;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-hover) 40%, var(--bg-surface) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 12px 20px;
}
.mini-banner-title {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: #e8dcc8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}
.mini-banner-region {
  font-family: var(--f-ui);
  font-size: 8px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  position: absolute;
  bottom: 14px;
  right: 20px;
}
/* Warm glow at bottom of banner */
.mini-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.mini-codex {
  grid-column: 1;
  background: var(--bg-card);
  padding: 20px 24px;
  overflow: hidden;
  line-height: 1.75;
  color: var(--t2);
  font-family: var(--f-prose);
  font-size: 13px;
}

.mini-codex .drop-cap {
  float: left;
  font-family: var(--f-display);
  font-size: 38px;
  line-height: 0.8;
  padding-right: 6px;
  color: var(--gold);
  font-weight: 700;
}

.mini-codex .npc-block {
  border-left: 2px solid var(--gold);
  padding-left: 12px;
  margin: 12px 0;
  background: rgba(208,136,74,0.02);
  padding: 8px 12px;
}
.mini-codex .npc-name {
  font-family: var(--f-ui);
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 4px;
}
.mini-codex .npc-text {
  font-style: italic;
  color: var(--t1);
}
.mini-codex .translation {
  font-family: var(--f-ui);
  font-size: 10px;
  font-style: italic;
  color: var(--t4);
  margin-top: 2px;
}

.mini-codex .player-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--sage);
  border-left: 2px solid rgba(90,152,88,0.3);
  padding-left: 10px;
  margin-top: 10px;
}

.mini-marginalia {
  grid-row: 2 / 4;
  grid-column: 2;
  background: var(--bg-surface);
  border-left: 1px solid rgba(208,136,74,0.06);
  padding: 14px 16px;
  font-family: var(--f-ui);
  font-size: 10px;
}
.mini-marginalia .mg-label {
  font-size: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--t4);
  margin-bottom: 8px;
}
.mini-marginalia .mg-section { margin-bottom: 16px; }

/* Compass rose mini */
.compass-mini {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 2px;
  text-align: center;
  margin-bottom: 16px;
}
.compass-mini span { font-size: 9px; color: var(--t4); padding: 2px; }
.compass-mini .active { color: var(--sage); font-weight: 600; }
.compass-mini .n { grid-column: 2; }
.compass-mini .w { grid-column: 1; grid-row: 2; }
.compass-mini .dot { grid-column: 2; grid-row: 2; color: var(--t4); font-size: 6px; }
.compass-mini .e { grid-column: 3; grid-row: 2; }
.compass-mini .s { grid-column: 2; grid-row: 3; }

.entity-list { list-style: none; }
.entity-list li {
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.entity-list .npc { color: var(--gold); }
.entity-list .item { color: var(--blue); }
.entity-list .action { color: var(--t4); font-size: 8px; }

/* Stats line below screenshot */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 32px;
  position: relative;
  z-index: 2;
  opacity: 0;
  animation: fade-up 0.8s 1.1s forwards;
}
.hero-stat {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--t3);
}
.hero-stat strong {
  color: var(--gold);
  font-weight: 700;
}

/* ================================================================
   SECTION SHARED STYLES
   ================================================================ */
section {
  padding: 100px 32px;
}

.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.section-head .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head .orn-line {
  width: 48px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-d));
}
.section-head .orn-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-d));
}
.section-head .orn-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.5;
}
.section-head p {
  font-family: var(--f-prose);
  font-size: 18px;
  color: var(--t3);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Scroll animation class */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s, transform 0.7s;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   SOCIAL PROOF BAR
   ================================================================ */
.proof-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-dd);
  border-bottom: 1px solid var(--gold-dd);
  padding: 20px 32px;
}
.proof-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-family: var(--f-ui);
  font-size: 13px;
  /* Body text bumped from --t3 to --t2 for WCAG AA (4.5:1 minimum). */
  color: var(--t2);
}
.proof-quote {
  font-family: var(--f-prose);
  font-style: italic;
  color: var(--t2);
  font-size: 15px;
}
.proof-sep {
  width: 1px;
  height: 20px;
  background: var(--t4);
  opacity: 0.3;
}
.proof-stat strong {
  color: var(--gold);
  font-weight: 700;
}
.proof-note {
  font-size: 10px;
  color: var(--t4);
  font-style: italic;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-it-works {
  background: var(--bg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.step {
  text-align: center;
  padding: 40px 28px 36px;
  background: var(--bg-card);
  border: 1px solid rgba(208,136,74,0.06);
  border-radius: 12px;
  position: relative;
  transition: transform 0.3s, border-color 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: rgba(208,136,74,0.15);
}

.step-number {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.12;
  position: absolute;
  top: 16px;
  left: 24px;
}

.step-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  margin: -40px -28px 20px;
  width: calc(100% + 56px);
  opacity: 0.85;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-dd);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  color: var(--gold);
}

.step h3 {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.step p {
  font-family: var(--f-prose);
  font-size: 16px;
  color: var(--t3);
  line-height: 1.65;
}

/* Connecting lines between steps */
.steps-connector {
  display: none; /* visible on desktop via media query */
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; max-width: 400px; }
}

/* ================================================================
   IMMERSION SHOWCASE
   ================================================================ */
.immersion {
  background: var(--bg-alt);
}

.immersion-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

/* Animated game demo panel */
.demo-panel {
  background: var(--bg-surface);
  border: 1px solid rgba(208,136,74,0.08);
  border-radius: 12px;
  padding: 28px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
}

.demo-line {
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(8px);
}
.demo-line.show {
  animation: demo-reveal 0.5s forwards;
}
@keyframes demo-reveal {
  to { opacity: 1; transform: translateY(0); }
}

.demo-narration {
  font-family: var(--f-prose);
  font-size: 15px;
  color: var(--t2);
  line-height: 1.75;
}
.demo-narration .demo-drop {
  float: left;
  font-family: var(--f-display);
  font-size: 32px;
  line-height: 0.8;
  padding-right: 5px;
  color: var(--gold);
  font-weight: 700;
}

.demo-npc {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-left: 4px;
}
.demo-npc-name {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 3px;
}
.demo-npc-text {
  font-family: var(--f-prose);
  font-style: italic;
  font-size: 15px;
  color: var(--t1);
}

.demo-translation {
  font-family: var(--f-ui);
  font-size: 11px;
  font-style: italic;
  color: var(--t4);
  margin-top: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--gold-dd);
  transition: opacity 0.4s;
}

.demo-cmd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--sage);
  border-left: 2px solid rgba(90,152,88,0.25);
  padding-left: 14px;
}

.demo-word-popup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dd);
  border: 1px solid rgba(208,136,74,0.1);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: var(--f-ui);
  font-size: 11px;
  margin-top: 8px;
}
.demo-word-popup .word { color: var(--gold); font-weight: 600; }
.demo-word-popup .meaning { color: var(--t3); }

.immersion-prose h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 20px;
  line-height: 1.3;
}
.immersion-prose p {
  font-family: var(--f-prose);
  font-size: 17px;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.immersion-prose em {
  color: var(--gold);
  font-style: italic;
}

@media (max-width: 768px) {
  .immersion-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   FEATURES GRID
   ================================================================ */
.features {
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-top: 2px solid var(--gold-d);
  border-radius: 10px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-top-color: var(--gold);
}

.feature-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.feature-card p {
  font-family: var(--f-prose);
  font-size: 15px;
  color: var(--t3);
  line-height: 1.6;
}

@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; max-width: 440px; }
}

/* ================================================================
   LANGUAGE SELECTOR
   ================================================================ */
.languages {
  background: var(--bg-alt);
}

.lang-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}

.lang-card {
  background: var(--bg-card);
  border: 1px solid rgba(208,136,74,0.08);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  width: 180px;
  cursor: pointer;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.lang-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center bottom, rgba(208,136,74,0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.lang-card:hover::before { opacity: 1; }
.lang-card:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: var(--gold);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.lang-card h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
  position: relative;
}

.lang-sample {
  font-family: var(--f-prose);
  font-style: italic;
  font-size: 14px;
  color: var(--t3);
  line-height: 1.5;
  position: relative;
}
.lang-sample::before {
  content: '\201C';
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--gold);
  opacity: 0.4;
  position: absolute;
  top: -8px;
  left: -4px;
}

@media (max-width: 600px) {
  .lang-cards { flex-direction: column; align-items: center; }
  .lang-card { width: 100%; max-width: 280px; }
}

/* ================================================================
   PRICING
   ================================================================ */
.pricing {
  background: var(--bg);
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
}
.toggle-btn {
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border: 1px solid var(--t4);
  background: transparent;
  color: var(--t3);
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-btn:first-child { border-radius: 8px 0 0 8px; }
.toggle-btn:last-child { border-radius: 0 8px 8px 0; border-left: none; }
.toggle-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.toggle-save {
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--sage);
  margin-left: 6px;
}
.toggle-btn.active .toggle-save {
  color: var(--bg);
}

.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid rgba(208,136,74,0.15);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Subtle corner ornaments */
.pricing-card::before,
.pricing-card::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(208,136,74,0.08);
}
.pricing-card::before {
  top: 12px; left: 12px;
  border-right: none; border-bottom: none;
  border-radius: 4px 0 0 0;
}
.pricing-card::after {
  bottom: 12px; right: 12px;
  border-left: none; border-top: none;
  border-radius: 0 0 4px 0;
}

.pricing-name {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.pricing-amount {
  font-family: var(--f-display);
  font-size: 56px;
  font-weight: 700;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-amount .currency {
  font-size: 24px;
  vertical-align: super;
  color: var(--t3);
}

.pricing-period {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--t3);
  margin-bottom: 8px;
}

.pricing-yearly-note {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--t4);
  margin-bottom: 28px;
}

.pricing-divider {
  height: 1px;
  background: linear-gradient(to right, transparent 10%, var(--gold-d) 50%, transparent 90%);
  margin: 24px 0;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.pricing-features li {
  font-family: var(--f-prose);
  font-size: 16px;
  color: var(--t2);
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-features i {
  color: var(--sage);
  font-size: 18px;
  flex-shrink: 0;
}

.pricing-card .btn-primary {
  width: 100%;
  margin-bottom: 0;
}

.pricing-fine {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--t4);
  margin-top: 20px;
}

.pricing-family {
  text-align: center;
  margin-top: 28px;
  font-family: var(--f-prose);
  font-style: italic;
  font-size: 15px;
  color: var(--t4);
}

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.testimonials {
  background: var(--bg-alt);
}

.testimonial-carousel {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(208,136,74,0.06);
  border-radius: 12px;
  padding: 40px 36px 32px;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--f-display);
  font-size: 72px;
  color: var(--gold);
  opacity: 0.1;
  position: absolute;
  top: 8px;
  left: 24px;
  line-height: 1;
}

.testimonial-text {
  font-family: var(--f-prose);
  font-size: 18px;
  font-style: italic;
  color: var(--t2);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
}

.testimonial-author {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--t3);
}
.testimonial-author strong {
  color: var(--t1);
  font-weight: 600;
}
.testimonial-meta {
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--t4);
  margin-top: 4px;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--t4);
  cursor: pointer;
  transition: all 0.2s;
}
.testimonial-dot.active {
  background: var(--gold);
  width: 20px;
  border-radius: 3px;
}

.testimonial-placeholder {
  font-family: var(--f-ui);
  font-size: 11px;
  color: var(--t4);
  font-style: italic;
  margin-top: 16px;
}

/* ================================================================
   FAQ
   ================================================================ */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--t1);
  font-family: var(--f-ui);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--gold); }
.faq-question i {
  font-size: 18px;
  color: var(--t4);
  transition: transform 0.3s, color 0.3s;
}
.faq-item.open .faq-question i {
  transform: rotate(45deg);
  color: var(--gold);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-family: var(--f-prose);
  font-size: 16px;
  color: var(--t3);
  line-height: 1.7;
  border-left: 2px solid var(--gold-d);
  padding-left: 16px;
  margin-left: 2px;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  background: var(--bg-alt);
  text-align: center;
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      var(--bg) 0%,
      rgba(10,16,20,0.65) 20%,
      rgba(10,16,20,0.55) 50%,
      rgba(10,16,20,0.70) 80%,
      var(--bg) 100%),
    url('/static/img/landing/cta-bg.png') center/cover no-repeat;
}

.final-cta h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 16px;
  position: relative;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9);
}
.final-cta .tagline {
  font-family: var(--f-prose);
  font-size: 18px;
  font-style: italic;
  color: var(--t2);
  margin-bottom: 36px;
  position: relative;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.final-cta .btn-primary {
  position: relative;
  box-shadow: 0 0 30px rgba(208,136,74,0.25), 0 4px 20px rgba(0,0,0,0.5);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 48px 32px 36px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.footer-brand p {
  font-family: var(--f-prose);
  font-size: 14px;
  color: var(--t4);
  line-height: 1.5;
  max-width: 240px;
}

.footer-col h4 {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--t4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--t2); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.03);
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--t4);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-switcher {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.lang-switcher a {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--t4);
  text-decoration: none;
  transition: color 0.2s;
}
.lang-switcher a:hover {
  color: var(--t2);
}
.lang-current {
  font-family: var(--f-ui);
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .lang-switcher { justify-content: center; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.48s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.6s; }
.stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================
   WAITLIST PAGE
   ================================================================ */
.waitlist-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
}

.waitlist-card {
  max-width: 600px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(208,136,74,0.1);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
}

.waitlist-title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
}

.waitlist-subtitle {
  font-family: var(--f-prose);
  font-size: 16px;
  color: var(--t3);
  line-height: 1.65;
  margin-bottom: 32px;
}

.waitlist-fine {
  font-family: var(--f-ui);
  font-size: 13px;
  color: var(--t4);
  margin-top: 16px;
}

.waitlist-form {
  text-align: left;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: var(--f-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: var(--t1);
  font-family: var(--f-prose);
  font-size: 16px;
  /* Focus outline is provided by the global :focus-visible rule near the top of this file. */
  transition: border-color 0.2s;
}
.form-input:focus {
  border-color: var(--gold);
}
.form-input::placeholder {
  color: var(--t4);
}

/* Language selector — flag-style radio cards */
.lang-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lang-radio {
  cursor: pointer;
}

.lang-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lang-radio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  transition: all 0.2s;
  min-width: 72px;
}
.lang-radio-card:hover {
  border-color: rgba(208,136,74,0.3);
  background: var(--bg-hover);
}

.lang-radio-input:checked + .lang-radio-card {
  border-color: var(--gold);
  background: rgba(208,136,74,0.08);
}

.lang-radio-flag {
  font-size: 24px;
  line-height: 1;
}

.lang-radio-name {
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--t3);
  text-align: center;
}

.lang-radio-input:checked + .lang-radio-card .lang-radio-name {
  color: var(--gold);
}

.waitlist-submit {
  width: 100%;
  margin-top: 8px;
}

/* Success state */
.success-icon {
  font-size: 48px;
  color: var(--sage);
  margin-bottom: 16px;
}

.waitlist-back {
  display: inline-block;
  margin-top: 24px;
}

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */
@media (max-width: 600px) {
  section { padding: 60px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 20px; font-size: 12px; flex-wrap: wrap; }
  .mini-game { height: 280px; font-size: 11px; }
  .mini-marginalia { display: none; }
  .mini-game { grid-template-columns: 1fr; }
  .proof-inner { flex-direction: column; gap: 12px; text-align: center; }
  .proof-sep { display: none; }
  .waitlist-card { padding: 32px 24px; }
  .lang-selector { gap: 6px; }
  .lang-radio-card { min-width: 60px; padding: 8px 10px; }
}

/* ================================================================
   CONTENT PAGES (about, privacy, terms, cookies, contact, blog)
   ================================================================ */

.content-nav-links {
  display: flex;
  align-items: center;
}
.content-nav-links a {
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--t2);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.content-nav-links a:hover { color: var(--t1); }

.content-page {
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  min-height: 60vh;
}

.content-body {}

.content-title {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--t1);
  text-align: center;
  margin-bottom: 16px;
}

.content-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}
.content-ornament .orn-line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.content-ornament .orn-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

.content-effective {
  text-align: center;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--t3);
  margin-bottom: 48px;
}

.content-section {
  margin-bottom: 40px;
}
.content-section h2 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-l);
  margin-bottom: 16px;
}
.content-section h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 12px;
}
.content-section p {
  font-family: var(--f-prose);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--t2);
  margin-bottom: 12px;
}
.content-section a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.content-section a:hover { color: var(--gold-l); }

.content-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 16px;
}
.content-list li {
  font-family: var(--f-prose);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--t2);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
}
.content-list li::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: 0.6;
}

/* Contact cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--gold-d);
  border-radius: 8px;
  padding: 32px 24px;
  text-align: center;
}
.contact-icon {
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 16px;
}
.contact-card h3 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--t1);
  margin-bottom: 12px;
}
.contact-card p {
  font-family: var(--f-prose);
  font-size: 1rem;
  color: var(--t2);
  margin-bottom: 8px;
}
.contact-card a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-card a:hover { color: var(--gold-l); }
.contact-note {
  font-size: 0.85rem !important;
  color: var(--t3) !important;
}

/* Cookie table */
.cookie-table {
  margin: 24px 0;
  border: 1px solid var(--gold-d);
  border-radius: 8px;
  overflow: hidden;
}
.cookie-row {
  display: grid;
  grid-template-columns: 100px 1fr 120px 80px;
  gap: 16px;
  padding: 12px 16px;
  font-family: var(--f-ui);
  font-size: 14px;
  color: var(--t2);
  border-bottom: 1px solid var(--gold-dd);
}
.cookie-row:last-child { border-bottom: none; }
.cookie-header {
  background: var(--bg-surface);
  font-weight: 600;
  color: var(--t1);
}

/* Blog empty state */
.blog-empty {
  text-align: center;
  padding: 80px 0;
}
.blog-empty-icon {
  font-size: 64px;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 24px;
}
.blog-empty h2 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  color: var(--t1);
  margin-bottom: 16px;
}
.blog-empty p {
  font-family: var(--f-prose);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--t2);
  max-width: 480px;
  margin: 0 auto 12px;
}
.blog-empty a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.blog-empty a:hover { color: var(--gold-l); }

/* Content page responsive */
@media (max-width: 768px) {
  .content-page { padding: calc(var(--nav-h) + 40px) 20px 60px; }
  .content-title { font-size: 1.8rem; }
  .contact-cards { grid-template-columns: 1fr; }
  .cookie-row { grid-template-columns: 1fr; gap: 4px; }
  .cookie-header { display: none; }
  .cookie-row span::before {
    font-weight: 600;
    color: var(--t3);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }
  .cookie-row:not(.cookie-header) span:nth-child(1)::before { content: 'Cookie'; }
  .cookie-row:not(.cookie-header) span:nth-child(2)::before { content: 'Purpose'; }
  .cookie-row:not(.cookie-header) span:nth-child(3)::before { content: 'Duration'; }
  .cookie-row:not(.cookie-header) span:nth-child(4)::before { content: 'Type'; }
}
