:root {
  --bg: #06080f;
  --surface: #0c1020;
  --surface-2: #111827;
  --border: rgba(0, 212, 255, 0.12);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --orange: #ff9f43;
  --green: #00e676;
  --red: #ff5252;
  --text: #e2e8f0;
  --text-dim: #64748b;
  --text-muted: #374151;
  --font-head: 'Syne', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.nav-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.05em;
}
.tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero */
.hero {
  padding: 80px 24px 64px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 5px 12px;
  border-radius: 20px;
}
.eyebrow-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(0, 212, 255, 0.3), transparent);
  max-width: 80px;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.headline-accent {
  color: var(--cyan);
}
.hero-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 440px;
  margin-bottom: 36px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}
.stat-item { display: flex; flex-direction: column; gap: 2px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.06);
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 340px;
  overflow-y: auto;
}
.msg { display: flex; flex-direction: column; gap: 4px; }
.msg-agent { align-items: flex-start; }
.msg-trade { align-items: flex-start; }
.msg-user { align-items: flex-end; }
.msg-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
  background: rgba(0, 212, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}
.tag-profit { background: rgba(0, 230, 118, 0.1) !important; color: var(--green) !important; border-color: rgba(0, 230, 118, 0.2) !important; }
.tag-user { background: rgba(255, 159, 67, 0.1) !important; color: var(--orange) !important; border-color: rgba(255, 159, 67, 0.2) !important; }
.msg-text { font-size: 0.78rem; line-height: 1.5; color: var(--text); }
.msg-time { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-dim); }
.terminal-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.input-marker { font-family: var(--font-mono); color: var(--cyan); font-size: 0.85rem; }
.input-text { font-size: 0.78rem; color: var(--text-dim); }

/* Section shared */
.section-header { margin-bottom: 48px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  display: block;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}

/* How it works */
.how-it-works {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}
.step-icon {
  width: 48px;
  height: 48px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.step-desc { font-size: 0.85rem; line-height: 1.6; color: var(--text-dim); }
.step-connector {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--border), transparent);
  flex-shrink: 0;
}

/* Agent Specs */
.agent-specs {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.specs-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: start;
}
.specs-label-col { position: sticky; top: 80px; }
.specs-title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 16px 0 16px;
}
.specs-desc { font-size: 0.9rem; line-height: 1.6; color: var(--text-dim); }
.specs-list { display: flex; flex-direction: column; gap: 2px; }
.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  transition: all 0.2s;
}
.spec-item:hover {
  background: var(--surface);
  border-color: var(--border);
}
.spec-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 159, 67, 0.08);
  border: 1px solid rgba(255, 159, 67, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.spec-content { display: flex; flex-direction: column; gap: 4px; }
.spec-name {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.spec-detail { font-size: 0.8rem; line-height: 1.5; color: var(--text-dim); }

/* Live Feed */
.live-feed {
  padding: 64px 24px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.feed-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.5s infinite;
}
.feed-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.feed-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.feed-row {
  display: grid;
  grid-template-columns: 60px 100px 1fr 100px 80px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.feed-row:last-child { border-bottom: none; }
.feed-row-head {
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
.feed-row-foot {
  background: rgba(0, 230, 118, 0.04);
  color: var(--text-dim);
  font-size: 0.75rem;
}
.pair { color: var(--text); font-weight: 500; }
.mono { color: var(--text-dim); }
.signal {
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.signal-buy { background: rgba(0, 230, 118, 0.1); color: var(--green); }
.signal-hold { background: rgba(100, 116, 139, 0.15); color: var(--text-dim); }
.signal-sell { background: rgba(0, 212, 255, 0.1); color: var(--cyan); }
.result.profit { color: var(--green); font-weight: 600; }
.result.neutral { color: var(--text-dim); }

/* Closing */
.closing {
  padding: 80px 24px 96px;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  text-align: center;
}
.closing-inner {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.closing-pulse {
  animation: rotate-pulse 8s linear infinite;
  opacity: 0.8;
}
@keyframes rotate-pulse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.closing-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.closing-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 480px;
}
.closing-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  margin-top: 8px;
}
.tagline-sep { color: var(--text-muted); font-weight: 400; }
.closing-tagline span:last-child { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
}
.footer-note { font-size: 0.78rem; color: var(--text-dim); }

/* Responsive */
@media (max-width: 768px) {
  .hero { padding: 48px 20px 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { display: none; }
  .steps { flex-direction: column; gap: 12px; }
  .step-connector { width: 40px; height: 1px; }
  .specs-grid { grid-template-columns: 1fr; }
  .specs-label-col { position: static; }
  .feed-row { grid-template-columns: 50px 80px 1fr 80px 60px; font-size: 0.7rem; padding: 10px 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }