/* ---------- Tokens ---------- */
:root {
  --bg: #fffbf5;
  --bg-alt: #fef7ed;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #fdf2e2;
  --accent: #e11d48;
  --accent-2: #f97316;
  --accent-ink: #ffffff;
  --accent-soft: rgb(225 29 72 / .1);
  --glow: rgb(225 29 72 / .08);
  --shadow: 0 2px 6px rgb(41 37 36 / .08), 0 8px 24px rgb(41 37 36 / .1);
  --heading: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141210;
    --bg-alt: #1b1816;
    --surface: #221e1b;
    --ink: #f5f0ea;
    --muted: #b3aca4;
    --line: #2e2925;
    --accent: #fb7185;
    --accent-2: #fb923c;
    --accent-ink: #141210;
    --accent-soft: rgb(251 113 133 / .14);
    --glow: rgb(251 113 133 / .1);
    --shadow: 0 2px 6px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141210;
  --bg-alt: #1b1816;
  --surface: #221e1b;
  --ink: #f5f0ea;
  --muted: #b3aca4;
  --line: #2e2925;
  --accent: #fb7185;
  --accent-2: #fb923c;
  --accent-ink: #141210;
  --accent-soft: rgb(251 113 133 / .14);
  --glow: rgb(251 113 133 / .1);
  --shadow: 0 2px 6px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .4);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; }
h1, h2 { font-family: var(--heading); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner {
  width: min(1100px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--heading); font-weight: 600; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-size: .9rem; font-weight: 700;
}
.nav__actions { display: flex; align-items: center; gap: 4px; }
.icon-link {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.icon-link svg { width: 20px; height: 20px; }
.icon-link:hover { color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center; justify-content: center;
  padding: 6rem 16px; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: -50%; z-index: -1;
  background: radial-gradient(circle at center, var(--glow) 0%, transparent 50%);
}
.hero__content { max-width: 900px; animation: rise .8s cubic-bezier(.4, 0, .2, 1) both; }
.badge {
  display: inline-block; padding: .5rem 1rem; margin-bottom: 2rem;
  border-radius: 2rem; background: var(--accent-soft); color: var(--accent);
  font-size: .875rem; font-weight: 500;
}
h1 { font-size: clamp(2.5rem, 7vw, 4rem); margin-bottom: 1.5rem; }
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(1.1rem, 2.4vw, 1.25rem); color: var(--muted); max-width: 600px; margin: 0 auto 2.5rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; text-decoration: none; box-shadow: var(--shadow);
  transition: transform .2s cubic-bezier(.68, -.3, .265, 1.3), box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .2s ease; }
.btn:hover svg { transform: translateY(3px); }

/* ---------- Sections ---------- */
.section {
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--accent-soft), transparent 70%);
  background-color: var(--bg);
}
.section:nth-of-type(odd) { background-color: var(--bg-alt); }
.section__inner { max-width: 760px; margin-inline: auto; padding-block: 1.5rem; }
.section__title {
  display: flex; align-items: center; justify-content: center; gap: .5rem; flex-wrap: wrap;
  font-size: clamp(2rem, 5vw, 2.5rem); margin-bottom: .5rem; text-align: center;
}
.section__desc { font-size: 1.1rem; color: var(--muted); max-width: 600px; margin: 0 auto; text-align: center; line-height: 1.5; }
.wiggle { display: inline-block; animation: wiggle 2.4s ease-in-out infinite; transform-origin: 70% 70%; }

.list { list-style: disc; padding-left: 1.5rem; margin: 1.5em 0 0; }
.list li { font-size: 1.2rem; margin: .5em 0; color: var(--muted); }
.list li::marker { color: var(--accent); }
.list a { color: var(--ink); text-decoration: none; background-image: linear-gradient(var(--accent), var(--accent)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s ease, color .2s ease; }
.list a:hover { color: var(--accent); background-size: 100% 2px; }

/* ---------- Footer ---------- */
.footer { padding: 2.5rem 16px; text-align: center; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.footer__social { display: flex; justify-content: center; gap: 8px; margin-bottom: .75rem; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 70%, 100% { transform: rotate(0); } 80% { transform: rotate(-14deg); } 90% { transform: rotate(10deg); } }

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

@media (max-width: 768px) {
  .hero { padding: 4rem 16px; }
  .section { padding: 1.5rem 16px; }
  .list li { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
