@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Light Theme (Default) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-subtle-hover: #e2e8f0;
  --bg-terminal: #0b1120;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-hover: #94a3b8;
  --border-glow: rgba(219, 39, 119, 0.3);
  
  --primary: #db2777;
  --primary-glow: rgba(219, 39, 119, 0.15);
  --primary-gradient: linear-gradient(135deg, #db2777 0%, #9333ea 50%, #4f46e5 100%);
  --cyan: #0284c7;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-hover: 0 16px 36px -4px rgba(15, 23, 42, 0.09), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-terminal: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 40px -10px rgba(219, 39, 119, 0.15);
}

[data-theme="dark"] {
  --bg-main: #060911;
  --bg-surface: #0b0f19;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --bg-subtle: rgba(255, 255, 255, 0.05);
  --bg-subtle-hover: rgba(255, 255, 255, 0.1);
  --bg-terminal: #090e17;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-hover: rgba(255, 255, 255, 0.25);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
  --shadow-terminal: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px -10px rgba(219, 39, 119, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 8%, rgba(219, 39, 119, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(2, 132, 199, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(6, 9, 17, 0.88);
  box-shadow: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.brand-tag {
  font-size: 0.78rem;
  padding: 3px 10px;
  background: rgba(219, 39, 119, 0.08);
  color: var(--primary);
  border: 1px solid rgba(219, 39, 119, 0.25);
  border-radius: var(--radius-full);
  margin-left: 0.35rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
  background: var(--bg-subtle-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.btn-github:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

[data-theme="dark"] .btn-github {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-subtle);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  background: rgba(219, 39, 119, 0.08);
  border: 1px solid rgba(219, 39, 119, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 1.35rem;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  background: var(--primary-gradient);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(219, 39, 119, 0.28);
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(219, 39, 119, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.85rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Interactive Simulator */
.simulator-section {
  padding: 1rem 0 5rem;
}

.simulator-window {
  background: var(--bg-terminal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-terminal);
}

.terminal-header {
  background: rgba(15, 23, 42, 0.95);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #94a3b8;
}

.terminal-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-tab {
  padding: 5px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #94a3b8;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tab:hover {
  color: #f8fafc;
}

.btn-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
}

.simulator-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

@media (max-width: 900px) {
  .simulator-body {
    grid-template-columns: 1fr;
  }
}

.sim-input-pane {
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.pane-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.scenario-picker {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.scenario-btn {
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s ease;
}

.scenario-btn:hover, .scenario-btn.active {
  background: rgba(219, 39, 119, 0.2);
  color: #f472b6;
  border-color: rgba(219, 39, 119, 0.5);
}

.sim-textarea {
  width: 100%;
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  resize: none;
  outline: none;
  min-height: 250px;
}

.sim-textarea:focus {
  border-color: #06b6d4;
}

.sim-run-bar {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-run-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.sim-output-pane {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
}

.output-view {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  flex: 1;
  overflow-y: auto;
}

.decision-cards {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.decision-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.decision-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(30, 41, 59, 0.8);
}

.decision-meta {
  display: flex;
  flex-direction: column;
}

.decision-name {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.decision-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
}

.decision-value.danger { color: #f87171; }
.decision-value.warning { color: #fbbf24; }
.decision-value.success { color: #34d399; }
.decision-value.cyan { color: #38bdf8; }

.decision-meter {
  text-align: right;
}

.meter-pct {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f472b6;
}

.meter-bar-track {
  width: 100px;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  margin-top: 4px;
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* Feature Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.85rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  font-size: 1.5rem;
}

.icon-magenta { background: rgba(219, 39, 119, 0.1); color: var(--primary); }
.icon-cyan { background: rgba(2, 132, 199, 0.1); color: var(--cyan); }
.icon-emerald { background: rgba(5, 150, 105, 0.1); color: var(--emerald); }

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Tabs for Integrations & Packs */
.integ-tabs, .pack-tabs {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.integ-tab-btn, .pack-tab-btn {
  padding: 0.6rem 1.3rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.integ-tab-btn:hover, .pack-tab-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.integ-tab-btn.active {
  background: rgba(2, 132, 199, 0.1);
  color: var(--cyan);
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 0 0 1px rgba(2, 132, 199, 0.2);
}

.pack-tab-btn.active {
  background: rgba(219, 39, 119, 0.1);
  color: var(--primary);
  border-color: rgba(219, 39, 119, 0.4);
  box-shadow: 0 0 0 1px rgba(219, 39, 119, 0.2);
}

.code-block-container {
  background: var(--bg-terminal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
  overflow-x: auto;
  box-shadow: var(--shadow-terminal);
}

.copy-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

pre {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.release-command {
  padding: 0.85rem 1.1rem;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  font-size: 0.80rem;
  overflow-x: auto;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25);
}

.release-command code {
  color: #38bdf8;
  font-family: var(--font-mono);
}

/* Policy Badges & Table */
.matrix-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.matrix-table th {
  background: var(--bg-subtle);
  padding: 1.1rem 1.5rem;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.matrix-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.matrix-table tr:hover td {
  background: rgba(15, 23, 42, 0.015);
}

.matrix-table code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--bg-subtle);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

.policy-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.badge-auto { background: rgba(5, 150, 105, 0.12); color: #059669; border: 1px solid rgba(5, 150, 105, 0.3); }
.badge-verify { background: rgba(217, 119, 6, 0.12); color: #d97706; border: 1px solid rgba(217, 119, 6, 0.3); }
.badge-escalate { background: rgba(225, 29, 72, 0.12); color: #e11d48; border: 1px solid rgba(225, 29, 72, 0.3); }

/* Footer */
.footer {
  padding: 4.5rem 0 2.5rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
}
