:root {
  --bg: #0b0f14;
  --bg-soft: #11161d;
  --panel: #151b24;
  --panel-2: #1b222c;
  --border: #232c38;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --faint: #6b7785;
  --accent: #2dd4bf;
  --accent-2: #38bdf8;
  --accent-ink: #04211d;
  --crit: #f87171;
  --high: #fb923c;
  --med: #fbbf24;
  --low: #60a5fa;
  --info: #94a3b8;
  --good: #34d399;
  --radius: 14px;
  --maxw: 1100px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}
:root[data-theme="light"] {
  --bg: #f6f8fa;
  --bg-soft: #eef2f6;
  --panel: #ffffff;
  --panel-2: #f3f6f9;
  --border: #dde4ec;
  --text: #0d1b2a;
  --muted: #4a5a6a;
  --faint: #7b8794;
  --accent: #0d9488;
  --accent-2: #0284c7;
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: var(--accent-ink); font-weight: 800; font-size: 16px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.theme-btn {
  background: var(--panel); border: 1px solid var(--border); color: var(--muted);
  width: 36px; height: 36px; border-radius: 9px; cursor: pointer; font-size: 15px;
  display: grid; place-items: center;
}
.theme-btn:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 20px; border-radius: 11px; font-weight: 650; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform .05s ease, filter .15s ease;
  font-family: var(--sans);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Hero */
.hero { padding: 78px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 520px;
  background: radial-gradient(900px 360px at 50% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--border); background: var(--panel);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 25%, transparent); }
h1.title { font-size: clamp(33px, 6vw, 56px); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 18px; font-weight: 800; }
h1.title .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 2.4vw, 20px); color: var(--muted); max-width: 680px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--faint); font-size: 13px; margin-top: 14px; }

/* Sections */
section { padding: 56px 0; }
.section-tag { color: var(--accent); font-weight: 650; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
h2.sec { font-size: clamp(26px, 4vw, 36px); letter-spacing: -0.02em; margin: 8px 0 14px; font-weight: 780; }
.sec-sub { color: var(--muted); max-width: 620px; font-size: 17px; }

/* Cards / grid */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.card .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* Code block */
pre.code {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 13px;
  color: var(--text); line-height: 1.55; margin: 0;
}
pre.code .k { color: var(--accent-2); } pre.code .c { color: var(--faint); }

/* Forms */
textarea, input[type=email], input[type=text] {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 11px; padding: 13px 15px; font-family: var(--mono); font-size: 13.5px; resize: vertical;
}
textarea:focus, input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
label.lbl { display: block; font-size: 13px; color: var(--muted); margin: 0 0 7px; font-weight: 600; }
.field { margin-bottom: 16px; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plan.feature { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.plan .badge { position: absolute; top: -12px; left: 28px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .amt { font-size: 34px; font-weight: 800; margin: 10px 0 2px; letter-spacing: -0.02em; }
.plan .amt small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan .alt { color: var(--faint); font-size: 13px; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 22px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--muted); font-size: 14.5px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.plan li.no { color: var(--faint); } .plan li.no::before { content: "—"; color: var(--faint); }

/* Report */
.score-wrap { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.score-ring {
  --p: 0; width: 132px; height: 132px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--ring) calc(var(--p) * 1%), var(--border) 0);
  display: grid; place-items: center; position: relative;
}
.score-ring::after { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--panel); }
.score-ring .val { position: relative; z-index: 1; text-align: center; }
.score-ring .num { font-size: 38px; font-weight: 800; line-height: 1; }
.score-ring .of { font-size: 12px; color: var(--faint); }
.band-pill { display: inline-block; padding: 5px 13px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.finding { border: 1px solid var(--border); border-left-width: 4px; border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; background: var(--panel); }
.finding h4 { margin: 0 0 6px; font-size: 16px; }
.finding p { margin: 0 0 8px; color: var(--muted); font-size: 14.5px; }
.finding .rec { color: var(--text); font-size: 14px; }
.sev { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; margin-right: 8px; }
.sev-critical { background: color-mix(in srgb, var(--crit) 20%, transparent); color: var(--crit); }
.sev-high { background: color-mix(in srgb, var(--high) 18%, transparent); color: var(--high); }
.sev-medium { background: color-mix(in srgb, var(--med) 18%, transparent); color: var(--med); }
.sev-low { background: color-mix(in srgb, var(--low) 18%, transparent); color: var(--low); }
.sev-info { background: color-mix(in srgb, var(--info) 16%, transparent); color: var(--info); }
.bl-critical { border-left-color: var(--crit); } .bl-high { border-left-color: var(--high); }
.bl-medium { border-left-color: var(--med); } .bl-low { border-left-color: var(--low); } .bl-info { border-left-color: var(--info); }
.phase { margin-top: 20px; }
.phase h4 { margin: 0 0 4px; font-size: 17px; }
.phase .horizon { color: var(--faint); font-size: 13px; margin-bottom: 12px; }
.step { padding: 12px 0; border-bottom: 1px solid var(--border); }
.step:last-child { border-bottom: none; }
.summary-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 0; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }

.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border: 2px solid color-mix(in srgb, var(--accent-ink) 40%, transparent); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 14px; }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-grid a { color: var(--muted); } .foot-grid a:hover { color: var(--text); }
.banner { background: color-mix(in srgb, var(--med) 14%, transparent); border: 1px solid color-mix(in srgb, var(--med) 35%, transparent); color: var(--text); padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
