:root {
  --paper: #f4f2ed;
  --panel: #fbfaf7;
  --ink: #11110f;
  --muted: #6b6962;
  --faint: #9a968b;
  --line: rgba(17, 17, 15, .12);
  --soft-line: rgba(17, 17, 15, .065);
  --accent: #0c6b4f;
  --accent-2: #c7ff5d;
  --loss: #9b2d24;
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }

body {
  background:
    linear-gradient(90deg, transparent 0 calc(50% - .5px), rgba(0,0,0,.035) calc(50% - .5px) calc(50% + .5px), transparent calc(50% + .5px)),
    var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

section[id],
.waitlist[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(20px, 4vw, 56px);
  border-bottom: 1px solid var(--soft-line);
  background: rgba(244, 242, 237, .82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: relative;
  border: 0;
  background: var(--ink);
  clip-path: polygon(50% 0, 94% 25%, 94% 75%, 50% 100%, 6% 75%, 6% 25%);
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px 8px;
  background: var(--paper);
  transform: skewX(-18deg);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a,
.text-link {
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover {
  color: var(--ink);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid #0b0b0a;
  border-radius: 7px;
  background: #0b0b0a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  cursor: pointer;
}

.btn.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.block {
  width: 100%;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.grid-shell {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  padding: clamp(54px, 8vw, 112px) clamp(24px, 6vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.grid-shell::before,
.grid-shell::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(17,17,15,.045);
  border-radius: 999px;
  pointer-events: none;
}

.grid-shell::before {
  width: 66vw;
  height: 38vw;
  right: 4vw;
  top: 12vh;
}

.grid-shell::after {
  width: 44vw;
  height: 27vw;
  right: 13vw;
  top: 25vh;
}

.corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
}

.corner::before,
.corner::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.corner::before { width: 2px; height: 18px; }
.corner::after { width: 18px; height: 2px; }
.corner.tl { left: 28px; top: 28px; }
.corner.tr { right: 28px; top: 28px; rotate: 90deg; }

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

h1,
h2 {
  margin: 0;
  font-family: "DM Serif Display", "Noto Sans SC", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(66px, 7.4vw, 118px);
  line-height: .9;
}

h1 span {
  display: block;
  white-space: nowrap;
}

h2 {
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: .95;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-lead {
  max-width: 620px;
  margin: 30px 0 0;
  color: #45433f;
  font-size: clamp(18px, 1.6vw, 23px);
  line-height: 1.55;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-proof span,
.audit-pill,
.strategy-cards span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-card {
  position: relative;
  z-index: 1;
  min-height: 620px;
  padding: clamp(22px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,.18)),
    var(--panel);
  box-shadow: 0 34px 80px rgba(33, 31, 24, .11);
}

.card-head,
.return-row,
.metric-strip,
.table-head,
.strategy,
.trade-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.card-head p,
.metric-strip span,
.proof-bar span,
.table-head span {
  margin: 0;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.card-head h2 {
  margin-top: 8px;
  font-size: clamp(28px, 3.2vw, 46px);
}

.return-row {
  margin: 46px 0 12px;
  align-items: end;
}

.return-row strong {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(50px, 6vw, 86px);
  letter-spacing: -.05em;
}

.return-row span {
  max-width: 140px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.equity-chart {
  width: 100%;
  height: auto;
  overflow: visible;
  margin-top: 12px;
}

.equity-chart .grid-lines line {
  stroke: rgba(17,17,15,.08);
  stroke-dasharray: 4 8;
}

.equity-chart .area {
  fill: url(#chartFill);
}

.equity-chart .line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 4;
}

.equity-chart .drawdown {
  fill: none;
  stroke: var(--loss);
  stroke-width: 3;
  stroke-dasharray: 9 8;
  opacity: .7;
}

.equity-chart circle {
  fill: var(--accent-2);
  stroke: var(--ink);
  stroke-width: 4;
}

.metric-strip {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric-strip div {
  flex: 1;
  padding: 18px 4px;
}

.metric-strip div + div {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}

.metric-strip b {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.data-note {
  margin: 18px 0 0;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.45;
}

.proof-bar {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr .8fr .7fr 1.1fr;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.proof-bar div {
  min-height: 118px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.proof-bar div + div {
  border-left: 1px solid var(--line);
}

.proof-bar b {
  display: block;
  margin-top: 10px;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.15;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 140px) clamp(20px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 860px;
  margin-bottom: 44px;
}

.section-head.narrow {
  max-width: 740px;
}

.section-head p:not(.eyebrow),
.record-copy p,
.waitlist p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.three-grid,
.strategy-cards,
.safety-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.three-grid article,
.strategy-cards article,
.safety-grid article,
.feature-grid article,
.node,
.record-panel,
.waitlist,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251,250,247,.72);
}

.three-grid article,
.feature-grid article,
.safety-grid article {
  padding: 28px;
}

.three-grid span,
.feature-grid span,
.node span {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .13em;
}

.three-grid p,
.feature-grid p,
.safety-grid p,
.node p,
.strategy-cards p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.node {
  position: relative;
  min-height: 260px;
  padding: 24px;
}

.node + .node::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 13px;
  border-top: 1px solid var(--ink);
}

.node.llm { background: #f7f6f1; }
.node.rule { background: #edf2e8; }
.node.human { background: #f5efe8; }

.architecture-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .06em;
}

.record {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: 34px;
  align-items: start;
}

.record-panel {
  overflow: hidden;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.strategy-list {
  border-right: 1px solid var(--line);
}

.strategy {
  width: 100%;
  min-height: 112px;
  padding: 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.strategy.active {
  background: #11110f;
  color: #fff;
}

.strategy span,
.strategy b,
.strategy small {
  display: block;
}

.strategy b {
  margin-top: 12px;
  font-size: 26px;
}

.strategy small {
  color: inherit;
  opacity: .62;
}

.trade-table {
  min-height: 336px;
  padding: 24px;
}

.table-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.table-head a,
.trade-row a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.trade-row {
  min-height: 74px;
  border-bottom: 1px solid var(--soft-line);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.trade-row em {
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.trade-row.loss em {
  color: var(--loss);
}

.strategy-cards article {
  padding: 24px;
}

.strategy-cards article > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 14px;
}

.strategy-cards dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.strategy-cards dt {
  color: var(--faint);
  font-size: 12px;
}

.strategy-cards dd {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.safety-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.safety-grid b {
  font-size: 20px;
}

.waitlist {
  max-width: var(--max);
  margin: clamp(70px, 9vw, 120px) auto;
  padding: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 48px;
  align-items: center;
}

.waitlist h2 {
  max-width: 760px;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form label {
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .12em;
}

.signup-form div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.signup-form input {
  min-width: 0;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.signup-form small {
  color: var(--faint);
}

.signup-form small[data-state="success"] {
  color: var(--accent);
  font-weight: 700;
}

.signup-form small[data-state="error"] {
  color: var(--loss);
  font-weight: 700;
}

.signup-form button:disabled {
  cursor: wait;
  opacity: .62;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 22px 24px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 18px;
}

.site-footer {
  align-items: start;
  padding: 42px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer nav a {
  text-decoration: none;
}

.risk {
  max-width: 560px;
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .grid-shell,
  .record,
  .waitlist {
    grid-template-columns: 1fr;
  }

  .live-card {
    min-height: auto;
  }

  .proof-bar,
  .three-grid,
  .flow,
  .strategy-cards,
  .feature-grid,
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }

  .record-panel {
    grid-template-columns: 1fr;
  }

  .strategy-list {
    border-right: 0;
  }

  .node + .node::before {
    display: none;
  }

  .site-footer {
    display: grid;
  }
}

@media (max-width: 640px) {
  .header-actions .text-link {
    display: none;
  }

  .grid-shell {
    padding: 52px 18px;
  }

  h1 {
    font-size: clamp(58px, 17vw, 88px);
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .proof-bar,
  .three-grid,
  .flow,
  .strategy-cards,
  .feature-grid,
  .safety-grid,
  .signup-form div {
    grid-template-columns: 1fr;
  }

  .proof-bar div + div {
    border-left: 0;
  }

  .metric-strip {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 4px;
  }

  .trade-row,
  .site-footer {
    display: grid;
    justify-content: stretch;
  }
}
