/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #090909;
  --bg-2: #111111;
  --bg-3: #181818;
  --fg: #f0f0f0;
  --fg-2: #999999;
  --fg-3: #555555;
  --green: #00FF85;
  --green-dim: rgba(0, 255, 133, 0.15);
  --green-border: rgba(0, 255, 133, 0.25);
  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --display: 'Syne', system-ui, sans-serif;
  --max: 1100px;
}

html { scroll-behavior: smooth; }

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

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--max);
  margin: 0 auto;
  border-bottom: 1px solid var(--bg-3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-2);
  background: var(--bg-2);
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--bg-3);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.mono { font-family: var(--mono); }

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px 60px;
  align-items: center;
}

.hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.highlight { color: var(--green); }

.hero-sub {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cta-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}

.cta-btn {
  display: inline-block;
  background: var(--green);
  color: #000;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}

.cta-btn:hover { box-shadow: 0 0 30px rgba(0, 255, 133, 0.4); }

/* === HERO WIDGET === */
.hero-widget {
  background: var(--bg-2);
  border: 1px solid var(--bg-3);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.hero-widget::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 200px; height: 200px;
  background: radial-gradient(circle at top right, var(--green-dim), transparent 70%);
  pointer-events: none;
}

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

.widget-title { font-size: 11px; color: var(--fg-3); }

.widget-live {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: var(--green-dim);
  padding: 3px 8px;
  border-radius: 3px;
  border: 1px solid var(--green-border);
  letter-spacing: 0.1em;
}

.widget-metric {
  margin-bottom: 20px;
}

.metric-label { font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; margin-bottom: 4px; }

.metric-value {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--green);
  line-height: 1;
}

.metric-delta {
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 4px;
}

.up { color: var(--green); }
.down { color: #ff4d4d; }

.widget-chart {
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg);
  border-radius: 8px;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-bottom: 8px;
}

.bar {
  flex: 1;
  background: var(--bg-3);
  border-radius: 2px;
  transition: background 0.3s;
}

.bar.active { background: var(--green); }

.chart-label { font-size: 10px; color: var(--fg-3); }

.widget-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.wg-item {
  background: var(--bg);
  padding: 10px 12px;
  border-radius: 6px;
}

.wg-label { font-size: 10px; color: var(--fg-3); margin-bottom: 2px; }

.wg-val { font-size: 16px; font-weight: 600; }

.widget-agent {
  border-top: 1px solid var(--bg-3);
  padding-top: 12px;
}

.agent-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-2);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === LIVE FEED === */
.livefeed {
  background: var(--bg-2);
  border-top: 1px solid var(--bg-3);
  border-bottom: 1px solid var(--bg-3);
  padding: 24px 40px;
  max-width: var(--max);
  margin: 0 auto;
}

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

.lf-label { font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; }

.lf-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  background: var(--green-dim);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--green-border);
}

.pulse {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.lf-items { display: flex; flex-direction: column; gap: 0; }

.lf-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-3);
  font-size: 14px;
}

.lf-item:last-child { border-bottom: none; }

.lf-time { color: var(--fg-3); font-size: 12px; padding-top: 2px; }

.lf-text { color: var(--fg-2); }

/* === FEATURES === */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px;
}

.section-label {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--bg);
  padding: 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--bg-2); }

.fc-icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green-dim);
  border: 1px solid var(--green-border);
  border-radius: 8px;
  margin-bottom: 20px;
  color: var(--green);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}

/* === HOW IT WORKS === */
.howitworks {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px;
  border-top: 1px solid var(--bg-3);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 60px;
}

.step { padding: 0 24px 0 0; }

.step-num {
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
}

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--bg-3);
  margin-top: 24px;
  flex-shrink: 0;
}

.hiw-quote {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  padding: 48px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--bg-3);
}

.hiw-quote blockquote {
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hiw-quote cite {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-3);
}

/* === CLOSING === */
.closing {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 40px 60px;
  border-top: 1px solid var(--bg-3);
}

.closing-title {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 18px;
  color: var(--fg-2);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.closing-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat { padding: 0 48px 0 0; }

.stat-val {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--green);
  margin-bottom: 4px;
}

.stat-label { font-size: 11px; color: var(--fg-3); letter-spacing: 0.1em; }

.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--bg-3);
  margin-right: 48px;
}

/* === FOOTER === */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 40px;
  border-top: 1px solid var(--bg-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 8px; }

.footer-name { font-weight: 700; font-size: 16px; }

.footer-copy { font-size: 12px; color: var(--fg-3); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 48px 24px 40px; }
  .hero-widget { max-width: 480px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step-connector { display: none; }
  .closing-stats { flex-wrap: wrap; gap: 24px; }
  .stat-sep { display: none; }
  .nav { padding: 16px 24px; }
  .features, .howitworks, .closing { padding: 48px 24px; }
  .livefeed { padding: 20px 24px; }
  .footer { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 36px; }
  .metric-value { font-size: 36px; }
  .closing-title { font-size: 36px; }
  .stat-val { font-size: 28px; }
}