/* ==========================================================================
   StylingCV — Cinematic Design System
   Dark espresso + warm gold. Shared across all redesigned pages.
   Class vocabulary matches the legacy static pages (nav, .hero, .feature-card…)
   so markup and copy stay untouched.
   ========================================================================== */

:root {
  --bg-0: #0a0705;
  --bg-1: #100b07;
  --bg-2: #171008;
  --surface: rgba(29, 21, 12, 0.66);
  --surface-strong: rgba(23, 16, 8, 0.92);
  --line: rgba(227, 192, 120, 0.14);
  --line-strong: rgba(227, 192, 120, 0.32);

  --gold: #c9a227;
  --gold-2: #e3c078;
  --gold-soft: #e9cf8f;
  --ember: #b06a2c;

  --text: #f3eadc;
  --muted: #b3a189;
  --muted-2: #8a7a64;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-warm: 0 24px 60px -24px rgba(0, 0, 0, 0.75);

  --font-body: 'Poppins', 'Cairo', 'Tajawal', sans-serif;
  --font-display: 'Playfair Display', 'Cairo', 'Tajawal', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-0);
  background-image:
    radial-gradient(60% 38% at 50% 0%, rgba(201, 162, 39, 0.055), transparent 70%),
    radial-gradient(45% 30% at 85% 100%, rgba(176, 106, 44, 0.05), transparent 70%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.rtl,
.rtl {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', 'Tajawal', 'Poppins', sans-serif;
  font-feature-settings: 'kern' 1, 'liga' 1;
  letter-spacing: 0;
  line-height: 1.85;
  word-spacing: 0.02em;
}

.font-heading { font-family: var(--font-display); }
.rtl .font-heading,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

::selection { background: rgba(201, 162, 39, 0.85); color: #171008; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Custom scrollbar — dark warm */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0a0705; }
::-webkit-scrollbar-thumb { background: #2c2113; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #4a381f; }

/* --------------------------------------------------------------------------
   Film grain overlay (injected by JS / migration as <div class="grain">)
   -------------------------------------------------------------------------- */
.grain {
  position: fixed;
  inset: -60%;
  width: 220%;
  height: 220%;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  animation: grain-shift 1.1s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1.5%, 1%, 0); }
  50% { transform: translate3d(1%, -1.5%, 0); }
  75% { transform: translate3d(-1%, -1%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

/* --------------------------------------------------------------------------
   Navigation — dark glass
   -------------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 5%;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    backdrop-filter 0.45s var(--ease-out), padding 0.45s var(--ease-out);
}

nav.is-scrolled,
nav.nav-open {
  background: rgba(10, 7, 5, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border-bottom-color: var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s;
}

.logo span {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  inset-inline-start: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.lang-switch { display: flex; gap: 0.5rem; }

.lang-switch a {
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.lang-switch a.active {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1d150c;
}

.lang-switch a:not(.active) {
  color: var(--muted);
  border: 1px solid var(--line-strong);
}

.lang-switch a:not(.active):hover { color: var(--text); border-color: var(--gold-2); }

/* Mobile menu toggle — injected by migration / present in homepages */
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: rgba(29, 21, 12, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.nav-toggle:hover { border-color: var(--line-strong); }

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

nav.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 60%, #a8841c);
  color: #1d150c;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 6px 24px -8px rgba(201, 162, 39, 0.45), inset 0 1px 0 rgba(255, 240, 205, 0.5);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s;
  will-change: transform;
}

.cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 38px -10px rgba(201, 162, 39, 0.55), inset 0 1px 0 rgba(255, 240, 205, 0.55);
}

.cta-button:active { transform: translateY(0) scale(0.98); }

.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(227, 192, 120, 0.5);
  transition: color 0.3s, text-decoration-color 0.3s;
}

.text-link:hover { color: var(--gold-2); text-decoration-color: var(--gold-2); }

/* --------------------------------------------------------------------------
   Hero — cinematic dark with warm volumetric glow
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 4rem;
  color: var(--text);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 65% at 72% 8%, rgba(201, 162, 39, 0.13), transparent 58%),
    radial-gradient(70% 55% at 12% 88%, rgba(176, 106, 44, 0.12), transparent 62%),
    linear-gradient(165deg, #1a1209 0%, var(--bg-1) 46%, var(--bg-0) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(227, 192, 120, 0.16);
  border-radius: 50%;
  top: -200px;
  inset-inline-end: -200px;
}

.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(227, 192, 120, 0.12);
  border-radius: 50%;
  bottom: -100px;
  inset-inline-start: -100px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(227, 192, 120, 0.4);
  color: var(--gold-2);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 24px -6px rgba(201, 162, 39, 0.25), inset 0 1px 0 rgba(255, 240, 205, 0.12);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  max-width: 720px;
  text-wrap: balance;
}

.rtl .hero h1 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.3;
}

.rtl .hero p {
  font-size: 1.2rem;
  line-height: 1.9;
  max-width: 680px;
}

.hero-bullets {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  margin: 0 0 2rem;
  max-width: 640px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, var(--gold-soft), var(--gold) 55%, transparent 70%),
    linear-gradient(135deg, rgba(227, 192, 120, 0.35), rgba(176, 106, 44, 0.2));
  box-shadow: 0 0 0 1px rgba(227, 192, 120, 0.35);
}

.hero h1 .highlight,
.highlight {
  background: linear-gradient(115deg, var(--gold-soft) 10%, var(--gold) 55%, var(--ember) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.en .hero h1 .highlight,
body.en .highlight { font-style: italic; }

.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin-bottom: 2rem;
}

.hero-stats { display: flex; gap: 3rem; margin-top: 3rem; }

.stat { text-align: center; }

.stat-number {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 0.9rem; color: var(--muted-2); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
section { padding: clamp(4.5rem, 8vw, 7rem) 5%; position: relative; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 3.5rem; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  text-wrap: balance;
}

.rtl .section-header h2 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rtl .section-eyebrow {
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}

.section-header p { color: var(--muted); font-size: 1.08rem; line-height: 1.8; }

.prose-block {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
}

.rtl .prose-block {
  font-size: 1.15rem;
  line-height: 2;
}

/* --------------------------------------------------------------------------
   Rich content blocks — steps, FAQ, plans, checklist, CTA
   -------------------------------------------------------------------------- */
.steps-list {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.step-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(29, 21, 12, 0.72), rgba(14, 10, 6, 0.88));
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  color: #1d150c;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 8px 20px -10px rgba(201, 162, 39, 0.7);
}

.step-card h3 {
  margin-bottom: 0.45rem;
  font-size: 1.15rem;
  color: var(--text);
}

.step-card p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(23, 16, 8, 0.72);
  padding: 1.35rem 1.5rem;
}

