@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --ink: #0f1720;
  --muted: #5b6875;
  --line: #dfe5eb;
  --brand: #0d8f7f;        /* Quantos teal */
  --brand-ink: #0a6b60;
  --brand-soft: #def4f0;
  --ok: #2f8f5b;
  --warn: #c98a12;
  --code-bg: #0e1a20;
  --radius: 14px;
  --max: 1120px;
  --font: "Sora", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1116; --surface: #121b22; --ink: #e8eef2; --muted: #93a3b0;
    --line: #22303a; --brand: #2cc4ad; --brand-ink: #5ad8c4; --brand-soft: #0f2a28;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
code, pre, .mono { font-family: var(--mono); }

/* nav */
header.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); }
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; }
nav.links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
nav.links a { text-decoration: none; } nav.links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
@media (max-width: 760px) { nav.links { display: none; } }

/* hero */
.hero { padding: 96px 0 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 24px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; max-width: 880px; }
h1 em { font-style: normal; color: var(--brand); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; margin-top: 22px; }
.cta-row { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* run viewer */
.viewer { margin-top: 64px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(10,40,50,.25); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.viewer-bar b { color: var(--ink); font-weight: 600; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-ink); }
.viewer-body { display: grid; grid-template-columns: 1.4fr 1fr; }
@media (max-width: 860px) { .viewer-body { grid-template-columns: 1fr; } }
.spans { padding: 14px 0; border-right: 1px solid var(--line); }
.span { display: grid; grid-template-columns: 1fr 210px; align-items: center; gap: 12px; padding: 7px 18px; font-size: 13px; }
.span .name { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.span .kind { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 54px; flex-shrink: 0; }
.span .bar { position: relative; height: 8px; background: var(--line); border-radius: 4px; }
.span .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--brand); }
.span.err .bar i { background: #c2412d; }
.span.err .name { color: #c2412d; }
.span.sel { background: var(--brand-soft); }
.detail { padding: 18px; font-size: 13px; }
.detail h4 { font-size: 14px; margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; color: var(--muted); }
.kv b { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 12px; }
.note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); color: var(--muted); }
.sample { text-align: right; font-size: 12px; color: var(--muted); padding: 8px 18px 12px; }

/* sections */
section.block { padding: 96px 0; border-top: 1px solid var(--line); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -.03em; font-weight: 700; max-width: 760px; }
.sub { color: var(--muted); font-size: 17px; max-width: 620px; margin-top: 14px; }
.grid { display: grid; gap: 18px; margin-top: 44px; }
.g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .g3, .g2, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 18px; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card ul { list-style: none; margin-top: 12px; }
.card li { font-size: 14px; color: var(--muted); padding: 5px 0 5px 22px; position: relative; }
.card li::before { content: "→"; position: absolute; left: 0; color: var(--brand); }

/* ask panel */
.ask { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .ask { grid-template-columns: 1fr; } }
.chat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; font-size: 14px; }
.msg { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }
.msg.q { background: var(--bg); border: 1px solid var(--line); font-weight: 500; }
.msg.a { background: var(--brand-soft); }
.msg.a p + p { margin-top: 8px; }
.cite { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); margin: 0 2px; }

/* steps & code */
.steps { counter-reset: s; }
.step { counter-increment: s; }
.step::before { content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--brand-ink); display: block; margin-bottom: 10px; }
pre.code { background: var(--code-bg); color: #e2ecef; border-radius: var(--radius); padding: 22px 24px; font-size: 13.5px; line-height: 1.7; overflow-x: auto; margin-top: 28px; }
pre.code .c { color: #6f8590; } pre.code .k { color: #5ad8c4; } pre.code .s { color: #f2c46d; }

/* pricing */
.price { font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 4px; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan.featured { border: 2px solid var(--brand); position: relative; }
.plan.featured::after { content: "Most teams"; position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.plan .btn { margin-top: 20px; width: 100%; justify-content: center; }
.fine { font-size: 13px; color: var(--muted); margin-top: 22px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; }
details summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; max-width: 760px; }

/* closing */
.closing { text-align: center; padding: 110px 0; border-top: 1px solid var(--line); }
.closing h2 { margin: 0 auto; }
.closing .cta-row { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { text-decoration: none; margin-left: 20px; } footer a:hover { color: var(--ink); }

/* legal pages */
.legal { max-width: 760px; padding: 72px 24px 96px; margin: 0 auto; }
.legal h1 { font-size: 40px; }
.legal .updated { color: var(--muted); margin: 10px 0 40px; font-size: 14px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }
