/* Design tokens + chrome, measured on the Orbit template (1440×900). */
:root {
  --bg: #000;
  --s1: #080808;
  --s2: #121212;
  --s3: #1c1c1c;
  --line: rgba(255, 255, 255, .1);
  --line2: rgba(255, 255, 255, .15);
  --fg: #fff;
  --mut: #8f8f8f;
  --acc: #1cc2ff;
  --acc-ink: #000;
  --yes: #3ddc97;
  --no: #ff5c75;
  --warn: #ffb547;
  --r: 10px;
  --wrap: 1200px;
  --pad: 48px;
  --font: "Inter", "Inter Placeholder", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 14px; line-height: 1.6; letter-spacing: -0.02em; font-feature-settings: "blwf", "cv03", "cv04", "cv09", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
p, h1, h2, h3, h4 { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
::selection { background: var(--acc); color: #000; }

/* type */
.h1 { font-size: 56px; font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.h2 { font-size: 48px; font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.h3 { font-size: 28px; font-weight: 600; line-height: 1.2; letter-spacing: .01em; }
.acc { color: var(--acc); }
.mut { color: var(--mut); }
.sub { font-size: 16px; line-height: 1.6; color: var(--mut); }
.label { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--mut); }
.mono { font-family: var(--mono); letter-spacing: 0; }
.ico { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* badge (pill with spinning dot) */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 11px; background: var(--s3); font-size: 12px; line-height: 1.3; letter-spacing: -0.02em; }
.badge-dot { position: relative; width: 12px; height: 12px; border-radius: 50px; background: var(--acc); overflow: hidden; animation: dotpulse 2.4s linear infinite; }
@keyframes dotpulse { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: 78px; }
.hdr::before { content: ""; position: absolute; inset: 0; background: var(--bg); border-bottom: 1px solid var(--line2); opacity: 0; transition: opacity .3s; }
.hdr.solid::before { opacity: 1; }
.hdr-row { position: relative; height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; min-width: 52px; }
.logo .mark { width: 26px; height: 26px; flex: none; }
.ftr-name { display: inline-flex; align-items: center; gap: 8px; }
.ftr-name .mark { width: 24px; height: 24px; }
.hdr-nav { position: absolute; left: 50%; top: 24px; transform: translateX(-50%); display: flex; gap: 48px; }
.nl { position: relative; display: block; padding: 4px; font-size: 14px; font-weight: 600; line-height: 22px; overflow: hidden; height: 30px; }
.nl > span { display: block; transition: transform .45s cubic-bezier(.44, 0, .56, 1); }
.nl > span::after { content: attr(data-t); position: absolute; left: 0; top: 100%; padding-top: 8px; }
.nl:hover > span { transform: translateY(calc(-100% - 8px)); }
.nl.on { color: var(--acc); }
.hdr-end { display: flex; align-items: center; gap: 10px; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 16px; border-radius: 27px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; line-height: 22px; white-space: nowrap; overflow: hidden; }
.pill-ico { position: relative; width: 22px; height: 22px; border-radius: 12px; background: rgba(255, 255, 255, .15); overflow: hidden; color: #fff; }
.pill-ico svg { position: absolute; top: 7px; left: 9px; transition: transform .35s cubic-bezier(.44, 0, .56, 1); }
.pill-ico svg + svg { left: -13px; }
.pill:hover .pill-ico svg { transform: translateX(22px); }
.pill[data-state="on"] { border-color: rgba(28, 194, 255, .35); }
.hdr-ico { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line); color: #fff; font-size: 14px; font-weight: 600; }
.hdr-ico:hover { border-color: var(--line2); }
.hdr-badge { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: #fff; transition: transform .3s; }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 21px; }
.burger.open i:first-child { transform: translateY(3px) rotate(45deg); } .burger.open i:last-child { transform: translateY(-3px) rotate(-45deg); }
.mnav { position: absolute; top: 78px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line2); padding: 8px 24px 20px; display: flex; flex-direction: column; }
.mnav a { padding: 12px 0; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
html[data-layout="site"] .only-app, html[data-layout="app"] .only-site, html[data-layout="bare"] .only-app { display: none !important; }

/* custom cursor (target brackets, difference blend) */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; mix-blend-mode: difference; transform: translate(-100px, -100px); }
.cursor-dot { position: absolute; left: 0; top: 0; width: 4px; height: 4px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring { position: absolute; left: 0; top: 0; width: 36px; height: 36px; transform: translate(-50%, -50%); }
.cursor-ring b { position: absolute; width: 10px; height: 10px; border: 0 solid #fff; transition: transform .2s; }
.cursor-ring b:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.cursor-ring b:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.cursor-ring b:nth-child(3) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.cursor-ring b:nth-child(4) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* forms */
.ask { display: flex; width: 480px; max-width: 100%; height: 49px; }
.ask-in { flex: 1; display: flex; align-items: center; padding: 0 16px; background: var(--bg); border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; min-width: 0; }
.ask-in input { width: 100%; min-width: 0; background: none; border: 0; outline: 0; font-size: 14px; line-height: 22px; color: #fff; text-overflow: ellipsis; }
.ask-in input::placeholder { color: var(--mut); }
.ask-in:focus-within { border-color: rgba(28, 194, 255, .5); }
.ask-btn { flex: none; width: auto; padding: 8px 24px; white-space: nowrap; background: var(--acc); color: #000; border-radius: 0 8px 8px 0; font-size: 14px; font-weight: 600; line-height: 22px; transition: filter .2s; }
.ask-btn:hover { filter: brightness(1.1); }
.ca-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 5px 0 14px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 13px; line-height: 1; max-width: 100%; }
.ca-chip[hidden] { display: none; }
.ca-l { font-weight: 700; color: #fff; margin-right: 4px; }
.ca-v { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; background: rgba(28, 194, 255, .12); color: var(--acc); font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; transition: background .2s; }
.ca-v:hover { background: rgba(28, 194, 255, .2); }
.ca-v.ok { background: var(--acc); color: #000; font-family: inherit; font-weight: 600; }
.ca-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--mut); transition: color .2s, background .2s; }
.ca-x:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.hero-ca { margin-top: 14px; }
.ftr-ca { margin-top: 14px; }
.ask-hint { width: 480px; max-width: 100%; margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--mut); }
.ask-hint button { color: var(--acc); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 600; line-height: 22px; white-space: nowrap; border: 1px solid transparent; transition: filter .2s, border-color .2s, background .2s, opacity .2s; }
.btn-acc { background: var(--acc); color: #000; }
.btn-acc:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--bg); border-color: var(--line); color: #fff; }
.btn-ghost:hover { border-color: var(--line2); background: var(--s1); }
.btn-yes { background: var(--yes); color: #001b10; }
.btn-no { background: var(--no); color: #2a0008; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 7px; }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--mut); }
.inp { width: 100%; height: 44px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 14px; color: #fff; transition: border-color .2s; }
textarea.inp { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inp:focus { border-color: rgba(28, 194, 255, .5); }
.inp::placeholder { color: #5c5c5c; }

/* cards */
.card { position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.card-s { background: var(--s1); }

/* reveal on view (template "appear": opacity 0 + y 40 → in, 1 s) */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-appear] { opacity: 0; transform: translateY(50px); }
.appeared [data-appear] { animation: appear 1s cubic-bezier(.22, 1, .36, 1) both; animation-delay: calc(var(--d, 0) * 1s); }
@keyframes appear { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }

/* footer */
.ftr { position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: 32px var(--pad) 0; background: var(--bg); }
.ftr-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding-bottom: 32px; }
.ftr-brand { width: 236px; }
.ftr-name { font-size: 21px; font-weight: 600; line-height: 1.6; }
.ftr-sub { margin-top: 10px; color: var(--mut); font-size: 14px; line-height: 1.6; }
.ftr-cols { display: flex; gap: 82px; margin-top: 1px; }
.ftr-col { display: flex; flex-direction: column; gap: 4px; }
.ftr-h { font-size: 16px; font-weight: 600; line-height: 1.6; margin-bottom: 4px; }
.ftr-col a { font-size: 14px; font-weight: 600; color: var(--mut); line-height: 22px; transition: color .2s; }
.ftr-col a:hover { color: #fff; }
.ftr-soc { display: flex; gap: 16px; margin-top: 32px; }
.soc { width: 45px; height: 45px; border-radius: 23px; background: var(--s1); display: grid; place-items: center; color: #fff; transition: background .2s; }
.soc:hover { background: var(--s3); }
.ftr-copy { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--mut); font-size: 14px; line-height: 22px; }
.ftr-risk { font-size: 12px; }

/* toasts */
.toasts { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--s1); border: 1px solid var(--line2); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.5; animation: toastin .35s cubic-bezier(.22, 1, .36, 1); }
.toast.err { border-color: rgba(255, 92, 117, .45); }
.toast.ok { border-color: rgba(61, 220, 151, .45); }
.toast a { color: var(--acc); }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } }

/* modal sheet */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px); animation: fadein .2s; }
.modal-box { width: 100%; max-width: 420px; max-height: calc(100vh - 40px); overflow: auto; background: var(--s1); border: 1px solid var(--line2); border-radius: 14px; padding: 24px; }
.modal-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 18px; font-weight: 600; }
.modal-x { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
@keyframes fadein { from { opacity: 0; } }

@media (max-width: 1100px) {
  .hdr-nav { gap: 28px; }
}
@media (max-width: 980px) {
  .hdr-nav { display: none; }
  .burger { display: block; }
  .h1 { font-size: 44px; }
  .h2 { font-size: 40px; }
}
@media (max-width: 640px) {
  :root { --pad: 16px; }
  .hdr-row { padding: 0 16px; }
  .h1 { font-size: 36px; }
  .h2 { font-size: 32px; }
  .hdr-ico { width: 34px; height: 34px; }
  .pill { padding: 6px 6px 6px 12px; gap: 10px; }
  .ftr-row { flex-direction: column; }
  .ftr-cols { gap: 40px; flex-wrap: wrap; }
  .ftr-soc { margin-top: 0; }
  .ftr-copy { flex-direction: column; gap: 0; }
}

@media (hover: hover) and (pointer: fine) {
  html.no-cursor, html.no-cursor * { cursor: none !important; }
}
/* rolling digits */
.odo { display: inline-flex; overflow: hidden; line-height: 1; height: 1em; vertical-align: baseline; }
.odo .dg { display: inline-block; height: 1em; overflow: hidden; }
.odo .rl { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.odo.fast .rl { transition-duration: .22s; }
.odo .rl > span, .odo .sy { display: block; height: 1em; line-height: 1; }
@media (max-width: 980px) { .cursor { display: none; } html.no-cursor, html.no-cursor * { cursor: auto !important; } }
