/* ── design tokens ─────────────────────────────────────────────────────── */
:root,
[data-theme="light"] {
  --paper: #fbf8f1;
  --bg: #f4f0e8;
  --bg2: #ebe6dc;
  --ink: #1a1820;
  --ink2: rgba(26, 24, 32, 0.62);
  --ink3: rgba(26, 24, 32, 0.42);
  --hair: rgba(26, 24, 32, 0.08);
  --hair2: rgba(26, 24, 32, 0.14);
  --violet: #7a3aa8;
  --violetB: #e066b0;
  --violet-soft: #f3e6f6;
  --mint: #2a8a6a;
  --mint-soft: #dcefe7;
  --rose: #c0344e;
  --nav-bg: rgba(244, 240, 232, 0.72);
  --bubble-fill: rgba(122, 58, 168, 0.07);
  --bubble-stroke: rgba(122, 58, 168, 0.14);
}

[data-theme="dark"] {
  --paper: #1e1a26;
  --bg: #15131c;
  --bg2: #2a253a;
  --ink: #f1eef7;
  --ink2: rgba(241, 238, 247, 0.65);
  --ink3: rgba(241, 238, 247, 0.40);
  --hair: rgba(255, 255, 255, 0.08);
  --hair2: rgba(255, 255, 255, 0.14);
  --violet-soft: rgba(122, 58, 168, 0.22);
  --mint-soft: rgba(42, 138, 106, 0.22);
  --nav-bg: rgba(21, 19, 28, 0.78);
  --bubble-fill: rgba(224, 102, 176, 0.10);
  --bubble-stroke: rgba(224, 102, 176, 0.20);
  --rose: #ff8198;
}

/* sleeping mono Sodoko in the footer — invert in dark so it stays visible */
[data-theme="dark"] svg[data-soko-palette="mono"] { filter: invert(1) hue-rotate(180deg); }

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
body { min-height: 100vh; }
button { font-family: inherit; }
/* the hidden attribute must win over component display rules (e.g. .waitlist-form / .success-card use flex) */
[hidden] { display: none !important; }

.spacer { flex: 1; }
.mono { font-family: 'JetBrains Mono', monospace; }
.mascot { display: inline-flex; line-height: 0; }
.wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}

/* ── shared mascot animations ──────────────────────────────────────────── */
@keyframes soko-breathe { 0%,100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.015) translateY(-0.6px); } }
@keyframes soko-blink   { 0%, 92%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(0.05); } }
@keyframes soko-pulse   { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(1.25); } }
@keyframes soko-bubble  { 0% { transform: translateY(6px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }
@keyframes soko-bars    { 0%,100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }
@keyframes soko-dots    { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes soko-spin    { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.soko-body { transform-origin: 50px 56px; animation: soko-breathe 3.6s ease-in-out infinite; }
.soko-eye  { transform-origin: center; animation: soko-blink 5.5s ease-in-out infinite; }
.soko-eye.delay-1 { animation-delay: 0.06s; }
.soko-antenna-dot { transform-origin: 50px 12px; animation: soko-pulse 1.8s ease-in-out infinite; }
.soko-bubble { transform-origin: center; animation: soko-bubble 2.6s ease-in-out infinite; }
.soko-bubble.b1 { animation-delay: 0s; }
.soko-bubble.b2 { animation-delay: 0.9s; }
.soko-bubble.b3 { animation-delay: 1.7s; }
.soko-bar { transform-origin: center; animation: soko-bars 0.7s ease-in-out infinite; }
.soko-bar.b1 { animation-delay: 0s; }
.soko-bar.b2 { animation-delay: 0.1s; }
.soko-bar.b3 { animation-delay: 0.2s; }
.soko-bar.b4 { animation-delay: 0.15s; }
.soko-bar.b5 { animation-delay: 0.05s; }
.soko-thinking-dot { animation: soko-dots 1.4s ease-in-out infinite; }
.soko-thinking-dot.d2 { animation-delay: 0.2s; }
.soko-thinking-dot.d3 { animation-delay: 0.4s; }
.soko-deploy-spark { transform-origin: 50px 56px; animation: soko-spin 6s linear infinite; }

/* landing-specific motion */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes pop-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }

/* ── eyebrow ───────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--violet);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--violet) 20%, transparent);
}
.eyebrow--ink { color: var(--ink2); }
.eyebrow--ink .eyebrow-dot { background: var(--ink2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink2) 20%, transparent); }

/* ── gradient violet→pink button ──────────────────────────────────────── */
.vg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(180deg, var(--violet) 0%, var(--violetB) 130%);
  color: #fff;
  border: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 18px rgba(122, 58, 168, 0.28);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.vg-btn:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 24px rgba(122, 58, 168, 0.34); }
.vg-btn:active { transform: translateY(0); }
.vg-btn--sm { padding: 11px 18px; font-size: 14px; opacity: 1; }
.vg-btn--sm:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 18px rgba(122, 58, 168, 0.28); }

.link-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink3);
  font-size: 12px;
  font-family: 'Sora', sans-serif;
}

