/* OKDNS 官网 (okdns-web). Colors as the 管理平台: brand #0052D9; status
   success #2BA471, warning #C45A0C, danger #D54941. Light and dark. */
:root {
  --brand: #0052d9;
  --brand-2: #266fe8;
  --brand-soft: #f2f7ff;
  --text: rgba(0, 0, 0, 0.9);
  --text-2: rgba(0, 0, 0, 0.62);
  --text-3: rgba(0, 0, 0, 0.42);
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --card: #ffffff;
  --border: #e7e7e7;
  --border-2: #f0f0f0;
  --ok: #2ba471;
  --ok-bg: #e3f9e9;
  --warn: #c45a0c;
  --warn-bg: #fff1e9;
  --down: #d54941;
  --down-bg: #fff0ed;
  --none: #dcdfe5;
  --code-bg: #f7f8fa;
  --shadow: 0 6px 24px rgba(15, 35, 80, 0.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4e83fd;
    --brand-2: #6b97fd;
    --brand-soft: #1b2539;
    --text: rgba(255, 255, 255, 0.9);
    --text-2: rgba(255, 255, 255, 0.62);
    --text-3: rgba(255, 255, 255, 0.4);
    --bg: #17171a;
    --bg-2: #1d1d21;
    --card: #232327;
    --border: #34343a;
    --border-2: #2c2c31;
    --ok: #3dbf86;
    --ok-bg: #18342a;
    --warn: #e8873a;
    --warn-bg: #3a2717;
    --down: #ec6f66;
    --down-bg: #3d1f1d;
    --none: #3a3a41;
    --code-bg: #1d1d21;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.7 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
img { display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
code, .mono { font-family: var(--mono); }
code { font-size: 0.9em; padding: 1px 5px; border-radius: 3px; background: var(--code-bg); border: 1px solid var(--border-2); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 99; background: var(--card); padding: 6px 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--text-2); }
.empty { padding: 48px 0; text-align: center; color: var(--text-3); }
.note { margin-top: 16px; font-size: 13px; }

/* top */
.notice { padding: 8px 24px; text-align: center; font-size: 13px; color: #fff; background: var(--brand); }
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: 0.2px; }
.brand:hover { color: var(--text); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a { padding: 6px 12px; border-radius: 3px; color: var(--text-2); font-size: 14px; }
.nav > a:hover { color: var(--text); background: var(--bg-2); }
.nav > a.is-on { color: var(--brand); font-weight: 600; }
.nav-act { margin-left: auto; display: flex; gap: 8px; }
.nav-toggle, .nav-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 3px; font-size: 14px; font-weight: 500; border: 1px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s; white-space: nowrap; }
.btn-lg { height: 44px; padding: 0 24px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--card); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-white { background: #fff; color: #0052d9; }
.btn-white:hover { background: #f2f7ff; color: #0052d9; }
.link { font-weight: 500; }

/* sections */
.sec { padding: 72px 0; }
.sec-tight { padding: 40px 0 72px; }
.sec-tint { background: var(--bg-2); }
.sec-head { margin-bottom: 28px; }
.sec-head h2, .sec h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: 38px; font-weight: 700; letter-spacing: -0.3px; }
.page-head .lead { margin-top: 12px; }
.pad-xl { padding: 120px 0; }
.big { font-size: 64px; font-weight: 700; color: var(--brand); }
.lead { font-size: 17px; color: var(--text-2); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta.center { justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { padding: 4px 12px; border: 1px solid var(--border); border-radius: 14px; font-size: 13px; color: var(--text-2); }
.chips a:hover { border-color: var(--brand); color: var(--brand); }

/* cards */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.grid3 .card { padding: 24px; transition: border-color 0.15s, box-shadow 0.15s; }
.grid3 .card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: var(--shadow); }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14px; }
.feat-no { display: block; font: 600 12px var(--mono); color: var(--brand); margin-bottom: 12px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans-1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.plans-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
.plans-4 { grid-template-columns: repeat(4, 1fr); }
.plan { position: relative; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.is-hot { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-tag { position: absolute; top: -12px; left: 24px; padding: 2px 10px; border-radius: 2px; background: var(--brand); color: #fff; font-size: 12px; }
.plan h3 { font-size: 20px; margin: 0; }
.price b { font: 700 34px var(--mono); }
.price span { color: var(--text-2); margin-left: 2px; }
.price-text b { font: 700 24px var(--font); line-height: 42px; }
.checks { list-style: none; margin: 4px 0 0; padding: 0; }
.checks li { position: relative; padding: 6px 0 6px 24px; font-size: 14px; color: var(--text-2); border-top: 1px dashed var(--border-2); }
.checks li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 9px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* changelog */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.timeline > li { position: relative; display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 0 0 36px 24px; }
.timeline > li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.tl-meta { display: flex; flex-direction: column; gap: 4px; color: var(--text-2); font-size: 13px; }
.ver { color: var(--text); font-weight: 600; }
.tl-body h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-body ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); }
.tl-body li { margin: 4px 0; }
.kind { font-size: 11px; font-weight: 500; padding: 1px 7px; border-radius: 2px; }
.kind-feature { background: var(--brand-soft); color: var(--brand); }
.kind-improve { background: var(--ok-bg); color: var(--ok); }
.kind-fix { background: var(--warn-bg); color: var(--warn); }

/* about */
.prose { margin-top: 16px; }
.prose p { margin: 0 0 14px; color: var(--text-2); font-size: 16px; }
.contact { display: grid; gap: 12px; margin: 16px 0 0; }
.contact div { display: grid; grid-template-columns: 120px 1fr; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.contact dt { color: var(--text-3); }
.contact dd { margin: 0; }

/* docs */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.docs-nav { position: sticky; top: 84px; display: flex; flex-direction: column; padding: 8px 0; border-left: 1px solid var(--border); }
.docs-nav a { padding: 6px 16px; color: var(--text-2); font-size: 14px; border-left: 2px solid transparent; margin-left: -1px; }
.docs-nav a:hover { color: var(--brand); border-left-color: var(--brand); }
.docs-main { min-width: 0; }
.doc-sec { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border-2); scroll-margin-top: 80px; }
.doc-sec h2 { font-size: 24px; margin-bottom: 16px; }
.doc-sec > p { margin: 12px 0; }
.ep { padding: 20px 0; border-top: 1px dashed var(--border); scroll-margin-top: 80px; }
.ep h3 { font-size: 17px; }
.ep h4 { font-size: 13px; color: var(--text-2); margin: 16px 0 8px; font-weight: 600; }
.ep-line { margin: 8px 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ep-line code { font-size: 14px; }
.method { font: 600 11px var(--mono); padding: 2px 8px; border-radius: 2px; color: #fff; }
.m-get { background: #2ba471; }
.m-post { background: #0052d9; }
.m-put { background: #c45a0c; }
.m-delete { background: #d54941; }
.tbl, .kv { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
.tbl th, .tbl td, .kv th, .kv td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border-2); vertical-align: top; }
.tbl th { background: var(--bg-2); color: var(--text-2); font-weight: 500; font-size: 12.5px; }
.kv th { width: 120px; color: var(--text-3); font-weight: 400; }
.code { position: relative; margin: 10px 0; padding: 14px 18px; background: #0d1526; color: #d6deeb; border: 1px solid #1c2842; border-radius: 8px; font: 13px/1.7 var(--mono); overflow-x: auto; white-space: pre; tab-size: 4; box-shadow: 0 6px 20px rgba(13, 21, 38, 0.12); }
.code[data-lang] { padding-top: 40px; }
.code[data-lang]::before { content: attr(data-lang); position: absolute; left: 0; right: 0; top: 0; padding: 7px 18px; font: 600 11px/1.4 var(--font); letter-spacing: 0.5px; color: #7c8db0; border-bottom: 1px solid #1c2842; background: #0a1120; }
.code::selection, .code *::selection { background: rgba(91, 157, 255, 0.35); }
.t-k { color: #c792ea; }
.t-s { color: #c3e88d; }
.t-n { color: #f78c6c; }
.t-c { color: #637777; font-style: italic; }
.t-f { color: #82aaff; }
.t-v { color: #ffcb6b; }
.t-o { color: #89ddff; }
.t-p { color: #7fdbca; }
.t-b { color: #ffcb6b; }
.t-m { color: #addb67; }
.copy { position: absolute; top: 4px; right: 8px; padding: 2px 10px; border: 1px solid #2a3a5f; border-radius: 4px; background: transparent; color: #9fb0d0; font: 12px var(--font); cursor: pointer; }
.copy:hover { color: #fff; border-color: #5b9dff; }
pre:not([data-lang]) > .copy { top: 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; }
.tabs input { position: absolute; opacity: 0; pointer-events: none; }
.tabs label { padding: 6px 14px; border: 1px solid var(--border); border-bottom: 0; border-radius: 4px 4px 0 0; font-size: 13px; color: var(--text-2); cursor: pointer; background: var(--bg-2); }
.tabs input:checked + label { background: #0a1120; border-color: #1c2842; color: #fff; font-weight: 600; }
.tabs input:focus-visible + label { outline: 2px solid var(--brand); }
.tabs pre { display: none; width: 100%; margin-top: 0; border-top-left-radius: 0; }
.tabs pre[data-lang] { padding-top: 14px; }
.tabs pre[data-lang]::before { display: none; }
#s-shell:checked ~ .tab-shell, #s-python:checked ~ .tab-python, #s-go:checked ~ .tab-go, #s-node:checked ~ .tab-node { display: block; }

/* status */
.overall { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px; margin-bottom: 20px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--none); }
.overall-ok { border-left-color: var(--ok); }
.overall-warn { border-left-color: var(--warn); }
.overall-down { border-left-color: var(--down); }
.overall-main { display: flex; align-items: center; gap: 18px; }
.overall h2 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.overall p { font-size: 12.5px; }
.beacon { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--none); flex: none; }
.overall-ok .beacon { background: var(--ok); }
.overall-warn .beacon { background: var(--warn); }
.overall-down .beacon { background: var(--down); }
.beacon::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: inherit; opacity: 0.25; animation: beacon 2.2s ease-out infinite; }
@keyframes beacon { from { transform: scale(0.6); opacity: 0.45; } to { transform: scale(1.6); opacity: 0; } }
.overall-up { text-align: right; }
.overall-up b { display: block; font-size: 34px; font-weight: 700; line-height: 1.1; }
.overall-up span { color: var(--text-3); font-size: 12px; }
.svc-list { overflow: visible; }
.svc { padding: 20px 24px 14px; }
.svc + .svc { border-top: 1px solid var(--border-2); }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.svc-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.svc-meta { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; }
.svc-state { font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 2px; }
.st-ok { color: var(--ok); background: var(--ok-bg); }
.st-warn { color: var(--warn); background: var(--warn-bg); }
.st-down { color: var(--down); background: var(--down-bg); }
.st-unknown { color: var(--text-2); background: var(--bg-2); }
.bars { display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 34px; }
.bar { position: relative; display: block; border-radius: 2px; background: var(--none); transition: transform 0.12s, filter 0.12s; }
.b-ok { background: var(--ok); }
.b-warn { background: var(--warn); }
.b-down { background: var(--down); }
.bars .bar:hover { transform: scaleY(1.12); filter: brightness(1.08); }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 3px; background: #1d2129; color: #fff; font: 12px/1.4 var(--mono); white-space: nowrap; z-index: 5; pointer-events: none; }
.bars .bar:nth-child(-n + 12):hover::after { left: 0; transform: none; }
.bars .bar:nth-last-child(-n + 12):hover::after { left: auto; right: 0; transform: none; }
.bars-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.legend { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 16px 0 0; padding: 0; font-size: 12.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .bar { width: 8px; height: 14px; }

/* foot */
.foot { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 0; }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand p { margin-top: 10px; color: var(--text-2); font-size: 13px; max-width: 320px; }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.foot-col h4 { font-size: 13px; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }
.foot-col a, .foot-col span { color: var(--text-2); }
.foot-col a:hover { color: var(--brand); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--border-2); font-size: 12.5px; color: var(--text-3); }
.foot-legal a { color: var(--text-3); }

/* ---------- v2: dark sections, gradient type, product mockups, motion ---------- */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--none); flex: none; }
.dot-ok, .pill-ok .dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.dot-warn, .pill-warn .dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }
.dot-down, .pill-down .dot { background: var(--down); box-shadow: 0 0 0 3px var(--down-bg); }
.eyebrow { display: inline-block; margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: 1.5px; color: var(--brand); text-transform: uppercase; }
.sec-head.center { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: 32px; letter-spacing: -0.3px; }

/* dark sections: hero, page heads, bands */
.dark { --d-bg: #050b1d; position: relative; overflow: hidden; color: #e6ecf8; background: radial-gradient(1200px 600px at 75% -20%, #123a8a 0%, transparent 60%), radial-gradient(800px 500px at 0% 110%, #0b2a6b 0%, transparent 60%), linear-gradient(180deg, #050b1d, #071334); }
.dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(148, 179, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 179, 255, 0.07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.dark .wrap { position: relative; }
.dark .muted, .dark .lead, .dark p { color: rgba(226, 234, 250, 0.72); }
.dark h1, .dark h2 { color: #fff; }
.dark .eyebrow { color: #7fb0ff; }
.grad { background: linear-gradient(100deg, #ffffff 10%, #b9d3ff 45%, #5b9dff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: orb 14s ease-in-out infinite alternate; }
.orb-1 { width: 420px; height: 420px; right: -80px; top: -120px; background: #1d5bff; }
.orb-2 { width: 360px; height: 360px; left: -120px; bottom: -160px; background: #00a3ff; opacity: 0.3; animation-duration: 18s; }
@keyframes orb { to { transform: translate(-40px, 40px) scale(1.08); } }

.hero { padding: 84px 0 56px; }
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 54px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 22px 0 18px; }
.hero .lead { font-size: 17px; max-width: 560px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 16px; font-size: 13px; border: 1px solid rgba(148, 179, 255, 0.25); background: rgba(255, 255, 255, 0.06); color: rgba(226, 234, 250, 0.85); backdrop-filter: blur(8px); }
.pill:hover { color: #fff; border-color: rgba(148, 179, 255, 0.55); }
.pill-go { opacity: 0.6; }
.btn-glow { box-shadow: 0 8px 28px rgba(29, 91, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-line { border: 1px solid rgba(148, 179, 255, 0.35); color: #e6ecf8; background: rgba(255, 255, 255, 0.04); }
.btn-line:hover { border-color: #7fb0ff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 64px; }
.stat { padding: 20px 22px; border-radius: 10px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(148, 179, 255, 0.18); backdrop-filter: blur(8px); }
.stat b { display: block; font-size: 30px; font-weight: 700; color: #fff; }
.stat span { color: rgba(226, 234, 250, 0.65); font-size: 13px; }

/* hero network */
.net { position: relative; aspect-ratio: 560 / 420; }
.net-svg { width: 100%; height: 100%; overflow: visible; }
@keyframes spin { to { transform: rotate(360deg); } }
.net-pk circle { fill: #9cc3ff; filter: drop-shadow(0 0 4px #5b9dff); }
.net-ans circle { fill: #4ade80; filter: drop-shadow(0 0 4px #22c55e); }
.net-city circle:not(.ping) { fill: #0b1a3c; stroke: #7fb0ff; stroke-width: 2; }
.net-city .ping { fill: #5b9dff; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { transform: scale(0.3); opacity: 0.55; } 100% { transform: scale(1.6); opacity: 0; } }
.net-city text { fill: rgba(226, 234, 250, 0.8); font-size: 11px; font-family: var(--font); }
.core-ring { fill: none; stroke: #5b9dff; stroke-opacity: 0.35; stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: core 3s ease-in-out infinite; }
@keyframes core { 50% { stroke-opacity: 0.1; transform: scale(1.08); } }
.core-in { fill: url(#netGlow); stroke: #8fb8ff; stroke-width: 1.5; }
.core-t { fill: #fff; font: 700 13px var(--font); letter-spacing: 1px; }
.core-s { fill: rgba(226, 234, 250, 0.75); font-size: 9.5px; font-family: var(--font); }
.net-meter { display: grid; grid-template-columns: repeat(3, 1fr); margin: 4px 6% 0; border-top: 1px solid rgba(148, 179, 255, 0.18); }
.net-meter > div { padding: 14px 0 0 16px; border-left: 1px solid rgba(148, 179, 255, 0.12); }
.net-meter > div:first-child { padding-left: 0; border-left: 0; }
.net-meter span { display: block; font-size: 12px; color: rgba(226, 234, 250, 0.55); }
.net-meter b { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 22px; font-weight: 600; color: #fff; }
.net-meter b:not(.mono) { align-items: center; font-size: 16px; font-weight: 500; }
.net-meter em { font-style: normal; font-variant-numeric: tabular-nums; }
.net-meter small { font-size: 12px; font-weight: 400; color: rgba(226, 234, 250, 0.55); }
.ok-check { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #16a34a; flex: none; }
.ok-check::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* showcase */
.show { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: center; }
.show-tabs { display: flex; flex-direction: column; gap: 10px; }
.show-tabs button { position: relative; overflow: hidden; text-align: left; padding: 16px 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.show-tabs button b { display: block; font-size: 16px; margin-bottom: 4px; }
.show-tabs button span { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.show-tabs button.is-on { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: var(--shadow); background: linear-gradient(135deg, var(--brand-soft), var(--card) 60%); }
.show-tabs button.is-on b { color: var(--brand); }
.bar-p { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--brand); }
.show-tabs button.is-on .bar-p { animation: prog var(--rot, 6s) linear forwards; }
.show.paused .show-tabs button.is-on .bar-p { animation-play-state: paused; }
@keyframes prog { to { width: 100%; } }
.show-stage { position: relative; min-height: 380px; }
.show-pane { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 0.45s, transform 0.45s; pointer-events: none; }
.show-pane.is-on { opacity: 1; transform: none; pointer-events: auto; }
.show-pane .mock { width: 100%; }

/* mockup window */
.mock { border-radius: 10px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(15, 35, 80, 0.16), 0 2px 6px rgba(15, 35, 80, 0.06); font-size: 12.5px; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.mock-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.mock-bar > i:nth-child(2) { background: #febc2e; }
.mock-bar > i:nth-child(3) { background: #28c840; }
.mock-bar span { margin-left: 8px; }
.mock-dark { background: #0b1324; border-color: #1f2a44; color: #cbd5e1; }
.mock-dark .mock-bar { background: #0f1a30; border-color: #1f2a44; color: #7c8db0; }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); color: #4ade80; font-style: normal; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 300px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--border-2); background: var(--bg-2); }
.mock-side b { padding: 2px 8px 8px; font-size: 12px; }
.mock-side span { padding: 6px 8px; border-radius: 3px; color: var(--text-2); }
.mock-side span.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.mock-main { padding: 12px 14px; min-width: 0; }
.mock-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.mock-btn { padding: 3px 10px; border-radius: 3px; background: var(--brand); color: #fff; font-size: 12px; }
.mock-input { flex: 1; padding: 3px 10px; border: 1px solid var(--border); border-radius: 3px; color: var(--text-3); }
.mock-tbl { width: 100%; border-collapse: collapse; }
.mock-tbl th { text-align: left; font-weight: 500; color: var(--text-3); padding: 6px 8px; background: var(--bg-2); font-size: 11.5px; }
.mock-tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
.mock-tbl .tag { font: 600 10.5px var(--mono); padding: 1px 6px; border-radius: 2px; background: var(--bg-2); border: 1px solid var(--border); }
.ln { font-size: 11px; padding: 1px 7px; border-radius: 9px; }
.ln-d { background: var(--bg-2); color: var(--text-2); }
.ln-t { background: #e8f3ff; color: #0052d9; }
.ln-u { background: #fff1e9; color: #c45a0c; }
.ln-o { background: #e3f9e9; color: #2ba471; }
.hl { animation: hl 8s infinite; }
.hl-2 { animation-delay: 0s; }
.hl-3 { animation-delay: 2s; }
.hl-4 { animation-delay: 4s; }
.hl-1 { animation-delay: 6s; }
@keyframes hl { 0%, 22% { background: color-mix(in srgb, var(--brand) 9%, transparent); box-shadow: inset 2px 0 0 var(--brand); } 26%, 100% { background: transparent; box-shadow: none; } }
.mock-sim { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 9px 12px; border-radius: 6px; background: #0b1324; color: #cbd5e1; font: 12px var(--mono); }
.sim-who, .sim-a { position: relative; display: inline-block; height: 18px; overflow: hidden; vertical-align: bottom; font-style: normal; }
.sim-who { width: 140px; color: #7fb0ff; }
.sim-a { width: 110px; text-align: right; color: #4ade80; font-weight: 600; }
.sim-who i, .sim-a i { display: block; height: 18px; font-style: normal; animation: roll 8s steps(1) infinite; }
@keyframes roll { 0% { transform: translateY(0); } 25% { transform: translateY(-18px); } 50% { transform: translateY(-36px); } 75% { transform: translateY(-54px); } }

/* logs */
.logs { padding: 6px 0 0; }
.logs-head, .logs-roll > div { display: grid; grid-template-columns: 1.15fr 1.1fr 1.45fr 0.6fr 0.9fr 0.95fr 0.55fr; gap: 6px; padding: 0 14px; white-space: nowrap; }
.logs-head { padding-top: 6px; padding-bottom: 8px; color: #6b7c9e; font-size: 11px; border-bottom: 1px solid #1f2a44; }
.logs-win { height: 280px; overflow: hidden; mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.logs-roll { animation: logs 14s linear infinite; }
.logs-roll > div { padding-top: 7px; padding-bottom: 7px; font-size: 11.5px; border-bottom: 1px solid rgba(31, 42, 68, 0.6); overflow: hidden; }
.logs-roll span { overflow: hidden; text-overflow: ellipsis; }
.logs-roll .ok { color: #4ade80; }
.logs-roll .nx { color: #fbbf24; }
@keyframes logs { to { transform: translateY(-50%); } }

/* probe */
.probe { padding: 14px; }
.probe-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.probe-kpi div { padding: 10px 12px; border-radius: 6px; background: var(--bg-2); }
.probe-kpi span { display: block; color: var(--text-3); font-size: 11.5px; }
.probe-kpi b { font-size: 18px; }
.probe-grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; margin: 14px 0; }
.pd { aspect-ratio: 1; border-radius: 3px; background: var(--ok); opacity: 0.35; animation: pd 2.4s ease-in-out infinite; }
.pd-3 { background: #34d399; }
.pd-5 { background: #10b981; }
.pd:nth-child(29) { background: var(--warn); }
@keyframes pd { 50% { opacity: 1; } }
.probe-line { width: 100%; height: 96px; display: block; }
.probe-line .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 3.5s ease-out infinite; vector-effect: non-scaling-stroke; }
.probe-line .area { fill: color-mix(in srgb, var(--brand) 12%, transparent); }
@keyframes draw { 70%, 100% { stroke-dashoffset: 0; } }

/* cluster failover */
.clu { padding: 10px 14px 16px; }
.clu svg { width: 100%; height: auto; display: block; }
.clu-hub rect { fill: #13213f; stroke: #5b9dff; }
.clu-hub text, .clu-node text { fill: #dbe6ff; font: 12px var(--font); }
.clu-node rect { fill: #0f1a30; stroke: #2a3a5f; }
.clu-node circle { fill: #4ade80; }
.cl { stroke: #5b9dff; stroke-dasharray: 6 6; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -12; } }
.cl-b { animation: dash 1s linear infinite, clb 8s infinite; }
@keyframes clb { 0%, 45% { stroke: #5b9dff; opacity: 1; } 50%, 90% { stroke: #ef4444; opacity: 0.15; } 100% { stroke: #5b9dff; opacity: 1; } }
.cl-a, .cl-c { animation: dash 1s linear infinite, clw 8s infinite; }
@keyframes clw { 0%, 45% { stroke-width: 1.6; } 50%, 90% { stroke-width: 3; } 100% { stroke-width: 1.6; } }
.n-b circle { animation: nb 8s infinite; }
@keyframes nb { 0%, 45% { fill: #4ade80; } 50%, 90% { fill: #ef4444; } }
.n-b rect { animation: nbr 8s infinite; }
@keyframes nbr { 0%, 45% { stroke: #2a3a5f; } 50%, 90% { stroke: #ef4444; } }
.clu-note { position: relative; height: 18px; margin-top: 6px; font-size: 11.5px; }
.clu-note span { position: absolute; left: 0; top: 0; }
.cn-1 { color: #4ade80; animation: cn1 8s infinite; }
.cn-2 { color: #fbbf24; opacity: 0; animation: cn2 8s infinite; }
@keyframes cn1 { 0%, 45% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
@keyframes cn2 { 0%, 45% { opacity: 0; } 50%, 90% { opacity: 1; } 100% { opacity: 0; } }

/* dnssec */
.chain { padding: 22px 22px 18px; display: flex; flex-direction: column; align-items: stretch; }
.ch { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2); opacity: 0.35; animation: ch 6s infinite; }
.ch b { font-size: 14px; }
.ch span { color: var(--text-2); font-size: 12.5px; }
.ch .ok-check { transform: scale(0); animation: chk 6s infinite; }
.ch-2, .ch-2 .ok-check { animation-delay: 0.7s; }
.ch-3, .ch-3 .ok-check { animation-delay: 1.4s; }
@keyframes ch { 8%, 85% { opacity: 1; border-color: color-mix(in srgb, var(--ok) 50%, var(--border)); } 95% { opacity: 0.35; } }
@keyframes chk { 0%, 8% { transform: scale(0); } 14%, 85% { transform: scale(1); } 95% { transform: scale(0); } }
.ch-arrow { width: 2px; height: 18px; margin: 4px 0 4px 66px; background: linear-gradient(var(--border), var(--brand)); }
.chain-foot { margin-top: 14px; font-size: 12px; color: var(--text-2); }
.chain-foot b { color: var(--ok); }

/* api */
.code-art { margin: 0; padding: 16px 18px 20px; font-size: 12.5px; line-height: 1.7; color: #cbd5e1; white-space: pre-wrap; min-height: 300px; }
.code-art .k { color: #7fb0ff; }
.code-art .s { color: #fbbf24; }
.code-art .p { color: #93c5fd; }
.typing::before { content: "→ 200 OK  12ms"; color: #4ade80; display: inline-block; overflow: hidden; white-space: nowrap; width: 0; vertical-align: bottom; animation: type 7s steps(14) infinite; }
@keyframes type { 10%, 100% { width: 14ch; } }
.resp { display: block; opacity: 0; animation: resp 7s infinite; }
@keyframes resp { 0%, 14% { opacity: 0; transform: translateY(6px); } 20%, 100% { opacity: 1; transform: none; } }

/* features */
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; margin-bottom: 14px; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 18%, var(--card))); color: var(--brand); }
.feat-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat-ic.sm { width: 34px; height: 34px; margin: 0; border-radius: 8px; }
.feat-ic.sm svg { width: 18px; height: 18px; }
.feat:hover .feat-ic { background: var(--brand); color: #fff; }
.duo { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.duo + .duo { margin-top: 88px; }
.duo-rev .duo-text { order: 2; }
.duo-text h2 { font-size: 30px; margin-bottom: 12px; }
.duo-text > p { font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.fl { display: grid; gap: 18px; margin-top: 24px; }
.fl-item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.fl-item h3 { font-size: 16px; margin-bottom: 4px; }
.fl-item p { color: var(--text-2); font-size: 14px; }

/* home: status preview, band */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.split p { margin: 8px 0 14px; }
.mini-status { padding: 6px 0; }
.ms-row { display: grid; grid-template-columns: 120px 1fr 64px; align-items: center; gap: 14px; padding: 12px 18px; }
.ms-row + .ms-row { border-top: 1px solid var(--border-2); }
.ms-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.ms-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 22px; }
.ms-bars i { border-radius: 2px; background: var(--none); }
.ms-bars i.b-ok { background: var(--ok); }
.ms-bars i.b-warn { background: var(--warn); }
.ms-bars i.b-down { background: var(--down); }
.ms-row b { text-align: right; font-size: 13px; }
.band { color: #fff; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.band h2 { font-size: 28px; }
.band p { margin-top: 6px; }
.page-head.dark { padding: 80px 0 56px; }
.page-head.dark h1 { font-size: 42px; margin-top: 4px; }
.page-head.dark .chips a { border-color: rgba(148, 179, 255, 0.3); color: rgba(226, 234, 250, 0.8); }
.page-head.dark .chips a:hover { border-color: #7fb0ff; color: #fff; }
.page-head.dark .prose p { color: rgba(226, 234, 250, 0.78); }

/* reveal on scroll (site.js adds .is-in) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* narrow screens */
@media (max-width: 960px) {
  .hero-in, .split, .duo, .show { grid-template-columns: 1fr; gap: 32px; }
  .duo-rev .duo-text { order: 0; }
  .hero h1 { font-size: 40px; }
  .show-stage { min-height: 400px; }
  .grid3, .plans, .plans-4 { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 4px; }
  .docs-nav a { border: 1px solid var(--border); border-radius: 14px; padding: 3px 10px; margin: 0; font-size: 13px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-in { gap: 12px; }
  .nav-btn { display: block; margin-left: auto; width: 36px; height: 36px; position: relative; cursor: pointer; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after { position: absolute; left: 9px; width: 18px; height: 2px; background: var(--text); content: ""; }
  .nav-btn span { top: 17px; }
  .nav-btn span::before { top: -6px; left: 0; }
  .nav-btn span::after { top: 6px; left: 0; }
  .nav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav > a { padding: 10px 4px; }
  .nav-act { margin: 8px 0 0; }
  .nav-act .btn { flex: 1; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 32px; }
  .page-head.dark h1 { font-size: 30px; }
  .net-meter b { font-size: 18px; }
  .sec-head h2, .duo-text h2 { font-size: 24px; }
  .show-tabs { flex-direction: row; overflow-x: auto; }
  .show-tabs button { flex: 0 0 72%; }
  .show-stage { min-height: 360px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-tbl td:nth-child(5), .mock-tbl th:nth-child(5) { display: none; }
  .logs-head, .logs-roll > div { grid-template-columns: 1.2fr 1.5fr 0.7fr 1fr; }
  .logs-head span:nth-child(2), .logs-roll span:nth-child(2), .logs-head span:nth-child(5), .logs-roll span:nth-child(5), .logs-head span:nth-child(7), .logs-roll span:nth-child(7) { display: none; }
  .ms-row { grid-template-columns: 1fr 64px; }
  .ms-bars { grid-column: 1 / -1; order: 3; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 36px; }
  .stat { padding: 12px; }
  .stat b { font-size: 20px; }
  .stat span { font-size: 12px; }
  .band-in { flex-direction: column; align-items: flex-start; }
  .page-head { padding-top: 40px; }
  .page-head h1 { font-size: 30px; }
  .sec { padding: 48px 0; }
  .grid3, .plans, .plans-2, .plans-4 { grid-template-columns: 1fr; }
    .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .overall { flex-direction: column; align-items: flex-start; }
  .overall-up { text-align: left; }
  .bars { gap: 1px; height: 30px; }
  .contact div { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
