:root {
  --bg: #081014;
  --surface: #101a20;
  --surface-2: #16242b;
  --line: rgba(228, 237, 234, 0.14);
  --text: #f4f7f5;
  --muted: #a9b8b4;
  --teal: #2ed4ac;
  --teal-2: #0f8c73;
  --amber: #f4b740;
  --red: #ef665b;
  --paper: #f6f3ec;
  --paper-2: #e8efeb;
  --ink: #172226;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(8, 16, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(46, 212, 172, 0.45);
  border-radius: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: 158px;
  height: auto;
}

.site-header nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover { color: var(--text); }

.header-action {
  color: var(--bg);
  background: var(--teal);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 780;
  font-size: 14px;
}

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(22px, 6vw, 80px) 70px;
  background-size: cover;
  background-position: center right;
}

.hero-inner { width: min(760px, 100%); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-copy {
  max-width: 670px;
  color: #dce6e3;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #06120f;
  background: var(--teal);
  border-color: var(--teal);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: rgba(23, 34, 38, 0.16);
  background: rgba(23, 34, 38, 0.05);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 18px;
}

.hero-proof span {
  display: inline-flex;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}

.hero-proof strong { color: var(--text); }
.risk-note { color: var(--muted); font-size: 13px; }

.band, .split-band, .cta-band, .product-band, .faq-band {
  padding: 78px clamp(22px, 6vw, 80px);
}

.band {
  background: var(--paper);
  color: var(--ink);
}

.band .eyebrow, .faq-band .eyebrow { color: var(--teal-2); }
.muted { background: var(--paper-2); }

.section-head {
  width: min(860px, 100%);
  margin-bottom: 34px;
}

.section-head p {
  color: #4d5c5a;
  font-size: 18px;
  line-height: 1.55;
}

.feature-grid, .pricing-grid, .metric-grid, .strategy-grid {
  display: grid;
  gap: 16px;
}

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

.feature-card, .price-card, .strategy-card {
  border: 1px solid rgba(23, 34, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 24px;
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--teal-2);
  font-weight: 850;
}

.feature-card p, .price-card li, .strategy-card span {
  color: #4d5c5a;
  line-height: 1.52;
}

.product-band {
  background: #101a20;
}

.product-band .section-head p { color: var(--muted); }

.product-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b1519;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.dot.active { background: var(--teal); }

.preview-main {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.preview-topline, .preview-cards, .preview-table {
  display: grid;
  gap: 12px;
}

.preview-topline {
  grid-template-columns: 1fr auto;
  color: var(--muted);
}

.preview-topline strong { color: var(--text); }
.preview-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.preview-cards span {
  min-height: 86px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-chart {
  position: relative;
  min-height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(46, 212, 172, 0.16), rgba(46, 212, 172, 0.02));
}

.preview-chart span {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--teal);
  transform: skewY(-7deg);
}

.preview-table {
  grid-template-columns: repeat(3, 1fr);
}

.preview-table span {
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.split-band {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 0.82fr);
  gap: 52px;
  align-items: center;
  background: #0b1519;
}

.workflow { display: grid; gap: 12px; }

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.step span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(46, 212, 172, 0.12);
  color: var(--teal);
  font-weight: 850;
}

.step small, .copy-block p {
  color: var(--muted);
  line-height: 1.55;
}

.strategy-card {
  display: grid;
  gap: 10px;
}

.strategy-card small {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: #06120f;
  background: rgba(46, 212, 172, 0.32);
  font-weight: 800;
}

.price {
  margin: 12px 0 18px;
  font-size: 34px;
  font-weight: 850;
}

