:root {
  --bg: #0B0F14;
  --surface: #141922;
  --surface-2: #1C2330;
  --fg: #E8EDF4;
  --fg-2: #8B97AD;
  --teal: #00E5A0;
  --teal-dim: rgba(0, 229, 160, 0.12);
  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.15);
  --red: #EF4444;
  --red-dim: rgba(239, 68, 68, 0.12);
  --border: rgba(255, 255, 255, 0.07);
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
}

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

html { scroll-behavior: smooth; }

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

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark { display: flex; align-items: center; }

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.header-nav { display: flex; align-items: center; gap: 8px; }

.nav-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 229, 160, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero-node {
  position: absolute;
  border-radius: 50%;
  background: var(--teal);
}

.node-1 { width: 8px; height: 8px; top: 35%; left: 18%; opacity: 0.6; animation: pulse 3s ease-in-out infinite; }
.node-2 { width: 5px; height: 5px; top: 60%; left: 40%; opacity: 0.4; animation: pulse 4s ease-in-out infinite 1s; }
.node-3 { width: 6px; height: 6px; top: 25%; right: 25%; opacity: 0.5; animation: pulse 3.5s ease-in-out infinite 0.5s; }

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

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-2);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -0.02em;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── DASHBOARD MOCKUP ── */
.hero-visual { display: flex; justify-content: center; }

.dashboard-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 229, 160, 0.05);
}

.mockup-bar {
  background: var(--surface-2);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}

.mockup-bar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.red { background: #EF4444; }
.yellow { background: #F59E0B; }
.green { background: #00E5A0; }

.mockup-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  margin-left: 8px;
}

.mockup-body { display: flex; height: 320px; }

.mockup-sidebar {
  width: 110px;
  background: rgba(0,0,0,0.3);
  border-right: 1px solid var(--border);
  padding: 16px 0;
  flex-shrink: 0;
}

.sidebar-item {
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
  cursor: default;
}

.sidebar-item.active {
  color: var(--teal);
  background: var(--teal-dim);
  border-left: 2px solid var(--teal);
}

.mockup-main { flex: 1; padding: 14px; overflow: hidden; }

.mockup-map {
  background: var(--surface-2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.map-row {
  display: flex;
  gap: 20px;
  justify-content: space-around;
  align-items: center;
}

.map-row-2 { margin-top: 8px; }

.map-pin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid;
}

.pin-active .pin-dot { border-color: var(--teal); background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.pin-warn .pin-dot { border-color: var(--amber); background: var(--amber); }
.pin-idle .pin-dot { border-color: var(--fg-2); background: transparent; }

.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.mockup-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.kpi-card {
  background: var(--surface-2);
  border-radius: 6px;
  padding: 10px;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-2);
  margin-bottom: 4px;
}

.kpi-value {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.kpi-value.teal { color: var(--teal); }
.kpi-value.amber { color: var(--amber); }

.kpi-delta {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  color: var(--fg-2);
  margin-top: 3px;
}

.kpi-delta.up { color: var(--teal); }
.kpi-delta.warn { color: var(--amber); }

.mockup-bars {}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
}

.bar-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg-2);
  width: 72px;
  flex-shrink: 0;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
  transition: width 1s ease;
}

.bar-fill-warn { background: var(--amber); }

.bar-val {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--fg);
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}

/* ── MANIFESTO ── */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 24px;
}

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

.manifesto-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.manifesto-statement {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 32px;
}

.manifesto-body p {
  color: var(--fg-2);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* ── FEATURES ── */
.features { padding: 120px 24px; }

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

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  max-width: 560px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 40px 32px;
  transition: background 0.2s;
}

.feature-card:hover { background: var(--surface-2); }

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-dim);
  border: 1px solid rgba(0, 229, 160, 0.15);
  border-radius: 10px;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  color: var(--fg-2);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── ANATOMY ── */
.anatomy { padding: 120px 24px; background: var(--surface); border-top: 1px solid var(--border); }

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

.anatomy-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.anatomy-headline {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 64px;
}

.anatomy-steps { display: flex; flex-direction: column; gap: 0; }

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 500;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
  padding-top: 4px;
}

.step-content { padding-bottom: 56px; }

.step:last-child .step-content { padding-bottom: 0; }

.step-connector {
  position: absolute;
  left: 38px;
  top: 64px;
  width: 2px;
  height: calc(100% - 64px);
  background: linear-gradient(to bottom, rgba(0, 229, 160, 0.2), transparent);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  color: var(--fg-2);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ── CLOSING ── */
.closing { padding: 120px 24px; overflow: hidden; }

.closing-inner { max-width: 1200px; margin: 0 auto; position: relative; }

.closing-bg-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(rgba(0, 229, 160, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 160, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.closing-content { position: relative; text-align: center; }

.closing-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.closing-headline {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-sub {
  color: var(--fg-2);
  font-size: 1.1rem;
  margin-bottom: 64px;
}

.closing-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.diagram-node {
  display: flex;
  align-items: center;
  gap: 0;
}

.d-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--fg-2);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  white-space: nowrap;
}

.diagram-active .d-label {
  color: var(--teal);
  border-color: rgba(0, 229, 160, 0.25);
  background: var(--teal-dim);
}

.d-arrow {
  font-size: 1.2rem;
  color: var(--fg-2);
  padding: 0 12px;
  opacity: 0.5;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-2);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .hero-visual { order: -1; }
  .dashboard-mockup { max-width: 100%; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; gap: 20px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .closing-diagram { gap: 0; }
  .d-arrow { padding: 0 8px; }
}

@media (max-width: 480px) {
  .manifesto, .features, .anatomy, .closing { padding: 80px 20px; }
  .hero-headline { font-size: 2.2rem; }
  .mockup-sidebar { display: none; }
  .mockup-kpis { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}