/* Nano Trading Labs — site styles. Mobile first: base = phone, then 720px (tablet) and 1080px (desktop). */

@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jbmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #09090a;
  --bg-2: #0e0e10;
  --panel: #121214;
  --panel-2: #17171a;
  --line: #222226;
  --line-2: #303036;
  --text: #ececef;
  --muted: #8d8d96;
  --dim: #5d5d66;
  --white: #ffffff;
  --ok: #5ee08f;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gutter: 20px;
  --max: 1200px;
  --radius: 14px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--white); color: var(--bg); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* background grid */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 100%);
}
.bg-glow {
  position: fixed; inset: -20% -10% auto; height: 70vh; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(255,255,255,.07), transparent 70%);
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; color: var(--white); }
h1 { font-size: clamp(40px, 10.5vw, 84px); font-weight: 700; letter-spacing: -0.045em; }
h2 { font-size: clamp(30px, 7vw, 52px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); line-height: 1.55; max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: var(--dim); }
.grad { background: linear-gradient(180deg, #fff 30%, #8d8d96); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(94,224,143,.15); flex: none; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(94,224,143,0); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font: 600 14px/1 var(--sans); letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s, color .25s, transform .25s var(--ease);
  background: transparent; color: var(--text);
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--white); color: #000; border-color: var(--white); }
.btn-primary:hover { background: #d9d9de; border-color: #d9d9de; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--mono); color: var(--text); letter-spacing: .02em; }
.link-arrow:hover { color: var(--white); }
.link-arrow .arr { transition: transform .25s var(--ease); }
.link-arrow:hover .arr { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, body.lock .nav { background: rgba(9,9,10,.78); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 34px; height: 34px; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { font: 800 17px/1 var(--sans); letter-spacing: .16em; color: var(--white); }
.brand-name span { font: 500 8.5px/1 var(--mono); letter-spacing: .36em; color: var(--muted); margin-top: 5px; }
.nav-links { display: none; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login { display: none; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .35s var(--ease), opacity .2s; }
.menu-btn span + span { margin-top: 5px; }
.menu-btn i { display: flex; flex-direction: column; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 49; background: rgba(9,9,10,.97);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 20px var(--gutter) 32px; overflow-y: auto; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.menu.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.menu ol { list-style: none; margin: 0; padding: 0; }
.menu li { border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(12px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.menu.open li { opacity: 1; transform: none; }
.menu.open li:nth-child(2) { transition-delay: .04s; } .menu.open li:nth-child(3) { transition-delay: .08s; }
.menu.open li:nth-child(4) { transition-delay: .12s; } .menu.open li:nth-child(5) { transition-delay: .16s; }
.menu.open li:nth-child(6) { transition-delay: .2s; } .menu.open li:nth-child(7) { transition-delay: .24s; }
.menu ol a { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; font: 600 28px/1 var(--sans); letter-spacing: -0.03em; color: var(--white); }
.menu ol a small { font: 500 11px/1 var(--mono); color: var(--dim); letter-spacing: .1em; width: 22px; }
.menu ol a.active small { color: var(--white); }
.menu-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; font: 12px/1.6 var(--mono); color: var(--muted); }
.menu-foot .btn { width: 100%; }

/* ---------- views & transitions ---------- */
main { min-height: 100vh; padding-top: var(--nav-h); }
.view { animation: viewIn .6s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.wipe {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; background: var(--bg);
  transform: translateY(100%); display: grid; place-items: center; visibility: hidden;
}
.wipe.in, .wipe.out { visibility: visible; }
.wipe::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 24px 2px rgba(255,255,255,.35); }
.wipe-label { font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .06em; display: flex; gap: 10px; align-items: center; }
.wipe-label b { color: var(--white); font-weight: 500; }
.wipe-bar { position: absolute; left: 50%; top: calc(50% + 26px); width: 120px; height: 1px; margin-left: -60px; background: var(--line-2); overflow: hidden; }
.wipe-bar::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateX(-100%); }
.wipe.in { pointer-events: auto; transform: none; transition: transform .38s cubic-bezier(.7,0,.3,1); }
.wipe.in .wipe-bar::after { transform: none; transition: transform .5s var(--ease) .1s; }
.wipe.out { transform: translateY(-100%); transition: transform .45s cubic-bezier(.7,0,.3,1); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- boot loader ---------- */
.boot {
  position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center;
  padding: var(--gutter); transition: transform .8s cubic-bezier(.7,0,.2,1), opacity .5s;
  animation: bootFallback 0s 6s forwards; /* if the script never runs, still get out of the way */
}
@keyframes bootFallback { to { opacity: 0; visibility: hidden; } }
.boot.done { transform: translateY(-100%); }
.boot.skip { display: none; }
.boot-inner { width: 100%; max-width: 380px; }
.boot-mark { width: 76px; height: 76px; margin: 0 auto 30px; }
.boot-mark * { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1.1s var(--ease) forwards; }
.boot-mark .f { opacity: 0; animation: fadeIn .4s ease .8s forwards; stroke-dasharray: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
.boot-log { font: 12px/1.9 var(--mono); color: var(--dim); min-height: 152px; white-space: pre; overflow: hidden; }
.boot-log div { opacity: 0; animation: fadeIn .15s ease forwards; }
.boot-log .ok { color: var(--text); }
.boot-log .hi { color: var(--white); }
.boot-bar { margin-top: 18px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--white); transition: width .2s linear; }
.boot-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 11px/1 var(--mono); color: var(--dim); letter-spacing: .08em; }
.boot-scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px); }

/* ---------- sections ---------- */
.section { padding: 84px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: 44px; }
.section-head .lead { margin-top: 2px; }
.split-head { display: grid; gap: 18px; align-items: end; }

/* hero */
.hero { padding: 44px 0 8px; }
.hero-grid { display: grid; gap: 44px; }
.hero h1 { margin: 22px 0 22px; }
.hero .btn-row { margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.tag { font: 500 11px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 11px; letter-spacing: .04em; }

/* terminal window */
.term { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset; }
.term-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 11.5px/1 var(--mono); color: var(--muted); }
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-badge { font-size: 10px; letter-spacing: .1em; border: 1px solid var(--line-2); border-radius: 5px; padding: 4px 6px; color: var(--muted); }
.monitor canvas { width: 100%; height: 250px; }
.monitor-stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.monitor-stats div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.monitor-stats div:nth-child(2n) { border-right: 0; }
.monitor-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.monitor-stats small { display: block; font: 10px/1 var(--mono); letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.monitor-stats b { display: block; margin-top: 7px; font: 500 15px/1 var(--mono); color: var(--white); font-variant-numeric: tabular-nums; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.stat { padding: 22px 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat b { display: block; font: 600 clamp(26px, 6vw, 40px)/1 var(--sans); letter-spacing: -0.04em; color: var(--white); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .5em; letter-spacing: 0; color: var(--muted); margin-left: 3px; font-weight: 500; }
.stat > span { display: block; margin-top: 10px; font: 11px/1.45 var(--mono); color: var(--muted); letter-spacing: .02em; }

/* cards */
.cards { display: grid; gap: 14px; }
.card {
  position: relative; background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px; transition: border-color .3s, transform .4s var(--ease);
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.06), transparent 50%); }
.card:hover { border-color: var(--line-2); }
.card:hover::after { opacity: 1; }
a.card:hover { transform: translateY(-2px); }
.card-idx { font: 500 11px/1 var(--mono); color: var(--dim); letter-spacing: .1em; display: flex; justify-content: space-between; }
.card h3 { margin: 26px 0 10px; }
.card p { color: var(--muted); font-size: 15px; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.card .ico { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; display: grid; place-items: center; margin-top: 22px; }
.card .ico svg { width: 20px; height: 20px; }
.card .ico + h3 { margin-top: 18px; }
.card .more { margin-top: 22px; }

/* pipeline */
.pipe { display: grid; gap: 0; counter-reset: step; }
.pipe-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0 0 28px; }
.pipe-step:last-child { padding-bottom: 0; }
.pipe-step::before { content: ""; position: absolute; left: 19.5px; top: 40px; bottom: 0; width: 1px; background: linear-gradient(var(--line-2), var(--line)); }
.pipe-step:last-child::before { display: none; }
.pipe-num { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 500 12px/1 var(--mono); color: var(--white); background: var(--bg); position: relative; z-index: 1; }
.pipe-step h4 { font: 600 13px/1 var(--mono); letter-spacing: .14em; color: var(--white); margin-top: 6px; }
.pipe-step p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.pipe-step .t { font: 11px/1 var(--mono); color: var(--dim); margin-top: 8px; display: block; }
.pipe-grid { display: grid; gap: 40px; }

/* code block */
.code { font: 12.5px/1.75 var(--mono); padding: 18px 16px; overflow-x: auto; color: var(--muted); counter-reset: ln; white-space: pre; tab-size: 4; }
.code .ln { display: inline; }
.code .ln::before { counter-increment: ln; content: counter(ln); display: inline-block; width: 22px; margin-right: 14px; text-align: right; color: #3a3a42; }
.code .k { color: var(--white); font-weight: 500; }
.code .f { color: #c9c9cf; }
.code .c { color: #55555e; font-style: italic; }
.code .s { color: #a6a6ae; }
.code .n { color: #d8d8dc; }

/* regions */
.regions { display: grid; gap: 14px; }
.region { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 18px; }
.region-top { display: flex; align-items: center; justify-content: space-between; }
.region-code { font: 600 30px/1 var(--mono); color: var(--white); letter-spacing: -0.02em; }
.region-status { display: flex; align-items: center; gap: 8px; font: 11px/1 var(--mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.region-name { font-weight: 600; color: var(--text); }
.region dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font: 12px/1.3 var(--mono); }
.region dt { color: var(--dim); }
.region dd { margin: 0; color: var(--text); text-align: right; }
.lat-bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lat-bar i { display: block; height: 100%; background: var(--white); width: var(--w, 10%); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .2s; }
.seen .lat-bar i, .lat-bar.seen i { transform: scaleX(1); }

/* network diagram */
.netmap { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; overflow: hidden; }
.netmap svg { width: 100%; height: auto; }
.netmap .node rect { fill: var(--panel); stroke: var(--line-2); }
.netmap .node text { fill: var(--text); font: 600 13px var(--mono); }
.netmap .node .sub { fill: var(--dim); font: 400 9px var(--mono); letter-spacing: .1em; }
.netmap .core circle.r { fill: none; stroke: var(--line-2); }
.netmap .core circle.c { fill: var(--white); }
.netmap .core text { fill: var(--muted); font: 500 9px var(--mono); letter-spacing: .12em; }
.netmap .link { stroke: var(--line-2); stroke-width: 1; fill: none; }
.netmap .flow { stroke: var(--white); stroke-width: 1.5; fill: none; stroke-dasharray: 3 14; animation: flow 1.6s linear infinite; opacity: .8; }
.netmap .flow.rev { animation-direction: reverse; opacity: .35; }
.netmap .pulse-ring { fill: none; stroke: var(--white); opacity: 0; transform-origin: center; transform-box: fill-box; animation: ring 2.8s var(--ease) infinite; }
@keyframes flow { to { stroke-dashoffset: -34; } }
@keyframes ring { 0% { opacity: .5; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* list rows (services preview / specs) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding .35s var(--ease); }
.row:hover { padding-left: 8px; }
.row small { font: 500 11px/1 var(--mono); color: var(--dim); }
.row h3 { font-size: clamp(19px, 3.6vw, 26px); }
.row p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.row .arr { font-family: var(--mono); color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.row:hover .arr { transform: translateX(4px); color: var(--white); }

/* principles */
.principles { display: grid; gap: 14px; }
.principle { border-left: 1px solid var(--line-2); padding: 4px 0 4px 18px; }
.principle h4 { font: 600 13px/1.3 var(--mono); letter-spacing: .08em; color: var(--white); text-transform: uppercase; }
.principle p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* CTA band */
.cta { text-align: left; padding: 40px 24px; border: 1px solid var(--line-2); border-radius: 20px; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 120% at 100% 0%, rgba(255,255,255,.08), transparent 60%), var(--bg-2); }
.cta h2 { max-width: 640px; }
.cta .lead { margin-top: 16px; }
.cta .btn-row { margin-top: 28px; }
.cta-code { position: absolute; right: 36px; bottom: 30px; font: 11px/1.7 var(--mono); color: rgba(255,255,255,.11); white-space: pre; pointer-events: none; display: none; }

/* page hero (inner pages) */
.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(38px, 9vw, 72px); margin-top: 20px; }
.page-hero .lead { margin-top: 20px; }
.crumbs { font: 12px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--white); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font: 12.5px/1.4 var(--mono); min-width: 560px; }
th { text-align: left; font-weight: 500; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.y { color: var(--white); }
td.n { color: var(--dim); }

/* timeline */
.timeline { position: relative; display: grid; gap: 26px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -26px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--muted); }
.tl.now::before { background: var(--white); border-color: var(--white); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.tl.next::before { border-style: dashed; }
.tl small { font: 500 11px/1 var(--mono); color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.tl h4 { font-size: 17px; margin-top: 8px; font-weight: 600; letter-spacing: -0.01em; }
.tl p { color: var(--muted); font-size: 15px; margin-top: 6px; }

/* FAQ */
.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h3 { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-bottom: 8px; }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 24px; gap: 16px; align-items: center; padding: 20px 0; font-weight: 550; font-size: 17px; color: var(--white); letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary .pm { width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 50%; position: relative; transition: transform .35s var(--ease), border-color .3s; }
summary .pm::before, summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 1.5px; margin: -.75px 0 0 -4.5px; background: var(--text); transition: transform .35s var(--ease); }
summary .pm::after { transform: rotate(90deg); }
details[open] summary .pm { transform: rotate(180deg); border-color: var(--muted); }
details[open] summary .pm::after { transform: rotate(0); }
summary:hover .pm { border-color: var(--muted); }
.faq-a { color: var(--muted); padding: 0 40px 22px 0; font-size: 15.5px; }
.faq-a p + p { margin-top: 10px; }
details[open] .faq-a { animation: viewIn .45s var(--ease); }

/* forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field label i { color: var(--dim); font-style: normal; text-transform: none; letter-spacing: 0; }
.input, .select, .textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--white); font-size: 16px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 150px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--muted); box-shadow: 0 0 0 4px rgba(255,255,255,.06); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.form-2 { display: grid; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #fff; flex: none; }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.form-status { font: 13px/1.5 var(--mono); min-height: 20px; color: var(--muted); }
.form-status.ok { color: var(--ok); }
#loginStatus:empty { display: none; }
.form-status.err { color: #ff8a8a; }
.btn[disabled] { opacity: .55; cursor: wait; }

.contact-grid { display: grid; gap: 28px; }
.panel { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.info-list { display: grid; gap: 0; }
.info-list > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.info-list > div:first-child { padding-top: 0; }
.info-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list small { display: block; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.info-list b, .info-list a { display: block; margin-top: 8px; font-weight: 550; color: var(--white); }
.info-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-list p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.steps-mini { counter-reset: s; display: grid; gap: 12px; margin-top: 4px; }
.steps-mini li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--muted); font-size: 14px; }
.steps-mini li::before { counter-increment: s; content: "0" counter(s); font: 500 11px/1.9 var(--mono); color: var(--dim); }
.steps-mini { padding: 0; margin: 0; }

/* login */
.login-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding-top: 40px; padding-bottom: 80px; }
.login { width: 100%; max-width: 420px; }
.login .panel { padding: 30px 22px; }
.login-head { text-align: center; margin-bottom: 26px; }
.login-head img { width: 54px; height: 54px; margin: 0 auto 18px; }
.login-head h1 { font-size: 30px; letter-spacing: -0.03em; }
.login-head p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.notice { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; font: 12px/1.55 var(--mono); color: var(--muted); background: var(--bg); margin-bottom: 18px; }
.notice .dot { margin-top: 4px; background: #e6c35c; box-shadow: 0 0 0 3px rgba(230,195,92,.15); animation: none; }
.login-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; font: 12px/1.4 var(--mono); color: var(--muted); }
.login-foot a:hover { color: var(--white); }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font: 11px/1 var(--mono); color: var(--dim); letter-spacing: .06em; }
.secure-line svg { width: 12px; height: 12px; }

/* legal */
.legal-grid { display: grid; gap: 32px; padding-bottom: 96px; }
.toc { display: none; }
.doc { max-width: 760px; }
.doc .updated { font: 12px/1 var(--mono); color: var(--dim); margin-bottom: 26px; display: block; }
.doc h2 { font-size: 20px; letter-spacing: -0.02em; margin: 40px 0 12px; font-weight: 650; display: flex; gap: 12px; align-items: baseline; }
.doc h2 small { font: 500 12px/1 var(--mono); color: var(--dim); letter-spacing: .04em; }
.doc p, .doc li { color: #b4b4bc; font-size: 15px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.doc strong { color: var(--white); font-weight: 600; }
.doc .caps { text-transform: uppercase; font-size: 13.5px; letter-spacing: .01em; }
.doc a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dim); }
.doc .box { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 12px; padding: 18px; margin: 18px 0; }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 26px; }
.legal-tabs a { font: 500 12px/1 var(--mono); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .03em; }
.legal-tabs a:hover { color: var(--white); border-color: var(--muted); }
.legal-tabs a.on { background: var(--white); color: #000; border-color: var(--white); }

/* 404 */
.nf { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding-top: 40px; padding-bottom: 100px; }
.nf .big { font: 700 clamp(90px, 28vw, 200px)/1 var(--mono); letter-spacing: -0.06em; color: var(--white); }
.nf p { color: var(--muted); margin: 14px 0 28px; font-family: var(--mono); font-size: 14px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 32px; background: var(--bg); }
.foot-grid { display: grid; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 18px; max-width: 320px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.foot-col h4 { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-bottom: 14px; }
.foot-col a, .foot-col span { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--white); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 14px; font: 11.5px/1.6 var(--mono); color: var(--dim); }
.foot-status { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.foot-disc { max-width: 900px; }

/* ================= tablet ================= */
@media (min-width: 720px) {
  :root { --gutter: 32px; --nav-h: 72px; }
  .section { padding: 100px 0; }
  .hero { padding: 72px 0 16px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0; padding: 28px 24px; }
  .stat:nth-child(2n) { border-right: 1px solid var(--line); }
  .stat:last-child { border-right: 0; }
  .cards.c2, .cards.c3 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 30px 28px; }
  .regions { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .monitor canvas { height: 290px; }
  .monitor-stats { grid-template-columns: repeat(4, 1fr); }
  .monitor-stats div, .monitor-stats div:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 0; }
  .monitor-stats div:last-child { border-right: 0; }
  .form-2 { grid-template-columns: 1fr 1fr; }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .cta { padding: 64px 56px; }
  .cta-code { display: block; }
  .panel { padding: 32px 30px; }
  .login .panel { padding: 38px 34px; }
  .split-head { grid-template-columns: 1fr auto; }
  .foot-bottom { grid-template-columns: 1fr auto; align-items: start; }
}

/* ================= desktop ================= */
@media (min-width: 1080px) {
  :root { --gutter: 40px; }
  .nav-links { display: flex; align-items: center; gap: 4px; }
  .nav-links a { font-size: 14px; color: var(--muted); padding: 8px 13px; border-radius: 999px; transition: color .2s, background .2s; position: relative; }
  .nav-links a:hover { color: var(--white); }
  .nav-links a.active { color: var(--white); background: rgba(255,255,255,.06); }
  .nav-login { display: inline-flex; }
  .menu-btn, .menu { display: none; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 56px; }
  .hero h1 { font-size: clamp(52px, 5.2vw, 74px); }
  .cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .pipe-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
  .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
  .legal-grid { grid-template-columns: 220px 1fr; gap: 64px; }
  .toc { display: block; position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font: 12px/1.5 var(--mono); }
  .toc h4 { font: 500 11px/1 var(--mono); letter-spacing: .14em; color: var(--dim); text-transform: uppercase; margin-bottom: 14px; }
  .toc a { display: block; color: var(--muted); padding: 5px 0 5px 12px; border-left: 1px solid var(--line); }
  .toc a:hover { color: var(--white); border-color: var(--muted); }
  .foot-grid { grid-template-columns: 1fr 1.4fr; }
  .page-hero { padding: 88px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* extras */
.spec { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 9px; border-top: 1px solid var(--line); padding-top: 18px; }
.spec li { font: 12.5px/1.4 var(--mono); color: var(--text); display: flex; gap: 10px; }
.spec li::before { content: "→"; color: var(--dim); }
.card .fine { font: 11.5px/1.5 var(--mono); color: var(--dim); margin-top: 16px; }
.card .fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.netmap .lat { fill: var(--muted); font: 500 10px var(--mono); }
.dot[data-standby] { background: #e6c35c; box-shadow: 0 0 0 3px rgba(230,195,92,.15); animation: none; }
@media (max-width: 719px) {
  .netmap { padding: 4px; }
  .netmap .node text { font-size: 20px; }
  .netmap .node .sub { font-size: 12px; }
  .netmap .lat { font-size: 15px; }
  .netmap .core text { font-size: 14px; }
}
.faq-wrap .faq-group { max-width: 880px; }
