/* ShieldSec Cyber: near-black green, terminal green, warning amber and alert red. Chakra Petch headings, Red Hat Text
   body and Red Hat Mono labels. Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #06110D;
  --surface: #0C1C16;
  --soft: #091812;
  --ink: #DDEFE6;
  --muted: #94B3A6;
  --line: #17322A;
  --line-strong: #24493C;
  --brand: #3DFF8F;
  --brand-hover: #2BE67A;
  --brand-ink: #04100B;
  --brand-text: #3DFF8F;
  --amber: #FFB020;
  --eyebrow: #3DFF8F;
  --input-bg: #091812;
  --menu-bg: #06110D;
  --out-bg: #030A07;
  --out-ink: #DDEFE6;
  --out-accent: #3DFF8F;
  --out-btn: #3DFF8F;
  --out-btn-ink: #04100B;
  --cta-bg: #0C1C16;
  --cta-ink: #DDEFE6;
  --focus: #3DFF8F;
  --danger: #FF7A7A;
  --head: "Chakra Petch", system-ui, sans-serif;
  --body: "Red Hat Text", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, monospace;
  --radius: 4px;
  --radius-lg: 8px;
  --btn-radius: 4px;
  --wrap: 1180px;
  color-scheme: dark;
}
body { background-image: repeating-linear-gradient(0deg, rgba(61, 255, 143, .025) 0 1px, transparent 1px 4px); }
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
.eyebrow { font-family: var(--mono); letter-spacing: .04em; text-transform: none; font-weight: 600; }
.btn { font-family: var(--mono); font-weight: 600; letter-spacing: .02em; }
.btn-primary { box-shadow: 0 0 24px -6px rgba(61, 255, 143, .6); }
.btn-ghost { border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.ic { color: var(--brand); }

/* header */
.header { background: rgba(6, 17, 13, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 40px; height: 40px; }
.logo span { display: grid; line-height: 1.05; }
.logo b { font: 700 1.3rem var(--head); letter-spacing: .08em; }
.logo small { font: 400 .72rem var(--mono); color: var(--muted); }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav a[aria-current="page"]::before { content: "> "; font-family: var(--mono); }
.nav-toggle { border-color: var(--line-strong); color: var(--ink); }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 88px); background: radial-gradient(40% 50% at 75% 40%, rgba(61, 255, 143, .1), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1; margin: 14px 0 20px; }
.hero h1 span { display: block; color: var(--brand); text-shadow: 0 0 30px rgba(61, 255, 143, .35); }
.hero .lede { margin-bottom: 26px; }
.sh-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font: 400 .86rem var(--mono); color: var(--muted); }
.sh-badges li { display: flex; align-items: center; gap: 6px; }
.sh-badges .ic { width: 16px; height: 16px; }
.sh-art { width: 100%; height: auto; }
.sh-sweep { transform-origin: 0 0; animation: sh-spin 4s linear infinite; }
.sh-blip { animation: sh-blink 2s ease-in-out infinite; }
.sh-b2 { animation-delay: .7s; } .sh-b3 { animation-delay: 1.4s; }
@keyframes sh-spin { to { transform: rotate(360deg); } }
@keyframes sh-blink { 50% { opacity: .2; } }

.sh-threats { background: var(--soft); border-block: 1px solid var(--line); }
.sh-threat-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.sh-threat-list li { position: relative; display: grid; gap: 8px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.sh-threat-list .ic { width: 28px; height: 28px; }
.sh-threat-list p { color: var(--muted); font-size: .94rem; }
.sh-sev { position: absolute; right: 14px; top: 14px; padding: 2px 8px; border-radius: 3px; font: 600 .7rem var(--mono); }
.sh-s0, .sh-s2 { background: rgba(255, 176, 32, .15); color: var(--amber); }
.sh-s1 { background: rgba(255, 92, 92, .15); color: #FF7A7A; }
.sh-s3 { background: rgba(61, 255, 143, .12); color: var(--brand); }
.sh-svc { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line); }
.sh-svc a { display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: baseline; padding: 22px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.sh-svc a:hover { background: var(--surface); }
.sh-cmd { font: 400 .88rem var(--mono); color: var(--brand); }
.sh-svc h3 { font-size: 1.3rem; }
.sh-svc p { color: var(--muted); }
@media (max-width: 760px) { .sh-svc a { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.sh-work { background: var(--soft); }
.case-card, .quotes li, .svc-side, .card, .cs-side, .done { background: var(--surface); }
.p-no { font-family: var(--mono); }
.cta-band { border-block: 1px solid var(--line); }
.cta-band .btn-ghost { color: var(--ink); }

/* quiz */
.page-head { border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); }
.sh-progress { position: sticky; top: 72px; z-index: 5; height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.sh-progress i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .3s; }
.sh-cat > legend { float: left; width: 100%; margin-bottom: 8px; font: 700 1.15rem var(--head); color: var(--brand); }
.sh-cat > legend + * { clear: both; }
.sh-q { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.sh-q p { font-weight: 500; }
.sh-q p span { font: 600 .82rem var(--mono); color: var(--brand); margin-right: 6px; }
.sh-q .seg span { min-height: 40px; padding: 6px 14px; font-size: .92rem; }
.sh-gauge { position: relative; max-width: 240px; }
.sh-gauge svg { width: 100%; height: auto; }
.sh-gauge .out-total { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: var(--mono); font-size: 2rem; }
.sh-gauge path[data-q-arc] { transition: stroke-dasharray .5s, stroke .3s; }
.sh-fixes { display: grid; gap: 8px; padding-left: 1.2em; font-size: .94rem; }
.sh-fixes small { opacity: .7; }
.tool-out .btn-primary[aria-disabled="true"] { opacity: .45; }
.c-filters button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.footer { background: #030A07; border-top: 1px solid var(--line); }
.f-note { color: var(--amber); opacity: 1; }
.legal { border-color: var(--line); }
.nf-title { font-family: var(--mono); color: var(--brand); font-size: clamp(1.6rem, 5vw, 2.8rem); }
