@import url("./tokens.css");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.af {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
a, button, summary, select, label.tog, [role="button"], .tab, .rail-b, input[type="checkbox"], input[type="range"] { cursor: pointer; }
h1, h2, h3, h4, p, ul { margin: 0; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(108, 147, 255, 0.35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(108, 147, 255, 0.25); border-radius: 99px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ambience layers */
.af-bg { position: fixed; inset: 0; z-index: -10; background: radial-gradient(circle at 50% 38%, #14203d 0, #0a1020 46%, #04060c 100%); }
.af-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 0, transparent 72%); mask-image: radial-gradient(ellipse at 50% 20%, #000 0, transparent 72%); }
#af-amb { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -9; pointer-events: none; display: block; }

/* layout */
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; position: relative; }
.sec { padding: 76px 0; position: relative; }
.sec-tight { padding: 40px 0; }
.page-top { padding-top: 132px; }
.g2, .g3, .g4, .gs { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gs { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.gs-r { grid-template-columns: 0.9fr 1.1fr; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt1 { margin-top: 10px; } .mt2 { margin-top: 20px; } .mt3 { margin-top: 32px; } .mt4 { margin-top: 48px; }
.center { text-align: center; }
.muted { color: var(--dim); }
.faint { color: var(--faint); }
.mono { font-family: var(--mono); }
.hl { color: var(--bright); }

/* type */
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(108, 147, 255, .95); }
.h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 7vw, 84px); line-height: .98; letter-spacing: -.045em; }
.h2 { font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 4.6vw, 58px); line-height: 1; letter-spacing: -.03em; }
.h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.h1 em, .h2 em { font-style: normal; background: linear-gradient(180deg, #b9cbff, #5f8bff 60%, #2f56e8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: var(--dim); max-width: 46ch; }
.disp { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }
.num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head .h2 { margin-top: 16px; }
.sec-head .lead { margin-top: 18px; }

/* glass */
.card { position: relative; background: var(--glass); border: 1px solid var(--brd); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 18px 50px rgba(0,0,0,.42); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow: hidden; }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); pointer-events: none; }
.card.hl-card { border-color: rgba(108, 147, 255, .55); background: linear-gradient(180deg, rgba(40, 62, 140, .38), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 24px 60px rgba(47,105,255,.25); }
.pad { padding: 24px; }
.pad-s { padding: 16px 18px; }
.lift { transition: transform .35s var(--ease), border-color .3s; }
.lift:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.26); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 999px; padding: 13px 22px; font-size: 14px; font-weight: 600; border: 1px solid var(--brd); background: var(--glass); color: var(--ink); transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s; white-space: nowrap; }
.btn:hover { background: var(--glass-2); transform: translateY(-1px); }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.btn-primary:hover { background: linear-gradient(135deg, #6c88ff, #1635d8); box-shadow: 0 16px 40px rgba(47,105,255,.5); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arr { display: inline-block; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.orb { width: 32px; height: 32px; border-radius: 999px; display: inline-grid; place-items: center; color: #fff; background: radial-gradient(circle at 50% 30%, #5175ff 0, #0e2ac5 55%, #020b40 100%); flex: none; }
.orb svg { width: 15px; height: 15px; }
.pill-btn { display: inline-flex; align-items: center; gap: 12px; padding: 5px 5px 5px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-weight: 600; font-size: 14px; transition: background .25s; }
.pill-btn:hover { background: rgba(255,255,255,.12); }
.pill-btn:hover .orb { transform: scale(1.06) rotate(-20deg); }
.pill-btn .orb { transition: transform .3s var(--ease); }

/* chips */
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(108,147,255,.4); background: rgba(108,147,255,.12); color: #cddaff; border-radius: 999px; padding: 4px 11px; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--brd); color: var(--dim); white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgba(70,227,168,.35); background: rgba(70,227,168,.09); }
.chip.bad { color: var(--bad); border-color: rgba(255,111,134,.35); background: rgba(255,111,134,.09); }
.chip.warn { color: var(--warn); border-color: rgba(255,196,107,.35); background: rgba(255,196,107,.09); }
.chip.blue { color: var(--soft); border-color: rgba(108,147,255,.45); background: rgba(108,147,255,.12); }
.dot { width: 8px; height: 8px; border-radius: 99px; background: radial-gradient(circle at 35% 30%, #7a98ff, #0e2ac5); box-shadow: 0 0 10px rgba(47,105,255,.7); display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px rgba(70,227,168,.7); }
.live { animation: pulse 2s ease-in-out infinite; }
.up { color: var(--ok); } .dn { color: var(--bad); }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; padding: 14px 0; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(4, 6, 12, .72); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border-bottom-color: var(--brd-soft); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .18em; white-space: nowrap; }
.brand .orb { width: 30px; height: 30px; }
.brand b { font-weight: 700; color: var(--bright); }
.links { display: flex; gap: 6px; font-size: 14px; font-weight: 500; }
.links a { padding: 8px 12px; border-radius: 999px; color: var(--dim); transition: color .2s, background .2s; }
.links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.links a.on { color: #fff; background: rgba(108,147,255,.16); }
.nav-act { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 99px; border: 1px solid var(--brd); background: var(--glass); place-items: center; }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: #fff; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: #fff; }
.menu-btn i::before { top: -5px; } .menu-btn i::after { top: 5px; }

/* forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; font-size: 12.5px; color: var(--dim); font-weight: 600; }
.field input, .field select, .field textarea, .search { width: 100%; border-radius: 14px; border: 1px solid var(--brd); background: rgba(4, 6, 12, .6); color: var(--ink); padding: 13px 15px; font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder, .search::placeholder { color: var(--faint); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible, .search:focus-visible { outline: none; border-color: var(--bright); box-shadow: 0 0 0 3px rgba(108,147,255,.22); }
.field select option { background: #0b1222; }
.field textarea { min-height: 120px; resize: vertical; }
.field .err { color: var(--bad); font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.search { border-radius: 999px; padding: 14px 20px; }
.note { font-size: 13px; color: var(--ok); min-height: 20px; }
.note.err { color: var(--bad); }
input[type="range"] { accent-color: var(--bright); width: 100%; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--dim); }
.check input { width: 17px; height: 17px; accent-color: var(--accent-2); }

/* tabs */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--brd); background: rgba(255,255,255,.04); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; padding: 9px 16px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--dim); transition: background .25s, color .25s; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab.on { background: var(--ink); color: #05070d; }
.tab-panel[hidden] { display: none; }

/* size rail */
.rail { display: flex; gap: 10px; flex-wrap: wrap; }
.rail-b { text-align: left; min-width: 118px; padding: 14px 18px; border-radius: 18px; border: 1px solid var(--brd); background: rgba(255,255,255,.04); transition: transform .25s var(--ease), border-color .25s, background .25s; }
.rail-b:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.28); }
.rail-b strong { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.rail-b span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--faint); }
.rail-b.on { border-color: var(--bright); background: rgba(108,147,255,.16); box-shadow: inset 0 0 0 1px rgba(108,147,255,.45), 0 10px 30px rgba(47,105,255,.2); }
.rail-b.on strong { color: #fff; }

/* tables */
.tbl-w { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--brd-soft); }
.tbl th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255,255,255,.025); }
.tbl td.num, .tbl th.r { text-align: right; }

