:root {
  --bg: #0b0c14;
  --bg-2: #11131e;
  --card: #151827;
  --line: #23273a;
  --text: #e8e9f3;
  --muted: #9aa0b8;
  --dim: #6b7190;
  --a1: #7c83ff;
  --a2: #a78bfa;
  --a3: #5ab2ff;
  --ok: #34d399;
  --grad: linear-gradient(120deg, var(--a1), var(--a2) 55%, var(--a3));
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--a3); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
code { font: 0.9em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* nav */
.nav { border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 19px; }
.brand:hover { text-decoration: none; }
.navlink, .nav nav a { color: var(--muted); font-size: 15px; }
.navlink:hover, .nav nav a:hover { color: var(--text); text-decoration: none; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto 35%; height: 640px;
  background: radial-gradient(closest-side, rgba(124, 131, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; } }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); background: var(--bg-2); padding: 5px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15); }

h1 { font-size: clamp(36px, 5.2vw, 56px); line-height: 1.06; letter-spacing: -0.03em; margin: 18px 0 18px; }
.lede { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0 0 10px; }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); }
.btn:hover { text-decoration: none; }
.btn.soon { color: var(--muted); border-style: dashed; }
.btn.ghost { color: var(--text); background: var(--bg-2); }
.btn.ghost:hover { border-color: #3a3f5c; }

/* demo: CSS-only with/without switch */
.demo { position: relative; justify-self: center; width: min(400px, 100%); }
.mode { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 0 auto 14px; width: min(320px, 100%); }
.switch label { padding: 8px 10px; border-radius: 999px; text-align: center; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; user-select: none; transition: background 0.2s, color 0.2s; }
#mode-off:checked ~ .switch label[for="mode-off"] { background: #2a2e48; color: var(--text); }
#mode-on:checked ~ .switch label[for="mode-on"] { background: var(--grad); color: #0b0c14; }
#mode-off:checked ~ .switch label[for="mode-on"] { color: #c7cbff; animation: nudge 2.4s ease-in-out infinite; }
#mode-off:focus-visible ~ .switch label[for="mode-off"],
#mode-on:focus-visible ~ .switch label[for="mode-on"] { outline: 2px solid var(--a3); outline-offset: 2px; }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(124, 131, 255, 0); } 50% { box-shadow: 0 0 0 4px rgba(124, 131, 255, 0.25); } }

.chat { background: #18181b; border: 1px solid #2b2b33; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5); font-size: 14px; }
.chat-head { padding: 10px 14px; border-bottom: 1px solid #2b2b33; text-align: center; font-weight: 600; font-size: 13px; color: #efeff1; }
.msgs { list-style: none; margin: 0; padding: 8px 0 10px; height: 470px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(transparent, #000 48px); mask-image: linear-gradient(transparent, #000 48px); }
.msgs > li { flex: none; }
@media (max-width: 420px) { .msgs { height: 460px; } }
.m { padding: 4px 14px; line-height: 1.45; color: #dedee3; overflow: hidden; max-height: 90px; transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease, background 0.3s, box-shadow 0.3s; }
.u { font-weight: 700; }
.c1 { color: #a78bfa; } .c2 { color: #34d399; } .c3 { color: #f87171; } .c4 { color: #60a5fa; } .c5 { color: #fbbf24; } .c6 { color: #f472b6; }
.badge { display: inline-block; font-size: 10px; font-weight: 800; color: #fff; background: #00ad03; border-radius: 4px; padding: 0 4px; margin-right: 4px; vertical-align: 1px; }
.count { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: #c7cbff; background: #2f3366; padding: 0 8px; border-radius: 999px; opacity: 0; transition: opacity 0.3s; }
.pill { max-height: 0; opacity: 0; overflow: hidden; padding: 0 14px; transition: max-height 0.35s ease, opacity 0.3s, padding 0.35s; }
.pill-in { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: #adadb8; border: 1px solid #3a3a44; border-radius: 999px; padding: 2px 10px; }
.pill-in u { color: #bf94ff; text-decoration: none; font-weight: 600; }
.pdot { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; }

#mode-on:checked ~ .chat .m.x { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
#mode-on:checked ~ .chat .count { opacity: 1; }
#mode-on:checked ~ .chat .q { background: rgba(90, 178, 255, 0.1); box-shadow: inset 3px 0 0 var(--a3); }
#mode-on:checked ~ .chat .pill { max-height: 40px; opacity: 1; padding: 5px 14px; }

.demo-note { font-size: 13px; color: var(--dim); text-align: center; margin: 12px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .m, .pill, .count, .switch label { transition: none; }
  #mode-off:checked ~ .switch label[for="mode-on"] { animation: none; }
}

/* honest section */
.honest { border-top: 1px solid var(--line); background: var(--bg-2); padding: 64px 0 72px; }
h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 20px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.plain li { color: var(--muted); font-size: 17px; padding-left: 22px; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--a2); }
.plain b { color: var(--text); font-weight: 600; }
.contact { margin: 28px 0 0; color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* legal page */
.legal { max-width: 820px; padding-top: 48px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); margin-top: 0; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; }
.legal p, .legal li { color: #c9ccdc; }
.legal .meta { color: var(--dim); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { color: var(--text); background: var(--bg-2); font-weight: 600; }
.legal td { color: #c9ccdc; }
@media (max-width: 640px) { .legal table, .legal thead, .legal tbody, .legal tr, .legal td, .legal th { display: block; } .legal thead { display: none; } .legal td { border: 0; padding: 4px 0; } .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; } }
