/* ============ TOKENS ============ */
:root {
  --bg: #08070c;
  --bg-soft: rgba(255, 255, 255, 0.04);
  --text: #f0eee8;
  --silver: #9a97a3;
  --dim: #5b5866;
  --accent: #6a5cf0;
  --green: #2fdc85;
  --red: #ff5d5d;
  --display: "Anton", "Arial Narrow", sans-serif;
  --font: "Space Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(ellipse 80% 50% at 70% -10%, rgba(106, 92, 240, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 40%, rgba(106, 92, 240, 0.08), transparent 60%),
    linear-gradient(180deg, #0b0a12 0%, #08070c 40%, #0a0812 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  font-size: 13.5px;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font); }
.accent { color: var(--accent); }
.silver { color: var(--silver); }
.dim { color: var(--dim); }
.t-green { color: var(--green); }
.t-red { color: var(--red); }
.t-dim { color: var(--dim); }
.t-accent { color: var(--accent); }

a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8, 7, 12, 0.85);
  backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 24px; height: 24px; }
.brand-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.22em;
}

.nav-links { display: flex; align-items: center; justify-content: center; gap: 30px; }
.nav-links a {
  color: var(--silver);
  font-size: 12px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.x-link { display: inline-flex; align-items: center; color: var(--silver); transition: color 0.2s; }
.x-link:hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text); }

/* ============ TICKER TAPE ============ */
.ticker-tape {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 99;
  height: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.ticker-track {
  display: flex;
  gap: 40px;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  width: max-content;
  animation: ticker-scroll 45s linear infinite;
}

.ticker-item { font-size: 11px; color: var(--silver); }
.ticker-item .up { color: var(--green); }
.ticker-item .down { color: var(--red); }
.ticker-item .sym { color: var(--text); font-weight: 700; margin-right: 8px; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 190px 0 100px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.hero-content { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 32px; }

.hero-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 10vw, 112px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-sub { max-width: 470px; font-size: 13.5px; color: var(--silver); margin-bottom: 40px; }

.hero-actions { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-bottom: 96px; }

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: opacity 0.2s, color 0.2s;
}
.btn-primary { background: var(--accent); color: #fff; padding: 13px 30px; }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { color: var(--silver); }
.btn-ghost:hover { color: var(--text); }
.btn-ghost::after { content: " →"; color: var(--accent); }

/* Stats — Blur-style huge numerals */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 840px;
}

.stat-value {
  font-family: var(--display);
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.02em;
}
.stat-label {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============ SECTIONS ============ */
.section { padding: 100px 0; }

.section-tag {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-tag::before { content: "// "; }

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 24px;
  max-width: 760px;
}

.section-sub { max-width: 520px; color: var(--silver); margin-bottom: 36px; }

/* ============ VISION ============ */
.vision-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  margin: 40px 0 64px;
}

.vision-lead { font-size: 14.5px; color: var(--silver); line-height: 1.85; }

.vision-points { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.vision-points li { font-size: 13px; }
.vision-points li::before { content: "// "; color: var(--accent); }

.flow { font-size: 12.5px; color: var(--silver); line-height: 2.2; }

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  margin: 56px 0 80px;
}

.step-num {
  font-family: var(--display);
  font-size: 30px;
  color: var(--accent);
  margin-bottom: 16px;
}
.step h3 { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.step p { color: var(--silver); font-size: 12px; line-height: 1.75; }

.log {
  font-size: 12.5px;
  line-height: 2;
  overflow-x: auto;
  color: var(--text);
  background: var(--bg-soft);
  padding: 30px 34px;
}

.cursor { animation: blink 1.1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ============ TREASURY ============ */
.treasury-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin: 44px 0 64px;
}

.treasury-table th {
  text-align: left;
  padding: 0 16px 16px 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  font-weight: 400;
}

.treasury-table td {
  padding: 10px 16px 10px 0;
  color: var(--silver);
}
.treasury-table .sym { color: var(--text); font-weight: 700; }
.treasury-table td.t-green { color: var(--green); }
.treasury-table td.t-red { color: var(--red); }
.treasury-table th:last-child, .treasury-table td:last-child { text-align: right; padding-right: 0; }

.treasury-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 840px;
  margin-bottom: 40px;
}
.treasury-summary .stat-value { font-size: 36px; }

.fineprint { font-size: 11px; color: var(--dim); }

/* ============ STRATEGY ============ */
.basket { margin: 44px 0 80px; max-width: 780px; }

.basket-row {
  display: grid;
  grid-template-columns: 80px 1fr 56px;
  align-items: center;
  gap: 16px;
  padding: 15px 0 0;
}

.basket-ticker { font-weight: 700; font-size: 13px; }
.basket-name { font-size: 12px; color: var(--dim); }
.basket-pct { font-family: var(--display); text-align: right; font-size: 18px; letter-spacing: 0.03em; }

.basket-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin-top: 9px;
}

