/* ─── Variables ─────────────────────────────────────── */
:root {
  --bg: #06080d;
  --surface: #0d1520;
  --surface-2: #131e2d;
  --border: #1a2840;
  --fg: #e8f0f8;
  --fg-muted: #7a8fa8;
  --fg-dim: #4a6070;
  --teal: #00c9a7;
  --teal-dim: rgba(0,201,167,0.15);
  --gold: #f0b429;
  --gold-dim: rgba(240,180,41,0.12);
  --red: #ff6b6b;
  --yellow: #ffd93d;
  --green: #6bcb77;
  --font-display: 'Space Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 64px);
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(6,8,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.wordmark-f { color: var(--teal); }
.wordmark-rest { color: var(--fg); }

.wordmark-sm { font-size: 1rem; }

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
}

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

/* ─── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(24px, 5vw, 64px) 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,201,167,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,201,167,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  flex-shrink: 0;
}

.eyebrow-text { letter-spacing: 0.1em; }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 24px;
}

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

/* Terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tb-dot.red { background: #ff5f57; }
.tb-dot.yellow { background: #febc2e; }
.tb-dot.green { background: #28c840; }

.tb-label {
  font-size: 0.7rem;
  color: var(--fg-dim);
  font-family: 'SF Mono', 'Monaco', monospace;
  margin-left: 8px;
}

.terminal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tline {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Monaco', monospace;
  color: var(--fg-muted);
}

.tline-active { color: var(--teal); }
.tline-dim { opacity: 0.5; }

.tprompt { color: var(--teal); flex-shrink: 0; }

.blink {
  animation: blink 1s step-end infinite;
}

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

/* Dashboard glass */
.hero-visual {
  position: relative;
}

.dashboard-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}

.dashboard-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,201,167,0.4), transparent);
}

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

.dash-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--fg);
}

.dash-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--teal);
  font-weight: 500;
}

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

.pulse {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,201,167,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,201,167,0); }
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.metric {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.metric-val.teal { color: var(--teal); }
.metric-val.gold { color: var(--gold); }

.metric-label {
  font-size: 0.65rem;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.dash-chart {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.chart-label {
  font-size: 0.7rem;
  color: var(--fg-dim);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
}

.bar {
  width: 100%;
  background: var(--border);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height 0.4s ease;
}

.bar.teal-bar { background: var(--teal); }

.bar-label {
  font-size: 0.6rem;
  color: var(--fg-dim);
  font-family: 'SF Mono', monospace;
}

.dash-log {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--surface-2);
}

.log-new {
  background: var(--teal-dim);
  border: 1px solid rgba(0,201,167,0.2);
}

.log-time {
  color: var(--teal);
  font-family: 'SF Mono', monospace;
  font-size: 0.68rem;
  flex-shrink: 0;
}

.log-text { color: var(--fg-muted); }

/* ─── Section commons ────────────────────────────────── */
.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.section-eyebrow {
  margin-bottom: 16px;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--fg);
  max-width: 720px;
}

.section-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin-top: 16px;
}

/* ─── How ────────────────────────────────────────────── */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.workflow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 64px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  position: relative;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--fg-dim);
  align-self: center;
  flex-shrink: 0;
}

.step-icon {
  color: var(--teal);
  margin-bottom: 16px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ─── Features ───────────────────────────────────────── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

.feature-card {
  background: var(--surface);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--teal);
  margin-bottom: 4px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0,201,167,0.2);
  border-radius: 4px;
  padding: 3px 8px;
}

/* ─── Outcomes ────────────────────────────────────────── */
.outcomes {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.outcomes-grid {
  display: flex;
  align-items: center;
  gap: 0;
}

.outcome-stat {
  flex: 1;
  text-align: center;
  padding: 0 40px;
}

.outcome-val {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 12px;
}

.outcome-label {
  font-size: 0.875rem;
  color: var(--fg-muted);
  max-width: 200px;
  margin: 0 auto;
  line-height: 1.5;
}

.outcome-divider {
  width: 1px;
  height: 80px;
  background: var(--border);
  flex-shrink: 0;
}

/* ─── Manifesto ───────────────────────────────────────── */
.manifesto {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.manifesto-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.manifesto-headline {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fg);
  position: sticky;
  top: 100px;
}

.manifesto-body {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.manifesto-highlight {
  color: var(--fg);
  font-size: 1.0625rem;
}

/* ─── Closing ─────────────────────────────────────────── */
.closing {
  padding: 100px 0 120px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
}

.closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 16px;
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  flex-shrink: 0;
  animation: pulse-glow 2s ease-in-out infinite;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
}

.closing-sub {
  font-size: 1.0625rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 32px;
}

.closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #06080d;
  border-radius: 8px;
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.closing-cta:hover { opacity: 0.88; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-top: 8px;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 400px;
  text-align: right;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .manifesto-headline {
    position: static;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .workflow {
    gap: 12px;
  }

  .step-connector {
    display: none;
  }

  .outcomes-grid {
    flex-direction: column;
    gap: 32px;
  }

  .outcome-divider {
    width: 80px;
    height: 1px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-terminal {
    max-width: 100%;
  }

  .site-nav {
    display: none;
  }
}