/* Gencoin homepage — gencoinglobal.com */

/* Fonts are self-hosted (all SIL Open Font Licence) so they load from this site with no extra
   connections to Google. Each file is a variable font covering every weight the site uses. */
@font-face { font-family: "Jost"; font-style: normal; font-weight: 300 600; font-display: swap; src: url("assets/fonts/jost.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("assets/fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Archivo Black"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/archivo-black.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); }

:root {
  --navy-950: #02060f;
  --navy-900: #040914;
  --navy-850: #070e1d;
  --navy-800: #0a1526;
  --navy-700: #0f1e35;
  --gold-300: #f2dd9a;
  --gold-400: #e2c46b;
  --gold-500: #d4af37;
  --blue-400: #5ba7db;
  --green: #4fc89a;
  --red: #e2777a;
  --ink: #eef2f8;
  --muted: #97a3b6;
  --dim: #6b778a;
  --line: rgba(212, 175, 55, 0.18);
  --line-soft: rgba(219, 225, 234, 0.09);
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  /* the content width grows with the screen: 1200px on a laptop, up to 1560px on large monitors */
  --shell: clamp(1200px, 84vw, 1560px);
  --gut: max(clamp(16px, 5vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  --neon-blue: 91, 167, 219;
  --neon-gold: 212, 175, 55;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--navy-900); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gut); }
.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 500; margin-bottom: 18px;
}
.h2 { font-family: var(--serif); font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.005em; }
.lede { color: var(--muted); font-size: clamp(16px, 1.4vw, 18.5px); max-width: 620px; margin-top: 18px; }
.gold { color: var(--gold-300); font-style: italic; }
section { padding-block: clamp(40px, 5vw, 68px); position: relative; }
.inline-link { color: var(--gold-300); border-bottom: 1px solid rgba(var(--neon-gold), .45); transition: border-color .2s, color .2s; }
.inline-link:hover { color: #fff; border-color: var(--gold-300); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 28px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; border: 1px solid var(--gold-500); transition: .25s ease;
}
.btn-solid { background: var(--gold-500); color: var(--navy-900); }
.btn-solid:hover { background: var(--gold-300); border-color: var(--gold-300); }
.btn-ghost { color: var(--gold-300); }
.btn-ghost:hover { background: rgba(212,175,55,.08); }
.btn svg { width: 34px; height: 8px; stroke: currentColor; fill: none; stroke-width: 1.3; }

/* wordmark */
.wordmark {
  font-family: "Archivo Black", var(--sans); text-transform: uppercase; letter-spacing: .08em;
  color: #eaf4fb; text-shadow: 0 0 16px var(--blue-400), 0 0 34px rgba(91,167,219,.55);
  font-size: clamp(20px, 2.2vw, 24px);
}

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 9, 20, .82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav { display: flex; align-items: center; gap: 30px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.nav a:not(.btn) { color: #c9d1dd; transition: color .2s; }
.nav a:not(.btn):hover { color: var(--gold-300); }
.nav .btn { padding: 10px 20px; font-size: 12px; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 5px 0; }

/* hero */
/* the hero fills the first screen; content is anchored from the top (not centred) so it doesn't jump when web fonts load */
.hero {
  padding-block: clamp(48px, 9vh, 120px) clamp(40px, 6vw, 80px); overflow: hidden;
  min-height: calc(100vh - 76px); min-height: calc(100svh - 76px);
}
.hero {
  background:
    radial-gradient(40% 50% at 78% 30%, rgba(91,167,219,.16), transparent 70%),
    radial-gradient(35% 45% at 15% 0%, rgba(212,175,55,.10), transparent 70%);
}
/* top-aligned columns: nothing moves when the web fonts swap in */
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 6.2vw, 80px); line-height: 1.0; letter-spacing: -.01em;
}
.hero .lede { margin-top: 26px; font-size: clamp(17px, 1.5vw, 19.5px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-size: 14px; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 9px; }
.hero-proof span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 10px var(--gold-500); }

/* dashboard mock (shared) */
.dash {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  border: 1px solid var(--line-soft); border-radius: 14px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(212,175,55,.06), 0 0 80px -30px rgba(91,167,219,.35);
  overflow: hidden; font-size: 13px;
}
/* hero dashboard: a faint neon-blue ring around the window */
.hero .dash {
  border-color: rgba(var(--neon-blue), .55);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(var(--neon-blue), .18), 0 0 14px rgba(var(--neon-blue), .30), 0 0 80px -30px rgba(var(--neon-blue), .45);
  animation: neon-blue 4s ease-in-out infinite;
}
@keyframes neon-blue {
  50% { box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(var(--neon-blue), .28), 0 0 22px rgba(var(--neon-blue), .42), 0 0 90px -30px rgba(var(--neon-blue), .55); }
}
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; box-shadow: 0 0 0 0 rgba(79,200,154,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 6px rgba(79,200,154,0); } 100% { box-shadow: 0 0 0 0 rgba(79,200,154,0); } }
.dash-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: rgba(2,6,15,.5); }
.dash-bar i { width: 9px; height: 9px; border-radius: 50%; background: #253248; }
.dash-bar .url { margin-left: 12px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.dash-body { padding: 18px; }
.dash-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.dash-head b { font-weight: 500; font-size: 14px; }
.dash-head small { color: var(--dim); font-size: 11.5px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: rgba(2,6,15,.45); border: 1px solid var(--line-soft); border-radius: 8px; padding: 11px 12px; transition: border-color .2s, transform .2s; }
.kpi:hover { border-color: rgba(var(--neon-blue), .45); transform: translateY(-2px); }
.kpi strong.bump { animation: bump .6s ease; }
@keyframes bump { 30% { color: var(--green); } }
.kpi small { display: block; color: var(--dim); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.kpi strong { display: block; font-weight: 500; font-size: 18px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 11px; color: var(--green); }
.chart { margin-top: 12px; background: rgba(2,6,15,.45); border: 1px solid var(--line-soft); border-radius: 8px; padding: 12px 12px 6px; }
.chart-legend { display: flex; gap: 6px; font-size: 11px; color: var(--muted); margin: -3px 0 4px -7px; }
.series-toggle { background: none; border: 0; padding: 3px 7px; border-radius: 5px; font: inherit; color: inherit; cursor: pointer; transition: opacity .2s, background .2s; }
.series-toggle:hover { background: rgba(219,225,234,.06); }
.series-toggle::before { content: ""; display: inline-block; width: 10px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--c); }
.series-toggle[aria-pressed="false"] { opacity: .4; text-decoration: line-through; }
.chart-plot { position: relative; cursor: crosshair; touch-action: pan-y; }
.chart svg { width: 100%; height: auto; display: block; aspect-ratio: 400 / 120; }
.chart g[data-line] { transition: opacity .3s; }
.chart g[data-line].off { opacity: 0; }
.chart .cross { stroke: rgba(219,225,234,.35); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s; }
.chart-plot.hovering .cross { opacity: 1; }
.chart-tip {
  position: absolute; top: 4px; transform: translateX(-50%); pointer-events: none; white-space: nowrap;
  background: rgba(2,6,15,.92); border: 1px solid rgba(var(--neon-blue), .4); border-radius: 6px;
  padding: 5px 8px; font-size: 11px; line-height: 1.45; font-variant-numeric: tabular-nums;
}
.chart-tip b { font-weight: 500; }
.tx tr.new td { animation: tx-in .9s ease; }
@keyframes tx-in { from { background: rgba(var(--neon-blue), .16); opacity: 0; } 30% { opacity: 1; } }
.tx { margin-top: 12px; width: 100%; border-collapse: collapse; font-size: 12px; }
.tx td { padding: 8px 6px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
.tx td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 10.5px; }
.tag.ok { background: rgba(79,200,154,.12); color: var(--green); }
.tag.crypto { background: rgba(212,175,55,.12); color: var(--gold-300); }
.tag.rev { background: rgba(226,119,122,.12); color: var(--red); }
.mono { font-family: var(--mono); color: var(--muted); font-size: 11px; }
.illus { margin-top: 12px; font-size: 11.5px; color: var(--dim); text-align: right; }

/* industries */
.industries { background: var(--navy-850); border-block: 1px solid var(--line-soft); }
/* a squared-off, bordered block that holds a section's content */
.panel {
  border: 1px solid var(--line); border-radius: 0; padding: clamp(24px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(10,21,38,.85), rgba(4,9,20,.85));
  box-shadow: inset 0 1px 0 rgba(var(--neon-gold), .12);
}
.eyebrow-lg { font-size: clamp(14px, 1.3vw, 17px); letter-spacing: .28em; margin-bottom: 22px; }
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 36px; }
.split-head .lede { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 12px 20px; border: 1px solid var(--line); border-radius: 99px;
  font-size: 15px; color: #d5dce7; background: rgba(4,9,20,.6);
}
.chip.more { border-style: dashed; color: var(--gold-300); }
/* "One rule" — collapsible, with a soft gold glow until opened */
.rule-note {
  margin-top: 32px; max-width: 820px; color: var(--muted); font-size: 15.5px;
  border: 1px solid rgba(var(--neon-gold), .55); border-left-width: 2px; background: rgba(212,175,55,.05);
  box-shadow: 0 0 12px rgba(var(--neon-gold), .22); transition: box-shadow .3s, border-color .3s;
  animation: neon-gold 2.8s ease-in-out infinite;
}
.rule-note[open] { animation: none; box-shadow: 0 0 8px rgba(var(--neon-gold), .14); }
@keyframes neon-gold { 50% { box-shadow: 0 0 22px rgba(var(--neon-gold), .42), inset 0 0 12px rgba(var(--neon-gold), .08); border-color: rgba(var(--neon-gold), .85); } }
.rule-note summary {
  display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; list-style: none;
}
.rule-note summary::-webkit-details-marker { display: none; }
.rule-note summary:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.rule-note strong { color: var(--ink); font-weight: 500; flex: 1; }
.rule-hint { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-400); }
.rule-note[open] .rule-hint { visibility: hidden; }
.rule-ic { position: relative; flex: none; width: 26px; height: 26px; border: 1px solid var(--gold-500); border-radius: 50%; transition: transform .3s; }
.rule-ic::before, .rule-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--gold-300); transform: translate(-50%, -50%); }
.rule-ic::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .3s; }
.rule-note[open] .rule-ic { transform: rotate(180deg); }
.rule-note[open] .rule-ic::after { opacity: 0; }
.rule-note p { padding: 0 22px 20px; animation: rule-open .35s ease; }
@keyframes rule-open { from { opacity: 0; transform: translateY(-6px); } }

