:root {
  color-scheme: light;
  --bg: #f6f9fc;
  --bg-alt: #edf3f8;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #536779;
  --line: #d9e2ec;
  --accent: #0f766e;
  --accent-strong: #0b5d58;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --signal: #ea580c;
  --live: #16a34a;
  --dark: #0b1422;
  --dark-2: #10273b;
  --dark-ink: #eff6ff;
  --dark-muted: #9fb3c8;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #050b15;
    --bg-alt: #0a1424;
    --surface: #0e1a2c;
    --ink: #eff6ff;
    --muted: #a3b6c9;
    --line: #1f2f45;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: rgba(45, 212, 191, 0.12);
    --signal: #fb923c;
    --live: #4ade80;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; overflow-wrap: anywhere; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.8em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 24px; }
.note--center { text-align: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.18); display: inline-block; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, transform 0.15s; cursor: pointer; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-strong); }
@media (prefers-color-scheme: dark) { .btn--primary { color: #04201d; } }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--accent); }
.btn--on-dark { background: transparent; color: var(--dark-ink); border-color: rgba(255, 255, 255, 0.25); }
.btn--sm { min-height: 38px; padding: 0 16px; }
.btn--block { width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand__mark svg { width: 28px; height: 28px; }
.brand__mark rect { fill: var(--accent); }
.brand__mark path { fill: #fff; }
.nav__links { display: flex; align-items: center; gap: 24px; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav__links a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
  .nav__toggle span[aria-hidden] { position: relative; width: 18px; height: 2px; background: var(--ink); }
  .nav__toggle span[aria-hidden]::before, .nav__toggle span[aria-hidden]::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); }
  .nav__toggle span[aria-hidden]::before { top: -6px; }
  .nav__toggle span[aria-hidden]::after { top: 6px; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 12px; }
}

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 40%), radial-gradient(circle at 100% 20%, rgba(234, 88, 12, 0.07), transparent 35%); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr 1fr; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 0.93rem; }
.hero__facts li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* Console illustration */
.console { margin: 0; background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--dark-ink); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; min-width: 0; }
.console__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 0.75rem; color: var(--dark-muted); }
.console__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.console__bar span { margin-left: 8px; }
.console__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 16px; }
.console__stats div { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 10px 12px; }
.console__stats b { display: block; font-size: 1.5rem; }
.console__stats b.ok { color: #4ade80; }
.console__stats span { font-size: 0.78rem; color: var(--dark-muted); }
.console__table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.console__table th, .console__table td { text-align: left; padding: 9px 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); white-space: nowrap; }
.console__table th { color: var(--dark-muted); font-weight: 500; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.console__table td:first-child { font-family: var(--mono); }
@media (max-width: 520px) { .console__table th:nth-child(4), .console__table td:nth-child(4) { display: none; } .console__table th, .console__table td { padding: 9px 10px; } }
.console__foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--mono); font-size: 0.72rem; color: var(--dark-muted); }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.pill--live { background: rgba(74, 222, 128, 0.16); color: #4ade80; }
.pill--ready { background: rgba(96, 165, 250, 0.16); color: #93c5fd; }
.pill--off { background: rgba(255, 255, 255, 0.08); color: var(--dark-muted); }

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.proof__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.proof__grid > div { padding: 24px 12px; text-align: center; }
.proof__grid > div[hidden] { display: none; }
.proof__grid b { display: block; font-size: 1.8rem; letter-spacing: -0.02em; color: var(--accent); }
.proof__grid span { font-size: 0.88rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { margin-bottom: 44px; max-width: 44rem; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--center .lead { margin: 0 auto; }

.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
@media (max-width: 400px) { .cards, .cards--2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: none; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.flow p { color: var(--muted); margin: 0; }
.flow__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .flow__n { color: #04201d; } }

/* Security */
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; align-items: start; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { position: relative; padding: 16px 18px 16px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.checks li b { color: var(--ink); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%230f766e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Deploy */
.deploy { margin-top: 40px; display: grid; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
@media (min-width: 900px) { .deploy { grid-template-columns: 0.7fr 1.3fr; } }
.deploy p { color: var(--muted); margin: 0; }
.code { margin: 0; background: var(--dark); color: var(--dark-ink); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.85rem; line-height: 1.7; }
.code code { background: none; padding: 0; overflow-wrap: normal; }
.code .c { color: var(--dark-muted); }

/* Pricing */
.plans { display: grid; gap: 20px; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); max-width: 1040px; margin: 0 auto; }
@media (max-width: 400px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; }
.plan--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -13px; left: 26px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--signal); color: #fff; font-size: 0.78rem; font-weight: 700; }
.plan__price { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 4px; line-height: 1.1; }
.plan__price .cur { font-size: 1.3rem; vertical-align: top; margin-right: 2px; position: relative; top: 6px; }
.plan__price .per { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.plan__sub { color: var(--muted); font-size: 0.93rem; min-height: 3em; }
.plan__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; font-size: 0.95rem; }
.plan__list li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 10px; }

/* FAQ */
.faq { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* CTA + footer */
.cta { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--dark-ink); padding: 80px 0; text-align: center; }
.cta p { color: var(--dark-muted); font-size: 1.1rem; }
.cta .hero__cta { justify-content: center; margin-bottom: 0; }
@media (prefers-color-scheme: dark) { .cta { border-top: 1px solid var(--line); } }
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a { color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer p { margin: 0; color: var(--muted); font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Setup fee */
.plan__fee { margin: 0 0 12px; font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.plan__fee--free { color: var(--accent); }

/* Bandwidth calculator */
.calc { display: grid; gap: 20px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.calc__form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
@media (max-width: 480px) { .calc__form { grid-template-columns: 1fr; padding: 20px; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: 0.88rem; font-weight: 600; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select { width: 100%; min-height: 46px; padding: 0 12px; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input:invalid { border-color: #e11d48; }
.calc__hint { margin: 0; font-size: 0.85rem; color: var(--muted); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%); color: var(--dark-ink); border-radius: var(--radius); padding: 26px; }
@media (max-width: 480px) { .calc__out { grid-template-columns: 1fr; padding: 20px; } }
.calc__stat { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 14px 16px; min-width: 0; }
.calc__stat span { display: block; font-size: 0.8rem; color: var(--dark-muted); }
.calc__stat b { display: block; font-size: 1.35rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__stat--main { grid-column: 1 / -1; }
.calc__stat--main b { font-size: 2.2rem; color: #5eead4; }
.calc__note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 0.8rem; color: var(--dark-muted); }

/* DigitalOcean cost example */
.do { margin-top: 20px; display: grid; gap: 20px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
@media (min-width: 900px) { .do { grid-template-columns: 0.8fr 1.2fr; } .do__head { grid-column: 1 / -1; } }
@media (max-width: 480px) { .do { padding: 20px; } }
.do__head p { color: var(--muted); margin: 0; max-width: 48rem; }
.do__form { display: grid; gap: 16px; align-content: start; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.do__out { min-width: 0; }
.do__pick { margin: 0 0 8px; font-weight: 700; }
.do__warn { margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: rgba(234, 88, 12, 0.1); border: 1px solid rgba(234, 88, 12, 0.35); color: var(--ink); font-size: 0.9rem; }
.do__table { width: 100%; border-collapse: collapse; font-size: 0.93rem; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.do__table th, .do__table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.do__table td { text-align: right; padding-left: 12px; }
.do__table th { font-weight: 500; color: var(--muted); }
.do__table thead th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.do__table thead th:not(:first-child) { text-align: right; }
.do__sum th, .do__sum td { font-weight: 700; color: var(--ink); border-bottom: 0; }
.do__table--plans tbody th { color: var(--ink); font-weight: 600; }
