/* ============================================================
   Revive Watch — Brand Stylesheet
   Visual direction: "Ice-age field notes" — prehistoric / amber-frost.
   The species are coming back; the board reads like a frost-dusted
   naturalist's ledger: warm cream paper, glacial teal ink,
   warm amber "life returns" sparks, dark ink text.

   Palette (ui-design-spec §3, app brief §13):
   --cream        #FDF6EC   page background (warm cream paper)
   --cream-deep   #F0D8C0   deeper cream surfaces (sand/amber family)
   --cream-card   #FFFDF6   elevated card surfaces
   --teal         #00897B   glacial teal primary (primary actions, links)
   --teal-dark    #00695C   deep glacial teal (hover, AA text)
   --teal-soft    #E4F1EE   teal tint surfaces / chip backgrounds
   --amber        #B26A00   warm amber accent (sparks, highlights)
   --amber-deep   #8A5200   deep amber (AA text on cream)
   --amber-soft   #F6E7CF   amber tint surfaces
   --ink          #1B1C18   dark ink (headings / primary text)
   --ink-muted    #5C5D52   muted body text (AA on cream)
   --ink-faint    #8A8B7E   captions / meta text
   --border       rgba(27, 28, 24, 0.12)

   Typography:
   Display: "Fraunces" (warm, editorial, prehistoric-museum character)
   Body:    "DM Sans" (refined, readable)
   ============================================================ */

/* --- Reset & tokens --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #FDF6EC;
  --cream-deep: #F0D8C0;
  --cream-card: #FFFDF6;
  --teal: #00897B;
  --teal-dark: #00695C;
  --teal-deep: #00504A;
  --teal-soft: #E4F1EE;
  --amber: #B26A00;
  --amber-deep: #8A5200;
  --amber-soft: #F6E7CF;
  --ink: #1B1C18;
  --ink-muted: #5C5D52;
  --ink-faint: #8A8B7E;
  --border: rgba(27, 28, 24, 0.12);
  --border-strong: rgba(27, 28, 24, 0.22);
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 36px;

  --shadow-sm: 0 2px 10px rgba(27, 28, 24, 0.08);
  --shadow-md: 0 10px 30px rgba(27, 28, 24, 0.10);
  --shadow-lg: 0 24px 60px rgba(27, 28, 24, 0.14);
  --glow-teal: 0 0 0 1px rgba(0, 137, 123, 0.28), 0 8px 28px rgba(0, 137, 123, 0.18);
  --glow-amber: 0 0 0 1px rgba(178, 106, 0, 0.30), 0 8px 28px rgba(178, 106, 0, 0.20);

  --max-width: 1180px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle paper grain / frost texture over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(rgba(0, 137, 123, 0.05) 1px, transparent 1px),
    radial-gradient(rgba(178, 106, 0, 0.04) 1px, transparent 1px);
  background-size: 34px 34px, 58px 58px;
  background-position: 0 0, 17px 23px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-deep);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* --- Layout helpers --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 246, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 76px;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0, 137, 123, 0.18);
}

.nav-brand em {
  font-style: normal;
  color: var(--teal-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 137, 123, 0.08);
}

.nav-links a.nav-x {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 600;
}

.nav-links a.nav-x:hover {
  color: var(--teal-dark);
  background: transparent;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

/* --- Hero --- */
.hero {
  padding: 104px 24px 88px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -140px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 137, 123, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -100px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 106, 0, 0.10) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-slogan {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border: 1px solid rgba(0, 137, 123, 0.22);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 22px;
}

.hero-slogan .spark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  animation: sparkPulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--teal-dark);
  position: relative;
}

.hero h1 .warm {
  color: var(--amber-deep);
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.hero-meta {
  font-size: 0.86rem;
  color: var(--ink-faint);
}

.hero-banner {
  position: relative;
}

.hero-banner .banner-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(178, 106, 0, 0.20);
  background: var(--cream-deep);
  transform: rotate(1.2deg);
  transition: transform 0.4s ease;
}

.hero-banner:hover .banner-frame {
  transform: rotate(0deg) scale(1.01);
}

.hero-banner .banner-frame img {
  width: 100%;
  height: auto;
}

.hero-badge {
  position: absolute;
  bottom: -16px;
  left: 24px;
  background: var(--cream-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-badge .spark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}

.btn .icon {
  font-size: 1.15rem;
  line-height: 1;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 137, 123, 0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 137, 123, 0.45);
  color: var(--white);
}

.btn-secondary {
  background: var(--cream-card);
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-amber {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 6px 20px rgba(178, 106, 0, 0.35);
}

.btn-amber:hover {
  background: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(178, 106, 0, 0.45);
  color: var(--white);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.12rem;
}

/* --- Sections --- */
.section {
  padding: 84px 24px;
  position: relative;
}

.section-alt {
  background: var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header .eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.08rem;
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.accent-line {
  width: 52px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  margin: 18px auto 0;
}

/* --- Stats strip (social proof) --- */
.stats {
  background: var(--ink);
  color: var(--cream);
  border-top: 1px solid rgba(253, 246, 236, 0.14);
  border-bottom: 1px solid rgba(253, 246, 236, 0.14);
  padding: 44px 24px;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--cream);
  display: block;
  margin-bottom: 4px;
}

.stat-value em {
  font-style: normal;
  color: var(--amber);
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(253, 246, 236, 0.72);
}

.stat-note {
  font-size: 0.74rem;
  color: rgba(253, 246, 236, 0.45);
  margin-top: 6px;
  line-height: 1.5;
}

/* --- Features (bento) --- */
.features-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 137, 123, 0.35);
}

.feature-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 106, 0, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.feature-card.wide { grid-column: span 3; }
.feature-card.narrow { grid-column: span 2; }
.feature-card.full { grid-column: span 6; }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 1px rgba(0, 137, 123, 0.22);
}

.feature-card.amber .feature-icon {
  background: var(--amber-soft);
  box-shadow: inset 0 0 0 1px rgba(178, 106, 0, 0.25);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.feature-card .feature-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

/* --- Credibility chips (the flag is the filter) --- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  background: var(--cream-card);
  color: var(--ink-muted);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.chip.official { border-color: rgba(0, 137, 123, 0.4); color: var(--teal-deep); }
.chip.official .dot { background: var(--teal); box-shadow: 0 0 8px rgba(0, 137, 123, 0.5); }

.chip.lookalike { border-color: rgba(178, 106, 0, 0.45); color: var(--amber-deep); }
.chip.lookalike .dot { background: var(--amber); box-shadow: 0 0 8px rgba(178, 106, 0, 0.5); }

.chip.nosource { border-color: var(--border-strong); color: var(--ink-muted); }
.chip.nosource .dot { background: var(--ink-faint); }

/* --- Methodology (the flag is the filter) --- */
.method-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.method-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all 0.3s;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.method-card .method-icon {
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.method-card h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.method-card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.method-disclaimer {
  max-width: var(--max-width);
  margin: 28px auto 0;
  background: var(--amber-soft);
  border: 1px solid rgba(178, 106, 0, 0.28);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--amber-deep);
  line-height: 1.65;
}

.method-disclaimer strong {
  font-weight: 700;
}

/* --- Screenshots --- */
.screenshots-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.screenshot-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
  background: var(--cream-card);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
}

.screenshot-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 137, 123, 0.3);
  border-color: rgba(0, 137, 123, 0.35);
}

.screenshot-card img {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top;
  background: var(--cream-deep);
}

.screenshot-label {
  padding: 12px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
}

.screenshot-note {
  padding: 0 14px 12px;
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.5;
}

/* --- Catalyst timeline --- */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 21px;
  width: 2px;
  background: linear-gradient(180deg, var(--teal), var(--amber));
  opacity: 0.45;
}

.timeline-item {
  position: relative;
  padding: 0 0 30px 60px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 13px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream);
  border: 4px solid var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.12);
}

.timeline-item.achieved::before {
  border-color: var(--teal-dark);
  background: var(--teal);
}

.timeline-item.target::before {
  border-color: var(--amber);
}

.timeline-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: all 0.3s;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 12px;
}

.status-chip.target { background: var(--amber-soft); color: var(--amber-deep); }
.status-chip.achieved { background: var(--teal-soft); color: var(--teal-deep); }
.status-chip.progress { background: rgba(0, 0, 0, 0.06); color: var(--ink-muted); }