/* ── nav ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--ink2);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }

.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 99px;
  background: var(--paper);
  border: 1px solid var(--hair2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink2);
  transition: background .15s, transform .15s;
}
.theme-toggle:hover { transform: scale(1.05); color: var(--ink); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }

/* ── hero ──────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-bubbles { position: absolute; inset: 0; pointer-events: none; }
.hero-bubble {
  position: absolute;
  border-radius: 99px;
  background: var(--bubble-fill);
  border: 1px solid var(--bubble-stroke);
  pointer-events: none;
}
.hero-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, var(--violet-soft) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 32px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.hero-mascot-float { animation: float 5s ease-in-out infinite; }
.hero-title {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
  color: var(--ink);
  text-wrap: balance;
}
.grad-text {
  background: linear-gradient(180deg, var(--violet) 0%, var(--violetB) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.55;
  color: var(--ink2);
  max-width: 580px;
  text-wrap: pretty;
}
.hero-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

/* ── waitlist form ─────────────────────────────────────────────────────── */
.waitlist-form {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.waitlist-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--paper);
  border: 1.5px solid var(--hair2);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(26, 24, 32, 0.04);
  transition: box-shadow .18s, border-color .18s;
}
.waitlist-pill:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 5px rgba(122, 58, 168, 0.13), 0 8px 20px rgba(26, 24, 32, 0.05);
}
.waitlist-icon {
  padding-left: 14px;
  display: inline-flex;
  align-items: center;
  color: var(--ink2);
}
.waitlist-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Sora', sans-serif;
  font-size: 15px;
  color: var(--ink);
  padding: 10px 4px;
}
.waitlist-input::placeholder { color: var(--ink3); }
.waitlist-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: var(--ink2);
  font-size: 12px;
  flex-wrap: wrap;
}
.meta-live { display: inline-flex; align-items: center; gap: 6px; }
.mint-dot {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(42, 138, 106, 0.2);
}
.meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: var(--ink3);
}
.waitlist-error {
  padding: 2px 12px 0;
  color: var(--rose);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}
.waitlist-form.is-submitting .waitlist-input { opacity: 0.6; }
.waitlist-form.is-submitting { cursor: progress; }

/* ── success card ──────────────────────────────────────────────────────── */
.success-card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pop-in 0.35s cubic-bezier(.34, 1.56, .64, 1) both;
}
.success-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--paper);
  border: 1.5px solid var(--mint);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(42, 138, 106, 0.18);
}
.success-text { flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.success-title { font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.success-sub { font-family: 'Sora', sans-serif; font-size: 13px; color: var(--ink2); }
.success-sub b { color: var(--ink); }
.success-check {
  width: 30px;
  height: 30px;
  border-radius: 99px;
  background: var(--mint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(42, 138, 106, 0.3);
  flex-shrink: 0;
}
.success-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  color: var(--ink2);
  font-size: 12px;
}
.success-share {
  color: var(--violet);
  font-weight: 600;
  font-size: 12px;
  font-family: 'Sora', sans-serif;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.success-share:hover { text-decoration: underline; }
.success-share.is-copied { color: var(--mint); cursor: default; }
.success-share.is-copied:hover { text-decoration: none; }

/* ── how it works ──────────────────────────────────────────────────────── */
.how {
  padding: 40px 32px 80px;
  max-width: 1080px;
  margin: 0 auto;
}
.how-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
  text-align: center;
}
.how-title {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}
.features { display: flex; gap: 16px; flex-wrap: wrap; }
.feature {
  flex: 1;
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--violet-soft);
  border: 1px solid rgba(122, 58, 168, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feature-title {
  font-family: 'Sora', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.feature-body {
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.55;
}

/* ── manifesto ─────────────────────────────────────────────────────────── */
.manifesto {
  padding: 60px 32px;
  background: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.manifesto-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.manifesto-body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.manifesto-quote {
  margin: 0;
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  line-height: 1.45;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: pretty;
}
.manifesto-quote i { color: var(--violet); }

/* ── footer ────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 32px 60px;
  max-width: 1080px;
  margin: 0 auto;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-size: 11px; color: var(--ink3); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--ink2); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-fine {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--hair2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink3);
}

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 16px; }
  .hero-inner { padding: 40px 20px 72px; }
  .how { padding: 32px 18px 64px; }
  .manifesto { padding: 44px 20px; }
  .manifesto-inner { gap: 18px; }
  .footer { padding: 32px 18px 48px; }
  .waitlist-pill { flex-wrap: wrap; border-radius: 22px; }
  .waitlist-input { flex-basis: 100%; padding: 8px 14px; }
  .vg-btn--sm { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
