/* nocta · trade in the dark.
   colours are set as CSS variables here and overwritten from CONFIG.colors in main.js */
:root {
  --bg: #000000;
  --s1: #0B0A08;
  --s2: #13110E;
  --line: #26221C;
  --gold-1: #F6D69D;
  --gold-2: #EDC98F;
  --gold-3: #CD995F;
  --text: #F5F2EC;
  --muted: #8A8378;
  --gold: linear-gradient(135deg, var(--gold-1), var(--gold-2) 45%, var(--gold-3));
  --sans: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --r: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; text-transform: lowercase; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.gold { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
em.gold { font-style: normal; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-3); color: #000; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--text); color: #000; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* ── buttons, tags, pills ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; text-transform: lowercase; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--gold { background: var(--gold); color: #0B0A08; border: 0; }
.btn--gold:disabled { cursor: not-allowed; opacity: .92; }
.btn--ghost:hover { border-color: var(--gold-3); }
.tag { font: 500 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 7px; border-radius: 999px; background: rgba(0,0,0,.18); }
.pill { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); }
.pill--muted { color: var(--muted); }
.pill--gold { color: var(--gold-1); border-color: rgba(205,153,95,.5); }
.pill--example { color: var(--gold-1); border: 1px dashed rgba(205,153,95,.7); }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 3px rgba(237,201,143,.12); }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(0,0,0,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__in { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.03em; }
.brand img { width: 28px; height: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav__links a { position: relative; transition: color .3s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__burger { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav__burger span:first-child { top: 16px; } .nav__burger span:last-child { top: 24px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav__mobile { display: grid; gap: 4px; padding: 8px 24px 20px; background: rgba(0,0,0,.92); border-bottom: 1px solid var(--line); }
.nav__mobile a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.nav__mobile[hidden] { display: none; }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero__sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__fade { position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero__in { padding: 140px 0 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); text-transform: lowercase; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; background: rgba(11,10,8,.6); }
.hero__title { margin-top: 26px; font-size: clamp(60px, 11vw, 168px); letter-spacing: -0.055em; line-height: .9; max-width: 9.5ch; }
/* masked words (hero, section headings, outro) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.w--gold .wi { background: linear-gradient(110deg, var(--gold-3) 0%, var(--gold-2) 30%, var(--gold-1) 45%, #FFF3DA 50%, var(--gold-1) 55%, var(--gold-2) 70%, var(--gold-3) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 7s var(--ease) infinite; }
@keyframes sheen { 0%, 35% { background-position: 100% 0; } 75%, 100% { background-position: 0% 0; } }
.hero__sub { margin-top: 28px; font-size: clamp(18px, 1.8vw, 22px); max-width: 32ch; color: var(--text); }
.hero__small { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(90px, 12vw, 150px) 0; position: relative; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - 48px); height: 1px; transform: translateX(-50%) scaleX(var(--draw, 0)); transform-origin: left; background: linear-gradient(90deg, transparent, var(--gold-3), transparent); opacity: .5; }
.kicker { font-size: 12px; color: var(--gold-2); text-transform: lowercase; margin-bottom: 18px; }
.section h2 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.05em; max-width: 19ch; }
.lead { margin-top: 20px; max-width: 54ch; color: var(--muted); font-size: 18px; }

.grid3 { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; transition: border-color .4s, transform .4s var(--ease); }
.card:hover { border-color: rgba(205,153,95,.45); transform: translateY(-3px); }
.card h3 { font-size: 22px; margin-top: 22px; }
.card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--s2); }
.card__icon svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card--who h3 { margin-top: 0; }

/* chart vs desk */
.versus { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.panel--desk { border-color: rgba(205,153,95,.35); background: linear-gradient(180deg, rgba(205,153,95,.05), transparent 40%), var(--s1); }
.panel__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.spark { margin: 22px 0 18px; width: 100%; height: auto; }
.spark__grid { stroke: var(--line); stroke-width: 1; }
.spark__line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark__line--dump { stroke: var(--muted); }
.spark__line--flat { stroke: var(--gold-2); }
.spark__eye { fill: var(--bg); stroke: var(--muted); stroke-width: 1.5; }
.spark__seal circle { fill: var(--bg); stroke: var(--gold-2); stroke-width: 1.5; }
.spark__seal path { fill: none; stroke: var(--gold-1); stroke-width: 1.5; stroke-linejoin: round; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 16px; }
.list li { display: flex; gap: 12px; align-items: baseline; }
.x { color: var(--muted); font-size: 12px; width: 18px; }
.n { color: var(--gold-1); min-width: 18px; font-size: 15px; }

/* how it works */
.how { margin-top: 56px; display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.steps { list-style: none; padding: 0 0 0 0; margin: 0; display: grid; gap: 14px; position: relative; }
.steps::before { content: ""; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 1px; background: var(--gold); transform: scaleY(var(--draw, 0)); transform-origin: top; opacity: .6; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 22px 22px 0; }
.step__n { position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; border: 1px solid var(--line); background: var(--s1); color: var(--gold-1); font-size: 15px; }
.step h3 { font-size: 26px; margin-top: 4px; }
.step p { margin-top: 8px; color: var(--muted); max-width: 46ch; }
.deal { position: sticky; top: 110px; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.deal__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.deal__rows { margin: 18px 0 0; display: grid; font-size: 14px; }
.deal__rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.deal__rows dt { color: var(--muted); }
.deal__rows dd { margin: 0; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-1); }
.deal__note { margin-top: 14px; font-size: 11.5px; color: var(--muted); }

/* privacy */
.features { margin-top: 56px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature { grid-column: span 2; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
.feature__k { font-size: 11.5px; color: var(--gold-2); text-transform: lowercase; }
.feature h3 { margin-top: 16px; font-size: 21px; }
.feature p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.honest { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; padding: 20px 24px; border: 1px solid var(--line); border-left: 2px solid var(--gold-3); border-radius: 12px; background: var(--s1); color: var(--text); }
.honest .mono { font-size: 12px; text-transform: lowercase; }

/* proof */
.proof { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.proof__items { margin-top: 36px; display: grid; gap: 14px; }
.proof__item { padding: 22px 0; border-top: 1px solid var(--line); }
.proof__item h3 { font-size: 22px; }
.proof__item p { margin-top: 8px; color: var(--muted); max-width: 52ch; }
.tree { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.tree__lines path { fill: none; stroke: var(--gold-3); stroke-width: 1.2; opacity: .7; }
.tree__nodes rect { fill: var(--s2); stroke: var(--line); }
.tree__nodes rect.root { stroke: var(--gold-2); }
.tree__nodes rect.you { stroke: var(--gold-1); fill: rgba(246,214,157,.12); }
.tree__nodes text { fill: var(--muted); font: 12px var(--mono); text-anchor: middle; }

/* token */
.addr { margin-top: 40px; display: grid; gap: 12px; max-width: 760px; }
.addr__box { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 14px; padding: 14px 14px 14px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--s1); }
.addr__k { color: var(--gold-2); font-size: 12px; text-transform: lowercase; }
.addr__v { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--s2); font-size: 12.5px; cursor: pointer; transition: border-color .3s; }
.copy:hover { border-color: var(--gold-3); }
.note { margin-top: 16px; font-size: 12px; color: var(--muted); }

/* roadmap */
.road { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--gold); transform: scaleX(var(--draw, 0)); transform-origin: left; opacity: .6; }
.road__item { padding-top: 34px; position: relative; }
.road__item::before { content: ""; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--bg); border: 1px solid var(--gold-2); }
.road__item:first-child::before { background: var(--gold-2); }
.road__n { font-size: 12px; color: var(--gold-2); }
.road__item h3 { margin-top: 10px; font-size: 24px; }
.road__item p { margin-top: 8px; color: var(--muted); font-size: 15.5px; max-width: 26ch; }

/* faq */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; position: relative; text-transform: lowercase; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1.5px solid var(--gold-2); border-bottom: 1.5px solid var(--gold-2); transform: translateY(-70%) rotate(45deg); transition: transform .35s var(--ease); }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 0 24px; color: var(--muted); max-width: 60ch; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; }
.footer__in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__slogan { color: var(--muted); }
.footer__x { margin-left: auto; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; transition: border-color .3s, color .3s; }
.footer__x:hover { color: var(--text); border-color: var(--gold-3); }
.footer__legal { margin-top: 36px; display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }

/* nav x */
.nav__x { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); transition: color .3s, border-color .3s; }
.nav__x svg { width: 15px; height: 15px; fill: currentColor; }
.nav__x:hover { color: var(--text); border-color: var(--gold-3); }

/* spotlight on cards: a soft gold light and a brighter edge where the cursor is */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .5s; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(237,201,143,.08), transparent 45%); }
.spot::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), rgba(246,214,157,.65), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.spot:hover::after, .spot:hover::before { opacity: 1; }

/* marquee band */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--s1); font-size: 13px; color: var(--muted); text-transform: lowercase; }
.marquee__track { display: flex; width: max-content; }
.marquee__row { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee__row i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-3); display: inline-block; }

