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

:root {
  --bg: #0d0d0d;
  --surface: #161616;
  --surface2: #1e1e1e;
  --fg: #f5f0e8;
  --fg-muted: #9a9590;
  --ember: #ff5722;
  --ember-dim: rgba(255, 87, 34, 0.15);
  --ember-glow: rgba(255, 87, 34, 0.4);
  --gold: #f5c842;
  --mono: 'DM Mono', 'Courier New', monospace;
  --display: 'Syne', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* === NAV === */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
}

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

.nav-logo {
  font-size: 18px;
  color: var(--ember);
  font-weight: 700;
  line-height: 1;
}

.nav-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-tagline {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  padding: 80px 48px 80px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  position: relative;
}

.hero-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  background: var(--ember-dim);
  border: 1px solid rgba(255, 87, 34, 0.2);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 36px;
}

.hero-headline {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
  color: var(--fg);
}

.hero-accent {
  color: var(--ember);
  display: inline-block;
}

.hero-lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 540px;
  margin-bottom: 72px;
  font-weight: 400;
}

/* === EMBER VISUAL === */
.hero-visual {
  display: flex;
  align-items: flex-start;
  gap: 64px;
}

.ember-orbit {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

.ember-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--ember);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--ember-glow),
    0 0 60px var(--ember-glow),
    0 0 100px rgba(255, 87, 34, 0.2);
  animation: ember-pulse-core 2.4s ease-in-out infinite;
}

.ember-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 87, 34, 0.12);
  animation: ember-expand 3s ease-in-out infinite;
}

.ember-ring-1 { width: 80px; height: 80px; animation-delay: 0s; }
.ember-ring-2 { width: 120px; height: 120px; animation-delay: 0.6s; }
.ember-ring-3 { width: 160px; height: 160px; animation-delay: 1.2s; }

.ember-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ember);
  opacity: 0;
  animation: ember-pulse-ring 2.4s ease-out infinite;
}

@keyframes ember-pulse-core {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ember-expand {
  0%, 100% { opacity: 0.15; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.05; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes ember-pulse-ring {
  0% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.5); }
}

.ember-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.ember-stat {}

.ember-stat-val {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 4px;
}

.ember-stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* === STATS === */
.stats {
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  border-bottom: 1px solid rgba(245, 240, 232, 0.06);
  background: var(--surface);
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px;
  gap: 0;
}

.stat { flex: 1; }

.stat-val {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
  line-height: 1.4;
}

.stat-div {
  width: 1px;
  height: 60px;
  background: rgba(245, 240, 232, 0.08);
  margin: 0 32px;
  flex-shrink: 0;
}

/* === PIPELINE === */
.pipeline {
  padding: 96px 48px;
}

.pipeline-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 48px;
}

.pipeline-stages {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-stage {
  flex: 1;
  min-width: 160px;
  padding: 28px 24px;
  border: 1px solid rgba(245, 240, 232, 0.06);
  position: relative;
}

.pipeline-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.pipeline-stage:hover::before { opacity: 1; }

.pipeline-icon {
  font-size: 10px;
  color: var(--ember);
  margin-bottom: 16px;
}

.pipeline-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pipeline-desc {
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.pipeline-arrow {
  font-size: 20px;
  color: var(--ember);
  padding: 0 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  opacity: 0.4;
}

/* === FEATURES === */
.features {
  background: var(--surface);
  padding: 96px 48px;
}

.features-header {
  margin-bottom: 64px;
}

.features-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 20px;
}

.features-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

.feature-card {
  background: var(--surface2);
  padding: 36px 32px;
  border: 1px solid rgba(245, 240, 232, 0.04);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::after { opacity: 1; }

.feature-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-bottom: 20px;
  letter-spacing: 0.1em;
}

.feature-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.feature-body {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* === MANIFESTO === */
.manifesto {
  padding: 120px 48px;
  background: var(--bg);
}

.manifesto-inner { max-width: 720px; }

.manifesto-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 40px;
}

.manifesto-quote {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--fg);
  border-left: 3px solid var(--ember);
  padding-left: 28px;
  margin-bottom: 48px;
}

.manifesto-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.manifesto-cred {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-muted);
}

.manifesto-dash {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--ember);
  flex-shrink: 0;
}

/* === CLOSING === */
.closing {
  background: var(--surface);
  border-top: 1px solid rgba(245, 240, 232, 0.04);
  padding: 96px 48px;
}

.closing-inner { max-width: 800px; }

.closing-headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 28px;
}

.closing-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
}

.closing-stat {
  border-left: 2px solid var(--ember);
  padding-left: 24px;
}

.closing-val {
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 8px;
}

.closing-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-transform: uppercase;
  line-height: 1.5;
}

/* === FOOTER === */
.footer {
  padding: 48px;
  border-top: 1px solid rgba(245, 240, 232, 0.06);
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-muted);
}

.footer-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(154, 149, 144, 0.4);
  margin-left: auto;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .nav { padding: 16px 24px; }
  .nav-tagline { display: none; }
  .hero { padding: 48px 24px; }
  .hero-visual { flex-direction: column; gap: 40px; }
  .ember-orbit { width: 120px; height: 120px; }
  .ember-ring-3 { display: none; }
  .stats-inner { flex-direction: column; gap: 32px; padding: 40px 24px; }
  .stat-div { display: none; }
  .pipeline { padding: 64px 24px; }
  .pipeline-stages { flex-direction: column; }
  .pipeline-arrow { display: none; }
  .features { padding: 64px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 80px 24px; }
  .closing { padding: 64px 24px; }
  .footer { padding: 32px 24px; flex-wrap: wrap; }
  .footer-meta { margin-left: 0; width: 100%; }
}