:root {
  --bg-main: #0c0d12;
  --bg-card: #13151f;
  --bg-card-hover: #191b28;
  --accent-rose: #f43f5e;
  --accent-rose-hover: #e11d48;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border: #222638;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg-main); color: var(--text-main); font-family: var(--font-sans);
  line-height: 1.6; min-height: 100vh;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

header {
  border-bottom: 1px solid var(--border); background: rgba(12, 13, 18, 0.95);
  backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #fff; font-weight: 800; font-size: 1.25rem; font-family: var(--font-mono);
}
.logo-icon { color: var(--accent-rose); font-size: 1.5rem; }
.alert-tag {
  background: rgba(244, 63, 94, 0.15); color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.4); font-size: 0.72rem; font-weight: 800;
  padding: 2px 7px; border-radius: 4px; text-transform: uppercase;
}
nav a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; margin-left: 24px; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: #fff; }

.hero { padding: 50px 0 30px; text-align: center; }
.emergency-pill {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4); color: var(--accent-rose);
  padding: 5px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; margin-bottom: 16px;
}
.hero h1 { font-size: 2.8rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 14px; line-height: 1.25; }
.hero h1 span { color: var(--accent-rose); }
.hero p { color: var(--text-muted); font-size: 1.15rem; max-width: 740px; margin: 0 auto; }

/* Interactive Wizard */
.wizard-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; margin: 30px 0 50px; box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}
.wizard-header { margin-bottom: 24px; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
.wizard-title { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.wizard-sub { color: var(--text-muted); font-size: 0.88rem; margin-top: 4px; }

.wizard-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 24px; }
.wizard-field { display: flex; flex-direction: column; gap: 8px; }
.wizard-field label { font-size: 0.82rem; text-transform: uppercase; color: var(--text-dim); font-weight: 700; font-family: var(--font-mono); }
.wizard-select {
  background: #090a0f; border: 1px solid var(--border); color: #fff; padding: 12px 14px;
  border-radius: 8px; font-family: var(--font-sans); font-size: 0.9rem; outline: none;
}
.wizard-select:focus { border-color: var(--accent-rose); }

.wizard-result {
  background: #08090f; border: 1px solid rgba(244, 63, 94, 0.35); border-radius: 10px; padding: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.wiz-rec h4 { font-size: 1.2rem; color: #fff; margin-bottom: 4px; }
.wiz-rec p { font-size: 0.88rem; color: var(--text-muted); max-width: 550px; }
.wiz-btn {
  background: var(--accent-rose); color: #fff; font-weight: 700; padding: 12px 22px;
  border-radius: 8px; text-decoration: none; font-size: 0.9rem; transition: background 0.2s;
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
}
.wiz-btn:hover { background: var(--accent-rose-hover); }

/* Playbook Guides */
.guide-section { margin-bottom: 60px; }
.guide-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; }
.guide-sub { color: var(--text-muted); margin-bottom: 30px; }

.playbooks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.playbook-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 26px; transition: border-color 0.2s; display: flex; flex-direction: column; justify-content: space-between;
}
.playbook-card:hover { border-color: var(--accent-rose); }
.pb-badge { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 2px 8px; border-radius: 4px; margin-bottom: 12px; text-transform: uppercase; }
.pb-badge.red { background: rgba(244, 63, 94, 0.15); color: var(--accent-rose); }
.pb-badge.amber { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.pb-badge.green { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }

.playbook-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.playbook-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }
.pb-meta { font-size: 0.8rem; color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 16px; }
.pb-link {
  color: var(--accent-rose); text-decoration: none; font-weight: 700; font-size: 0.88rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.pb-link:hover { text-decoration: underline; }

/* Protocol Solutions Matrix */
.matrix-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; margin-bottom: 60px; }
.matrix-card h2 { font-size: 1.5rem; margin-bottom: 16px; }
.matrix-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9rem; }
.matrix-table th, .matrix-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.matrix-table th { background: #090b12; color: var(--text-dim); font-size: 0.78rem; text-transform: uppercase; }

footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--text-dim); font-size: 0.85rem; text-align: center; }
footer a { color: var(--text-muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: #fff; }

@media (max-width: 768px) {
  .wizard-result { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 2.1rem; }
}
