/* ============================================================
   DualGridBot — design tokens
   A trading-terminal palette: ink-navy background, two functional
   accents (teal = long, amber = short) tied to the bot's actual
   mechanic rather than decorative color. Warning red is reserved
   strictly for risk/legal content.
   ============================================================ */
:root {
  --bg: #0a0e14;
  --surface: #121822;
  --surface-2: #182130;
  --border: #232b38;
  --text: #e7ecf3;
  --text-muted: #8792a3;
  --long: #35d0a0;
  --short: #e8a15a;
  --warn: #e5555a;
  --warn-bg: #2a1416;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;

  --radius: 10px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--long); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--long);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em 0; color: var(--text); }
.muted { color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--long);
  margin-bottom: 14px;
  display: block;
}
.section-head { max-width: 640px; margin-bottom: 48px; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 20px; height: 20px;
  display: inline-block;
  position: relative;
}
.brand-mark::before, .brand-mark::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  border-radius: 1px;
}
.brand-mark::before { top: 4px; background: var(--long); }
.brand-mark::after { bottom: 4px; background: var(--short); }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a { color: var(--text-muted); font-size: 0.94rem; }
nav.main-nav a:hover { color: var(--text); text-decoration: none; }
nav.main-nav .nav-cta {
  color: var(--bg);
  background: var(--long);
  padding: 9px 16px;
  border-radius: 7px;
  font-weight: 600;
}
nav.main-nav .nav-cta:hover { background: #45e0b0; text-decoration: none; }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  nav.main-nav { position: fixed; inset: 68px 0 0 0; background: var(--bg);
    flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all 0.18s ease; }
  nav.main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; background: none; border: 1px solid var(--border);
    color: var(--text); border-radius: 6px; width: 40px; height: 36px; font-size: 1.1rem; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary { background: var(--long); color: #06120d; }
.btn-primary:hover { background: #45e0b0; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); text-decoration: none; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 96px 0; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; } }

.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.15rem; color: var(--text-muted); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-note { font-size: 0.86rem; color: var(--text-muted); }
.hero-note strong { color: var(--text); }

/* Signature element: a price-grid ladder, echoing the bot's actual
   mechanic (orders resting at fixed price levels, alternating long/
   short fills). Pure CSS, no imagery. */
.grid-ladder {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 22px 18px;
  font-family: var(--font-mono);
}
.grid-ladder .rung {
  display: grid;
  grid-template-columns: 18px 1fr 74px;
  align-items: center;
  gap: 12px;
  height: 34px;
}
.grid-ladder .rung .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border);
  justify-self: center;
}
.grid-ladder .rung.fill-long .dot { background: var(--long); box-shadow: 0 0 0 4px rgba(53,208,160,0.15); }
.grid-ladder .rung.fill-short .dot { background: var(--short); box-shadow: 0 0 0 4px rgba(232,161,90,0.15); }
.grid-ladder .rung .line { height: 1px; background: var(--border); }
.grid-ladder .rung .price { text-align: right; color: var(--text-muted); font-size: 0.86rem; }
.grid-ladder .rung.fill-long .price { color: var(--long); }
.grid-ladder .rung.fill-short .price { color: var(--short); }
.grid-ladder .caption { display: flex; justify-content: space-between; margin-top: 14px;
  font-size: 0.76rem; color: var(--text-muted); }
.grid-ladder .caption .k-long::before { content: "● "; color: var(--long); }
.grid-ladder .caption .k-short::before { content: "● "; color: var(--short); }

/* ---------------- Feature / info cards ---------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 820px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  font-family: var(--font-mono); font-size: 0.9rem; color: var(--long); }

/* ---------------- How it works ---------------- */
.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: none; }
.step .num { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.9rem; }
.step h3 { margin-bottom: 6px; }

/* ---------------- Pricing ---------------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
}
.price-value { font-family: var(--font-display); font-size: 3.4rem; font-weight: 700; color: var(--text); margin: 10px 0; }
.price-value .per { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); font-weight: 400; }

/* ---------------- Legal / risk callout ---------------- */
.risk-note {
  background: var(--warn-bg);
  border: 1px solid #4a2226;
  color: #ffcdd0;
  border-radius: var(--radius);
  padding: 20px 22px;
  font-size: 0.92rem;
}
.risk-note strong { color: #ffb3b8; }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 440px;
  margin: 0 auto;
}
label { display: block; font-size: 0.86rem; color: var(--text-muted); margin: 16px 0 6px 0; }
label:first-of-type { margin-top: 0; }
input[type="text"], input[type="email"], input[type="password"], textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.96rem;
}
textarea { min-height: 120px; resize: vertical; }
.form-error {
  background: var(--warn-bg);
  border: 1px solid #4a2226;
  color: #ffcdd0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-success {
  background: #10281c;
  border: 1px solid #1f6a4a;
  color: #8fe9c4;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; }

/* ---------------- Account status ---------------- */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; margin: 24px 0; }
.status-item { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.status-item .label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.status-item .value { font-family: var(--font-mono); font-size: 1.15rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.badge-active { background: rgba(53,208,160,0.14); color: var(--long); }
.badge-inactive { background: rgba(229,85,90,0.14); color: #ff9498; }
.badge::before { content: "●"; font-size: 0.6rem; }

/* ---------------- Footer ---------------- */
footer.site-footer { border-top: 1px solid var(--border); padding: 48px 0 32px 0; margin-top: 40px; }
footer.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer.site-footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site-footer a { color: var(--text-muted); font-size: 0.88rem; }
footer.site-footer a:hover { color: var(--text); }
footer.site-footer .copyright { font-size: 0.82rem; color: var(--text-muted); margin-top: 18px; }
footer .foot-disclaimer { font-size: 0.78rem; color: var(--text-muted); max-width: 720px; margin-top: 18px; line-height: 1.6; }
