/* KEPT — dark, glow hero, Instrument Sans headlines with a faded second line, mono labels, orange-red actions. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/fonts/instrument-sans.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/geist-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/geist-mono-500.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/caveat-500.woff2) format("woff2"); }
:root {
  --paper: #0a0a0a; --paper-2: #161616; --card: #1f1f1f; --s2: #2a2a2a; --s3: #343434;
  --ink: #ffffff; --ink-2: rgba(255,255,255,.62); --ink-3: rgba(255,255,255,.4); --rule: rgba(255,255,255,.09); --rule-2: rgba(255,255,255,.16);
  --accent: #f63a22; --accent-2: #ff5a3d;
  --orange: #ff8a00; --cobalt: #3d6bff; --green: #43fd91; --magenta: #ff3ea5; --yellow: #ffd23f; --cyan: #22d3ee;
  --up: #43fd91; --down: #ff5a4a; --amber: #ffbf47;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 30px 60px -40px rgba(0,0,0,.9);
  --shadow-lift: 0 0 0 1px rgba(255,255,255,.08), 0 40px 90px -30px rgba(0,0,0,.95);
  --display: "Instrument Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 16px; --r-sm: 12px; --r-lg: 24px; --max: 1280px; --gut: 32px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
img { display: block; }
::selection { background: var(--accent); color: #fff; }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-3); } .muted { color: var(--ink-2); } .up { color: var(--up); } .down { color: var(--down); } .white { color: #fff; }
.fade { opacity: .4; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: 76px; background: rgba(10,10,10,.94); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { max-width: 1800px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -1px; }
.brand img { width: 32px; height: 32px; }
.brand img.wm { width: auto; height: 34px; }
.links { display: flex; gap: 2px; background: rgba(255,255,255,.05); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; }
.links a { font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; color: var(--ink-2); white-space: nowrap; transition: color .15s, background .15s; }
.links a:hover { color: #fff; }
.links a.on { background: #fff; color: #0a0a0a; }
.nav-r { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--rule); display: grid; place-items: center; }
.icon-btn svg { width: 15px; height: 15px; }

/* buttons */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1; white-space: nowrap; border: 1px solid transparent; transition: transform .12s, background .15s, opacity .15s, border-color .15s; }
.b:active { transform: translateY(1px); }
.b-ink { background: var(--accent); color: #fff; border-color: rgba(0,0,0,.5); }
.b-ink:hover { background: var(--accent-2); }
.b-line { background: rgba(255,255,255,.08); border-color: var(--rule); color: #fff; }
.b-line:hover { background: rgba(255,255,255,.13); }
.b-white { background: #fff; color: #0a0a0a; }
.b.sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.b.xs { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.b.full { width: 100%; height: 56px; font-size: 16px; border-radius: 14px; }
.b[disabled] { opacity: .4; cursor: not-allowed; }

/* type */
.display { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; line-height: 1.02; }
h1.display { font-size: clamp(44px, 6.2vw, 80px); letter-spacing: -.04em; line-height: 1; }
h2.display { font-size: clamp(34px, 3.6vw, 50px); line-height: 1.06; }
.lede { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.lede b, .lede strong, .muted b { color: #fff; font-weight: 500; }
.label { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.hint { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.tagline { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: #fff; padding: 5px 12px; border-radius: 48px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 1px 2px rgba(255,255,255,.06); background: rgba(255,255,255,.03); }
.tagline i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hand { font-family: "Caveat", cursive; font-size: 22px; line-height: 1.1; color: rgba(255,255,255,.85); }

/* sections */
.sec { padding: 120px 0 0; }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-head .tagline { margin-bottom: 18px; }
.sec-head p { margin: 18px auto 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 600px; }
.sec-head.left { margin-left: 0; text-align: left; } .sec-head.left p { margin-left: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.panelbg { border-radius: 8px; background: linear-gradient(rgba(0,0,0,0), rgba(255,255,255,.045)); padding: 112px 0; margin: 0 8px; }

/* cards & chips */
.card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 24px; }
.card.lift { box-shadow: var(--shadow-lift); }
.well { background: var(--s2); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 7px 12px 7px 10px; border-radius: 999px; background: var(--s2); border: 1px solid var(--rule); color: var(--ink-2); transition: transform .15s, background .15s, color .15s; user-select: none; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink-3)); box-shadow: 0 0 10px var(--c, transparent); }
.tag.on { background: #fff; color: #0a0a0a; }
.tag:hover { transform: translateY(-1px); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font-family: var(--mono); font-size: 12px; background: var(--s2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--rule); }
.pill.ink { background: #fff; color: #0a0a0a; }
.pill.warn { background: rgba(255,191,71,.14); color: var(--amber); border-color: rgba(255,191,71,.2); }
.pill.stock, .pill.gain { background: rgba(67,253,145,.14); color: var(--up); border-color: rgba(67,253,145,.18); }
.seg { display: inline-flex; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button { height: 28px; padding: 0 11px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: var(--s3); color: #fff; box-shadow: 0 0 0 1px var(--rule-2); }
.rows { font-family: var(--mono); font-size: 13px; }
.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); }
.rows > div > span:first-child { color: var(--ink-3); }
.rows > div > span:last-child { text-align: right; color: var(--ink-2); }
.tok-ic { position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: -.02em; background: hsl(var(--h, 0) 42% 24%); color: hsl(var(--h, 0) 90% 84%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.tok-ic b { font-weight: 600; font-size: inherit; }
.tok-ic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--s3); border-radius: 50%; }
/* company logos are light glyphs on transparent: inset on a dark disc */
img.fit { object-fit: contain !important; padding: 17%; background: #232323 !important; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); border-radius: 50%; }
.stat .k { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.stat .v { font-family: var(--display); font-size: 32px; font-weight: 500; letter-spacing: -.03em; margin-top: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats .stat { padding: 18px 20px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); }

/* footer */
.foot { padding: 90px 0 40px; margin-top: 120px; text-align: center; }
.foot .brand { justify-content: center; }
.foot .tag-l { color: var(--ink-2); margin-top: 14px; }
.foot .flinks { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: var(--ink-2); }
.foot .flinks a:hover { color: #fff; }
.foot .legal { margin: 40px auto 0; font-size: 12px; line-height: 1.65; color: var(--ink-3); max-width: 860px; }

/* modal + toast */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.72); z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; overscroll-behavior: contain; }
.scrim.open { display: flex; animation: fade .16s ease-out; }
.scrim.open .modal { animation: pop .2s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes sheet { from { transform: translateY(100%); } }
.modal { width: min(460px, 100%); max-height: min(720px, 92vh); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lift); overflow: hidden; }
.modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 12px; }
.modal-h h3 { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.toasts { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 99; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 36px)); }
.toast { background: #fff; color: #0a0a0a; border-radius: 14px; padding: 12px 14px; font-size: 14px; box-shadow: var(--shadow-lift); animation: up .2s ease-out; }
.toast a { text-decoration: underline; }
.toast.err { background: var(--accent); color: #fff; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

/* glow (our own take on the ring-of-light hero) */
.glow { position: absolute; inset: 0; border-radius: 8px; overflow: hidden; pointer-events: none; contain: strict; }
.glow .ring { position: absolute; left: 50%; top: 54.2%; width: 125%; aspect-ratio: 1; background: url(/ring.webp) center / 100% 100% no-repeat; will-change: transform;
  transform: translate(-50%, -50%) rotate(-8deg) scale(1, var(--sy, .45)) rotate(0deg); animation: ring 36s linear infinite; }
@keyframes ring { to { transform: translate(-50%, -50%) rotate(-8deg) scale(1, var(--sy, .45)) rotate(360deg); } }
.glow::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 48%, #0a0a0a 55%, transparent 100%); }
.paused .glow .ring, .paused .mq .rail, .paused .spin { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .glow .ring, .mq .rail, .spin { animation: none !important; } }

@media (max-width: 1100px) {
  .links { display: none; }
  .split { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 700px) {
  :root { --gut: 16px; }
  .nav { height: 64px; }
  .brand { font-size: 21px; } .brand img { width: 28px; height: 28px; } .brand img.wm { width: auto; height: 28px; }
  .sec { padding-top: 84px; }
  .panelbg { padding: 84px 0; margin: 0 4px; }
  .sec-head p, .lede { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat .v { font-size: 24px; }
  .b { height: 46px; padding: 0 16px; }
}
.mnav { display: none; }
@media (max-width: 1100px) {
  .mnav { display: flex; position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60; background: rgba(28,28,28,.97); border: 1px solid var(--rule-2); border-radius: 16px; padding: 5px; gap: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 20px 50px -10px rgba(0,0,0,.9); }
  .mnav a { color: var(--ink-2); font-size: 14px; font-weight: 600; padding: 10px 15px; border-radius: 11px; transition: background .15s, color .15s; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .mnav a.on { background: #fff; color: #0a0a0a; }
}