/* meters */
.meter { height: 9px; border-radius: 99px; background: rgba(255,255,255,.09); overflow: hidden; position: relative; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2f56e8, #8fb0ff); transition: width 1s var(--ease); }
.meter.warn > i { background: linear-gradient(90deg, #d68b1f, var(--warn)); }
.meter.bad > i { background: linear-gradient(90deg, #c93a55, var(--bad)); }
.ring { --p: 50; --c: var(--bright); width: 112px; height: 112px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(255,255,255,.09) 0); display: grid; place-items: center; position: relative; flex: none; }
.ring::before { content: ""; width: 84px; height: 84px; border-radius: 50%; background: #0a1020; }
.ring b { position: absolute; font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.ring small { position: absolute; bottom: 24px; font-size: 9px; color: var(--faint); font-family: var(--mono); letter-spacing: .08em; display: none; }

/* toasts */
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; padding: 14px 20px; border-radius: 16px; background: rgba(12, 20, 42, .94); border: 1px solid rgba(108,147,255,.5); box-shadow: 0 20px 50px rgba(0,0,0,.6); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); font-size: 14px; transform: translateY(20px); opacity: 0; transition: .4s var(--ease); pointer-events: none; max-width: 360px; }
.toast.show { transform: none; opacity: 1; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(30px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ticker + marquee */
.ticker { border-block: 1px solid var(--brd-soft); background: rgba(255,255,255,.025); overflow: hidden; position: relative; }
.ticker-track { display: inline-flex; white-space: nowrap; animation: scroll 60s linear infinite; padding: 11px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; gap: 10px; align-items: baseline; padding: 0 26px; font-family: var(--mono); font-size: 12px; border-right: 1px solid var(--brd-soft); }
.tk b { color: var(--ink); font-weight: 600; letter-spacing: .06em; }
.tk span { color: var(--dim); font-variant-numeric: tabular-nums; }
.tk i { font-style: normal; font-size: 11px; }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--rot, 0deg)); } }
@keyframes drift { to { transform: translate(40px, -30px) scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* footer */
.foot { position: relative; margin-top: 60px; background: var(--panel); border-top: 1px solid rgba(255,255,255,.08); border-radius: 3rem 3rem 0 0; overflow: hidden; }
.foot .glow { position: absolute; border-radius: 99px; filter: blur(44px); pointer-events: none; }
.foot .g-a { width: 420px; height: 420px; top: -140px; right: -120px; background: radial-gradient(circle, rgba(47,105,255,.42), transparent 65%); }
.foot .g-b { width: 480px; height: 480px; bottom: -180px; left: -140px; background: radial-gradient(circle, rgba(81,117,255,.28), transparent 65%); }
.marq { border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; padding: 18px 0; }
.marq-track { display: inline-flex; align-items: center; white-space: nowrap; animation: scroll 32s linear infinite; }
.marq-track .w { padding: 0 30px; font-weight: 500; font-size: clamp(26px, 5vw, 56px); letter-spacing: -.02em; color: rgba(255,255,255,.88); }
.marq-track .d { width: 10px; height: 10px; border-radius: 99px; background: var(--accent-2); flex: none; }
.foot-body { position: relative; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 2fr; gap: 48px; }
.foot-head { font-size: clamp(32px, 4.4vw, 56px); font-weight: 500; line-height: .98; letter-spacing: -.03em; margin: 22px 0 28px; }
.mail-pill { display: inline-flex; align-items: center; gap: 14px; padding: 7px 7px 7px 26px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); font-weight: 500; transition: background .25s; }
.mail-pill:hover { background: rgba(255,255,255,.1); }
.mail-pill .orb { width: 40px; height: 40px; }
.f-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.f-cols h4 { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.f-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.f-cols a { color: rgba(255,255,255,.74); font-size: 14.5px; transition: color .2s; }
.f-cols a:hover { color: #fff; }
.foot-bot { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: rgba(255,255,255,.42); }
.foot-bot a:hover { color: #fff; }
.disclaimer { font-family: var(--mono); font-size: 10.5px; line-height: 1.7; color: rgba(255,255,255,.32); max-width: 70ch; margin-top: 22px; }

/* faq */
.faq-i { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-i:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; text-align: left; font-size: 17px; font-weight: 500; transition: color .2s; }
.faq-q:hover { color: #fff; }
.faq-s { position: relative; width: 14px; height: 14px; flex: none; opacity: .7; }
.faq-s::before, .faq-s::after { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.faq-s::after { transform: rotate(90deg); }
.faq-i.open .faq-s::after { transform: rotate(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height .5s var(--ease); }
.faq-a p { padding: 0 44px 22px 4px; color: var(--dim); font-size: 15.5px; line-height: 1.65; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}

/* responsive */
@media (max-width: 1040px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gs, .gs-r { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
  .menu-btn { display: grid; }
  .links { position: fixed; top: 70px; left: 14px; right: 14px; flex-direction: column; padding: 12px; border-radius: 22px; background: rgba(8, 12, 22, .96); border: 1px solid var(--brd); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); display: none; max-height: calc(100vh - 100px); overflow-y: auto; }
  .links.open { display: flex; }
  .links a { padding: 13px 16px; font-size: 16px; }
  .nav-act .btn-ghost-nav { display: none; }
}
@media (max-width: 680px) {
  .g2, .g3, .g4, .form-row { grid-template-columns: 1fr; }
  .f-cols { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: 52px 0; }
  .page-top { padding-top: 108px; }
  .foot { border-radius: 2rem 2rem 0 0; }
  .pad { padding: 18px; }
  .brand { font-size: 13px; letter-spacing: .12em; }
  .tabs { max-width: 100%; }
}
