/* ArrankaGo Consulting — portal styles.
   Neutral, professional dark base. The brand purple is a restrained accent
   (one CTA, one hairline, focus rings), never a background wash. Security
   semantics carry the colour: severity and the three report states. */

:root {
  --bg: #0b0d16;
  --bg-2: #0e1019;
  --surface: #12141f;
  --surface-2: #161a2b;
  --surface-3: #1b2130;
  --border: #232838;
  --border-2: #2c3350;

  --text: #e6e8ef;
  --text-dim: #9aa0b4;
  --text-faint: #6b7186;

  --brand-1: #667eea;
  --brand-2: #764ba2;
  --brand-3: #c549d0;
  --brand: #7d6cf0;
  --brand-grad: linear-gradient(100deg, var(--brand-1), var(--brand-2) 55%, var(--brand-3));

  /* severity */
  --crit: #ef4444;
  --high: #f97316;
  --med: #f59e0b;
  --low: #3b82f6;
  --info: #6b7280;
  /* states */
  --ok: #10b981;
  --neval: #8b93a7;
  --jewel: #fbbf24;

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 10px 40px -12px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: var(--mono); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: #a99bff; }
::selection { background: rgba(125, 108, 240, 0.32); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--surface-2); color: var(--text); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* focus */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 20px -8px rgba(124, 108, 240, 0.7); }
.btn-primary:hover { color: #fff; box-shadow: 0 10px 26px -8px rgba(124, 108, 240, 0.85); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--text); background: rgba(125, 108, 240, 0.06); }
.btn-accent { background: color-mix(in srgb, var(--accent, var(--brand)) 16%, transparent); color: var(--accent, var(--brand)); border-color: color-mix(in srgb, var(--accent, var(--brand)) 40%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent, var(--brand)) 26%, transparent); color: #fff; transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.link-secondary { background: none; border: none; color: var(--text-faint); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 2px; }
.link-secondary:hover { color: var(--text-dim); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11, 13, 22, 0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-logo { display: inline-flex; }
.brand-text { font-weight: 600; letter-spacing: -0.01em; font-size: 1.02rem; }
.brand-text b { font-weight: 700; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text.small { font-size: .95rem; }
.header-nav { display: flex; align-items: center; gap: 26px; }
.header-nav a { color: var(--text-dim); font-size: .92rem; font-weight: 500; }
.header-nav a:hover { color: var(--text); }
.lang-toggle {
  background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text);
  padding: 6px 13px; border-radius: 8px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.lang-toggle:hover { border-color: var(--brand); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }

/* ---------- sections ---------- */
.section { padding: 74px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; }
.section-sub { color: var(--text-dim); margin-top: 10px; font-size: 1.02rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(56px, 8vw, 96px) 0 62px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: var(--brand-grad); opacity: .8;
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
.hero .lead { color: var(--text-dim); font-size: 1.1rem; margin-top: 20px; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hstat dt { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.hstat dd { color: var(--text-faint); font-size: .82rem; margin-top: 2px; max-width: 14ch; }

.honesty { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.honesty-head { font-weight: 700; font-size: .95rem; margin-bottom: 16px; }
.honesty-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.honesty-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--text-dim); line-height: 1.4; }
.honesty-list li span:last-child { flex: 1; }

/* three-state dots */
.state-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; display: inline-block; }
.state-finding { background: var(--high); box-shadow: 0 0 0 3px rgba(249, 115, 22, .16); }
.state-clean { background: var(--ok); box-shadow: 0 0 0 3px rgba(16, 185, 129, .16); }
.state-neval { background: var(--neval); box-shadow: 0 0 0 3px rgba(139, 147, 167, .16); }

/* ---------- terminal / scanner ---------- */
.terminal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #ff5f57; } .dot-y { background: #febc2e; } .dot-g { background: #28c840; }
.terminal-title { margin-left: 8px; color: var(--text-faint); font-size: .82rem; }
.terminal-body { padding: 22px; }
.prompt-line { color: var(--text-dim); font-size: .9rem; margin-bottom: 14px; }
.prompt { color: var(--ok); font-weight: 700; }
.cursor-hint { color: var(--text-faint); }
.scan-input-row { display: flex; gap: 10px; }
#domain { flex: 1; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text); border-radius: 10px; padding: 12px 15px; font-family: var(--mono); font-size: .98rem; }
#domain::placeholder { color: var(--text-faint); }
#domain:focus { border-color: var(--brand); outline: none; }
.deep-toggle { display: flex; gap: 9px; align-items: center; margin-top: 14px; color: var(--text-dim); font-size: .85rem; cursor: pointer; }
.deep-toggle input { accent-color: var(--brand); width: 15px; height: 15px; }
.scan-note { color: var(--text-faint); font-size: .8rem; margin-top: 12px; }

.status { margin-top: 18px; padding: 13px 15px; border-radius: 10px; font-size: .9rem; display: flex; align-items: center; gap: 9px; }
.status.loading { background: var(--surface-2); color: var(--text-dim); }
.status.error { background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); color: #fca5a5; }
.spinner { width: 15px; height: 15px; border: 2px solid var(--border-2); border-top-color: var(--brand); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- scorecard ---------- */
.result { margin-top: 22px; display: flex; flex-direction: column; gap: 22px; }
.scorecard-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.gauge-wrap { display: flex; flex-direction: column; align-items: center; }
.gauge-num { font-size: 34px; font-weight: 800; font-family: var(--mono); }
.gauge-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.gauge-sub { color: var(--text-faint); font-size: .78rem; margin-top: 2px; }
.score-meta { flex: 1; min-width: 220px; }
.score-domain { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; }
.score-line { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }
.score-verdict { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-dim); }
.grade-chip { font-weight: 800; font-family: var(--mono); padding: 3px 9px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border-2); }
.grade-A .grade-chip, .grade-a .grade-chip { color: var(--ok); border-color: rgba(16,185,129,.4); }
.grade-B .grade-chip, .grade-b .grade-chip { color: #86c34b; }
.grade-C .grade-chip, .grade-c .grade-chip { color: var(--med); }
.grade-D .grade-chip, .grade-d .grade-chip { color: var(--high); }
.grade-F .grade-chip, .grade-f .grade-chip { color: var(--crit); border-color: rgba(239,68,68,.4); }
.score-scanned { color: var(--text-faint); font-size: .76rem; margin-top: 8px; font-family: var(--mono); }

.sev-strip { display: flex; height: 9px; border-radius: 6px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.sev-strip.is-empty { opacity: .5; }
.sev-seg { display: block; height: 100%; transition: width .6s cubic-bezier(.22,.61,.36,1); }
.sev-seg.sev-critical { background: var(--crit); }
.sev-seg.sev-high { background: var(--high); }
.sev-seg.sev-medium { background: var(--med); }
.sev-seg.sev-low { background: var(--low); }
.sev-seg.sev-info { background: var(--info); }
.sev-seg.tone-ok { background: var(--ok); }

.sev-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .78rem; padding: 5px 10px; border-radius: 20px; border: 1px solid var(--border-2); color: var(--text-dim); display: inline-flex; gap: 6px; align-items: center; }
.chip .n { font-weight: 800; font-family: var(--mono); }
.chip.zero { opacity: .4; }
.chip.sev-critical { color: var(--crit); border-color: rgba(239,68,68,.35); }
.chip.sev-high { color: var(--high); border-color: rgba(249,115,22,.35); }
.chip.sev-medium { color: var(--med); border-color: rgba(245,158,11,.35); }
.chip.sev-low { color: var(--low); border-color: rgba(59,130,246,.35); }
.chip.sev-info { color: var(--text-dim); }
.chip.state-clean { color: var(--ok); border-color: rgba(16,185,129,.35); }
.chip.state-neval { color: var(--neval); border-color: rgba(139,147,167,.3); }

.block h3 { font-size: 1rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.count { font-family: var(--mono); font-size: .8rem; color: var(--text-faint); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }
.surface-note { color: var(--text-dim); font-size: .88rem; }
.surface-neval { color: var(--neval); font-size: .88rem; background: var(--surface-2); border: 1px dashed var(--border-2); padding: 12px 14px; border-radius: 10px; }

/* findings (shared scanner + entraform) */
.finding { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--info); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.finding.sev-critical { border-left-color: var(--crit); }
.finding.sev-high { border-left-color: var(--high); }
.finding.sev-medium { border-left-color: var(--med); }
.finding.sev-low { border-left-color: var(--low); }
.finding-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 7px; }
.sev-tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 5px; color: #0b0d16; }
.sev-tag.sev-critical { background: var(--crit); } .sev-tag.sev-high { background: var(--high); }
.sev-tag.sev-medium { background: var(--med); } .sev-tag.sev-low { background: var(--low); color:#fff;} .sev-tag.sev-info { background: var(--info); color:#fff; }
.finding-rule { font-size: .78rem; color: var(--text-dim); }
.finding-res { font-size: .78rem; color: var(--brand); margin-left: auto; }
.finding-title { font-weight: 600; font-size: .95rem; }
.finding-msg { color: var(--text-dim); font-size: .88rem; margin-top: 3px; }
.finding-remedy { color: var(--text-dim); font-size: .85rem; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.finding-remedy b { color: var(--ok); }

.host-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.host { font-size: .78rem; background: var(--surface-2); border: 1px solid var(--border); padding: 4px 9px; border-radius: 6px; color: var(--text-dim); }
.host-more { font-size: .78rem; color: var(--text-faint); padding: 4px 6px; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px; font-size: .84rem; }
.check .state-dot { margin-top: 0; }
.check.state-finding .state-dot { background: var(--high); }
.check.state-clean .state-dot { background: var(--ok); }
.check.state-not_evaluable .state-dot { background: var(--neval); }
.check-title { flex: 1; color: var(--text-dim); }
.check-pts { color: var(--text-faint); font-size: .78rem; }

/* ---------- suite / tool rows ---------- */
.suite-list { display: flex; flex-direction: column; gap: 16px; }
.tool-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  border-left: 3px solid var(--accent, var(--brand)); padding: 22px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.tool-row:hover { transform: translateY(-2px); border-color: var(--border-2); border-left-color: var(--accent); }
.tool-head { display: flex; gap: 18px; align-items: flex-start; }
.tool-icon { width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0; }
.tool-headings { flex: 1; }
.tool-name-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tool-name { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.tool-tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent, var(--brand)); font-weight: 700; padding: 3px 9px; border-radius: 20px; background: color-mix(in srgb, var(--accent, var(--brand)) 12%, transparent); }
.tool-desc { color: var(--text-dim); font-size: .92rem; margin-top: 8px; max-width: 68ch; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.tool-gh { margin-left: auto; color: var(--text-faint); font-size: .84rem; font-weight: 600; }
.tool-gh:hover { color: var(--accent, var(--brand)); }
.tool-gh .arrow { transition: transform .2s; display: inline-block; }
.tool-gh:hover .arrow { transform: translateX(3px); }

/* demo panel */
.demo-panel { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.demo-loading, .demo-neval { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: .9rem; padding: 10px 0; }
.demo-neval { color: var(--neval); }
.demo-result { display: flex; flex-direction: column; gap: 18px; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.demo-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.demo-meta-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); padding: 3px 9px; border-radius: 20px; }
.demo-sample { font-size: .76rem; color: var(--text-faint); }
.demo-note { color: var(--text-dim); font-size: .88rem; }
.demo-foot { color: var(--text-faint); font-size: .78rem; font-style: italic; border-top: 1px solid var(--border); padding-top: 10px; }
.demo-block { }
.demo-block-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 10px; font-weight: 700; }

.demo-stats { display: flex; gap: 14px; flex-wrap: wrap; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; min-width: 96px; }
.stat-val { font-size: 1.4rem; font-weight: 800; font-family: var(--mono); }
.stat-label { font-size: .74rem; color: var(--text-faint); margin-top: 2px; }
.stat.tone-ok .stat-val { color: var(--ok); }
.stat.tone-bad .stat-val { color: var(--crit); }
.stat.tone-neval .stat-val { color: var(--neval); }
.stat.tone-brand .stat-val { color: var(--brand); }

/* bars */
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 1.1fr) 2fr auto; gap: 12px; align-items: center; }
.hbar-label { font-size: .84rem; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-track { background: var(--surface-2); border-radius: 6px; height: 12px; overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 6px; width: 0; transition: width .7s cubic-bezier(.22,.61,.36,1); }
.hbar-val { font-family: var(--mono); font-size: .8rem; color: var(--text-dim); text-align: right; }
/* tone-* set a background ONLY on bar fills, never on containers that also
   carry a tone- class (.stat, .rt-verdict) — otherwise the box floods. */
.hbar-fill.tone-brand, .tw-conf-fill.tone-brand { background: var(--brand-grad); }
.hbar-fill.tone-ok, .tw-conf-fill.tone-ok { background: var(--ok); }
.hbar-fill.tone-high, .tw-conf-fill.tone-high { background: var(--high); }
.hbar-fill.tone-med, .tw-conf-fill.tone-med { background: var(--med); }
.hbar-fill.tone-crit, .tw-conf-fill.tone-crit { background: var(--crit); }
.hbar-fill.tone-neval, .tw-conf-fill.tone-neval { background: var(--neval); }

/* tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { font-size: .78rem; padding: 4px 10px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); }
.tag-cap { color: var(--text); text-transform: capitalize; }
.tag-attack { color: var(--brand); border-color: rgba(125,108,240,.3); }

/* iocs */
.ioc-list { display: flex; flex-direction: column; gap: 5px; }
.ioc { font-size: .8rem; color: var(--text-dim); background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px; padding: 7px 10px; overflow-x: auto; white-space: nowrap; }
.ioc-type { color: var(--high); font-weight: 700; margin-right: 8px; text-transform: uppercase; font-size: .68rem; }

/* revtriage head */
.rt-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.rt-meta { flex: 1; min-width: 220px; }
.rt-verdict { display: flex; flex-direction: column; }
.rt-verdict-word { font-size: 1.4rem; font-weight: 800; text-transform: capitalize; }
.rt-verdict.tone-crit .rt-verdict-word { color: var(--crit); }
.rt-verdict.tone-high .rt-verdict-word { color: var(--high); }
.rt-verdict.tone-med .rt-verdict-word { color: var(--med); }
.rt-verdict.tone-ok .rt-verdict-word { color: var(--ok); }
.rt-verdict-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); }
.rt-file { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.kv { display: flex; gap: 10px; font-size: .85rem; }
.kv-k { color: var(--text-faint); min-width: 46px; }
.kv-v { color: var(--text-dim); }
.rt-hashes { font-size: .76rem; color: var(--text-faint); margin-top: 8px; }
.ef-findings { display: flex; flex-direction: column; gap: 10px; }
.ef-uneval { background: var(--surface-2); border: 1px dashed var(--border-2); border-radius: 10px; padding: 12px 14px; }
.ef-uneval-head { display: flex; gap: 9px; color: var(--neval); font-size: .85rem; margin-bottom: 8px; }
.ef-uneval-row { font-size: .78rem; color: var(--text-faint); }

/* entra-tripwire */
.tw-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.tw-rows { display: flex; flex-direction: column; gap: 6px; }
.tw-row { display: grid; grid-template-columns: 92px 1.4fr 1.6fr auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; }
.tw-row.band-neval { opacity: .62; }
.tw-band-tag { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 5px; text-align: center; }
.band-crit .tw-band-tag, .tw-band-tag.band-crit { background: var(--crit); color: #0b0d16; }
.band-high .tw-band-tag, .tw-band-tag.band-high { background: var(--high); color: #0b0d16; }
.band-med .tw-band-tag, .tw-band-tag.band-med { background: var(--med); color: #0b0d16; }
.band-neval .tw-band-tag, .tw-band-tag.band-neval { background: var(--neval); color: #0b0d16; }
.tw-decoy { display: flex; flex-direction: column; }
.tw-decoy-name { font-size: .88rem; font-weight: 600; }
.tw-actor { font-size: .74rem; color: var(--text-faint); }
.tw-conf { display: flex; align-items: center; gap: 8px; }
.tw-conf-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.tw-conf-fill { display: block; height: 100%; border-radius: 5px; transition: width .6s ease; }
.tw-conf-num { font-size: .78rem; color: var(--text-dim); min-width: 34px; text-align: right; }
.tw-sig { font-size: .74rem; color: var(--text-faint); }

/* containment-cut */
.cc-cert { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-check { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--border-2); text-transform: capitalize; }
.cc-check.ok { color: var(--ok); border-color: rgba(16,185,129,.35); }
.cc-check.bad { color: var(--crit); border-color: rgba(239,68,68,.35); }
.cc-check-mark { font-weight: 800; }
.cc-plan { list-style: none; display: flex; flex-direction: column; gap: 8px; counter-reset: step; }
.cc-step { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; position: relative; padding-left: 44px; counter-increment: step; }
.cc-step::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--brand); font-size: .78rem; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--mono); }
.cc-step-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cc-step-title { font-weight: 600; font-size: .9rem; flex: 1; }
.cc-step-cost { font-size: .78rem; color: var(--text-dim); font-family: var(--mono); }
.cc-step-rev { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; }
.cc-step-rev.ok { color: var(--ok); background: rgba(16,185,129,.12); }
.cc-step-rev.bad { color: var(--high); background: rgba(249,115,22,.12); }
.cc-step-why { color: var(--text-faint); font-size: .82rem; margin-top: 5px; }

/* tenant graph */
.tgraph-scroll { overflow-x: auto; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 8px; }
.tgraph { display: block; min-width: 720px; }
.tg-edge { transition: opacity .3s; }
.tg-node circle { fill: var(--surface-3); stroke: var(--border-2); stroke-width: 1.5; }
.tg-node .tg-label { fill: var(--text-dim); font-size: 11px; font-family: var(--sans); }
.tg-node .tg-kind { fill: var(--text-faint); font-size: 8.5px; font-family: var(--mono); }
.tg-compromised circle { fill: var(--crit); stroke: #fca5a5; }
.tg-compromised .tg-label { fill: #fca5a5; font-weight: 700; }
.tg-jewel circle { fill: var(--jewel); stroke: #fde68a; }
.tg-jewel .tg-label { fill: var(--jewel); font-weight: 700; }
.tg-cutnode circle { fill: var(--surface-3); stroke: var(--crit); stroke-dasharray: 3 2; }
.tg-legend, .tg-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-dim); }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; }
.legend-crit { background: var(--crit); } .legend-jewel { background: var(--jewel); } .legend-cut { background: transparent; border: 2px dashed var(--crit); } .legend-node { background: var(--surface-3); border: 1px solid var(--border-2); }
.legend-high { background: var(--high); } .legend-med { background: var(--med); } .legend-neval { background: var(--neval); }

/* ---------- exposure ---------- */
.exposure-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.exposure-slot { min-height: 120px; }
.exposure-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; height: 100%; }
.exposure-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.exposure-card-title { font-size: 1.05rem; }
.exposure-total { font-size: .78rem; color: var(--text-faint); background: var(--surface-2); padding: 3px 9px; border-radius: 6px; }
.exposure-card-sub { color: var(--text-dim); font-size: .86rem; margin-bottom: 16px; }
.pro-gate { border-color: var(--border-2); position: relative; }
.pro-badge { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--brand-grad); padding: 3px 10px; border-radius: 20px; }
.pro-status { display: flex; gap: 9px; align-items: center; font-size: .85rem; margin: 14px 0 18px; padding: 11px 13px; border-radius: 10px; }
.pro-status.is-ready { background: rgba(16,185,129,.08); color: var(--ok); }
.pro-status.is-locked { background: var(--surface-2); color: var(--neval); }
.pro-status .state-dot { margin-top: 0; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.price-card--feature { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(125,108,240,.25), var(--shadow); position: relative; }
.price-flag { position: absolute; top: -11px; left: 24px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--brand-grad); padding: 4px 12px; border-radius: 20px; }
.price-card--feature .price-name { display: none; }
.price-name { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-weight: 700; }
.price-amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 7px; }
.price-amount small { font-size: .82rem; font-weight: 500; color: var(--text-faint); }
.price-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; flex: 1; margin: 6px 0; }
.price-feats li { position: relative; padding-left: 22px; font-size: .88rem; color: var(--text-dim); }
.price-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.price-card .btn { width: 100%; }
.price-card--feature .btn-primary, .price-card .btn { margin-top: auto; }
.link-secondary { align-self: center; }
.pricing-foot { color: var(--text-faint); font-size: .82rem; margin-top: 20px; text-align: center; }

