:root {
  --bg: #060a0e;
  --bg-2: #0c1219;
  --surface: #111927;
  --border: #1c2b3a;
  --fg: #c8d8e8;
  --fg-dim: #6b849e;
  --accent: #00d4ff;
  --accent-dim: rgba(0, 212, 255, 0.12);
  --ok: #00e87a;
  --warn: #ffb800;
  --err: #ff4d4d;
  --info: #8b9fc4;
  --font-mono: 'JetBrains Mono', 'Fira Mono', 'Consolas', monospace;
  --font-sans: 'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; }

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

/* NAV */
.nav {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  letter-spacing: -0.5px;
}
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ok);
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* HERO */
.hero {
  padding: 96px 24px 80px;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-headline {
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-accent { color: var(--accent); }
.hero-sub {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 420px;
}

/* TERMINAL */
.hero-terminal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.terminal-bar {
  background: var(--surface);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid var(--border);
}
.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.term-dot.red { background: #ff5f57; }
.term-dot.yellow { background: #febc2e; }
.term-dot.green { background: #28c840; }
.term-title {
  margin-left: 8px;
  color: var(--fg-dim);
  font-size: 11px;
}
.terminal-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.term-line { color: var(--fg-dim); line-height: 1.5; }
.term-ts { color: #3a5270; margin-right: 10px; }
.term-ok { color: var(--ok); margin-right: 8px; }
.term-warn { color: var(--warn); margin-right: 8px; }
.term-err { color: var(--err); margin-right: 8px; }
.term-info { color: var(--info); margin-right: 8px; }

/* LOOP */
.loop {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.loop-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.loop-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 48px;
}
.loop-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
.loop-step { padding: 0 32px 0 0; }
.loop-arrow {
  display: flex;
  align-items: center;
  padding-top: 28px;
  color: var(--border);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.step-body {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* INCIDENT */
.incident {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.incident-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.incident-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.incident-headline {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.stat {
  background: var(--bg-2);
  padding: 28px 32px;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.stat-label {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}

/* MANIFESTO */
.manifesto {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.manifesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.manifesto-quote {
  font-family: var(--font-mono);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  padding-left: 28px;
  border-left: 3px solid var(--accent);
}
.manifesto-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.manifesto-body p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.75;
}

/* CLOSING */
.closing {
  padding: 100px 24px;
  text-align: center;
}
.closing-inner { max-width: 700px; margin: 0 auto; }
.closing-headline {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}
.closing-sub {
  font-size: 18px;
  color: var(--fg-dim);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--fg);
  display: block;
  margin-bottom: 4px;
}
.footer-desc {
  font-size: 13px;
  color: var(--fg-dim);
}
.footer-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { display: none; }
  .loop-grid { grid-template-columns: 1fr; gap: 40px; }
  .loop-arrow { display: none; }
  .incident-inner { grid-template-columns: 1fr; gap: 40px; }
  .manifesto-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ─── HERO: new left-side actions ─── */
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.1s;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 0 20px rgba(0, 212, 255, 0.35); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--fg-dim); }
.term-live-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  color: var(--ok);
  letter-spacing: 0.08em;
}

/* ─── LIVE FEED ─── */
.live-feed {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.live-feed-inner { max-width: 1100px; margin: 0 auto; }
.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.feed-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-api-link {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-dim);
  text-decoration: none;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.feed-api-link:hover { border-color: var(--accent); color: var(--accent); }
.feed-terminal { border-radius: 10px; overflow: hidden; }
.feed-body { max-height: 260px; overflow-y: auto; }
.feed-row {
  display: grid;
  grid-template-columns: 80px 48px 100px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
}
.feed-row:last-child { border-bottom: none; }
.feed-ts { color: #3a5270; }
.feed-status { }
.feed-summary { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-freed { color: var(--ok); font-size: 11px; white-space: nowrap; }

/* Badges and type tags */
.badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-ok { background: rgba(0, 232, 122, 0.15); color: var(--ok); }
.badge-warn { background: rgba(255, 184, 0, 0.15); color: var(--warn); }
.badge-info { background: rgba(0, 212, 255, 0.12); color: var(--accent); }
.badge-err { background: rgba(255, 77, 77, 0.15); color: var(--err); }
.badge-dim { background: var(--border); color: var(--fg-dim); }
.type-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.type-disk { background: rgba(0, 212, 255, 0.15); color: var(--accent); }
.type-memory { background: rgba(180, 100, 255, 0.15); color: #c084fc; }
.status-dot.pulse { animation: pulse 1.5s ease-in-out infinite; }

/* ─── TRY IT ─── */
.try-it {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
}
.try-it-inner { max-width: 1100px; margin: 0 auto; }
.try-it-header { margin-bottom: 48px; }
.try-it-headline {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  margin: 16px 0 16px;
  line-height: 1.35;
}
.try-it-sub {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 560px;
}
.try-it-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.try-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.try-btn:hover { border-color: var(--fg-dim); transform: translateY(-2px); }
.try-btn:active { transform: translateY(0); }
.try-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.try-btn-icon { font-size: 28px; }
.try-btn-label {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.try-btn-desc { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }
.try-btn-status {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}
.status-running { color: var(--warn); }
.status-done { color: var(--ok); }
.status-err { color: var(--err); }
.sim-output { margin-top: 0; }
.sim-terminal { border-radius: 10px; overflow: hidden; }

/* ─── PLAYBOOKS ─── */
.playbooks {
  padding: 80px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.playbooks-inner { max-width: 1100px; margin: 0 auto; }
.playbooks-header { margin-bottom: 48px; }
.playbooks-headline {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-top: 16px;
  line-height: 1.35;
}
.playbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
.playbook-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.playbook-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.playbook-type {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}
.playbook-schedule {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}
.playbook-name {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.playbook-desc { font-size: 14px; color: var(--fg-dim); line-height: 1.65; margin-bottom: 20px; }
.playbook-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 20px;
}
.trigger-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
}
.trigger-value {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--warn);
}
.playbook-actions { display: flex; flex-direction: column; gap: 10px; }
.playbook-action {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--fg);
}
.action-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 2px 7px;
  min-width: 28px;
  text-align: center;
}
.playbooks-footer { margin-top: 24px; }
.playbooks-note { font-size: 14px; color: var(--fg-dim); }
.playbooks-note a { color: var(--accent); text-decoration: none; }
.playbooks-note a:hover { text-decoration: underline; }

/* ─── FOUNDING CTA ─── */
.founding-cta {
  padding: 100px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  text-align: center;
}
.founding-cta-inner { max-width: 680px; margin: 0 auto; }
.cta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.cta-headline {
  font-family: var(--font-mono);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}
.cta-sub {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 36px;
}
.seats-counter { margin-bottom: 36px; }
.seats-bar-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.seats-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--ok));
  border-radius: 4px;
  transition: width 0.8s ease;
}
.seats-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
}
.cta-features {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  text-align: left;
}
.cta-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cta-feature-icon { font-size: 20px; flex-shrink: 0; }
.cta-feature strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.cta-feature span {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.cta-button {
  display: inline-block;
  background: var(--ok);
  color: #000;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 18px 36px;
  cursor: pointer;
  width: 100%;
  max-width: 400px;
  transition: opacity 0.15s, box-shadow 0.15s;
}
.cta-button:hover { opacity: 0.9; box-shadow: 0 0 30px rgba(0, 232, 122, 0.4); }
.cta-button:disabled { opacity: 0.5; cursor: not-allowed; }
.cta-note {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 12px;
}
.checkout-loading {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 12px;
}
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.checkout-error {
  font-size: 13px;
  color: var(--err);
  margin-top: 12px;
}

/* ─── RESPONSIVE NEW SECTIONS ─── */
@media (max-width: 768px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-terminal { display: none; }
  .try-it-buttons { grid-template-columns: 1fr; }
  .playbook-grid { grid-template-columns: 1fr; }
  .cta-features { grid-template-columns: 1fr; }
  .feed-row { grid-template-columns: 70px 44px 90px 1fr; }
  .feed-freed { display: none; }
}