.basket-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #9c8cff);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.basket-row.in-view .basket-fill { width: var(--w); }

/* Comparison */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.compare-col h3 {
  font-size: 11px;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
  font-weight: 700;
  text-transform: uppercase;
}
.compare-col h3::before { content: "// "; }
.compare-chain { font-size: 12.5px; line-height: 2; margin-bottom: 12px; }
.compare-col p { font-size: 12.5px; color: var(--silver); }

/* ============ ROADMAP ============ */
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
  margin-top: 56px;
}

.phase-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 22px;
}

.phase ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.phase li { font-size: 12.5px; color: var(--silver); }
.phase li::before { content: "// "; color: var(--accent); }

/* ============ CTA ============ */
.section-cta { text-align: center; padding: 140px 0; }
.section-cta .section-title, .section-cta .section-sub { margin-left: auto; margin-right: auto; }
.section-cta .section-sub { margin-bottom: 40px; }

/* ============ FOOTER ============ */
.footer { padding: 72px 0 52px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}
.footer-left { display: flex; align-items: center; gap: 10px; }
.footer-contact { display: flex; align-items: center; gap: 32px; }
.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--silver);
  font-size: 12px;
  transition: color 0.2s;
}
.footer-mail:hover { color: var(--text); }
.footer-bottom { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom .fineprint { max-width: 560px; }

/* ============ DOCS ============ */
.docs-body { display: flex; min-height: 100vh; }

.docs-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  background: rgba(8, 7, 12, 0.6);
}

.docs-toc { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.docs-toc a {
  color: var(--dim);
  font-size: 12px;
  transition: color 0.2s;
}
.docs-toc a:hover { color: var(--text); }

.docs-back { color: var(--silver); font-size: 12px; transition: color 0.2s; }
.docs-back:hover { color: var(--text); }

.docs-main {
  margin-left: 240px;
  padding: 88px 64px 80px;
  max-width: 760px;
}

.docs-header { margin-bottom: 72px; }

.docs-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.04;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.docs-meta { font-size: 12px; color: var(--dim); letter-spacing: 0.08em; }

.docs-section { margin-bottom: 64px; }

.docs-section h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.docs-section h3 {
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 32px 0 12px;
}

.docs-section p { color: var(--silver); font-size: 13px; margin-bottom: 14px; max-width: 620px; }

.docs-section ul, .docs-section ol {
  list-style: none;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.docs-section li { font-size: 13px; color: var(--silver); }
.docs-section ul li::before { content: "→ "; color: var(--accent); }
.docs-section ol { counter-reset: item; }
.docs-section ol li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero) " ";
  color: var(--accent);
  font-weight: 700;
}

.docs-flow {
  font-size: 12.5px;
  line-height: 2;
  color: var(--text);
  background: var(--bg-soft);
  padding: 22px 26px;
  margin: 16px 0 20px;
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  max-width: 520px;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 16px 0 20px;
}
.docs-table th {
  text-align: left;
  padding: 0 16px 12px 0;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--dim);
  font-weight: 400;
}
.docs-table td { padding: 7px 16px 7px 0; color: var(--silver); }
.docs-table td:first-child { color: var(--text); font-weight: 700; }

.docs-link { color: var(--accent); }
.docs-link:hover { opacity: 0.8; }

.docs-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 96px;
}

@media (max-width: 900px) {
  .docs-sidebar { display: none; }
  .docs-main { margin-left: 0; padding: 56px 32px 64px; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  /* hidden nav-links drop out of grid flow, so switch to simple two-end layout */
  .nav-inner { display: flex; justify-content: space-between; }

  .nav-links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8, 7, 12, 0.97);
    padding: 8px 32px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .nav-toggle { display: flex; }

  .hero { padding-top: 150px; }
  .stat-row, .treasury-summary { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px; }
  .roadmap, .compare, .vision-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 68px 0; }
  /* category & allocation are secondary — keep asset/avg/last/PL fully visible */
  .treasury-table th:nth-child(2), .treasury-table td:nth-child(2),
  .treasury-table th:nth-child(3), .treasury-table td:nth-child(3) { display: none; }
  .treasury-table th, .treasury-table td { padding-right: 12px; }

  /* cancel the toggle's own padding so nav edges align symmetrically */
  .nav-toggle { margin-right: -8px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
