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

:root {
  --bg-canvas: #05070B;
  --bg-elevated: #0A0E17;
  --bg-card: #0F1623;
  --bg-card-hover: #141D2E;
  --bg-code: #070A10;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(56, 189, 248, 0.4);
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent-cyan: #38BDF8;
  --accent-indigo: #6366F1;
  --accent-emerald: #10B981;
  --sev-critical: #F43F5E;
  --sev-critical-bg: rgba(244, 63, 94, 0.12);
  --sev-high: #F59E0B;
  --sev-high-bg: rgba(245, 158, 11, 0.12);
  --sev-medium: #38BDF8;
  --sev-medium-bg: rgba(56, 189, 248, 0.12);
  --sev-pass: #10B981;
  --sev-pass-bg: rgba(16, 185, 129, 0.12);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-elevated: 0 20px 50px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.14);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background-color: var(--bg-canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -15%, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.08) 55%, transparent 100%),
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
  color: var(--text-primary);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}
a:hover {
  color: #7DD3FC;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Announcement Bar */
.announce-bar {
  background: linear-gradient(90deg, rgba(15, 22, 35, 0.95) 0%, rgba(30, 27, 75, 0.85) 50%, rgba(15, 22, 35, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.55rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.announce-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-align: center;
}
.announce-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.announce-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  font-weight: 600;
}

/* Post-checkout confirmation banner */
.checkout-banner {
  display: none;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.18), rgba(56, 189, 248, 0.16));
  border-bottom: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.9rem 1.5rem;
  color: var(--text-primary);
}
.checkout-banner.is-visible {
  display: block;
}
.checkout-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sticky Glassmorphic Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
}
.brand-link:hover {
  color: var(--text-primary);
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25));
}
.brand-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-primary {
  background: linear-gradient(135deg, #38BDF8 0%, #6366F1 100%);
  color: #05070B;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.28), 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}
.btn-primary:hover {
  transform: translateY(-1px);
  color: #05070B;
  box-shadow: 0 8px 28px rgba(56, 189, 248, 0.42), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.btn-emerald {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #05070B;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
}
.btn-emerald:hover {
  transform: translateY(-1px);
  color: #05070B;
  box-shadow: 0 8px 26px rgba(16, 185, 129, 0.4);
}
.btn-secondary {
  background: rgba(15, 22, 35, 0.85);
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.45);
}
.btn-sm {
  padding: 0.44rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
  padding: 4.5rem 0 3.5rem;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.09);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
  color: var(--text-primary);
}
.hero-title-gradient {
  background: linear-gradient(135deg, #38BDF8 0%, #818CF8 52%, #34D399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0 0 1.75rem;
  max-width: 640px;
}

/* Instant CLI Command Copy Bar */
.cli-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-code);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 580px;
  box-shadow: var(--shadow-elevated);
}
.cli-command-text {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
}
.cli-prompt {
  color: var(--accent-emerald);
  user-select: none;
  font-weight: 600;
}
.cli-flag {
  color: var(--accent-cyan);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-trust-note {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-trust-item svg {
  width: 15px;
  height: 15px;
  color: var(--accent-emerald);
}

/* Interactive Terminal & Architecture Preview Window */
.terminal-window {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  overflow: hidden;
}
.window-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 22, 35, 0.9);
  border-bottom: 1px solid var(--border-subtle);
}
.window-dots {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}
.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dot.red { background: #F43F5E; }
.window-dot.amber { background: #F59E0B; }
.window-dot.green { background: #10B981; }
.window-title {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.window-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.terminal-body {
  padding: 1.2rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  color: #CBD5E1;
  background: var(--bg-code);
}
.term-line {
  margin-bottom: 0.35rem;
}
.term-cmd { color: #F8FAFC; font-weight: 600; }
.term-crit { color: #FB7185; }
.term-high { color: #FBBF24; }
.term-pass { color: #34D399; }
.term-dim { color: #64748B; }
.term-diff-del {
  background: rgba(244, 63, 94, 0.14);
  color: #FDA4AF;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: block;
}
.term-diff-add {
  background: rgba(16, 185, 129, 0.14);
  color: #6EE7B7;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  display: block;
}

/* Engineering Metrics Strip */
.metrics-strip {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.metric-card {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.metric-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.metric-icon svg {
  width: 20px;
  height: 20px;
}
.metric-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.metric-lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

/* Section Headers */
.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}
.section-header {
  max-width: 780px;
  margin-bottom: 2.5rem;
}
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin-bottom: 0.65rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin: 0;
}

/* IDE-Grade Split-Pane Interactive Browser Auditor */
.workbench-shell {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated);
  overflow: hidden;
}
.workbench-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(15, 22, 35, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  gap: 1rem;
  flex-wrap: wrap;
}
.preset-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.preset-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 11, 0.65);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.preset-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.preset-tab.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
.preset-tab svg {
  width: 14px;
  height: 14px;
}

.workbench-meta-pills {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.meta-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.workbench-split {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  min-height: 620px;
}
.workbench-left {
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  background: var(--bg-code);
}
.editor-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  min-height: 440px;
}
.editor-gutter {
  width: 44px;
  padding: 1rem 0.5rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #475569;
  background: rgba(5, 7, 11, 0.6);
  border-right: 1px solid var(--border-subtle);
  user-select: none;
  overflow: hidden;
}
.code-textarea {
  flex: 1;
  width: 100%;
  background: transparent;
  color: #E2E8F0;
  border: none;
  outline: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  resize: vertical;
  tab-size: 2;
}
.editor-error-banner {
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(244, 63, 94, 0.14);
  border-top: 1px solid rgba(244, 63, 94, 0.4);
  color: #FDA4AF;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.editor-error-banner.is-visible {
  display: block;
}
.workbench-actions {
  padding: 0.9rem 1.1rem;
  background: rgba(10, 14, 23, 0.95);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.workbench-right {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
}

/* Posture Header with Circular Ring Score Gauge */
.posture-header {
  padding: 1.15rem 1.35rem;
  background: rgba(15, 22, 35, 0.65);
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.35rem;
  align-items: center;
}
.gauge-box {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.score-ring-svg {
  width: 84px;
  height: 84px;
  transform: rotate(-90deg);
}
.score-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 7;
}
.score-ring-progress {
  fill: none;
  stroke: var(--sev-critical);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s ease, stroke 0.3s ease;
}
.gauge-center-label {
  display: flex;
  flex-direction: column;
}
.gauge-score-num {
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.gauge-grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.gauge-tier-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.sev-counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
.sev-counter-card {
  background: rgba(5, 7, 11, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
}
.sev-counter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.sev-counter-top svg {
  width: 14px;
  height: 14px;
}
.sev-counter-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.25rem;
}
.sev-counter-card.crit .sev-counter-val, .sev-counter-card.crit svg { color: var(--sev-critical); }
.sev-counter-card.high .sev-counter-val, .sev-counter-card.high svg { color: var(--sev-high); }
.sev-counter-card.med .sev-counter-val, .sev-counter-card.med svg { color: var(--sev-medium); }
.sev-counter-card.pass .sev-counter-val, .sev-counter-card.pass svg { color: var(--sev-pass); }

/* Output View Tabs */
.output-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 1.15rem 0;
  background: rgba(10, 14, 23, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}
.output-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.95rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.output-tab-btn:hover {
  color: var(--text-primary);
}
.output-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}
.output-tab-btn svg {
  width: 15px;
  height: 15px;
}

.output-panel {
  display: none;
  padding: 1.2rem 1.35rem;
  flex: 1;
  max-height: 460px;
  overflow-y: auto;
}
.output-panel.active {
  display: block;
}

/* Finding Cards */
.finding-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
}
.finding-card.critical { border-left: 3px solid var(--sev-critical); }
.finding-card.high { border-left: 3px solid var(--sev-high); }
.finding-card.medium { border-left: 3px solid var(--sev-medium); }
.finding-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.finding-title-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.sev-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.18rem 0.52rem;
  border-radius: 4px;
}
.sev-badge svg { width: 12px; height: 12px; }
.sev-badge.critical { background: var(--sev-critical-bg); color: #FB7185; border: 1px solid rgba(244, 63, 94, 0.35); }
.sev-badge.high { background: var(--sev-high-bg); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.35); }
.sev-badge.medium { background: var(--sev-medium-bg); color: #38BDF8; border: 1px solid rgba(56, 189, 248, 0.35); }
.sev-badge.pass { background: var(--sev-pass-bg); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.35); }

.eu-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #A5B4FC;
}
.loc-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.finding-evidence {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #E2E8F0;
  margin: 0.5rem 0;
  word-break: break-all;
}
.finding-remediation {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}
.finding-remediation strong {
  color: var(--text-primary);
}

.code-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.code-preview-pre {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #E2E8F0;
  overflow-x: auto;
  margin: 0;
  white-space: pre-wrap;
}

/* OWASP MCP Top 10 Filterable Bento Grid */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.filter-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.rules-bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.rule-bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.18s ease, transform 0.18s ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.rule-bento-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
}
.rule-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.rule-icon-id {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.rule-svg-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}
.rule-svg-box svg {
  width: 18px;
  height: 18px;
}
.rule-code-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rule-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-primary);
}
.rule-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
}
.rule-card-meta {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* CI/CD Gate & CLI Workflow Section */
.ci-viewer {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}
.ci-tabs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(15, 22, 35, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.75rem;
  flex-wrap: wrap;
}
.ci-tab-list {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.ci-tab-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
}
.ci-tab-btn.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}
.ci-pane {
  display: none;
  padding: 1.25rem;
  background: var(--bg-code);
}
.ci-pane.active {
  display: block;
}

/* Pricing Cards & Comparison Matrix */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.pricing-card.featured {
  background: linear-gradient(180deg, rgba(15, 22, 35, 0.98) 0%, rgba(10, 14, 23, 0.98) 100%);
  border: 1px solid var(--accent-cyan);
  box-shadow: var(--shadow-elevated), 0 0 35px rgba(56, 189, 248, 0.16);
}
.pricing-popular-pill {
  position: absolute;
  top: -12px;
  right: 24px;
  background: linear-gradient(135deg, #38BDF8, #6366F1);
  color: #05070B;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
}
.pricing-tier-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}
.pricing-tier-sub {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
}
.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}
.pricing-amount {
  font-size: 2.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}
