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

:root {
  --bg: #0B0D0F;
  --bg-surface: #111214;
  --bg-surface-2: #16181A;
  --fg: #E8E8E0;
  --fg-muted: #6B6B63;
  --fg-dim: #3D3D35;
  --accent: #A8FF2A;
  --accent-dim: rgba(168,255,42,0.12);
  --border: rgba(168,255,42,0.15);
  --border-dim: rgba(168,255,42,0.06);
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 1160px;
  --section-pad: clamp(64px, 10vw, 120px);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(168,255,42,0.3); }

/* === LAYOUT === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11,13,15,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dim);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.nav-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
}

/* === SECTION LABELS === */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.7;
  margin-bottom: 20px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 60px) 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
}

.hero-visual {
  position: relative;
}

.spec-graph {
  width: 100%;
  height: auto;
  display: block;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.6;
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
}

.hero-meta {
  margin-top: 8px;
}

.hero-meta-item {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

/* === PIPELINE === */
.pipeline {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-dim);
}

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

.pipeline-title {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  max-width: 560px;
  line-height: 1.15;
}

.pipeline-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pipeline-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  width: 60px;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.4;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

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

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  padding: 4px 8px;
  background: var(--bg-surface);
}

.step-visual {
  margin-top: 8px;
}

.step-visual svg {
  width: 100%;
  height: auto;
}

/* === ARCHITECTURE === */
.architecture {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-dim);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.arch-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 80px;
}

.arch-title {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
}

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

.arch-diagram {
  width: 100%;
  overflow: hidden;
}

.arch-diagram svg {
  width: 100%;
  height: auto;
}

/* === FEATURES === */
.features {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-dim);
}

.features-title {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 540px;
}

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

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  background: var(--bg-surface);
  transition: border-color 0.2s ease;
}

.feature:hover {
  border-color: var(--border);
}

.feature-icon {
  width: 28px;
  height: 28px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}

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

/* === CLOSING === */
.closing {
  padding: var(--section-pad) clamp(20px, 5vw, 60px);
  max-width: var(--max-w);
  margin: 0 auto;
  border-top: 1px solid var(--border-dim);
}

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

.closing-headline {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 28px;
}

.closing-sub {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* === FOOTER === */
.footer {
  padding: 40px clamp(20px, 5vw, 60px);
  border-top: 1px solid var(--border-dim);
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.6;
}

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

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .arch-content {
    position: static;
  }

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

  .pipeline-steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pipeline-connector {
    display: none;
  }
}

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

  .hero-headline {
    font-size: 28px;
  }

  .step-visual {
    display: none;
  }
}

/* === THEME CSS (placeholder — platform fills this) === */
<%- themeCSS %>
