:root {
  --ink: #0f1b2d;
  --ink-soft: #46546a;
  --muted: #6b7a90;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --brand: #0b6e6e;
  --brand-ink: #ffffff;
  --brand-soft: #e3f3f2;
  --accent: #f2a541;
  --hero-bg: #0c1d2e;
  --hero-ink: #eaf2f8;
  --hero-muted: #a9bccd;
  --code-bg: #0f1b2d;
  --code-ink: #dbe7f3;
  --danger: #b42318;
  --ok: #067647;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.06), 0 8px 24px rgba(15, 27, 45, 0.06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); }
code, pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace; }
code { font-size: 0.9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.35em; }
pre { background: var(--code-bg); color: var(--code-ink); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 0.85rem; line-height: 1.55; margin: 0; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 700; color: var(--brand); margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 640px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(12, 29, 46, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav.light { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--hero-ink); text-decoration: none; }
.nav.light .logo { color: var(--ink); }
.logo-mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), #13a3a0); display: grid; place-items: center; color: #fff; font-size: 0.85rem; font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--hero-muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav.light .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--hero-ink); }
.nav.light .nav-links a:hover { color: var(--ink); }
.nav .nav-links a.btn { color: var(--brand-ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #095d5d; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--hero-ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, rgba(19, 163, 160, 0.28), transparent 60%), var(--hero-bg); color: var(--hero-ink); padding: 96px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #6fd6d2; }
.hero .lead { color: var(--hero-muted); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--hero-muted); font-size: 0.9rem; padding: 0; margin: 0; list-style: none; }
.hero-proof li::before { content: "✓"; color: #6fd6d2; font-weight: 800; margin-right: 8px; }

.chat { background: #10263a; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 18px; padding: 20px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); font-size: 0.92rem; }
.chat-head { display: flex; align-items: center; gap: 8px; color: var(--hero-muted); font-size: 0.8rem; margin-bottom: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf7f; }
.msg { border-radius: 12px; padding: 10px 14px; margin: 10px 0; max-width: 92%; }
.msg.user { background: #1d3b55; margin-left: auto; }
.msg.ai { background: #0c1d2e; border: 1px solid rgba(255, 255, 255, 0.06); }
.tool { display: flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.78rem; color: #6fd6d2; margin: 6px 0; }
.tool span { color: var(--hero-muted); }
.plan-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.plan-row:first-of-type { border-top: 0; }
.plan-row b { color: #fff; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 22px; height: 22px; }

/* Workflow steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step code { display: inline-block; margin-bottom: 10px; color: var(--brand); background: var(--brand-soft); border-color: transparent; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.95rem; }

/* Carriers */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; }
.chip.soft { background: var(--brand-soft); border-color: transparent; color: var(--brand); }

/* Trust list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; color: var(--ink-soft); }
.checklist li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; font-size: 0.8rem; }
.checklist b { color: var(--ink); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Form */
.cta { background: var(--hero-bg); color: var(--hero-ink); }
.cta .section-head .lead, .cta .section-head p { color: var(--hero-muted); }
.cta .eyebrow { color: #6fd6d2; }
.form-card { background: var(--bg); color: var(--ink); border-radius: 18px; padding: 36px; max-width: 820px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label, legend { font-weight: 600; font-size: 0.9rem; }
.req { color: var(--danger); }
.hint { font-size: 0.82rem; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #cdd5df; border-radius: 10px; padding: 11px 13px; width: 100%; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11, 110, 110, 0.2); border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border: 1px solid #cdd5df; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.checks input { width: auto; accent-color: var(--brand); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }
.consent input { width: auto; margin-top: 4px; accent-color: var(--brand); }
.error-text { color: var(--danger); font-size: 0.82rem; min-height: 1em; }
[aria-invalid="true"] { border-color: var(--danger); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; flex-wrap: wrap; }
.form-status { font-size: 0.92rem; }
.form-status.err { color: var(--danger); }
.form-success { text-align: center; padding: 24px 0; }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); text-decoration: none; }

/* Docs */
.docs { display: grid; grid-template-columns: 240px 1fr; gap: 48px; padding: 48px 24px 96px; }
.docs-nav { position: sticky; top: 88px; align-self: start; font-size: 0.92rem; }
.docs-nav h4 { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; color: var(--muted); margin: 24px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 5px 0; color: var(--ink-soft); text-decoration: none; }
.docs-nav a:hover { color: var(--brand); }
.docs-nav a code { background: none; border: 0; padding: 0; }
.docs-body, .docs-nav { min-width: 0; }
.docs-body p code, .docs-body li code { overflow-wrap: anywhere; }
.docs-body > section { padding: 0 0 56px; scroll-margin-top: 88px; }
.docs-body h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.docs-body h2 { font-size: 1.6rem; padding-top: 8px; }
.docs-body h3 { margin-top: 28px; }
.docs-body p, .docs-body li { color: var(--ink-soft); }
.docs-body ul { padding-left: 20px; }
.tool-head h2 { min-width: 0; margin-bottom: 0; }
.tool-head h2 code { overflow-wrap: anywhere; }
.tool-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.badge { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.badge.write { background: #fdecea; color: var(--danger); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 12px 0 20px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 700; color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td code { white-space: nowrap; }
.callout { border-left: 4px solid var(--accent); background: #fff8ec; padding: 14px 18px; border-radius: 0 10px 10px 0; color: var(--ink-soft); margin: 16px 0; }
.callout.info { border-color: var(--brand); background: var(--brand-soft); }

@media (max-width: 960px) {
  .hero .wrap, .split { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); }
  .docs-nav { position: static; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .docs { padding: 32px 16px 72px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  .grid-3, .grid-4, .grid-2, .steps, .form-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .form-card { padding: 24px 18px; }
  .tool-head h2 { font-size: 1.2rem; }
}
