/* landing.css — AI Trading Terminal introduction page */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #040e1f;
  --surface:     #071628;
  --surface2:    #0d2040;
  --surface3:    #112850;
  --border:      rgba(255,255,255,.07);
  --border2:     rgba(255,255,255,.13);
  --border-accent: rgba(88,166,255,.35);
  --text:        #e6edf3;
  --muted:       #768390;
  --secondary:   #adbac7;
  --accent:      #58a6ff;
  --accent-dark: #1f6feb;
  --success:     #3fb950;
  --success-dim: rgba(63,185,80,.15);
  --danger:      #f85149;
  --warning:     #d29922;
  --green:       #22c55e;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
  --radius:      8px;
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4, 14, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px; height: 32px;
  background: var(--accent-dark);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav-logo-text span { color: var(--accent); }

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}

.btn-ghost {
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { background: var(--surface2); color: var(--text); }

.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover { background: #388bfd; }

.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: 9px;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border-accent);
}
.btn-outline:hover { background: rgba(88,166,255,.08); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 130px 2rem 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center top,
    rgba(31,111,235,.18) 0%,
    rgba(88,166,255,.07) 40%,
    transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.25);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #f0f6ff;
  margin-bottom: 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* ── Live charts strip ─────────────────────────────────── */
.charts-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.chart-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  opacity: 0;
  transition: opacity .3s;
}
.chart-card:hover::before { opacity: 1; }

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chart-ticker {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.chart-pnl {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
}
.chart-pnl.pos { color: var(--success); }
.chart-pnl.neg { color: var(--danger); }

.chart-canvas {
  display: block;
  width: 100%;
  height: 80px;
}

.chart-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

/* ── Stats row ─────────────────────────────────────────── */
.stats-row {
  display: flex;
  gap: 0;
  max-width: 800px;
  margin: 64px auto 0;
  border: 1px solid var(--border2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.stat-item {
  flex: 1;
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--success);
  font-family: var(--mono);
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Section ───────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 2rem;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f0f6ff;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--secondary);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ── Feature grid ──────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .2s, background .2s;
}
.feature-card:hover {
  border-color: var(--border-accent);
  background: var(--surface2);
}

.feature-icon {
  width: 40px; height: 40px;
  background: rgba(88,166,255,.1);
  border: 1px solid rgba(88,166,255,.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.feature-card p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.6;
}

/* ── Live P&L section ──────────────────────────────────── */
.pnl-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.pnl-text h2 { margin-bottom: 14px; }

.pnl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.pnl-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--secondary);
}

.pnl-list-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Daily wins graph (large canvas) ──────────────────── */
.daily-win-canvas {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: block;
  width: 100%;
}

/* ── Ticker bar ────────────────────────────────────────── */
.ticker-bar {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 10px 0;
}

.ticker-inner {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: ticker 28s linear infinite;
}

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

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 12px;
}

.ticker-sym { color: var(--text); font-weight: 600; }
.ticker-price { color: var(--muted); }
.ticker-change.pos { color: var(--success); }
.ticker-change.neg { color: var(--danger); }

/* ── CTA section ───────────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 2rem;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(31,111,235,.1) 0%,
    transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f0f6ff;
  margin-bottom: 14px;
}

.cta-section p {
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 36px;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

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

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .charts-strip { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
  .pnl-showcase { grid-template-columns: 1fr; }
  .nav { padding: 0 1rem; }
  footer { flex-direction: column; gap: 8px; text-align: center; }
}
