:root {
  --bg: #070b12;
  --bg-2: #0a111b;
  --panel: #0d1520;
  --panel-2: #111a28;
  --border: #1c2a3c;
  --border-strong: #2a3d52;
  --text: #e2e8f0;
  --muted: #93a5b9;
  --faint: #64748b;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --pink: #f472b6;
  --green: #34d399;
  --yellow: #fbbf24;
  --red: #f87171;
  --gradient: linear-gradient(100deg, #22d3ee, #a78bfa 55%, #f472b6);
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  --radius: 14px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { color: #eef3f9; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: #b6c9dd;
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 5px;
}

/* backdrop */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, black 20%, transparent 80%);
}
.bg-orbs { position: fixed; inset: 0; z-index: -3; pointer-events: none; overflow: hidden; }
.bg-orbs i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.14; }
.bg-orbs i:nth-child(1) { width: 520px; height: 520px; top: -180px; left: -120px; background: var(--cyan); }
.bg-orbs i:nth-child(2) { width: 460px; height: 460px; top: 8%; right: -160px; background: var(--violet); }
.bg-orbs i:nth-child(3) { width: 420px; height: 420px; bottom: -160px; left: 30%; background: var(--pink); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 13px clamp(16px, 5vw, 48px);
  background: rgba(7, 11, 18, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.4)); }
.brand em, .brand-name em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; gap: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 11px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap; font-family: var(--sans);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--gradient); color: #060a0f; box-shadow: 0 0 26px rgba(34, 211, 238, 0.32); }
.btn-primary:hover { box-shadow: 0 0 36px rgba(167, 139, 250, 0.5); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 18px rgba(34, 211, 238, 0.18); }
.btn-sm { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

main { padding: 0 clamp(16px, 5vw, 48px); }

/* hero */
.hero {
  text-align: center;
  padding: clamp(52px, 8vw, 96px) 0 36px;
  display: flex; flex-direction: column; align-items: center;
}
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em;
  color: var(--faint); text-transform: uppercase; margin-bottom: 24px;
}
.eyebrow::before, .eyebrow::after { content: "— "; color: var(--cyan); }
h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.08; font-weight: 900;
  letter-spacing: -0.03em; max-width: 900px;
}
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub {
  max-width: 700px; margin: 22px auto 0;
  color: var(--muted); font-size: clamp(15px, 1.7vw, 18px);
}
.sub em { color: var(--pink); font-style: normal; font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.privacy-bar {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 30px; padding: 9px 16px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(13, 21, 32, 0.6);
}
.privacy-bar svg { color: var(--green); }

.hero-scans {
  margin-top: 30px; width: min(820px, 100%);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px;
  text-align: left;
}
.hero-scan-group { display: flex; flex-direction: column; gap: 8px; }
.hero-scan-tag {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--violet); padding-left: 4px;
}
.hero-scan-group .hero-scan { margin-top: 0; width: 100%; }
.hero-scan-note { font-size: 12px; color: var(--faint); padding-left: 4px; }

.hero-scan {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px 8px 16px;
  background: var(--panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-scan:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15), var(--shadow); }
.hero-scan.hot {
  border: 1px solid transparent;
  background: linear-gradient(180deg, #101a29, #0d1520) padding-box, var(--gradient) border-box;
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.16), var(--shadow);
}
.hero-scan.hot:focus-within { box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.18), 0 0 38px rgba(34, 211, 238, 0.28), var(--shadow); }
.hero-scan.hot .scan-icon { color: var(--violet); }
.hero-scan .scan-icon { color: var(--faint); flex: 0 0 auto; }
.hero-scan input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--mono); font-size: 14px;
}
.hero-scan input::placeholder { color: #52637a; }
.hero-hint { margin-top: 14px; font-size: 13px; color: var(--faint); }
.hero-hint a { color: var(--muted); }

/* sections */
.section {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(52px, 6vw, 92px) 0;
  scroll-margin-top: 86px;
}
.section-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.section-sub {
  text-align: center; color: var(--muted);
  max-width: 700px; margin: 14px auto 38px; font-size: 15px;
}
.section-sub b { color: var(--text); }
.cursor { color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* feature / why cards */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.why-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.why-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.why-card h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.why-card .num {
  font-family: var(--mono); font-size: 11px; color: var(--cyan);
  border: 1px solid var(--border-strong); border-radius: 7px; padding: 2px 7px; flex: 0 0 auto;
}
.why-card p { color: var(--muted); font-size: 14px; }
.feat-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(34, 211, 238, 0.1); color: var(--cyan); flex: 0 0 auto; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; max-width: 1080px; margin: 0 auto; }
.step {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: left;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  background: var(--gradient); color: #060a0f; margin-bottom: 14px;
}
.step-name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.step-text { color: var(--muted); font-size: 13.5px; }

/* studio */
.studio { max-width: 1360px; }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; min-height: 480px;
}
.studio-left { min-width: 0; }

.mode-tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 10px 10px 0;
  border-bottom: 1px solid var(--border); background: rgba(7, 11, 18, 0.5);
  scrollbar-width: thin;
}
.mode-tab {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  color: var(--muted); background: transparent;
  border: 1px solid transparent; border-bottom: none;
  border-radius: 9px 9px 0 0; padding: 8px 13px; cursor: pointer;
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.mode-tab:hover { color: var(--text); }
.mode-tab.active { color: var(--cyan); background: var(--panel-2); border-color: var(--border); }
.mode-tab.hot { color: var(--violet); }
.mode-tab.hot.active { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); }
.tab-new {
  font-size: 9px; font-weight: 800; letter-spacing: 0.06em;
  color: #060a0f; background: var(--gradient);
  border-radius: 999px; padding: 2px 6px; margin-left: 5px; vertical-align: 1px;
}

/* provider panel */
.provider-panel { border-bottom: 1px solid var(--border); }
.provider-toggle {
  width: 100%; display: flex; align-items: center; gap: 12px;
  background: transparent; border: none; cursor: pointer;
  padding: 12px 16px; text-align: left; font-family: var(--sans);
}
.provider-toggle:hover { background: rgba(255, 255, 255, 0.02); }
.pt-title { font-weight: 700; font-size: 14px; color: var(--text); flex: 0 0 auto; }
.pt-sub { color: var(--faint); font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-chev { color: var(--faint); transition: transform 0.2s; }
.provider-panel.open .pt-chev { transform: rotate(180deg); }
.provider-body { padding: 0 16px 14px; display: grid; gap: 12px; }
.provider-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 220px; min-width: 0; }
.field-wide { flex: 1.4 1 260px; }
.field-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--faint); pointer-events: none; font-size: 12px;
}
select, input[type="text"], input[type="password"] {
  width: 100%; min-width: 0;
  background: var(--bg-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 9px;
  padding: 9px 11px; font-size: 13.5px; outline: none;
  font-family: var(--sans);
  appearance: none; -webkit-appearance: none;
}
select { padding-right: 30px; }
select:focus, input[type="text"]:focus, input[type="password"]:focus { border-color: var(--cyan); }
.key-input { display: flex; gap: 6px; }
.key-input input { flex: 1; font-family: var(--mono); font-size: 13px; }
.icon-btn {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: transparent; border: 1px solid var(--border-strong); border-radius: 7px;
  padding: 4px 10px; cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--cyan); border-color: var(--cyan); }
.get-key { font-size: 13px; font-weight: 600; }
.range-wrap { display: flex; align-items: center; gap: 10px; }
.range-wrap input[type="range"] { flex: 1; accent-color: var(--cyan); }
.range-val { font-family: var(--mono); font-size: 12px; color: var(--cyan); min-width: 30px; text-align: right; }
.provider-note { font-size: 12px; color: var(--faint); line-height: 1.5; margin-top: 2px; }

/* editor */
.editor {
  display: flex; position: relative; overflow: hidden;
  height: clamp(320px, 48vh, 560px);
  background: #060910;
  transition: height 0.25s ease;
}
.editor.expanded { height: 82vh; }
.gutter {
  width: 46px; flex: 0 0 46px; overflow: hidden; height: 100%;
  text-align: right; user-select: none;
  font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: #33455c; background: #060910;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 14px; padding-bottom: 14px;
}
.gutter div { padding-right: 10px; position: relative; white-space: pre; }
.gutter div .mark { margin-left: 4px; opacity: 0; }
.gutter div.has-err .mark { color: var(--red); opacity: 1; }
.gutter div.has-warn .mark { color: var(--yellow); opacity: 1; }
.gutter div.cur { background: rgba(34, 211, 238, 0.06); color: #7f9dbb; }
#code {
  flex: 1; min-width: 0; height: 100%; resize: none;
  background: transparent; color: #cfe0ee;
  border: none; outline: none; padding: 14px 14px 14px 16px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.7; caret-color: var(--cyan);
  scrollbar-color: #2a3d52 transparent;
}
#code::placeholder { color: #3d4f66; }

.toolbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.sample-pick { display: flex; align-items: center; gap: 6px; }
.sample-pick select { width: auto; min-width: 170px; padding: 7px 26px 7px 10px; font-size: 12.5px; }
.tool-btn {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  color: var(--muted); background: transparent;
  border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 7px 12px; cursor: pointer; white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.tool-btn:hover { color: var(--cyan); border-color: var(--cyan); background: rgba(34, 211, 238, 0.06); }
.tool-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.file-label { font-size: 12px; color: var(--faint); }
.gh-status { font-size: 12px; color: var(--faint); }
.gh-status.ok { color: var(--green); }
.gh-status.err { color: var(--red); }

/* terminal-style fetch */
.terminal { border-top: 1px solid var(--border); background: #05070d; font-family: var(--mono); }
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.term-dots { display: flex; gap: 5px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: #1c2a3c; }
.term-dots i:nth-child(1) { background: #f87171; }
.term-dots i:nth-child(2) { background: #fbbf24; }
.term-dots i:nth-child(3) { background: #34d399; }
.term-title { font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.term-label { margin-left: auto; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.term-body { padding: 10px 12px 12px; display: grid; gap: 8px; }
.term-line { display: flex; align-items: center; gap: 8px; }
.term-prompt { color: var(--green); font-size: 12.5px; font-weight: 700; }
.term-line input { flex: 1; font-family: var(--mono); font-size: 12.5px; background: #080b12; }
.term-out { display: flex; align-items: center; gap: 8px; min-height: 16px; }
.term-cursor {
  display: none; width: 8px; height: 15px; background: var(--cyan);
  animation: blink 1.1s step-end infinite;
}
.term-out:has(.gh-status:empty) .term-cursor { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }

.run-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--border); }
.btn-run { flex: 1; justify-content: center; }
.run-hint { font-size: 12px; color: var(--faint); }

/* results */
.studio-right { min-width: 0; }
.res-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.res-title { font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--cyan); }
.res-status { font-size: 12px; color: var(--faint); font-family: var(--mono); }
.res-status.loading { color: var(--yellow); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.verdict { margin: 12px 16px 0; padding: 12px 14px; border-radius: 10px; font-weight: 800; font-size: 14px; letter-spacing: 0.01em; }
.verdict.blocked { color: var(--red); background: rgba(248, 113, 113, 0.08); border: 1px solid rgba(248, 113, 113, 0.25); }
.verdict.clean { color: var(--green); background: rgba(52, 211, 153, 0.07); border: 1px solid rgba(52, 211, 153, 0.22); }
.verdict.warned { color: var(--yellow); background: rgba(251, 191, 36, 0.07); border: 1px solid rgba(251, 191, 36, 0.22); }
.res-content { flex: 1; padding: 14px 16px; overflow-y: auto; max-height: 640px; font-size: 13px; }
.res-content .empty { color: #3c4c60; font-family: var(--mono); font-size: 12.5px; }
.res-actions { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* findings */
.out-file { color: var(--cyan); font-weight: 700; margin: 6px 0 6px; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.out-file::before { content: "▸"; color: var(--faint); }
.out-line { display: flex; gap: 10px; padding: 2px 0; align-items: baseline; }
.out-line .ln { flex: 0 0 30px; color: #3c4c60; text-align: right; font-size: 11px; font-family: var(--mono); }
.out-marker { flex: 0 0 16px; font-family: var(--mono); }
.err-marker { color: var(--red); }
.warn-marker { color: var(--yellow); }
.ok-marker { color: var(--green); }
.out-rule { color: var(--violet); flex: 0 0 96px; font-family: var(--mono); font-size: 11px; }
.out-text { color: var(--muted); }
.out-snippet {
  display: block; margin: 2px 0 6px 56px;
  color: #9db2c6; background: rgba(34, 211, 238, 0.06);
  border-left: 2px solid var(--border-strong);
  border-radius: 0 5px 5px 0; padding: 2px 10px;
  overflow: hidden; text-overflow: ellipsis; white-space: pre;
  font-family: var(--mono); font-size: 11.5px; max-width: 100%;
}
.out-summary { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); }
.gauge-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.gauge { flex: 1; height: 8px; border-radius: 5px; background: #182132; overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 5px; transition: width 0.45s ease, background 0.45s ease; }
.gauge-score { font-family: var(--mono); font-size: 12px; color: var(--muted); min-width: 46px; }

/* markdown */
.md { line-height: 1.65; word-wrap: break-word; }
.md h1, .md h2, .md h3, .md h4, .md h5, .md h6 { margin: 1.1em 0 0.5em; line-height: 1.25; color: #eef3f9; }
.md h1 { font-size: 1.5em; } .md h2 { font-size: 1.3em; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.md h3 { font-size: 1.12em; } .md h4 { font-size: 1em; }
.md p { margin: 0.6em 0; color: var(--muted); }
.md ul, .md ol { margin: 0.6em 0; padding-left: 1.4em; color: var(--muted); }
.md li { margin: 0.25em 0; }
.md blockquote { border-left: 3px solid var(--cyan); padding: 2px 14px; margin: 0.8em 0; color: var(--muted); background: rgba(34, 211, 238, 0.05); border-radius: 0 8px 8px 0; }
.md hr { border: none; border-top: 1px solid var(--border); margin: 1.2em 0; }
.md code { background: rgba(255, 255, 255, 0.06); }
.md pre {
  background: #060910; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; overflow-x: auto; margin: 0.8em 0;
}
.md pre code { background: none; padding: 0; display: block; }
.md table { border-collapse: collapse; margin: 0.9em 0; width: 100%; font-size: 13px; }
.md th, .md td { border: 1px solid var(--border-strong); padding: 7px 11px; text-align: left; }
.md th { background: rgba(34, 211, 238, 0.07); color: #dcecf9; font-weight: 600; }
.md td { color: var(--muted); }
.md a { color: var(--cyan); }
.md .risk-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; font-family: var(--mono); }
.md .risk-high { background: rgba(248, 113, 113, 0.15); color: var(--red); border: 1px solid rgba(248, 113, 113, 0.3); }
.md .risk-med { background: rgba(251, 191, 36, 0.12); color: var(--yellow); border: 1px solid rgba(251, 191, 36, 0.3); }
.md .risk-low { background: rgba(52, 211, 153, 0.12); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }

/* sample */
.sample-block { margin-top: 26px; }
.sample-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.sample-report { padding: 22px 24px; min-height: auto; max-height: 560px; overflow-y: auto; }

/* providers */
.provider-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.pcard {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.pcard-head { display: flex; align-items: center; gap: 12px; }
.pbadge {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: #060a0f; font-family: var(--mono);
}
.pcard h3 { font-size: 16px; }
.pcard .pfree { font-size: 11px; color: var(--green); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.pnote { color: var(--muted); font-size: 13px; }
.pmodels { display: flex; flex-wrap: wrap; gap: 6px; }
.pmodels span {
  font-family: var(--mono); font-size: 10.5px; color: #b6c9dd;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 8px;
}
.pcta { margin-top: auto; font-size: 13px; font-weight: 600; }

/* faq */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--cyan); font-size: 18px; transition: transform 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 18px; color: var(--muted); font-size: 14px; }

/* cta */
.cta { text-align: center; }
.cta h2 { font-size: clamp(28px, 4.4vw, 44px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.12; }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px clamp(16px, 5vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-name { font-weight: 800; font-size: 18px; color: var(--text); }
.footer-tag { color: var(--faint); font-size: 13px; font-style: italic; }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-credit { color: var(--faint); font-size: 13px; }
.footer-credit a { color: var(--muted); }
.footer-credit a:hover { color: var(--cyan); }
.heart { color: var(--pink); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--text);
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.25s, transform 0.25s; z-index: 60; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(52, 211, 153, 0.4); }
.toast.err { border-color: rgba(248, 113, 113, 0.4); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .studio-grid { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .res-content { max-height: 460px; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-scan { flex-wrap: wrap; }
  .hero-scan input { flex-basis: 100%; }
  .hero-scan .btn { flex: 1; }
}
@media (max-width: 620px) {
  .provider-row { flex-direction: column; align-items: stretch; }
  .field { flex: 1 1 auto; }
  .res-actions .tool-btn { flex: 1; }
  .editor.expanded { height: 70vh; }
  .sample-pick { width: 100%; }
  .sample-pick select { flex: 1; min-width: 0; }
  .term-label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .res-status.loading { animation: none; }
}