/* ---------- contact modal ---------- */
.contact-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(6, 7, 12, .72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .2s ease; }
.contact-overlay.is-open { opacity: 1; }
.contact-modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 28px; width: 100%; max-width: 520px; position: relative; box-shadow: var(--shadow); transform: translateY(8px); transition: transform .25s ease; }
.contact-overlay.is-open .contact-modal { transform: none; }
.cm-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--text-faint); font-size: 1.6rem; cursor: pointer; line-height: 1; }
.cm-close:hover { color: var(--text); }
.cm-title { font-size: 1.25rem; }
.cm-intro { color: var(--text-dim); font-size: .9rem; margin: 8px 0 18px; }
.cm-field { margin-bottom: 12px; }
.cm-flabel { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: 4px; }
.cm-fvalue { font-size: .92rem; color: var(--text); }
.cm-body { background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; font-size: .82rem; color: var(--text-dim); white-space: pre-wrap; max-height: 200px; overflow-y: auto; }
.cm-actions { display: flex; gap: 12px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.cm-actions .is-copied { background: var(--ok) !important; }
.cm-mailto { font-size: .84rem; color: var(--text-faint); text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-honest { font-size: .78rem; color: var(--brand); }
.footer-note { font-size: .78rem; color: var(--text-faint); max-width: 46ch; text-align: right; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .exposure-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .header-nav {
    position: fixed; top: 64px; right: 0; left: 0; background: var(--surface);
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 16px 22px; transform: translateY(-130%); transition: transform .25s ease; z-index: 39;
  }
  .header-nav.is-open { transform: none; }
  .header-nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .lang-toggle { margin-top: 8px; }
}
@media (max-width: 560px) {
  .section { padding: 54px 0; }
  .tool-head { flex-direction: column; }
  .tool-gh { margin-left: 0; }
  .hbar { grid-template-columns: 1fr; gap: 4px; }
  .hbar-track { grid-column: 1; }
  .tw-row { grid-template-columns: 76px 1fr; grid-auto-rows: auto; }
  .tw-conf, .tw-sig { grid-column: 1 / -1; }
  .rt-head, .scorecard-head { justify-content: center; text-align: center; }
  .footer-note { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
