/* ===== Design tokens ===== */
:root {
  --grad: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --ink: #1c1b29;
  --ink-soft: #55536b;
  --line: #e7e6f0;
  --bg: #ffffff;
  --bg-alt: #f7f6fc;
  --brand: #6b5cd6;
  --radius: 18px;
  --shadow: 0 18px 40px -20px rgba(56, 42, 120, 0.45);
  --maxw: 1080px;
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-weight: 800;
}
.brand-mark.small { width: 26px; height: 26px; border-radius: 8px; font-size: 0.85rem; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; transition: color 0.15s; }
.site-nav a:hover { color: var(--brand); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--grad); color: #fff !important; font-weight: 600;
  box-shadow: 0 10px 24px -14px rgba(56,42,120,0.7);
}
.nav-cta:hover { color: #fff !important; transform: translateY(-1px); }

/* Mobile menu burger (hidden on desktop) */
.nav-burger { display: none; cursor: pointer; padding: 8px; margin: -8px; }
.nav-burger span {
  display: block; width: 24px; height: 2px; margin: 5px 0;
  background: var(--ink); border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}

/* Anchor scroll offset so the sticky header doesn't cover headings */
section[id] { scroll-margin-top: 78px; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; transition: transform 0.12s, box-shadow 0.15s, background 0.15s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad); color: #fff;
  padding: 96px 0 104px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 80% 0%, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; text-align: center; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 700; opacity: 0.85; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.hero h1 em { color: #fff; background: none; -webkit-text-fill-color: currentColor; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,0.55); }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.28rem); opacity: 0.95; max-width: 620px; margin: 0 auto 1.75rem; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,0.22); color: #fff; border-color: #fff; }
.hero-note { margin-top: 20px; font-size: 0.9rem; opacity: 0.8; }

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.kicker { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.kicker.center { text-align: center; }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--ink-soft); font-size: 1.1rem; max-width: 560px; margin: 0 auto 48px; }

/* ===== Split rows (pillars 1–4) ===== */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 800; }
.split-copy p { color: var(--ink-soft); font-size: 1.08rem; max-width: 46ch; }
.split-media { display: grid; place-items: center; }
.emoji-badge {
  display: grid; place-items: center;
  width: min(240px, 60vw); aspect-ratio: 1;
  font-size: clamp(4rem, 14vw, 6.5rem);
  border-radius: 32px; background: var(--grad); box-shadow: var(--shadow);
}

/* ===== Fits section (pillar 5) ===== */
.fits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin: 0 auto; }
.fits-card, .feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: 0 10px 30px -22px rgba(56,42,120,0.5);
}
.fits-card h3 { font-size: 1.3rem; }
.fits-card p { color: var(--ink-soft); margin: 0; }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }

/* ===== CTA ===== */
.section-cta { background: var(--grad); color: #fff; text-align: center; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.section-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.section-cta p { opacity: 0.94; font-size: 1.12rem; margin-bottom: 1.8rem; }
.section-cta .btn-primary { background: #fff; color: var(--brand); }
.section-cta .btn-primary:hover { transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer { background: #16152a; color: #cfcde3; padding: 44px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.footer-nav { display: flex; gap: 22px; }
.footer-nav a { color: #b9b7d1; font-size: 0.95rem; transition: color 0.15s; }
.footer-nav a:hover { color: #fff; }
.copyright { width: 100%; margin: 0; font-size: 0.85rem; color: #8a88a8; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .site-nav {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -20px rgba(56,42,120,0.4);
    max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  }
  .site-nav a { padding: 15px 24px; border-top: 1px solid var(--line); font-size: 1rem; }
  .site-nav a:first-child { border-top: none; }
  .nav-cta { margin: 14px 24px 18px; text-align: center; }
  /* Checkbox-driven open state */
  .nav-toggle:checked ~ .site-nav { max-height: 420px; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .split { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .split.reverse .split-media { order: 0; }
  .split-copy p { margin-left: auto; margin-right: auto; }
  .fits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 80px; }
  .btn { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; }
}

/* ===== Motion / a11y ===== */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }
:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 6px; }
.site-header :focus-visible, .section:not(.hero):not(.section-cta) :focus-visible { outline-color: var(--brand); }