.pricing-period {
  font-size: 0.84rem;
  color: var(--text-muted);
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.pricing-features li svg {
  width: 17px;
  height: 17px;
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Comparison Table */
.matrix-table-wrap {
  margin-top: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.matrix-table th, .matrix-table td {
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.matrix-table th {
  background: rgba(15, 22, 35, 0.9);
  color: var(--text-primary);
  font-weight: 700;
}
.matrix-table td {
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.3rem;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0;
  cursor: pointer;
}
.faq-question svg {
  width: 18px;
  height: 18px;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
}
.faq-answer {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Guides Hub Cards */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: all 0.18s ease;
}
.guide-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}
.guide-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.guide-card h3 {
  font-size: 1.05rem;
  margin: 0;
  color: var(--text-primary);
}
.guide-card p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

/* Technical Guide Article Layout */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 3rem 0 5rem;
  align-items: start;
}
.guide-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}
.guide-sidebar h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}
.guide-toc {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.guide-toc a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  display: block;
  padding: 0.25rem 0;
}
.guide-toc a:hover {
  color: var(--accent-cyan);
}
.guide-article {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.guide-article h1 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.5rem 0 1rem;
  line-height: 1.15;
}
.guide-article h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}
.guide-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
}
.guide-article p, .guide-article li {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}
.guide-article code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: rgba(56, 189, 248, 0.1);
  color: #7DD3FC;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.guide-article pre {
  background: var(--bg-code);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}
.guide-article pre code {
  background: none;
  color: #E2E8F0;
  padding: 0;
}
.guide-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #030508;
  padding: 3.5rem 0 2.5rem;
  font-size: 0.86rem;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.85rem;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-col a {
  color: var(--text-secondary);
}
.footer-col a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .hero-grid,
  .workbench-split,
  .pricing-grid,
  .guides-grid,
  .guide-layout {
    grid-template-columns: 1fr;
  }
  .metrics-strip,
  .rules-bento-grid,
  .faq-list,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workbench-left {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .guide-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .metrics-strip,
  .rules-bento-grid,
  .sev-counters-grid,
  .faq-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .posture-header {
    grid-template-columns: 1fr;
  }
}
