/* === BASE === */
:root {
  --bg: #080C14;
  --surface: #0D1421;
  --surface2: #111a2b;
  --border: #1a2740;
  --green: #39FF14;
  --green-dim: rgba(57, 255, 20, 0.12);
  --green-glow: rgba(57, 255, 20, 0.06);
  --text: #dde6f0;
  --text-muted: #6b7f9b;
  --text-dim: #3d506a;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* subtle dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #1a2740 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.site-header nav { display: flex; gap: 28px; }
.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--text); }

/* === SECTION SHARED === */
section { position: relative; z-index: 1; }

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

h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 48px;
}

/* === HERO === */
.hero {
  padding: 80px 0 100px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 4px;
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.2);
}

/* terminal */
.hero-terminal {
  background: #050a11;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(57,255,20,0.04);
}
.terminal-bar {
  background: #0d1822;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.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-display);
  font-size: 12px;
  color: var(--text-dim);
  margin-left: 8px;
}
.terminal-body {
  padding: 20px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.7;
}
.t-line { color: var(--text-muted); }
.t-comment { color: var(--text-dim); font-style: italic; }
.t-dim { color: var(--text-dim); }
.t-error { color: #ff6b6b; }
.t-green { color: var(--green); }
.t-blank { line-height: 0.4; }
.t-accent { color: #79b8ff; }

/* === PIPELINE === */
.pipeline {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.pipeline > div:not(.section-label):not(h2) {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.pipeline h2 { max-width: 1100px; margin: 0 auto 56px; padding: 0 32px; }
.pipeline-steps {
  display: grid;
  grid-template-columns: 180px 40px 180px 40px 180px 40px 180px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.pipeline-step { padding-top: 8px; }
.step-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 12px;
}
.pipeline-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.pipeline-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.pipeline-connector {
  height: 1px;
  background: var(--border);
  margin-top: 36px;
  position: relative;
}
.pipeline-connector::after {
  content: '›';
  position: absolute;
  right: -2px;
  top: -10px;
  font-size: 16px;
  color: var(--text-dim);
}

/* === FEATURES === */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg) 0%, #060a11 100%);
}
.features > div:not(.section-label):not(h2) {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.features h2 { max-width: 1100px; margin: 0 auto 56px; padding: 0 32px; }
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.feature-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--surface2); }
.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--green-dim);
  border: 1px solid rgba(57,255,20,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--green);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === ROBOTICS === */
.robotics {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}
.robotics > div:not(.section-label):not(h2):not(.robotics-sub) {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.robotics h2 { max-width: 1100px; margin: 0 auto 16px; padding: 0 32px; }
.robotics-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.robot-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.robot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
  text-align: center;
}
.robot-icon { margin-bottom: 16px; color: var(--green); opacity: 0.7; }
.robot-card h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}
.robot-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.robotics-note {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}
.robotics-note code {
  font-family: monospace;
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--green);
  font-size: 12px;
}

/* === CLOSING === */
.closing {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.closing h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  margin-bottom: 24px;
}
.closing p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .logo { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.tagline { font-size: 13px; color: var(--text-dim); }
.footer-links { font-size: 13px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; }
.separator { color: var(--text-dim); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { max-width: 520px; }
  .pipeline-steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pipeline-connector { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .robot-cards { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .robot-cards { grid-template-columns: 1fr; }
  h2 { font-size: 28px; }
  .hero-text h1 { font-size: 38px; }
}