/* ============================================================
   Web Gen AI — Design System
   Dark, electric, disruptive. Mobile-first.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:           #080810;
  --bg-2:         #0d0d1a;
  --bg-3:         #111124;
  --surface:      #13132a;
  --surface-2:    #1a1a35;
  --border:       rgba(255,255,255,0.08);
  --border-glow:  rgba(99,102,241,0.35);

  --accent:       #6366f1;
  --accent-2:     #8b5cf6;
  --accent-bright:#818cf8;
  --accent-glow:  rgba(99,102,241,0.25);
  --green:        #22c55e;
  --red:          #ef4444;
  --amber:        #f59e0b;

  --text:         #f8fafc;
  --text-2:       #cbd5e1;
  --text-3:       #64748b;
  --text-4:       #334155;

  --font:         'Inter', system-ui, -apple-system, sans-serif;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  --r1: 6px; --r2: 10px; --r3: 16px; --r4: 24px; --r-full: 9999px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 40px rgba(99,102,241,0.3);

  --ease-out: cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
ul, ol { list-style: none; }

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s4) 0;
  background: transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .logo-web { color: var(--text); }
.nav-logo .logo-gen { color: var(--accent-bright); }
.nav-logo .logo-ai  { color: var(--text-2); font-weight: 400; font-size: 0.9em; }

.nav-links { display: none; gap: var(--s6); align-items: center; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: var(--s3); }
.nav-cta { display: none; }
@media (min-width: 480px) { .nav-cta { display: inline-flex; } }

.nav-hamburger { display: flex; flex-direction: column; gap: 5px; padding: var(--s2); }
@media (min-width: 768px) { .nav-hamburger { display: none; } }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-2); border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: var(--s2);
  padding: var(--s4) var(--s5) var(--s5);
  background: rgba(8,8,16,0.97);
  border-top: 1px solid var(--border);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.05rem; font-weight: 500; color: var(--text-2);
  padding: var(--s3) 0; border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--text); }
.nav-mobile a:last-child { border-bottom: none; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s2); padding: 12px var(--s5); border-radius: var(--r-full);
  font-size: 0.95rem; font-weight: 600;
  transition: transform 0.15s var(--ease-spring), box-shadow 0.2s, opacity 0.2s;
  min-height: 44px; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 32px rgba(99,102,241,0.55); }

.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); color: var(--text); }

.btn-outline {
  background: transparent; color: var(--accent-bright);
  border: 1px solid rgba(99,102,241,0.4);
}
.btn-outline:hover { background: var(--accent-glow); border-color: var(--accent); }

.btn-lg { padding: 16px var(--s8); font-size: 1.05rem; border-radius: var(--r-full); min-height: 56px; }
.btn-sm { padding: 8px var(--s4); font-size: 0.85rem; min-height: 36px; }

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--s4); border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; border: 1px solid;
}
.badge-accent {
  background: rgba(99,102,241,0.12); border-color: rgba(99,102,241,0.35);
  color: var(--accent-bright);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ── Section layout ───────────────────────────────────────── */
section { position: relative; }
.section-pad { padding: var(--s9) 0; }
@media (min-width: 768px) { .section-pad { padding: var(--s10) 0; } }

.section-label {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: var(--s4);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--text); margin-bottom: var(--s4);
}
.section-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-2); max-width: 600px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 0 auto; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px var(--s5) var(--s9);
  position: relative; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.18) 0%, rgba(139,92,246,0.08) 40%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero-badge { margin-bottom: var(--s5); }
.hero-title {
  font-size: clamp(2.8rem, 8vw, 6rem); font-weight: 900;
  letter-spacing: -0.04em; line-height: 1.0;
  margin-bottom: var(--s5); color: var(--text);
}
.hero-title .accent { color: var(--accent-bright); }
.hero-price {
  display: inline-block;
  font-size: clamp(3rem, 9vw, 7rem); font-weight: 900; letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff 30%, var(--accent-bright) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem); color: var(--text-2);
  max-width: 560px; margin: 0 auto var(--s7); line-height: 1.7;
}
.hero-actions {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s3); margin-bottom: var(--s8);
}
@media (min-width: 480px) { .hero-actions { flex-direction: row; justify-content: center; } }
.hero-note { font-size: 0.8rem; color: var(--text-3); }

/* ── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s4); padding: var(--s5);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); margin-top: var(--s7); position: relative; z-index: 1;
}
.stat-item { text-align: center; padding: var(--s3) 0; }
.stat-value {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; color: var(--accent-bright); line-height: 1; margin-bottom: var(--s1);
}
.stat-label { font-size: 0.8rem; color: var(--text-3); font-weight: 500; }

/* ── How it works ─────────────────────────────────────────── */
.how-it-works { background: var(--bg-2); }
.steps-grid { display: grid; gap: var(--s5); margin-top: var(--s8); }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
  padding: var(--s6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r3);
  position: relative; overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.step-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.step-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), transparent);
  pointer-events: none;
}
.step-number { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: var(--s4); opacity: 0.7; }
.step-icon {
  width: 48px; height: 48px; background: rgba(99,102,241,0.15);
  border-radius: var(--r2); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s4);
}
.step-icon svg { width: 24px; height: 24px; stroke: var(--accent-bright); }
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--s3); color: var(--text); }
.step-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ── Chat demo visual ─────────────────────────────────────── */
.demo-window {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); overflow: hidden; max-width: 540px;
  margin: var(--s8) auto 0; box-shadow: var(--shadow-lg), 0 0 60px rgba(99,102,241,0.1);
}
.demo-titlebar {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4) var(--s5); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.demo-dots { display: flex; gap: 6px; }
.demo-dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-dot.red { background: #ff5f57; }
.demo-dot.amber { background: #febc2e; }
.demo-dot.green { background: #28c840; }
.demo-title-text { font-size: 0.8rem; color: var(--text-3); margin: 0 auto; }
.demo-body {
  padding: var(--s5); display: flex; flex-direction: column;
  gap: var(--s4); min-height: 280px;
}
.demo-msg {
  max-width: 80%; padding: var(--s3) var(--s4);
  border-radius: var(--r2); font-size: 0.9rem; line-height: 1.5;
}
.demo-msg.ai {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2); border-radius: var(--r2) var(--r2) var(--r2) 4px;
}
.demo-msg.user {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; align-self: flex-end; border-radius: var(--r2) var(--r2) 4px var(--r2);
}
.demo-msg.system {
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.25);
  color: var(--green); font-size: 0.8rem; font-weight: 600;
  align-self: center; text-align: center; max-width: 90%;
}
.demo-typing {
  display: flex; gap: 5px; align-items: center;
  padding: var(--s3) var(--s4); max-width: 80px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r2) var(--r2) var(--r2) 4px;
}
.demo-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3); animation: typing-bounce 1.2s ease-in-out infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* ── Features grid ────────────────────────────────────────── */
.features { background: var(--bg); }
.features-grid { display: grid; gap: var(--s5); margin-top: var(--s8); }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: var(--s6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r3);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.feature-card:hover { border-color: var(--border-glow); transform: translateY(-3px); }
.feature-icon {
  width: 44px; height: 44px; background: rgba(99,102,241,0.12);
  border-radius: var(--r2); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s4);
}
.feature-icon svg { width: 22px; height: 22px; stroke: var(--accent-bright); }
.feature-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: var(--s2); }
.feature-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.65; }

/* ── Pricing ──────────────────────────────────────────────── */
.pricing { background: var(--bg-2); }
.pricing-card {
  max-width: 480px; margin: var(--s8) auto 0;
  background: var(--surface); border: 1px solid var(--border-glow);
  border-radius: var(--r4); padding: var(--s8) var(--s7);
  text-align: center; position: relative; overflow: hidden;
  box-shadow: var(--shadow-accent);
}
.pricing-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pricing-badge {
  display: inline-block; padding: var(--s1) var(--s4);
  background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.35);
  border-radius: var(--r-full); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright); margin-bottom: var(--s5);
}
.pricing-amount {
  font-size: clamp(4rem, 12vw, 7rem); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1;
  background: linear-gradient(135deg, #fff 30%, var(--accent-bright));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: var(--s2);
}
.pricing-per { font-size: 0.9rem; color: var(--text-3); margin-bottom: var(--s5); }
.pricing-list {
  margin: var(--s6) 0; text-align: left;
  display: flex; flex-direction: column; gap: var(--s3);
}
.pricing-item { display: flex; align-items: flex-start; gap: var(--s3); font-size: 0.95rem; color: var(--text-2); }
.pricing-item-check { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; stroke: var(--green); }
.pricing-divider { height: 1px; background: var(--border); margin: var(--s5) 0; }
.pricing-note { font-size: 0.8rem; color: var(--text-3); margin-top: var(--s4); }

/* ── Comparison table ─────────────────────────────────────── */
.compare-table { margin-top: var(--s8); overflow-x: auto; border-radius: var(--r3); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 600px; }
th, td { padding: var(--s4) var(--s5); text-align: left; font-size: 0.9rem; border-bottom: 1px solid var(--border); }
th { font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); background: var(--surface-2); }
th:first-child { color: var(--text-2); }
td:first-child { font-weight: 500; color: var(--text-2); }
tr:last-child td { border-bottom: none; }
.compare-you { color: var(--green); font-weight: 700; }
.compare-them { color: var(--text-3); }
.compare-winner { background: rgba(99,102,241,0.04); }

