/* CryptoTwin landing — dark generated-light. Inter 300/400 + JetBrains Mono 300, radii 0, indigo rationed. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/inter-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/jetbrains-mono-latin-300-normal.woff2") format("woff2"); }

:root {
  --ground: #0A0A0A;
  --ground-2: #0F0F11;
  --panel: #18181B;
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, .74);
  --ink-3: #A1A1AA;
  --muted: #71717A;
  --accent: #6366F1;
  --accent-down: #4338CA;
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .06);
  --max: 1152px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 300; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Mono furniture: labels, eyebrows, chips, captions, footer. */
.mono, .meta-row, .eyebrow, .tile-index, .spec-caption, .spec-readout, .cell b, .foot, .nav-links a {
  font-family: var(--mono); font-weight: 300; font-size: 11px; line-height: 1.4;
  text-transform: uppercase; letter-spacing: .1em;
}

/* ---------- Intro stage (pure CSS so the page never stays covered if scripts fail) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100; background: var(--ground);
  display: grid; place-items: center; padding: 0 var(--gutter);
  animation: intro-out .5s ease 2.05s forwards;
}
.intro-line {
  font-size: clamp(2.2rem, 7vw, 5rem); font-weight: 300; letter-spacing: -.05em; line-height: 1;
  opacity: 0; transform: translateY(14px);
  animation: line-in .7s var(--ease) .22s forwards, line-out .5s var(--ease) 1.5s forwards;
}
@keyframes line-in { to { opacity: 1; transform: translateY(0); } }
@keyframes line-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-18px); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.intro.is-skipped { display: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(10, 10, 10, .55);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .4s ease, background-color .4s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line-2); background: rgba(10, 10, 10, .78); }
.nav-row { height: 64px; display: flex; align-items: center; gap: 28px; }
.wordmark { font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-3); transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px;
  font-family: var(--sans); font-size: 14.5px; font-weight: 400; letter-spacing: -.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: #5558EA; }
.btn-solid:active { background: var(--accent-down); }
.btn-line { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: rgba(255, 255, 255, .42); }
.btn-line:active { background: rgba(255, 255, 255, .04); }
.nav .btn-sm { margin-left: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; display: flex; align-items: flex-end; isolation: isolate; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0) 20%, rgba(10, 10, 10, .55) 58%, rgba(10, 10, 10, .94) 100%),
    radial-gradient(120% 90% at 50% 38%, rgba(10, 10, 10, 0) 40%, rgba(10, 10, 10, .6) 100%);
}
.hero-content { padding-top: 120px; padding-bottom: clamp(40px, 7vh, 80px); }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin-bottom: clamp(28px, 4.5vh, 48px);
}
.headline {
  font-size: clamp(3.4rem, 11.5vw, 10.5rem); line-height: .86; letter-spacing: -.05em; font-weight: 300;
  margin-bottom: clamp(28px, 4vh, 44px); margin-left: -.04em;
}
.headline .w { display: inline-block; white-space: nowrap; }
.headline .ch { display: inline-block; }
.js .headline .ch { opacity: 0; transform: translateY(.32em); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .headline.is-in .ch { opacity: 1; transform: none; }
.hero-copy { max-width: 38ch; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.65; color: var(--ink-2); margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions.centered { justify-content: center; }

/* ---------- Bands ---------- */
.band { border-top: 1px solid var(--line-2); padding: clamp(72px, 11vw, 136px) 0; }
.band:nth-of-type(odd) { background: var(--ground); }
.eyebrow { display: flex; align-items: center; gap: 18px; color: var(--muted); margin-bottom: clamp(32px, 4.5vw, 56px); }
.eyebrow i { flex: 1; height: 1px; background: var(--line); }
.band-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: end; margin-bottom: clamp(40px, 5.5vw, 72px); }
.band-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; letter-spacing: -.045em; max-width: 20ch; text-wrap: balance; }
.lede { font-size: 15px; line-height: 1.7; color: var(--ink-3); max-width: 52ch; justify-self: end; }

/* Explicit-track grids: gaps over a hairline ground read as rules. */
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid4 > * { background: var(--ground); }

.tile { position: relative; padding: 24px 24px 30px; display: flex; flex-direction: column; justify-content: flex-start; }
.tile-canvas { display: block; width: 100%; height: 74px; margin-bottom: 26px; }
.tile-index { position: absolute; top: 18px; right: 20px; color: var(--muted); }
.tile h3, .cell h3 { font-size: 17px; font-weight: 400; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 10px; }
.tile p, .cell p { font-size: 13.5px; line-height: 1.62; color: var(--ink-3); }

.cell { padding: 22px 24px 28px; min-height: 196px; }
.cell b { display: block; color: var(--muted); margin-bottom: 30px; font-weight: 300; }

/* Spectrum field */
.spectrum { position: relative; margin: 0; border: 1px solid var(--line); height: clamp(200px, 32vw, 340px); background: var(--ground-2); }
.spectrum canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spec-caption { position: absolute; left: 18px; bottom: 14px; color: var(--muted); }
.spec-readout { position: absolute; right: 18px; bottom: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }

/* Stats */
.stat { padding: 28px 24px 30px; }
.num { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; letter-spacing: -.045em; margin-bottom: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.num em { font-style: normal; color: var(--accent); }
.stat p { font-size: 12.5px; line-height: 1.6; color: var(--ink-3); max-width: 30ch; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0;
  font-size: clamp(16px, 1.5vw, 19px); font-weight: 300; letter-spacing: -.015em; transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.plus { position: absolute; right: 4px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; }
.plus::before, .plus::after { content: ""; position: absolute; background: currentColor; transition: transform .35s var(--ease); }
.plus::before { left: 0; right: 0; top: 6px; height: 1px; }
.plus::after { top: 0; bottom: 0; left: 6px; width: 1px; }
.faq details[open] .plus::after { transform: scaleY(0); }
.faq details p { padding: 0 0 26px; max-width: 70ch; font-size: 15px; line-height: 1.75; color: var(--ink-3); }

/* Close + footer */
.close { border-top: 1px solid var(--line-2); padding: clamp(96px, 14vw, 180px) 0; text-align: center; }
.close-line { font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1; letter-spacing: -.05em; max-width: 16ch; margin: 0 auto 40px; text-wrap: balance; }
.foot { border-top: 1px solid var(--line-2); color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-top: 26px; padding-bottom: 30px; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { gap: 18px; }
}
@media (max-width: 820px) {
  .band-head { grid-template-columns: 1fr; gap: 20px; }
  .lede { justify-self: start; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
}
@media (max-width: 560px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .cell { min-height: 0; }
  .cell b { margin-bottom: 16px; }
  .meta-row { gap: 6px 20px; }
  .meta-row span:nth-child(4) { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .spectrum { height: 280px; }
  .spec-caption { left: 14px; right: 14px; bottom: 36px; }
  .spec-readout { left: 14px; right: auto; bottom: 12px; }
}

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

@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
  .grid4 > * { border: 1px solid CanvasText; }
}
