:root {
  --bg: #fcfcfb; --band: #f6f6f4; --card: #fff; --line: #e2e1dc; --grid: #e9e8e4;
  --text: #0b0b0b; --muted: #52514e; --faint: #6b6a66;
  --accent: #1f62c2; --accent-ink: #fff; --accent-soft: #e8f1fc;
  --good: #0ca30c; --good-text: #087508; --bad: #d03b3b; --warn: #fab219;
  --shadow: 0 1px 2px rgba(11,11,11,.05), 0 12px 32px rgba(11,11,11,.07);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101113; --band: #15171a; --card: #1a1c20; --line: #2a2d32; --grid: #25282d;
    --text: #f1f1ef; --muted: #a8a9ad; --faint: #85878c;
    --accent: #5b9df0; --accent-ink: #07111f; --accent-soft: #172234;
    --good: #2bc02b; --good-text: #52d452; --bad: #ee6a6a; --warn: #e8b53a;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

body { overflow-x: hidden; }
.wrap > *, .two > *, .row > * { min-width: 0; }

/* 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 .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo svg { width: 26px; height: 26px; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0 auto 0 12px; padding: 0; }
.nav ul a { display: inline-block; padding: 10px 0; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav ul a:hover { color: var(--text); }
.nav .actions { display: flex; gap: 8px; margin-left: auto; }
.nav ul + .actions { margin-left: 0; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid transparent; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.ghost:hover { background: var(--band); filter: none; }
.btn.lg { padding: 13px 22px; font-size: 16px; border-radius: 10px; }

/* type */
h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 750; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 12px; font-weight: 700; }
h3 { font-size: 17px; margin: 0 0 6px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 0 36px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

section { padding: 80px 0; }
section.band { background: var(--band); border-block: 1px solid var(--line); }

/* hero */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { color: var(--faint); font-size: 14px; margin: 14px 0 0; }

/* mock of the panel */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--band); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar span { margin-left: 10px; color: var(--faint); font-size: 12px; }
.mock-tabs { display: flex; gap: 16px; padding: 10px 14px 0; border-bottom: 1px solid var(--line); color: var(--faint); }
.mock-tabs b { color: var(--text); padding-bottom: 8px; border-bottom: 2px solid var(--accent); font-weight: 600; }
.mock-tabs span { padding-bottom: 8px; }
.row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 92px; column-gap: 16px; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.row .name > div { min-width: 0; }
.row .name .dot { margin-top: 0; }
.row .name small { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--good); flex: none; }
.dot.bad { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 22%, transparent); }
.bars { display: flex; gap: 2px; height: 22px; }
.bars i { flex: 1; border-radius: 2px; background: var(--good); opacity: .85; }
.bars i.b { background: var(--bad); opacity: 1; }
.bars i.w { background: var(--warn); opacity: 1; }
.pct { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--good-text); font-weight: 600; }
.pct.bad { color: var(--bad); }
.mock-chart { padding: 14px; border-top: 1px solid var(--line); background: var(--band); }
.mock-chart svg { display: block; width: 100%; height: 70px; }
.mock-chart .cap { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-bottom: 4px; }

/* facts strip */
.facts { padding: 28px 0; border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.facts b { display: block; font-size: 26px; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: 14px; }

/* steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 20px 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 36px; left: calc(100% - 2px); width: 20px; height: 2px; background: var(--line); }
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps svg { width: 38px; height: 38px; position: absolute; right: 18px; top: 18px; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips a, .chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "\2713"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good-text); font-weight: 700; font-size: 13px; }
.ticks b { color: var(--text); }

.chips img, .toc img, .prov h2 img { flex: none; border-radius: 6px; background: #fff; }
.chips a, .toc a { gap: 8px; }
.chips a { padding-left: 10px; }
.toc a { padding-left: 10px; }
.prov h2 { display: flex; align-items: center; gap: 12px; }
.prov h2 img { width: 32px; height: 32px; }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .ic { width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 20px; height: 20px; }

/* outage diagram */
.diagram { margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram text { fill: var(--text); font: 13px system-ui, sans-serif; }
.diagram .m { fill: var(--muted); }
.diagram .node { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.diagram .bad { fill: color-mix(in srgb, var(--bad) 16%, var(--card)); stroke: var(--bad); }
.diagram .ok { fill: color-mix(in srgb, var(--good) 16%, var(--card)); stroke: var(--good); }
.diagram .edge { stroke: var(--faint); stroke-width: 1.5; fill: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.two p { color: var(--muted); }

/* compare table */
.cmp { width: 100%; border-collapse: collapse; margin-top: 36px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--band); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td:nth-child(2) { color: var(--good-text); font-weight: 600; }
.cmp td:nth-child(3) { color: var(--muted); }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-top: 10px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--faint); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--muted); }

/* closing */
.closing { text-align: center; }
.closing .cta { justify-content: center; }
.closing .sub { margin-inline: auto; }

footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer .legal { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--faint); max-width: 760px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

/* access form */
.req { max-width: 460px; margin: 0 auto; text-align: left; display: grid; gap: 14px; }
.req label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.req .opt { font-weight: 400; color: var(--faint); }
.req input, .req textarea { font: inherit; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--card); color: var(--text); width: 100%; }
.req input:focus, .req textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.req .btn { width: 100%; }
.req .fine { text-align: center; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* migrate page */
.page { padding: 56px 0 24px; }
.prov { padding: 28px 0; border-top: 1px solid var(--line); }
.prov h2 { font-size: 26px; margin-bottom: 8px; }
.prov dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.prov dt { color: var(--faint); font-weight: 600; }
.prov dd { margin: 0; }
.kinds { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.kinds code { padding: 1px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--band); font-size: 13px; color: var(--text); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-weight: 550; font-size: 14.5px; }
.toc a:hover { border-color: var(--accent); color: var(--accent); }
.note { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 12px; padding: 14px 18px; color: var(--text); font-size: 15px; margin: 24px 0 0; }

@media (max-width: 920px) {
  .hero .wrap, .two { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .ticks { grid-template-columns: 1fr; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .nav ul { display: none; }
  .nav .actions .ghost { display: none; }
  .steps, .grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(0, 1fr) 92px; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row .bars { grid-column: 1 / -1; order: 3; }
  .prov dl { grid-template-columns: 1fr; gap: 2px; }
  .prov dt { margin-top: 8px; }
  .cmp th, .cmp td { padding: 11px 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