.timeline-card .timeline-date {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

.timeline-card p {
  font-size: 0.94rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

.timeline-card .source-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

/* --- About / narrative --- */
.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.about-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: all 0.3s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.about-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-card h3 span { font-size: 1.35rem; }

.about-card p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.25s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--teal);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 22px;
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

.faq-answer-inner a {
  font-weight: 600;
}

/* --- Final CTA --- */
.final-cta {
  background:
    radial-gradient(ellipse at 80% 10%, rgba(0, 137, 123, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 100%, rgba(178, 106, 0, 0.14) 0%, transparent 55%),
    var(--cream-deep);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.final-cta h2 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.final-cta .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 28px;
}

.final-cta .cta-banner {
  max-width: 420px;
  margin: 0 auto 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(178, 106, 0, 0.22);
  background: var(--cream-deep);
  transform: rotate(-1.2deg);
  transition: transform 0.4s ease;
}

.final-cta .cta-banner:hover {
  transform: rotate(0deg);
}

.final-cta .cta-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.final-cta .cta-note {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* --- Footer --- */
.footer {
  background: var(--ink);
  color: rgba(253, 246, 236, 0.72);
  padding: 64px 24px 32px;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(253, 246, 236, 0.2);
}

.footer-brand em {
  font-style: normal;
  color: #7FD6C8;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 340px;
  color: rgba(253, 246, 236, 0.55);
}

.footer h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(253, 246, 236, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #7FD6C8;
}

.footer-divider {
  max-width: var(--max-width);
  margin: 0 auto 24px;
  border: none;
  border-top: 1px solid rgba(253, 246, 236, 0.12);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(253, 246, 236, 0.45);
}

.footer-bottom a {
  color: rgba(253, 246, 236, 0.55);
}

.footer-bottom a:hover {
  color: #7FD6C8;
}

/* --- Legal pages (shared) --- */
.legal-page {
  padding: 96px 24px 64px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-header {
  margin-bottom: 32px;
}

.legal-header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.legal-header .meta {
  color: var(--ink-faint);
  font-size: 0.95rem;
}

.legal-content {
  background: var(--cream-card);
  padding: 40px 42px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.legal-content h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 22px;
  margin-bottom: 10px;
}

.legal-content p {
  color: var(--ink-muted);
  margin-bottom: 14px;
  line-height: 1.75;
}

.legal-content ul, .legal-content ol {
  margin-left: 22px;
  margin-bottom: 16px;
  color: var(--ink-muted);
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.legal-content code {
  background: var(--teal-soft);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--teal-deep);
  font-weight: 600;
}

.legal-content strong {
  color: var(--ink);
}

.legal-content a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-footer-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(27, 28, 24, 0.92);
  backdrop-filter: blur(8px);
  padding: 32px;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 460px);
  max-height: 92vh;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(253, 246, 236, 0.18);
  object-fit: contain;
  background: var(--cream);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 0.9rem;
  background: rgba(27, 28, 24, 0.7);
  border-radius: 999px;
  padding: 8px 18px;
  text-align: center;
  max-width: 80%;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.7s ease-out both;
}

.animate-in.d-1 { animation-delay: 0.1s; }
.animate-in.d-2 { animation-delay: 0.2s; }
.animate-in.d-3 { animation-delay: 0.3s; }
.animate-in.d-4 { animation-delay: 0.4s; }
.animate-in.d-5 { animation-delay: 0.5s; }

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 {
    font-size: 3.1rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.wide { grid-column: span 2; }
  .feature-card.narrow { grid-column: span 1; }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .method-grid, .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    height: 64px;
    padding: 0 16px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 14px 16px 20px;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding: 72px 16px 64px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

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

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

  .section {
    padding: 64px 16px;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.wide, .feature-card.narrow, .feature-card.full {
    grid-column: span 1;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .method-grid, .about-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .legal-page {
    padding: 84px 16px 48px;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-content {
    padding: 26px 22px;
  }

  .final-cta h2 {
    font-size: 2.2rem;
  }

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

  .final-cta .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
