/* ---- Design tokens ---- */
:root {
  --bg: #08080c;
  --surface: rgba(12, 12, 18, 0.72);
  --line: rgba(120, 130, 210, 0.2);
  --text: #eceaf5;
  --muted: #9a98b0;
  --brand: #7878d4;
  --brand-2: #9898f0;
  --accent-a37: #4ca4d4;
  --accent-a57: #b484f0;
  --save: #4ade80;
  --shadow: 0 28px 64px rgba(0,0,0,0.5);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: "Outfit", "Avenir Next", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { margin: 0; padding: 0; scroll-behavior: smooth; }

body {
  margin: 0; padding: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(800px 400px at 25% 8%, rgba(76,164,212,0.1), transparent 60%),
    radial-gradient(800px 400px at 75% 8%, rgba(180,132,240,0.1), transparent 60%),
    radial-gradient(600px 350px at 50% 90%, rgba(120,120,212,0.06), transparent 55%),
    linear-gradient(170deg, #08060e 0%, #0a0a10 48%, #08060e 100%);
  min-height: 100%;
  padding-bottom: 7rem;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100; opacity: 0.028;
  background: 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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

a { color: inherit; text-decoration: none; }
.shell { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

/* ---- Topbar ---- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(8,8,12,0.8);
  border-bottom: 1px solid var(--line);
}
.topbar-row {
  min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em;
}
.brand-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a37), var(--accent-a57));
  box-shadow: 0 0 0 6px rgba(120,130,210,0.15);
}
.topbar-actions { display: inline-flex; align-items: center; gap: 0.55rem; }
.nav-back {
  border-radius: 999px;
  border: 1px solid rgba(120,130,210,0.22);
  background: rgba(12,12,18,0.45);
  padding: 0.5rem 0.85rem; font-size: 0.85rem; color: #b8b8d4; font-weight: 600;
}
.nav-tag {
  display: inline-flex; gap: 0.4rem; align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(120,130,210,0.4);
  background: rgba(120,130,210,0.12);
  padding: 0.5rem 0.9rem; font-weight: 700; font-size: 0.85rem;
  color: var(--brand-2); letter-spacing: 0.03em;
}

/* ---- Buttons ---- */
.btn {
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 0.88rem 1.5rem; font-weight: 700; font-size: 0.95rem;
  font-family: var(--font-body);
  transition: transform 160ms ease, box-shadow 160ms ease;
  display: inline-block; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #08060e;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 10px 30px rgba(120,130,210,0.3);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(120,130,210,0.4); }
.btn-a37 {
  color: #060a0e;
  background: linear-gradient(135deg, #5ec4f0, #4ca4d4);
  box-shadow: 0 10px 30px rgba(76,164,212,0.3);
}
.btn-a57 {
  color: #0a060e;
  background: linear-gradient(135deg, #b484f0, #9464d4);
  box-shadow: 0 10px 30px rgba(148,100,212,0.3);
}
.btn-ghost {
  color: var(--text);
  border: 1px solid rgba(120,130,210,0.28);
  background: rgba(12,12,18,0.5);
}

/* ---- Shared section styles ---- */
section { padding: 3rem 0; }
.section-title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2rem); font-weight: 800; letter-spacing: -0.01em;
}
.section-note {
  margin: 0.4rem 0 0; color: var(--muted); line-height: 1.55; max-width: 56ch;
}
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.38rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(120,130,210,0.4);
  background: rgba(120,130,210,0.1);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--brand-2);
}

/* ---- Footer ---- */
footer {
  padding: 4rem 0 6rem; color: var(--muted); text-align: center;
  font-size: 0.88rem; line-height: 1.6;
}
footer a { color: var(--brand); border-bottom: 1px solid rgba(120,130,210,0.3); }

/* ---- Reveal ---- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 480ms ease, transform 480ms ease; }
.js .reveal.in { opacity: 1; transform: translateY(0); }

/* ---- Sticky CTA ---- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  z-index: 40;
  width: min(620px, calc(100% - 1rem));
  border-radius: 14px;
  border: 1px solid rgba(120,130,210,0.35);
  background: rgba(8,8,12,0.88);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  padding: 0.65rem 0.8rem;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.sticky-cta strong {
  font-size: 0.88rem; font-family: var(--font-display); font-weight: 700;
}
.sticky-cta p { margin: 0; font-size: 0.78rem; color: #a8a8c0; }
.sticky-cta .btn { padding: 0.55rem 1rem; font-size: 0.82rem; flex-shrink: 0; }

@media (max-width: 600px) {
  .sticky-cta { width: calc(100% - 0.9rem); left: 0.45rem; transform: none; }
  .sticky-cta p { display: none; }
  .topbar-actions { gap: 0.35rem; }
  .nav-back, .nav-tag { font-size: 0.78rem; padding: 0.45rem 0.65rem; }
  section { padding: 2.2rem 0; }
}