/* rails: fiat + crypto */
.rails { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.rail {
  position: relative; padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); border-radius: 4px; overflow: hidden;
}
.rail::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--c), transparent); }
/* scroll-in loading effect (classes added by home.js, so the tiles show normally without JS) */
.rail.is-pending > *, .rail.is-loading > * { opacity: 0; transform: translateY(10px); }
.rail.is-pending::after, .rail.is-loading::after { transform: scaleX(0); transform-origin: left; }
.rail.is-loading::after { animation: rail-bar .8s cubic-bezier(.6,.1,.3,1) forwards; }
.rail.is-loading::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(219,225,234,.06) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: rail-shimmer .8s linear forwards;
}
.rail.is-loaded > * { animation: rail-in .55s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rail-bar { to { transform: scaleX(1); } }
@keyframes rail-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@keyframes rail-in { from { opacity: 0; transform: translateY(10px); } }
.rail h3 { font-family: var(--serif); font-size: 30px; margin: 8px 0 12px; }
.rail > p { color: var(--muted); font-size: 16px; }
.rail .label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--c); font-weight: 500; }
.rail ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.rail li { display: flex; gap: 12px; font-size: 15.5px; color: #d5dce7; }
.rail li::before { content: ""; flex: none; width: 14px; height: 8px; margin-top: 7px; border-left: 1.5px solid var(--c); border-bottom: 1.5px solid var(--c); transform: rotate(-45deg); }
.coins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.coins span { font-family: var(--mono); font-size: 12px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--gold-300); }
.settle { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.settle div {
  padding: 20px 24px; border: 1px solid var(--line); border-radius: 4px;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-850));
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.9); transform: translateY(-4px); transition: transform .25s, border-color .25s;
}
.settle div:hover { transform: translateY(-7px); border-color: rgba(var(--neon-gold), .45); }
.settle b { display: block; font-weight: 500; font-size: 16px; margin-bottom: 4px; }
.settle p { color: var(--muted); font-size: 14.5px; }

