:root {
  --bg: #0a0a09;
  --bg-raised: #0e0d0b;
  --bg-chrome: #14130f;
  --line: #262420;
  --line-strong: #3a372f;
  --text: #e8e4da;
  --muted: #a8a294;
  --dim: #6b675c;
  --accent: #f5b52a;
  --accent-hover: #ffd166;
  --ink: #0a0a09;
  --up: #26a69a;
  --down: #ef5350;
  --font-display: "Oxanium", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  font-family: var(--font-display);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.page {
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 68px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(10, 10, 9, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.brand-mark {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.nav-links a {
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 0;
}

.btn-launch,
.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-launch {
  padding: 9px 20px;
}

.btn-primary {
  padding: 16px 32px;
  font-size: 15px;
}

.btn-primary-lg {
  padding: 18px 44px;
  font-size: 16px;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 500;
}

.btn-launch:hover,
.btn-primary:hover,
.btn-primary-lg:hover {
  background: var(--accent-hover);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-raised);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: pc-marquee 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 0;
}

.ticker-item {
  display: inline-flex;
  gap: 8px;
  padding: 0 28px;
  white-space: nowrap;
}

.ticker-sym {
  color: var(--muted);
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}

.hero {
  position: relative;
  padding: 96px 40px 0;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 47px, #16150f 47px, #16150f 48px),
    repeating-linear-gradient(90deg, transparent, transparent 47px, #16150f 47px, #16150f 48px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  animation: pc-rise 0.7s ease-out both;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 800;
  margin: 0 0 28px;
  letter-spacing: -0.01em;
  max-width: 15ch;
  text-wrap: balance;
}

.cursor {
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  background: var(--accent);
  margin-left: 0.12em;
  vertical-align: -0.12em;
  animation: pc-blink 1.1s steps(1) infinite;
}

.hero-row {
  display: flex;
  gap: 48px;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: space-between;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.terminal {
  position: relative;
  margin-top: 72px;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  box-shadow: 0 -40px 120px rgba(245, 181, 42, 0.07);
  animation: pc-rise 0.9s 0.15s ease-out both;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-chrome);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.live-dot {
  width: 9px;
  height: 9px;
  background: var(--up);
  border-radius: 50%;
}

.terminal img {
  display: block;
  width: 100%;
  height: auto;
}

.terminal-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raised);
}

.stats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 36px 40px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 8px;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 40px;
}

.section h2,
.hotkeys h2,
.pricing-cta h2,
.subpage h1 {
  font-weight: 800;
  line-height: 1.05;
  margin: 0;
}

.section h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 64px;
  max-width: 24ch;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature {
  background: var(--bg);
  padding: 36px 32px;
}

.feature:hover {
  background: #12110d;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
}

.feature p,
.body-copy,
.legal {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.hotkeys {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.hotkeys-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hotkeys h2 {
  font-size: clamp(32px, 4vw, 52px);
  margin: 0 0 24px;
}

.hotkeys p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 46ch;
}

.key-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
}

.key-row {
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 16px;
}

.key-row:hover {
  background: #12110d;
}

.keys {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.kbd {
  border: 1px solid var(--line-strong);
  border-bottom-width: 3px;
  padding: 5px 11px;
  font-size: 12px;
  white-space: nowrap;
  background: var(--bg-chrome);
}

.brokers {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.brokers h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  margin: 0;
  max-width: 22ch;
  line-height: 1.1;
}

.broker-row {
  display: flex;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
}

.broker {
  background: var(--bg);
  padding: 24px 40px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.broker:hover {
  color: var(--accent);
  background: #12110d;
}

.pricing-cta {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
}

.pricing-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 128px 40px;
  text-align: center;
}

.mark {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.pricing-cta h2 {
  font-size: clamp(40px, 5vw, 68px);
  margin: 0 0 20px;
  line-height: 1.02;
}

.pricing-cta p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 40px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--dim);
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent);
}

.subpage {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 40px 120px;
}

.subpage h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 24px;
}

.subpage .lede {
  margin-bottom: 32px;
}

.legal p + p,
.body-copy + .body-copy {
  margin-top: 16px;
}

.notice {
  border: 1px solid var(--line-strong);
  padding: 16px 20px;
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}

@keyframes pc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pc-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pc-blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0; }
}

@media (max-width: 900px) {
  .nav {
    padding: 12px 20px;
    height: auto;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
  }

  .hero,
  .section,
  .hotkeys-inner,
  .brokers,
  .pricing-inner,
  .subpage {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stats-grid,
  .features,
  .hotkeys-inner {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .stats-grid,
  .features,
  .hotkeys-inner {
    grid-template-columns: 1fr;
  }

  .broker-row {
    flex-direction: column;
    width: 100%;
  }
}

.gate-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 32px;
}

.gate-brand {
  color: var(--text);
}

.gate-card {
  width: min(100%, 28rem);
  background: var(--bg-raised);
  border: 1px solid var(--line);
  padding: 36px 32px;
}

.gate-card h1 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gate-card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.gate-card label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--dim);
}

.gate-card input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.gate-card input[type="password"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gate-error {
  min-height: 1.25rem;
  margin: 0 0 16px;
  color: var(--down);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.gate-card .btn {
  width: 100%;
  cursor: pointer;
}
