/* ─── TOKENS ──────────────────────────────────────────── */
:root {
  --purple:       #7C3AED;
  --purple-mid:   #9B5CF6;
  --purple-light: #A78BFA;
  --purple-pale:  #EDE9FE;
  --purple-faint: #F5F3FF;
  --purple-dark:  #5B21B6;
  --orange:       #EA580C;
  --orange-pale:  #FFF7ED;
  --blue:         #2563EB;
  --blue-pale:    #EFF6FF;
  --green:        #16A34A;
  --green-pale:   #F0FDF4;
  --pink:         #E11D48;
  --pink-pale:    #FFF1F2;

  --bg:           #FFFFFF;
  --bg-alt:       #F8F5FF;
  --text-head:    #1A1535;
  --text-body:    #374151;
  --text-muted:   #6B7280;
  --border:       #E5E7EB;
  --border-soft:  #F0ECFF;

  --shadow-card:  0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(124,58,237,.07);
  --shadow-hover: 0 8px 32px rgba(124,58,237,.16);

  --r:    16px;
  --r-sm: 10px;
  --r-xs: 6px;
}

/* ─── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 64px);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-logo {
  font-size: .95rem; font-weight: 800;
  color: var(--text-head); letter-spacing: -.02em;
}
.nav-logo span { color: var(--purple); }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: .85rem; font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--purple); }
.nav-links .nav-cta {
  background: var(--purple); color: #fff !important;
  padding: 8px 20px; border-radius: 50px;
  font-weight: 600 !important;
  box-shadow: 0 2px 10px rgba(124,58,237,.3);
  transition: background .2s, transform .2s, box-shadow .2s !important;
}
.nav-links .nav-cta:hover {
  background: var(--purple-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,58,237,.4) !important;
}
.nav-burger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.nav-burger span {
  width: 22px; height: 2px;
  background: var(--text-head); border-radius: 2px;
  transition: all .3s;
}

/* ─── BACK LINK ───────────────────────────────────────── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 28px;
  transition: color .2s;
}
.back-link:hover { color: var(--purple); }
.back-link::before { content: '←'; }

/* ─── REVEAL ANIMATION ────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.on { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ─── FOOTER ──────────────────────────────────────────── */
footer {
  background: var(--text-head);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 30px;
  font-size: .83rem;
}
footer a { color: rgba(255,255,255,.8); transition: color .2s; }
footer a:hover { color: #fff; }

/* ─── RESPONSIVE NAV ──────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 60px; left: 0; right: 0;
    background: #fff; padding: 22px 24px; gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
}
