:root {
  --bg: #f6f8f8;
  --bg-alt: #edf2f2;
  --surface: #ffffff;
  --text: #0f1b1d;
  --muted: #4d5e61;
  --line: #d7e1e2;
  --accent: #0e8f86;
  --accent-ink: #ffffff;
  --accent-soft: #d6f0ed;
  --up: #12a37a;
  --ghost: #12a37a66;
  --err: #c2453b;
  --shadow: 0 10px 30px rgba(15, 27, 29, 0.08);
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1214; --bg-alt: #0f191c; --surface: #132124; --text: #e8f1f1; --muted: #9db0b2;
    --line: #213438; --accent: #2cc5b8; --accent-ink: #062120; --accent-soft: #123a37;
    --up: #2cc59a; --ghost: #2cc59a55; --err: #ff8a7f; --shadow: 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1214; --bg-alt: #0f191c; --surface: #132124; --text: #e8f1f1; --muted: #9db0b2;
  --line: #213438; --accent: #2cc5b8; --accent-ink: #062120; --accent-soft: #123a37;
  --up: #2cc59a; --ghost: #2cc59a55; --err: #ff8a7f; --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, filter .15s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled { opacity: .7; cursor: wait; }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-sm { padding: .45em 1em; font-size: .9rem; }
.btn-block { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.logo { width: 28px; height: 28px; }
.logo .c-up { fill: var(--up); }
.logo .c-ghost { fill: var(--ghost); }
.logo .wick { stroke: var(--up); stroke-width: 2; }
.logo .wick-ghost { stroke: var(--ghost); }
.logo .mirror { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 3; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner > .btn { margin-left: auto; } }

/* hero */
.hero { padding: 40px 0 36px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero-grid > * { min-width: 0; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .hero { padding-top: 24px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.accent { color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero-facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 24px; }
.hero-facts li { display: flex; flex-direction: column; line-height: 1.3; }
.hero-facts strong { font-size: 1.25rem; font-weight: 800; }
.hero-facts span { color: var(--muted); font-size: .85rem; }

/* waitlist form (hero + strip) */
.waitlist { display: flex; gap: 8px; max-width: 480px; margin-top: 20px; }
.waitlist input {
  flex: 1; min-width: 0; width: 100%; font: inherit; padding: .75em 1.1em; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
}
@media (max-width: 340px) { .waitlist { flex-direction: column; } }
@media (max-width: 420px) {
  .waitlist .btn { padding-inline: 1em; }
  .hero-facts { gap: 16px; }
  .hero-facts strong { font-size: 1.1rem; }
  .hero-facts span { font-size: .78rem; }
}
.form-msg { min-height: 1.4em; margin: 8px 0 0; font-size: .9rem; font-weight: 600; }
.form-msg:empty { min-height: 0; margin: 0; }
.form-msg.ok { color: var(--up); }
.form-msg.err { color: var(--err); }

/* diagram */
.diagram { margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram .pc { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; filter: drop-shadow(var(--shadow)); }
.diagram .pc-label, .diagram .pc-foot { fill: var(--muted); font: 600 13px Inter, sans-serif; }
.diagram .pc-foot { font-weight: 500; font-size: 12px; }
.diagram .term rect { fill: var(--bg-alt); stroke: var(--line); stroke-width: 1.5; }
.diagram .term-master rect { fill: var(--accent-soft); stroke: var(--accent); }
.diagram .t-title { fill: var(--text); font: 800 12px Inter, sans-serif; letter-spacing: .06em; }
.diagram .t-mono { fill: var(--muted); font: 500 12px "JetBrains Mono", ui-monospace, monospace; }
.diagram .links path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 5; opacity: .6; }
.diagram .pulse { fill: var(--accent); }
@media (max-width: 900px) { .diagram { max-width: 380px; } }
@media (max-width: 600px) { .diagram { max-width: 300px; } }
@media (prefers-reduced-motion: reduce) { .diagram .pulse { display: none; } html { scroll-behavior: auto; } }

/* sections */
.section { padding: 44px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 20px; }
.head-row h2 { margin: 0; }
.section-lead { color: var(--muted); margin: 0; }

/* steps: compact row */
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.steps h3 { margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: .9rem; margin: 0; }
.step-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .9rem; }

/* features: compact grid */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { background: transparent; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr 1fr; gap: 14px 12px; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.plan-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -11px; left: 18px; margin: 0; padding: 1px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.03em; line-height: 1.1; }
.cur { font-size: 1.1rem; vertical-align: top; position: relative; top: .35em; margin-right: 1px; }
.per { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 14px; flex: 1; }
.plan li { padding: 5px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.plan li strong { color: var(--text); }
.fine { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr 1fr; gap: 10px; }
  .plan { padding: 16px 12px 12px; }
  .plan li { font-size: .84rem; }
  .plan .btn { padding: .6em .5em; font-size: .85rem; white-space: normal; }
}

/* faq */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; padding: 11px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: .93rem; }

/* closing strip */
.cta-strip { background: var(--accent-soft); padding: 28px 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cta-inner h2 { margin: 0; }
.cta-inner .waitlist { margin: 0; flex: 1; max-width: 480px; }
.cta-inner .form-msg { flex-basis: 100%; text-align: right; }
@media (max-width: 760px) { .cta-inner .waitlist { max-width: none; flex-basis: 100%; } .cta-inner .form-msg { text-align: left; } }

/* footer */
.footer { padding: 24px 0; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .85rem; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--text); }
.risk { color: var(--muted); margin: 0; font-size: .8rem; }