.price span { font-size: 14px; color: #66726f; }
.price-card ul { min-height: 94px; padding-left: 18px; }
.price-card.highlighted {
  border-color: rgba(15, 140, 115, 0.36);
  box-shadow: 0 18px 52px rgba(15, 140, 115, 0.14);
}

.pricing-note {
  max-width: 760px;
  margin: 20px 0 0;
  color: #4d5c5a;
  font-size: 14px;
  line-height: 1.45;
}

.faq-band {
  background: var(--paper-2);
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 980px;
}

details {
  border: 1px solid rgba(23, 34, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  margin: 12px 0 0;
  color: #4d5c5a;
  line-height: 1.5;
}

.cta-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.cta-band h2 { max-width: 760px; }

.waitlist-form {
  display: flex;
  gap: 10px;
  align-items: end;
}

.waitlist-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

input[type="email"] {
  width: min(320px, 70vw);
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 24px clamp(22px, 6vw, 80px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: #071014;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: #0a1519;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 36px;
}

.nav-item, .icon-button, .danger-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-item {
  text-align: left;
  padding: 0 12px;
}

.nav-item.active {
  color: #06120f;
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 850;
}

.sidebar-note {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.sidebar-note strong { color: var(--text); }

.dashboard {
  padding: 28px clamp(18px, 4vw, 46px) 46px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-header h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-title img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.status-cluster { display: flex; gap: 10px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.pill.online { color: #07140f; background: var(--teal); }
.pill.warning { color: #221804; background: var(--amber); }

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.metric-card, .panel {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
}

.metric-card span, .metric-card small { color: var(--muted); }
.metric-card strong { font-size: 28px; }

.view { display: none; }
.view.active { display: block; }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 16px;
}

.panel { padding: 18px; }
.panel.wide { grid-column: 1 / -1; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 20px;
}

.panel-head span, .panel-copy {
  color: var(--muted);
  font-size: 13px;
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #0c171c;
}

.gate-list, .stack-list, .settings-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  color: #dce6e3;
}

.gate-list label, .settings-list label {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.settings-list input { width: 46%; }

.danger-button {
  width: 100%;
  color: #fff7f6;
  border-color: rgba(239, 102, 91, 0.48);
  background: rgba(239, 102, 91, 0.14);
}

.danger-button.compact {
  width: auto;
  padding: 0 14px;
  font-weight: 800;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  text-decoration: none;
}

.table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.row.five { grid-template-columns: .8fr .8fr .8fr 1.4fr .9fr; }
.row:first-child { border-top: 0; }
.row.header {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.allocation-grid, .rule-grid, .integration-grid, .strategy-workspace {
  display: grid;
  gap: 14px;
}

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

.allocation-grid div, .rule-grid span, .integration-grid span, .connection-card {
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.allocation-grid strong { font-size: 28px; }
.allocation-grid span, .connection-card span, .connection-card small { color: var(--muted); }

.risk-meter {
  height: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.risk-meter span {
  display: block;
  height: 100%;
  background: var(--teal);
}

.risk-meter.amber span { background: var(--amber); }

.strategy-workspace {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.strategy-module {
  display: grid;
  gap: 16px;
  min-height: 260px;
}

.strategy-module p {
  color: var(--muted);
  line-height: 1.5;
}

.module-footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  color: var(--muted);
}

.module-footer strong { color: var(--text); }

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

.bot-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline span {
  color: var(--muted);
  line-height: 1.42;
}

.symbol-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.symbol-cloud span {
  min-width: 68px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  text-align: center;
}

.settings-table {
  display: grid;
  gap: 10px;
}

.settings-table div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.settings-table div:last-child {
  border-bottom: 0;
}

.settings-table span {
  color: var(--muted);
}

.rule-grid.single {
  grid-template-columns: 1fr;
}

.audit-timeline strong {
  color: var(--teal);
}

.upgrade-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--teal);
  font-weight: 800;
}

.upgrade-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.upgrade-panel p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-page,
.account-page {
  min-height: 100vh;
  background: #071014;
}

.site-header.plain {
  position: sticky;
}

.auth-layout,
.account-layout {
  display: grid;
  gap: 28px;
  padding: 112px clamp(22px, 6vw, 80px) 70px;
}

.auth-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
  align-items: start;
}

.auth-copy h1,
.account-hero h1 {
  max-width: 760px;
}

.auth-copy p,
.account-hero p,
.upgrade-band p,
.form-note {
  color: var(--muted);
  line-height: 1.55;
}

.funnel-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.funnel-steps div,
.auth-panel,
.plan-card,
.upgrade-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.funnel-steps div {
  display: grid;
  gap: 8px;
  padding: 18px;
}

.funnel-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #06120f;
  background: var(--teal);
  font-weight: 850;
}

.funnel-steps small {
  color: var(--muted);
}

.auth-panel {
  padding: 20px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.tab.active {
  color: #06120f;
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 850;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 8px;
}

.auth-form label span,
.checkline span {
  color: var(--muted);
  font-size: 13px;
}

.auth-form input,
.auth-form select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface-2);
}

.checkline {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start;
}

.checkline input {
  min-height: auto;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.plan-card.active {
  border-color: rgba(46, 212, 172, 0.45);
}

.plan-card ul {
  min-height: 92px;
  padding-left: 18px;
  color: var(--muted);
}

.upgrade-band {
  padding: 28px;
}

@media (max-width: 980px) {
  .site-header nav { display: none; }
  .hero { min-height: 82vh; }
  .feature-grid, .pricing-grid, .strategy-grid, .metric-grid, .bot-metrics, .split-band, .dashboard-grid,
  .allocation-grid, .strategy-workspace, .rule-grid, .integration-grid, .auth-layout, .funnel-steps, .plan-grid {
    grid-template-columns: 1fr;
  }
  .upgrade-panel {
    align-items: flex-start;
    flex-direction: column;
  }
  .cta-band, .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
  }
  .side-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }
  .sidebar-note { margin-top: 16px; }
  .nav-item {
    text-align: center;
    padding: 0 6px;
    font-size: 13px;
  }
  .product-preview { grid-template-columns: 1fr; }
  .preview-sidebar {
    grid-template-columns: repeat(4, 18px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 620px) {
  .site-header { height: 66px; }
  .header-action { display: none; }
  h1 { font-size: 40px; }
  .waitlist-form, .hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }
  input[type="email"], .waitlist-form .button { width: 100%; }
  .row, .row.five {
    grid-template-columns: 1fr 1fr;
  }
  .preview-cards, .preview-table {
    grid-template-columns: 1fr;
  }
  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