.faq-item h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  color: var(--text);
}

.faq-item p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  background: linear-gradient(165deg, rgba(29, 21, 12, 0.8), rgba(10, 7, 5, 0.94));
}

.plan-card.is-popular {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(227, 192, 120, 0.12), var(--shadow-warm);
}

.plan-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.14);
  border: 1px solid rgba(227, 192, 120, 0.35);
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-soft);
  margin-bottom: 0.35rem;
}

.plan-cadence,
.plan-summary {
  color: var(--muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.plan-features {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.plan-features li {
  position: relative;
  padding-inline-start: 1.4rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.55;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--gold-2);
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

.check-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  background: rgba(23, 16, 8, 0.66);
}

.check-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.check-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.cta-band {
  margin: 0 auto;
  max-width: 980px;
  text-align: center;
  padding: 3.25rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(70% 80% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 65%),
    linear-gradient(160deg, rgba(29, 21, 12, 0.9), rgba(10, 7, 5, 0.96));
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 1.75rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
  background: rgba(23, 16, 8, 0.66);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.related-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

.related-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold-2);
  font-size: 1.02rem;
}

.related-card span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.section-alt {
  background: linear-gradient(180deg, rgba(16, 11, 7, 0.55), transparent);
}

.comparison-table {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--line);
}

.comparison-table th,
.comparison-table td {
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid rgba(227, 192, 120, 0.1);
  text-align: start;
  font-size: 0.95rem;
}

.comparison-table th {
  background: rgba(29, 21, 12, 0.9);
  color: var(--gold-2);
  font-weight: 700;
}

.comparison-table td {
  color: var(--muted);
  background: rgba(14, 10, 6, 0.72);
}

.comparison-table tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   Feature cards — dark glass with spotlight hover
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: linear-gradient(160deg, rgba(29, 21, 12, 0.72), rgba(14, 10, 6, 0.88));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.4rem;
  overflow: hidden;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.05);
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

/* Spotlight that follows the cursor (vars set by site.js) */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(227, 192, 120, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-warm), 0 0 0 1px rgba(227, 192, 120, 0.06),
    inset 0 1px 0 rgba(255, 240, 205, 0.08);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(227, 192, 120, 0.16), rgba(176, 106, 44, 0.14));
  border: 1px solid var(--line);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 0 rgba(255, 240, 205, 0.1);
  transition: box-shadow 0.45s var(--ease-out), border-color 0.45s var(--ease-out);
}

.feature-card:hover .feature-icon {
  border-color: var(--line-strong);
  box-shadow: 0 0 28px -6px rgba(201, 162, 39, 0.35), inset 0 1px 0 rgba(255, 240, 205, 0.12);
}

.feature-card h3 { font-size: 1.22rem; margin-bottom: 0.75rem; color: var(--text); }

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

/* --------------------------------------------------------------------------
   Footer — deep espresso
   -------------------------------------------------------------------------- */
footer {
  background: #080503;
  border-top: 1px solid var(--line);
  color: var(--text);
  padding: 4.5rem 5% 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
}

.footer-brand .logo { color: var(--text); }

.footer-tagline { margin-top: 1rem; color: rgba(243, 234, 220, 0.62); }

.footer-links h4 { margin-bottom: 1rem; font-size: 1.05rem; color: var(--text); }

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(243, 234, 220, 0.58);
  text-decoration: none;
  transition: color 0.3s, padding-inline-start 0.3s var(--ease-out);
}

.footer-links a:hover { color: var(--gold-2); padding-inline-start: 4px; }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(227, 192, 120, 0.09);
  text-align: center;
  color: var(--muted-2);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Scroll reveal (tagged by site.js — no markup changes required)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.is-visible { opacity: 1; transform: none; }

/* No-JS / pre-JS safety: reveals only hide when JS is active */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 7, 5, 0.97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 5% 1.25rem;
  }

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

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(227, 192, 120, 0.08);
    font-size: 1rem;
  }

  .nav-links li:last-child a { border-bottom: none; }

  .nav-links a::after { display: none; }

  .hero { padding-top: 7rem; }

  .hero h1 { font-size: clamp(2.1rem, 8vw, 2.6rem); }

  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }

  .stat-number { font-size: 1.9rem; }

  .feature-card { padding: 1.9rem; }
}

/* --------------------------------------------------------------------------
   Reduced motion — honor user preference everywhere
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .grain { animation: none; }

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

  .feature-card,
  .cta-button,
  .footer-links a,
  .nav-links a::after { transition-duration: 0.01ms; }

  .feature-card:hover { transform: none; }

  .cta-button:hover { transform: none; }
}