/* dashboard section */
.dash-section { background: radial-gradient(60% 60% at 50% 0%, rgba(91,167,219,.08), transparent 70%), var(--navy-950); }
.dash-grid > *, .hero-grid > *, .gc-card > * { min-width: 0; }
.dash-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.dash-panel .features { margin-top: 28px; }
.features { display: grid; gap: 22px; margin-top: 36px; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 16px; }
.feature .ic { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--gold-400); }
.feature .ic svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.feature b { display: block; font-weight: 500; font-size: 16.5px; }
.feature p { color: var(--muted); font-size: 15px; }
.code {
  background: var(--navy-950); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,.9), 0 0 60px -36px rgba(var(--neon-blue), .5);
}
.code-tabs { display: flex; align-items: center; gap: 2px; padding: 8px 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.code-tabs button {
  background: none; border: 0; border-bottom: 1.5px solid transparent; padding: 7px 12px; margin-bottom: -1px;
  font: inherit; color: var(--dim); cursor: pointer; transition: color .2s, border-color .2s;
}
.code-tabs button:hover { color: var(--muted); }
.code-tabs button.on { color: var(--gold-300); border-bottom-color: var(--gold-500); }
.code-run { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 0 6px 6px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.code-run i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.code-run.busy i { background: var(--gold-500); animation: blink .8s steps(2) infinite; }
.code-run.done i { background: var(--green); }
.code pre {
  margin: 0; padding: 16px 18px 6px; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #b9c4d4;
  overflow-x: auto; height: calc(12 * 1.7em + 22px);
}
.code .caret { display: inline-block; width: .55em; height: 1.15em; margin-left: 1px; vertical-align: -.2em; background: var(--gold-400); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.code-out {
  border-top: 1px dashed var(--line-soft); padding: 10px 18px 12px; min-height: calc(3 * 1.6em + 22px);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: var(--muted);
}
.code-out div { animation: rule-open .3s ease both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code-out .ok { color: var(--green); }
.code-out .dim { color: var(--dim); }
.k { color: #c792ea; } .s { color: var(--gold-300); } .c { color: #55627a; } .f { color: var(--blue-400); }
.plugins { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--dim); font-size: 13.5px; }
.plugins b { color: var(--muted); font-weight: 500; }

/* genconstruct */
.gc-card {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(212,175,55,.10), transparent 60%),
    linear-gradient(180deg, var(--navy-800), var(--navy-850));
}
.gc-word { font-family: "Archivo Black", var(--sans); letter-spacing: .08em; text-transform: uppercase; font-size: 15px; color: var(--gold-300); text-shadow: 0 0 18px rgba(212,175,55,.45); }
.flow { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; position: relative; padding-bottom: 26px;
}
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 22.5px; top: 46px; bottom: 0; width: 1px; background: linear-gradient(var(--gold-500), rgba(212,175,55,.15)); }
.step .n {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-500); color: var(--gold-300); font-family: var(--serif); font-size: 20px; background: var(--navy-900);
}
.step b { display: block; font-weight: 500; font-size: 17px; padding-top: 2px; }
.step p { color: var(--muted); font-size: 15px; }
.step .who { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
/* GenConstruct steps light up 1 → 4 as they scroll into view (classes added by home.js) */
.step .n { transition: border-color .4s, color .4s, box-shadow .4s, background .4s; }
.step:not(:last-child)::before { transform-origin: top; transition: transform .45s ease; }
.step > div { transition: opacity .45s ease, transform .45s ease; }
.flow.is-pending .step:not(.lit) .n { border-color: rgba(var(--neon-gold), .22); color: var(--dim); }
.flow.is-pending .step:not(.lit) > div { opacity: 0; transform: translateX(-10px); }
.flow.is-pending .step:not(.lit-line)::before { transform: scaleY(0); }
.step.lit .n { animation: step-on .9s ease; }
@keyframes step-on {
  0% { box-shadow: 0 0 0 0 rgba(var(--neon-gold), .7); background: rgba(var(--neon-gold), .25); }
  100% { box-shadow: 0 0 0 14px rgba(var(--neon-gold), 0); background: var(--navy-900); }
}

/* onboarding */
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.how div { padding: 30px 26px 0 0; }
.how div + div { padding-left: 26px; border-left: 1px solid var(--line-soft); }
.how .num { font-family: var(--serif); font-size: 44px; color: var(--gold-500); line-height: 1; }
.how b { display: block; font-weight: 500; font-size: 17px; margin: 14px 0 6px; }
.how p { color: var(--muted); font-size: 15px; }

/* cta */
.cta { text-align: center; background: radial-gradient(50% 70% at 50% 100%, rgba(212,175,55,.12), transparent 70%), var(--navy-850); border-top: 1px solid var(--line); }
.cta .lede { margin-inline: auto; }
.eyebrow-live { color: var(--green); font-size: 13px; }
.cta small { display: block; margin-top: 18px; color: var(--dim); font-size: 13px; }
.cta small a { color: var(--gold-300); }

/* early access application form */
.apply-form {
  max-width: 760px; margin: 40px auto 0; padding: clamp(26px, 4vw, 44px); text-align: left;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
}
.form-title { font-family: var(--serif); font-size: clamp(26px, 3vw, 32px); line-height: 1.15; }
.form-note { color: var(--dim); font-size: 14px; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 28px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 400; }
.field .opt { text-transform: none; letter-spacing: 0; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--navy-950); color: var(--ink);
  border: 1px solid var(--line-soft); border-radius: 0; padding: 14px 16px;
  font: inherit; font-size: 16px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field textarea::placeholder { color: var(--dim); }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-400) 50%), linear-gradient(135deg, var(--gold-400) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field select:invalid { color: var(--dim); }
.field select option { color: var(--ink); background: var(--navy-900); }
.field input[type="date"] { color-scheme: dark; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold-500); }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.err { color: var(--red); font-size: 13.5px; margin-top: 6px; }
.err:empty { display: none; }
.apply-form .btn { margin-top: 30px; border-radius: 0; cursor: pointer; font-family: inherit; }
.apply-form .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { margin-top: 14px; font-size: 14.5px; }
.form-status:empty { display: none; }
.form-status[data-state="bad"] { color: var(--red); }
.apply-form small { text-align: left; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* request-access reply */
.reply {
  max-width: 640px; margin: 36px auto 0; padding: clamp(28px, 4vw, 44px);
  text-align: left; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 0 60px -30px rgba(212,175,55,.35);
  animation: reply-in .5s ease both; outline: none;
}
@keyframes reply-in { from { opacity: 0; transform: translateY(10px); } }
.reply-ic {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--gold-500); color: var(--gold-300); box-shadow: 0 0 24px rgba(212,175,55,.35);
}
.reply-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.reply h3 { font-family: var(--serif); font-size: clamp(30px, 3.6vw, 40px); margin: 20px 0 10px; }
.reply-lede { color: var(--muted); font-size: 16.5px; }
.reply-lede strong { color: var(--ink); font-weight: 500; word-break: break-all; }
.reply-next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.reply-label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-400); font-weight: 500; margin-bottom: 16px; }
.reply ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 16px; }
.reply li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
.reply li::before {
  content: counter(s); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--line); color: var(--gold-300);
  font-family: var(--serif); font-size: 16px;
}
.reply li b { font-weight: 500; font-size: 15.5px; }
.reply li span { color: var(--muted); font-size: 14.5px; }
.reply li em { font-style: normal; color: var(--ink); }
.reply li a, .reply-foot a { color: var(--gold-300); }
.reply-foot { margin-top: 26px; color: var(--dim); font-size: 14px; }
.reply-reset { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.reply-reset:hover { color: var(--gold-300); }

/* footer */
.site-footer { padding: 64px 0 34px; border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); font-size: 15px; margin-top: 14px; max-width: 300px; }
.foot-grid h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-400); font-weight: 500; }
.foot-grid a, .foot-grid span { display: block; color: #c4ccd8; font-size: 15px; margin-bottom: 10px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 13.5px; }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid, .dash-grid, .gc-card, .split-head { grid-template-columns: 1fr; }
  .split-head { gap: 0; }
  .how { grid-template-columns: 1fr 1fr; }
  .how div:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .rails, .settle { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .tx .hide-sm { display: none; }
  .how { grid-template-columns: 1fr; }
  .how div, .how div + div { padding: 26px 0 0; border-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .apply-form .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { padding: 14px 22px; }
  .rule-note summary { padding: 16px 16px; gap: 12px; }
  .rule-note p { padding: 0 16px 18px; }
  .rule-hint { display: none; }
  .code pre { font-size: 11.5px; height: calc(12 * 1.7em + 22px); }
  .code-run-label { display: none; }
}
/* the full menu needs ~1100px; below that it moves under the burger */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }

  /* mobile menu: full-height panel below the header */
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 76px);
    padding: 12px var(--gut) 32px; overflow-y: auto;
    background: var(--navy-900); border-top: 1px solid var(--line-soft);
    text-transform: none; letter-spacing: 0;
    animation: menu-in .25s ease both;
  }
  .nav.open a:not(.btn):not(.nav-phone) {
    font-family: var(--serif); font-size: 30px; color: var(--ink);
    padding: 16px 0; border-bottom: 1px solid var(--line-soft);
  }
  .nav.open .btn { margin-top: 32px; justify-content: center; padding: 16px 22px; font-size: 13px; }
  .nav.open .nav-phone { display: block; margin-top: 22px; text-align: center; color: var(--gold-300); font-size: 15px; letter-spacing: .08em; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
.nav-phone { display: none; }
.burger span { transition: transform .25s ease, opacity .2s ease; }

/* scroll-in animations (classes added by reveal.js; see that file) */
.rv { opacity: 0; }
.rv.rv-in { animation: rv-in .75s cubic-bezier(.2,.7,.2,1) var(--d, 0ms) both; }
@keyframes rv-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }

