:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --fg: #e8e8ed;
  --fg-muted: #8888a0;
  --fg-dim: #555570;
  --accent: #00e5a0;
  --accent-glow: rgba(0, 229, 160, 0.15);
  --accent-bright: #00ffb3;
  --border: #1e1e2e;
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}

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

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 50% 50%, var(--accent-glow) 0%, transparent 50%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(0, 229, 160, 0.3);
  padding: 0.4rem 1.2rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  background: var(--accent-glow);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.hero-title .os {
  color: var(--accent);
  font-weight: 500;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--fg-muted);
  line-height: 1.5;
  margin-bottom: 3rem;
}

/* Terminal */
.hero-terminal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-left: auto;
}

.terminal-body {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.terminal-line {
  padding: 0.3rem 0;
  color: var(--fg-muted);
}

.t-prompt {
  color: var(--accent);
  margin-right: 0.5rem;
}

.t-value {
  color: var(--fg);
  font-weight: 500;
  float: right;
}

.terminal-line.blink .cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent);
}

@keyframes blink {
  50% { opacity: 0; }
}

/* ===== METRICS ===== */
.metrics {
  padding: 6rem 2rem;
  border-top: 1px solid var(--border);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.metric-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s;
}

.metric-card:hover {
  border-color: rgba(0, 229, 160, 0.3);
}

.metric-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-bright);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.5rem;
  color: var(--fg);
}

.metric-sub {
  font-size: 0.8rem;
  color: var(--fg-dim);
  margin-top: 0.25rem;
}

/* ===== FEATURES ===== */
.features {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
}

.features-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 3rem;
}

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

.feature-block {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.3s;
}

.feature-block:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 160, 0.2);
}

.feature-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-block p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== ARCHITECTURE ===== */
.architecture {
  padding: 6rem 2rem;
}

.arch-inner {
  max-width: 800px;
  margin: 0 auto;
}

.arch-flow {
  margin-top: 2rem;
}

.arch-step {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
}

.step-content h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.arch-connector {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
}

/* ===== CLOSING ===== */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.closing-inner {
  max-width: 700px;
  margin: 0 auto;
}

.closing-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.closing-text {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-dim);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .arch-step {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

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

  .hero-terminal {
    font-size: 0.8rem;
  }
}