/* outro: giant wordmark with a small eclipse closing as you arrive */
.outro { padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); overflow: hidden; border-top: 1px solid var(--line); }
.outro__in { display: grid; justify-items: start; gap: 34px; }
.outro__word { margin: 0; font-weight: 600; font-size: clamp(56px, 13vw, 210px); letter-spacing: -0.06em; line-height: .88; }
.outro__eclipse { --cover: 0; position: relative; width: clamp(70px, 8vw, 110px); aspect-ratio: 1; }
.outro__eclipse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px rgba(246,214,157,calc(.25 * (1 - var(--cover)))); }
.outro__eclipse::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--bg);
  transform: translate(calc((1 - var(--cover)) * 120% - var(--cover) * 0%), calc((1 - var(--cover)) * -40%)); box-shadow: 0 0 0 1px rgba(237,201,143,calc(.6 * var(--cover))); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 999px; background: var(--s2); border: 1px solid var(--line); font-size: 13px; transition: opacity .3s, transform .3s var(--ease); z-index: 60; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* before JS runs, nothing is hidden; main.js adds .js and animates */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js.no-anim .reveal { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav__links, .nav__in > .btn { display: none; }
  .nav__burger { display: block; }
  .grid3 { grid-template-columns: 1fr; }
  .versus, .how, .proof, .faq { grid-template-columns: 1fr; }
  .deal { position: static; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 1; }
  .feature:nth-child(5) { grid-column: span 2; }
  .road { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .road::before { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__in { padding: 120px 0 90px; }
  .features { grid-template-columns: 1fr; }
  .feature:nth-child(5) { grid-column: span 1; }
  .road { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px 1fr; gap: 14px; }
  .step__n { width: 50px; height: 50px; font-size: 13px; }
  .steps::before { left: 25px; }
  .addr__box { grid-template-columns: 1fr auto; }
  .addr__k { grid-column: 1 / -1; }
  .footer__x { margin-left: 0; }
}
@media (max-width: 980px) { .nav__x { margin-left: auto; } .nav__burger { margin-left: 8px; } }
@media (prefers-reduced-motion: reduce) {
  .w--gold .wi { animation: none; }
  .outro__eclipse { --cover: .85; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .section + .section::before, .steps::before, .road::before { transform: none; }
}
