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

:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f18;
  --bg-3: #14141f;
  --fg: #e8e8f0;
  --fg-muted: #8888a0;
  --accent: #ff8c00;
  --accent-dim: rgba(255,140,0,0.12);
  --mint: #00ff9d;
  --mint-dim: rgba(0,255,157,0.10);
  --border: rgba(255,255,255,0.06);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ─── Navigation ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; backdrop-filter: blur(12px); background: rgba(10,10,15,0.8); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-mono); font-size: 1rem; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); text-decoration: none; }
.logo-mark { color: var(--accent); font-size: 1.2rem; }
.logo-os { color: var(--fg-muted); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.nav-link:hover { color: var(--accent); }

/* ─── Hero ─── */
.hero { padding: 8rem 2rem 5rem; position: relative; overflow: hidden; min-height: 90vh; display: flex; align-items: center; }
.hero-grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,140,0,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,140,0,0.04) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%); }
.hero-content { max-width: 1200px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.hero-left { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-eyebrow { display: flex; align-items: center; gap: 0.6rem; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.eyebrow-label { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-headline { font-family: var(--font-head); font-size: clamp(2.8rem, 5vw, 4.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: var(--fg); }
.headline-accent { color: var(--accent); }
.hero-sub { font-size: 1.1rem; color: var(--fg-muted); max-width: 480px; line-height: 1.7; }
.hero-prompt-mock { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.prompt-label { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--accent); }
.prompt-icon { font-size: 0.9rem; }
.prompt-text { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg); line-height: 1.6; border: none; background: none; }
.prompt-sub { font-size: 0.75rem; color: var(--fg-muted); opacity: 0.6; }

/* Graph Visual */
.hero-right { display: flex; justify-content: center; }
.graph-visual { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; width: 100%; max-width: 500px; }
.graph-header { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); }
.graph-title { font-family: var(--font-mono); font-size: 0.8rem; color: var(--fg); font-weight: 500; }
.graph-status { font-family: var(--font-mono); font-size: 0.7rem; color: var(--mint); background: var(--mint-dim); padding: 0.2rem 0.6rem; border-radius: 20px; }
.graph-canvas { position: relative; min-height: 220px; background: var(--bg); }
.graph-connections { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.node { position: absolute; background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: 0.6rem 0.8rem; min-width: 110px; font-family: var(--font-mono); }
.node-header { font-size: 0.7rem; font-weight: 500; color: var(--accent); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.05em; }
.node-body { font-size: 0.72rem; color: var(--fg); line-height: 1.4; }
.node-val { color: var(--mint); }
.node-sensor { border-color: rgba(255,140,0,0.3); }
.node-logic { border-color: rgba(0,255,157,0.3); }
.node-display { border-color: rgba(0,255,157,0.3); }
.node-network { border-color: rgba(255,140,0,0.3); }
.node-target { border-color: rgba(0,255,157,0.3); }
.node-port { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); top: 50%; transform: translateY(-50%); }
.node-port-in { left: -5px; }
.node-port-out { right: -5px; }
.graph-tabs { display: flex; gap: 0; border-top: 1px solid var(--border); }
.tab { flex: 1; text-align: center; padding: 0.6rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-muted); cursor: pointer; transition: all 0.2s; }
.tab:hover { color: var(--fg); }
.tab.active { color: var(--accent); border-top: 2px solid var(--accent); margin-top: -1px; }

/* ─── Stats ─── */
.stats { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 3rem 2rem; }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 48px; background: var(--border); }

/* ─── Features ─── */
.features { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.features-header { margin-bottom: 4rem; }
.section-title { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 1rem; }
.section-sub { font-size: 1.05rem; color: var(--fg-muted); max-width: 520px; line-height: 1.7; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feature-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; transition: border-color 0.3s, transform 0.3s; }
.feature-card:hover { border-color: rgba(255,140,0,0.2); transform: translateY(-2px); }
.feature-icon { font-size: 1.4rem; color: var(--accent); margin-bottom: 1rem; }
.feature-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; color: var(--fg); margin-bottom: 0.6rem; }
.feature-desc { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.7; }

/* ─── Pipeline ─── */
.pipeline { padding: 6rem 2rem; background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pipeline-inner, .pipeline-header { max-width: 1200px; margin: 0 auto; }
.pipeline-header { margin-bottom: 3rem; }
.pipeline-flow { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.pipeline-input { background: var(--bg-3); border: 1px solid rgba(255,140,0,0.3); border-radius: 12px; padding: 1.2rem 1.5rem; display: flex; align-items: center; gap: 1rem; min-width: 240px; }
.pipeline-prompt-icon { color: var(--accent); font-size: 1.2rem; }
.pipeline-prompt-text { font-family: var(--font-mono); font-size: 0.85rem; color: var(--fg); line-height: 1.5; }
.pipeline-arrow { font-size: 1.5rem; color: var(--fg-muted); }
.pipeline-outputs { display: flex; flex-wrap: wrap; gap: 0.6rem; flex: 1; }
.output-chip { background: var(--bg-3); border: 1px solid var(--border); border-radius: 20px; padding: 0.4rem 0.9rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--mint); transition: border-color 0.2s, background 0.2s; }
.output-chip:hover { border-color: rgba(0,255,157,0.3); background: rgba(0,255,157,0.04); }
.pipeline-note { max-width: 1200px; margin: 1.5rem auto 0; font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-muted); }

/* ─── Outputs ─── */
.outputs { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.outputs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.output-item { background: var(--bg-2); padding: 1.8rem; display: flex; gap: 1.2rem; align-items: flex-start; }
.output-icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.output-icon { color: var(--accent); font-size: 1rem; }
.output-info h4 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--fg); margin-bottom: 0.4rem; }
.output-info p { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.6; }

/* ─── Closing ─── */
.closing { padding: 8rem 2rem; background: var(--bg-2); border-top: 1px solid var(--border); }
.closing-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.closing-headline { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; color: var(--fg); margin-bottom: 1.5rem; }
.closing-accent { color: var(--accent); }
.closing-sub { font-size: 1.05rem; color: var(--fg-muted); line-height: 1.8; max-width: 600px; margin: 0 auto 2.5rem; }
.closing-cta { margin-bottom: 1rem; }
.cta-link { display: inline-block; font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--bg); background: var(--accent); padding: 0.8rem 2rem; border-radius: 10px; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.cta-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,140,0,0.3); }
.closing-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-muted); }

/* ─── Footer ─── */
.footer { padding: 2rem; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-brand { font-family: var(--font-mono); font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; color: var(--fg-muted); }
.footer-tagline { font-size: 0.82rem; color: var(--fg-muted); }
.footer-tagline a { color: var(--accent); text-decoration: none; }
.footer-tagline a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.82rem; color: var(--fg-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-right { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .outputs-grid { grid-template-columns: 1fr; }
  .stats-inner { justify-content: center; }
  .stat-divider { display: none; }
  .pipeline-flow { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .hero { padding: 6rem 1.5rem 4rem; }
  .features, .outputs, .pipeline { padding: 4rem 1.5rem; }
  .closing { padding: 5rem 1.5rem; }
}