/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d0e12;
  --bg2: #111318;
  --bg3: #161820;
  --fg: #e8e6e1;
  --fg2: #9a9790;
  --accent: #00E5CC;
  --accent-dim: rgba(0,229,204,0.12);
  --red: #ff5f5f;
  --yellow: #ffd60a;
  --green: #00e676;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --max-w: 1140px;
}

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;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,14,18,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-tag {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  background: var(--accent-dim);
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
}

/* === SECTION LABELS === */
.section-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* === MANIFESTO === */
.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 2rem 5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,204,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.manifesto-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.manifesto-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}
.manifesto-headline {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.manifesto-sub {
  font-size: 1.05rem;
  color: var(--fg2);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.manifesto-stats {
  display: flex;
  gap: 2.5rem;
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-top: 0.25rem;
}

/* === SYSTEM DISPLAY === */
.system-display {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.display-header {
  background: var(--bg3);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.display-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg2);
}
.display-dot.red { background: #ff5f5f; }
.display-dot.yellow { background: #ffd60a; }
.display-dot.green { background: #00e676; }
.display-title {
  font-size: 0.7rem;
  color: var(--fg2);
  margin-left: 0.75rem;
  font-family: 'Courier New', monospace;
}
.display-body {
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  line-height: 1.8;
}
.log-line { color: var(--fg2); }
.log-info { color: var(--accent); }
.log-success { color: #00e676; }
.log-warn { color: #ffd60a; }
.log-muted { color: #4a4a4a; }
.cursor-line { margin-top: 0.5rem; }
.prompt { color: var(--accent); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* === SYSTEMS === */
.systems {
  padding: 6rem 2rem;
  background: var(--bg2);
}
.systems-inner { max-width: var(--max-w); margin: 0 auto; }
.systems-header { margin-bottom: 4rem; }
.systems-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.systems-desc {
  color: var(--fg2);
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
}
.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.system-card {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.2s;
}
.system-card:hover { border-color: rgba(0,229,204,0.2); }
.card-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.card-desc {
  color: var(--fg2);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.card-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.status-dot.green { background: #00e676; }
.status-text { font-size: 0.75rem; color: var(--fg2); }

/* === PROOF === */
.proof {
  padding: 6rem 2rem;
  background: var(--bg);
}
.proof-inner { max-width: var(--max-w); margin: 0 auto; }
.proof-header { margin-bottom: 3rem; }
.proof-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.proof-case {
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
}
.case-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.case-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.case-body {
  color: var(--fg2);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}
.case-metric {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.metric-num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.metric-label { font-size: 0.8rem; color: var(--fg2); }

.proof-products { margin-top: 2rem; }
.products-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.product-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 2rem;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
}
.chip-name { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; }
.chip-type { font-size: 0.7rem; color: var(--fg2); }
.chip-status {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00e676;
  font-weight: 600;
}

/* === OPERATIONS === */
.operations { padding: 6rem 2rem; background: var(--bg2); }
.operations-inner { max-width: var(--max-w); margin: 0 auto; }
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.ops-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.ops-body {
  color: var(--fg2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.ops-pillars { display: flex; flex-direction: column; gap: 1rem; }
.pillar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.pillar-num {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  width: 1.5rem;
}
.pillar-text { font-size: 0.9rem; font-weight: 500; }

/* Ops display health */
.ops-display {
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.display-label {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg2);
  margin-bottom: 1rem;
}
.health-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.85rem;
}
.health-item { color: var(--fg2); }
.health-val { font-weight: 600; }
.health-val.good { color: #00e676; }
.health-val.muted { color: var(--fg2); font-weight: 400; }

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  background: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,229,204,0.03) 0%, transparent 70%);
  pointer-events: none;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--fg);
}
.closing-sub {
  color: var(--fg2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.closing-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--fg2);
}
.meta-brand { font-family: var(--font-head); font-weight: 700; color: var(--fg); }
.meta-sep { color: rgba(255,255,255,0.2); }

/* === FOOTER === */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem;
  background: var(--bg);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}
.footer-meta {
  font-size: 0.75rem;
  color: var(--fg2);
  font-style: italic;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto { padding-top: 6rem; }
  .manifesto-right { order: -1; }
  .systems-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .ops-grid { grid-template-columns: 1fr; gap: 2rem; }
  .manifesto-stats { gap: 1.5rem; }
  .products-row { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 480px) {
  .manifesto-headline { font-size: 2.5rem; }
  .manifesto-stats { flex-wrap: wrap; gap: 1rem; }
}