:root {
  --bg: #070b13;
  --surface: #0d1423;
  --surface-2: #121c30;
  --border: #22304a;
  --border-bright: #334a73;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --blue: #60a5fa;
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #101b33 0%, var(--bg) 52%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 19, 0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.hero {
  padding: 40px 0 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 0 22px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.kpi-val {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.kpi-lbl {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 2px;
}

.workbench {
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.workbench-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.workbench-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.preset-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-bright);
  background: var(--surface-2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}

.btn:hover { border-color: var(--blue); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #03150e;
  font-weight: 700;
}

.btn-primary:hover {
  background: #34d399;
  border-color: #34d399;
  color: #03150e;
}

.btn-sm {
  font-size: 0.78rem;
  padding: 6px 10px;
  font-family: var(--mono);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

label.field-label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 5px;
}

input.field, select.field, textarea.field {
  width: 100%;
  background: #080d18;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 10px 12px;
}

textarea.field {
  min-height: 190px;
  resize: vertical;
  line-height: 1.45;
}

input.field:focus, select.field:focus, textarea.field:focus {
  outline: none;
  border-color: var(--accent);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.privacy-note {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

.results-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.hidden { display: none; }

.score-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #090f1c;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.score-badge {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 800;
}

.sev-critical { color: #f87171; }
.sev-high { color: #fbbf24; }
.sev-medium { color: #60a5fa; }
.sev-pass { color: #34d399; }

.finding-list {
  display: grid;
  gap: 10px;
}

.finding-card {
  background: #090f1c;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 12px 14px;
}

.finding-card.critical { border-left-color: var(--red); }
.finding-card.high { border-left-color: var(--amber); }
.finding-card.medium { border-left-color: var(--blue); }

.finding-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.tag.critical { background: var(--red-soft); border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.tag.high { background: var(--amber-soft); border-color: rgba(245, 158, 11, 0.5); color: #fcd34d; }

.finding-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.finding-detail { color: var(--muted); font-size: 0.88rem; margin-bottom: 6px; }
.finding-fix { color: #a7f3d0; font-family: var(--mono); font-size: 0.8rem; }

.code-box {
  background: #060a12;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 0.83rem;
  overflow-x: auto;
  color: #cbd5e1;
  margin: 10px 0 0;
}

.section {
  padding: 40px 0 12px;
}

.section h2 {
  font-size: 1.55rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 20px;
}

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.28);
}

.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }

.price {
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 800;
  margin: 6px 0 14px;
}

.price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.feat-list li::before {
  content: "+ ";
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}

.adv-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.88rem;
}

.adv-table th, .adv-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.adv-table th {
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
}

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  padding: 26px 0 42px;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