/* floating "Join the community" Telegram button: stays in the corner as the page scrolls */
.tg-float {
  position: fixed; z-index: 40;
  right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 99px;
  background: rgba(4,9,20,.88); backdrop-filter: blur(10px); color: var(--ink);
  border: 1px solid rgba(var(--neon-blue), .55);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.8), 0 0 16px rgba(var(--neon-blue), .3);
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  animation: tg-float 3.2s ease-in-out infinite;
}
.tg-float:hover, .tg-float:focus-visible {
  transform: translateY(-3px); border-color: rgba(var(--neon-blue), .9); outline: none;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.8), 0 0 26px rgba(var(--neon-blue), .5);
}
.tg-ic { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #229ed9; }
.tg-ic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(34,158,217,.6); animation: tg-ping 2.4s ease-out infinite; }
.tg-ic svg { width: 21px; height: 21px; margin-left: -2px; fill: #fff; }
@keyframes tg-float { 50% { translate: 0 -4px; } }
@keyframes tg-ping { 70%, 100% { box-shadow: 0 0 0 12px rgba(34,158,217,0); } }
@media (max-width: 760px) {
  .tg-float { padding: 6px; }
  .tg-float .tg-label { display: none; }
  .tg-ic { width: 46px; height: 46px; }
  .tg-ic svg { width: 24px; height: 24px; }
}

/* phones in landscape and short screens: don't force the hero to full height */
@media (max-height: 560px), (max-width: 1000px) { .hero { min-height: 0; } }

/* visitors who ask for less motion get the finished state with no looping animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
