:root {
  --bg: #13161B;
  --surface: #1E232B;
  --surface-alt: #272E38;
  --stroke: #333B46;
  --ink: #F2F4F7;
  --ink-soft: #9AA3AF;
  --ink-faint: #646C78;
  --accent: #35C6A9;
  --positive: #4FCE96;
  --negative: #F08A72;
  --gold: #C9963E;
  --violet: #9A5CB4;
  --blue: #4A7BC0;
  --spine: 232px;
  --pad: clamp(20px, 5vw, 72px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--accent); }

/* ---------- Left spine nav ---------- */
.spine {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--spine);
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  border-right: 1px solid var(--stroke);
  background: linear-gradient(180deg, #171b21, #12151a);
  z-index: 20;
}
.spine__mark { display: flex; align-items: center; gap: 12px; }
.spine__glyph {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: #06120f;
  font-weight: 700; font-size: 20px;
  box-shadow: 0 8px 24px rgba(53, 198, 169, 0.35);
}
.spine__word { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.spine__nav { display: flex; flex-direction: column; gap: 4px; }
.spine__link {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 9px 12px;
  border-radius: 9px;
  transition: color .2s, background .2s;
}
.spine__link:hover { color: var(--ink); background: var(--surface); }
.spine__link.is-active { color: var(--ink); background: var(--surface); }
.spine__foot {
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .02em;
}

/* ---------- Stage ---------- */
.stage {
  margin-left: var(--spine);
  padding: 0 var(--pad);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: 96px 0 72px;
}
.hero__eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.hero__lede {
  margin: 26px 0 34px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn--solid {
  background: var(--accent);
  color: #06120f;
  box-shadow: 0 10px 30px rgba(53, 198, 169, 0.3);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(53,198,169,.42); }
.btn--ghost { border: 1px solid var(--stroke); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); }

/* Hero balance card mock */
.hero__card { position: relative; }
.bcard {
  background: linear-gradient(165deg, #232B36, #1a2028);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.bcard__label { font-size: 14px; color: var(--ink-soft); }
.bcard__big {
  display: block;
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 6px 0 20px;
}
.bcard__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bcard__tile {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.bcard__tile b { font-size: 20px; color: var(--ink); font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot--pos { background: var(--positive); }
.dot--neg { background: var(--negative); }

.mini {
  list-style: none;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 6px 16px;
}
.mini li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--stroke);
}
.mini li:last-child { border-bottom: none; }
.mini b { margin-left: auto; font-family: "JetBrains Mono", monospace; font-weight: 600; }
.pos { color: var(--positive); }
.av {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #0d0f13;
}
.av--a { background: var(--gold); }
.av--b { background: var(--blue); }
.av--c { background: var(--violet); color: #fff; }

/* ---------- Section heads ---------- */
.head { margin: 0 0 40px; max-width: 30ch; }
.head--left { text-align: left; }
.head--right { text-align: right; margin-left: auto; }
.head__kick {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.head__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 10px;
  line-height: 1.1;
}

/* ---------- Ledger stripe list ---------- */
.ledger { padding: 60px 0; border-top: 1px solid var(--stroke); }
.stripes { list-style: none; }
.stripe {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 26px 8px;
  border-bottom: 1px solid var(--stroke);
  transition: background .2s;
}
.stripe:hover { background: var(--surface); }
.stripe__idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px; font-weight: 600;
  color: var(--accent);
}
.stripe__body h3 { font-size: 20px; font-weight: 600; margin-bottom: 5px; }
.stripe__body p { color: var(--ink-soft); font-size: 15px; max-width: 60ch; }
.stripe__tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--surface-alt);
  border: 1px solid var(--stroke);
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- Screens: paired phones ---------- */
.screens { padding: 72px 0; border-top: 1px solid var(--stroke); }
.pair {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(-40px, -3vw, 0px);
  padding-top: 20px;
}
.phone {
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0c0e12;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.phone img { display: block; width: 100%; height: auto; }
.phone--front { width: clamp(210px, 24vw, 290px); z-index: 3; }
.phone--back { width: clamp(180px, 20vw, 244px); opacity: .92; }
.phone--back:first-child { transform: translateX(28px) rotate(-4deg); z-index: 1; }
.phone--right { transform: translateX(-28px) rotate(4deg); z-index: 2; }

/* ---------- Legal panels ---------- */
.legal {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  padding: 72px 0;
  border-top: 1px solid var(--stroke);
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 22px;
  padding: 34px;
}
.panel__title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.panel p { color: var(--ink-soft); font-size: 15px; margin-bottom: 14px; }
.panel__list { list-style: none; margin: 8px 0 16px; }
.panel__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--ink-soft);
  font-size: 15px;
}
.panel__list li::before {
  content: "";
  position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.panel__meta { font-size: 13px; color: var(--ink-faint); }
.mailto {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: var(--accent);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 18px;
  margin: 4px 0 16px;
  transition: background .2s;
}
.mailto:hover { background: var(--surface-alt); }

/* ---------- Footer ---------- */
.foot {
  display: flex; align-items: center; gap: 12px;
  padding: 34px 0 120px;
  color: var(--ink-faint);
  font-size: 14px;
  border-top: 1px solid var(--stroke);
}
.foot a:hover { color: var(--ink); }
.foot__dot { color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero__card { order: -1; }
  .legal { grid-template-columns: 1fr; }
  .head--right { text-align: left; margin-left: 0; }
}

@media (max-width: 760px) {
  :root { --spine: 0px; }
  .stage { margin-left: 0; padding-bottom: 90px; }
  .spine {
    top: auto; right: 0;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 10px 12px;
    border-right: none;
    border-top: 1px solid var(--stroke);
    background: rgba(19,22,27,.92);
    backdrop-filter: blur(12px);
    justify-content: space-around;
  }
  .spine__mark, .spine__foot { display: none; }
  .spine__nav { flex-direction: row; gap: 2px; }
  .spine__link { padding: 8px 10px; font-size: 13px; }
  .pair { flex-wrap: wrap; gap: 16px; }
  .phone--back:first-child, .phone--right { transform: none; }
  .phone--front { width: 60%; }
  .phone--back { width: 44%; }
  .stripe { grid-template-columns: 40px 1fr; }
  .stripe__tag { display: none; }
}
