:root {
  --bg: #0B0F19;
  --surface: #111827;
  --surface2: #1a2234;
  --border: #1f2d40;
  --fg: #F0F4FF;
  --fg-muted: #8B9CB3;
  --accent: #22C55E;
  --accent-dim: rgba(34, 197, 94, 0.15);
  --accent2: #3B82F6;
  --red: #EF4444;
  --yellow: #EAB308;
  --green: #22C55E;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 34px; height: 34px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.nav-name { font-family: var(--font-head); font-size: 16px; color: var(--fg-muted); }
.nav-name strong { color: var(--fg); }
.nav-tagline { font-family: var(--font-head); font-size: 12px; color: var(--fg-muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* HERO */
.hero { padding: 80px 48px 60px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim); border: 1px solid rgba(34,197,94,0.3);
  color: var(--accent); font-size: 12px; font-family: var(--font-head);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; letter-spacing: 0.03em;
}
.badge-dot {
  width: 6px; height: 6px; background: var(--accent);
  border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-headline em { font-style: normal; color: var(--accent); }

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

/* Terminal */
.hero-terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 480px;
}
.terminal-bar {
  background: var(--surface2);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 6px;
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.red { background: #EF4444; }
.t-dot.yellow { background: #EAB308; }
.t-dot.green { background: #22C55E; }
.t-title { font-family: var(--font-head); font-size: 11px; color: var(--fg-muted); margin-left: 8px; letter-spacing: 0.05em; }
.terminal-body { padding: 16px 20px; }
.t-line { font-family: var(--font-head); font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.t-cmd { color: var(--fg-muted); margin-right: 8px; }
.t-out { margin-bottom: 12px; }
.t-row { display: flex; justify-content: space-between; padding: 3px 0; font-family: var(--font-head); font-size: 11px; }
.t-label { color: var(--fg-muted); }
.t-val.green { color: var(--green); }
.t-val.yellow { color: var(--yellow); }
.t-cursor { font-family: var(--font-head); font-size: 13px; color: var(--accent); animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Grid display */
.hero-right { }
.grid-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.grid-label {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.grid-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.gb {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.gb.wide { grid-column: span 2; }
.gb-num { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--fg); }
.gb-lab { font-size: 11px; color: var(--fg-muted); }

.grid-bar-label {
  display: flex; justify-content: space-between;
  font-family: var(--font-head); font-size: 10px; color: var(--fg-muted); margin-bottom: 8px;
}
.grid-bar-label span.active { color: var(--accent); }
.grid-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; }
.gbar {
  flex: 1; background: var(--surface2); border-radius: 4px;
  transition: height 0.5s ease;
  min-height: 8px;
}
.gbar-active { background: var(--accent); }

/* STATS */
.stats { padding: 40px 48px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 32px; }
.stat-icon { color: var(--accent); margin-bottom: 4px; }
.stat-num { font-family: var(--font-head); font-size: 36px; font-weight: 700; color: var(--fg); }
.stat-label { font-size: 13px; color: var(--fg-muted); text-align: center; }
.stat-div { width: 1px; height: 60px; background: var(--border); }

/* FEATURES */
.features { padding: 100px 48px; }
.features-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-sub { font-size: 16px; color: var(--fg-muted); max-width: 560px; margin-bottom: 60px; line-height: 1.7; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.feat:hover { border-color: rgba(34,197,94,0.4); transform: translateY(-2px); }
.feat::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.feat:hover::before { opacity: 1; }
.feat-icon { color: var(--accent); margin-bottom: 16px; }
.feat-title { font-family: var(--font-head); font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.feat-body { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 20px; }
.feat-tag {
  font-family: var(--font-head);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

/* OPSFLOW */
.opsflow { padding: 80px 48px; border-top: 1px solid var(--border); }
.opsflow-inner { max-width: 1200px; margin: 0 auto; }
.flow-steps { display: flex; align-items: center; gap: 0; margin-top: 56px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 200px; }
.fs-num { font-family: var(--font-head); font-size: 48px; font-weight: 700; color: var(--surface2); line-height: 1; margin-bottom: 12px; }
.fs-body h4 { font-family: var(--font-head); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.fs-body p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; }
.flow-arrow { padding: 0 20px; color: var(--border); flex-shrink: 0; }

/* CLOSING */
.closing { padding: 100px 48px; }
.closing-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.closing-glyph { margin-bottom: 32px; }
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.closing-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.75; margin-bottom: 36px; }
.closing-tag {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

/* FOOTER */
.footer { padding: 40px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-copy { font-size: 13px; color: var(--fg-muted); max-width: 400px; }
.footer-meta { font-family: var(--font-head); font-size: 12px; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav { padding: 20px 24px; }
  .hero { padding: 60px 24px 40px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-right { order: -1; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .stat-div { display: none; }
  .flow-steps { flex-direction: column; align-items: flex-start; gap: 24px; }
  .flow-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .feat-grid { grid-template-columns: 1fr; }
  .grid-blocks { grid-template-columns: 1fr 1fr; }
  .gb.wide { grid-column: span 2; }
  .features { padding: 60px 24px; }
  .opsflow { padding: 60px 24px; }
  .closing { padding: 60px 24px; }
  .stats { padding: 32px 24px; }
}