/* ── Testimonials ─────────────────────────────────────────── */
.social-proof { background: var(--bg); }
.proof-grid { display: grid; gap: var(--s4); margin-top: var(--s8); }
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }

.proof-card {
  padding: var(--s6); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r3);
  display: flex; flex-direction: column; gap: var(--s4);
}
.proof-stars { display: flex; gap: 3px; }
.proof-star { width: 16px; height: 16px; fill: var(--amber); stroke: none; }
.proof-text { font-size: 0.95rem; color: var(--text-2); line-height: 1.65; flex: 1; font-style: italic; }
.proof-author { display: flex; align-items: center; gap: var(--s3); }
.proof-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.proof-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.proof-role { font-size: 0.8rem; color: var(--text-3); }

/* ── CTA section ──────────────────────────────────────────── */
.cta-section { background: var(--bg-3); text-align: center; position: relative; overflow: hidden; }
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.15) 0%, transparent 65%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-title { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: var(--s5); }
.cta-sub { font-size: 1.1rem; color: var(--text-2); margin: 0 auto var(--s7); max-width: 480px; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: var(--s3); }
@media (min-width: 480px) { .cta-actions { flex-direction: row; justify-content: center; } }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq { background: var(--bg-2); }
.faq-list { max-width: 720px; margin: var(--s8) auto 0; display: flex; flex-direction: column; gap: var(--s3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden; transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-glow); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s4); padding: var(--s4) var(--s5); cursor: pointer;
  font-weight: 600; font-size: 0.95rem; color: var(--text);
  min-height: 56px; user-select: none;
}
.faq-chevron { width: 20px; height: 20px; stroke: var(--text-3); flex-shrink: 0; transition: transform 0.25s var(--ease-out), stroke 0.2s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); stroke: var(--accent-bright); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease-out); }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner {
  padding: var(--s4) var(--s5) var(--s4);
  font-size: 0.9rem; color: var(--text-2); line-height: 1.7;
  border-top: 1px solid var(--border);
}

/* ── Contact ──────────────────────────────────────────────── */
.contact-card {
  max-width: 540px; margin: var(--s8) auto 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r3); padding: var(--s7); text-align: center;
}
.contact-email-display { font-size: 1.1rem; font-weight: 600; color: var(--accent-bright); margin: var(--s4) 0 var(--s6); word-break: break-all; }

/* ── Footer ───────────────────────────────────────────────── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; gap: var(--s7); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .nav-logo { font-size: 1.1rem; margin-bottom: var(--s4); }
.footer-tagline { font-size: 0.85rem; color: var(--text-3); line-height: 1.65; max-width: 240px; }
.footer-col-title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--s4); }
.footer-links { display: flex; flex-direction: column; gap: var(--s3); }
.footer-links a { font-size: 0.9rem; color: var(--text-3); transition: color 0.2s; }
.footer-links a:hover { color: var(--text-2); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s3);
  margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border);
}
.footer-copyright { font-size: 0.8rem; color: var(--text-4); }
.footer-legal { display: flex; gap: var(--s4); }
.footer-legal a { font-size: 0.8rem; color: var(--text-4); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-3); }

/* ── Scroll animations ────────────────────────────────────── */
/* 
  IMPORTANT: Elements are visible by default.
  JS adds 'js-ready' to <html> ONLY after DOM ready, then animations activate.
  This prevents invisible content if JS is slow or observer doesn't fire.
*/
html.js-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
html.js-ready .fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
html.js-ready .stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
html.js-ready .stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
html.js-ready .stagger-children.visible > *:nth-child(2) { transition-delay: 40ms; }
html.js-ready .stagger-children.visible > *:nth-child(3) { transition-delay: 80ms; }
html.js-ready .stagger-children.visible > *:nth-child(4) { transition-delay: 120ms; }
html.js-ready .stagger-children.visible > *:nth-child(5) { transition-delay: 160ms; }
html.js-ready .stagger-children.visible > *:nth-child(6) { transition-delay: 200ms; }
html.js-ready .stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

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

/* ── Utility ──────────────────────────────────────────────── */
.mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); }
.mt-6 { margin-top: var(--s6); }
.mt-7 { margin-top: var(--s7); }
.mt-8 { margin-top: var(--s8); }
.mb-4 { margin-bottom: var(--s4); }
.mb-5 { margin-bottom: var(--s5); }
.highlight { color: var(--accent-bright); }
.nowrap { white-space: nowrap; }

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