/* ShadowSecurityScanner — marketing site. Palette mirrors the app (SOC dark). */
:root {
  --bg: hsl(222 24% 7%);
  --surface: hsl(222 22% 10%);
  --surface-2: hsl(222 20% 13%);
  --border: hsl(222 16% 20%);
  --fg: hsl(210 20% 92%);
  --muted: hsl(215 14% 60%);
  --primary: hsl(199 89% 52%);
  --primary-2: hsl(199 89% 42%);
  --crit: #f04747;
  --high: #f59042;
  --med: #f5c542;
  --low: #42a5f5;
  --info: #8b93a7;
  --new: #38bdf8;
  --reg: #f04747;
  --res: #34d399;
  --radius: 14px;
  --maxw: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.grad {
  background: linear-gradient(90deg, #7dd3fc, var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border-radius: 10px; padding: 10px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease; white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, var(--primary), var(--primary-2)); color: #04121c; box-shadow: 0 6px 24px -8px hsl(199 89% 52% / .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px hsl(199 89% 52% / .7); }
.btn-ghost { background: var(--surface-2); color: var(--fg); border-color: var(--border); }
.btn-ghost:hover { border-color: hsl(199 89% 52% / .5); color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 5vw, 48px);
  background: hsl(222 24% 7% / .72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.brand strong { color: var(--primary); font-weight: 700; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.header-cta { display: flex; gap: 10px; }

/* ── Hero ── */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) clamp(16px, 5vw, 48px) 60px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -20% 20% auto -10%; height: 560px;
  background: radial-gradient(60% 60% at 30% 20%, hsl(199 89% 52% / .18), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-grid {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--res); box-shadow: 0 0 10px var(--res); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 18px 0 18px; font-weight: 800; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 600px; }
.lead strong { color: var(--fg); }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 22px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--border); }

/* ── Window mockups ── */
.window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8);
}
.hero-shot .window { transform: perspective(1400px) rotateY(-9deg) rotateX(3deg); }
.window-bar {
  display: flex; align-items: center; gap: 7px; padding: 10px 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3142; }
.window-bar i:nth-child(1) { background: #f0574d; } .window-bar i:nth-child(2) { background: #f5bd4f; } .window-bar i:nth-child(3) { background: #56c463; }
.window-bar span { margin-left: 8px; }
.window-body { padding: 16px; }
.window.sm .window-body { padding: 12px; min-height: 150px; }

/* dashboard mock */
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.window.sm .dash-cards { grid-template-columns: repeat(2, 1fr); }
.kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.kpi-n { font-size: 24px; font-weight: 700; }
.kpi.crit .kpi-n { color: var(--crit); }
.kpi-l { font-size: 11px; color: var(--muted); }
.dash-row { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: center; }
.donut {
  width: 120px; height: 120px; border-radius: 50%;
  background: conic-gradient(var(--crit) 0 12%, var(--high) 12% 34%, var(--med) 34% 58%, var(--low) 58% 80%, var(--info) 80% 100%);
  -webkit-mask: radial-gradient(circle 38px at center, transparent 98%, #000 100%);
  mask: radial-gradient(circle 38px at center, transparent 98%, #000 100%);
  margin: 6px auto;
}
.donut.sm { width: 92px; height: 92px; -webkit-mask: radial-gradient(circle 30px at center, transparent 98%, #000 100%); mask: radial-gradient(circle 30px at center, transparent 98%, #000 100%); }
.fixfirst { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.ff-head { font-size: 12px; font-weight: 700; color: var(--high); margin-bottom: 8px; }
.ff-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 4px 0; }
.ff-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-e { color: var(--high); font-variant-numeric: tabular-nums; font-weight: 600; }

/* severity + badges */
.sev { font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; }
.sev-crit { color: var(--crit); background: hsl(0 84% 62% / .12); }
.sev-high { color: var(--high); background: hsl(28 90% 60% / .12); }
.sev-med  { color: var(--med);  background: hsl(45 90% 60% / .12); }
.sev-low  { color: var(--low);  background: hsl(207 90% 61% / .12); }
.badge-kev { font-size: 9.5px; font-weight: 700; color: var(--crit); background: hsl(0 84% 62% / .12); border: 1px solid hsl(0 84% 62% / .3); border-radius: 4px; padding: 1px 5px; }
.hot { color: var(--high); font-weight: 700; }

/* list mock */
.list .lrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid hsl(222 16% 20% / .5); font-size: 12.5px; }
.list .lrow:last-child { border-bottom: 0; }
.list.compact .lrow { padding: 7px 4px; }
.lhead { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.strike { text-decoration: line-through; color: var(--muted); }
.tag { font-size: 9.5px; font-weight: 700; border-radius: 5px; padding: 2px 7px; }
.tag-new { color: var(--new); background: hsl(199 89% 60% / .14); }
.tag-reg { color: var(--reg); background: hsl(0 84% 62% / .14); }
.tag-res { color: var(--res); background: hsl(160 70% 45% / .14); }

/* delta cards */
.delta-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.dc { border: 1px solid var(--border); border-radius: 10px; padding: 12px; text-align: center; background: var(--surface-2); }
.dc-n { font-size: 22px; font-weight: 700; }
.dc-l { font-size: 11px; color: var(--muted); }
.dc-new .dc-n { color: var(--new); } .dc-reg .dc-n { color: var(--reg); } .dc-res .dc-n { color: var(--res); }

/* ── Stats bar ── */
.stats {
  max-width: var(--maxw); margin: 0 auto; padding: 26px clamp(16px, 5vw, 48px);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat { text-align: center; flex: 1 1 140px; }
.stat-n { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; background: linear-gradient(90deg,#7dd3fc,var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { font-size: 12.5px; color: var(--muted); }

/* ── Sections ── */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 48px); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: hsl(199 89% 52% / .45); transform: translateY(-3px); }
.card-ic { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card strong { color: var(--fg); }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.split p { color: var(--muted); font-size: 16px; margin: 14px 0; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; font-size: 14.5px; color: var(--fg); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--res); font-weight: 800; }
.checklist .c-new { color: var(--new); } .checklist .c-reg { color: var(--reg); } .checklist .c-res { color: var(--res); }

/* formats + tech */
.formats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.fmt { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 26px; min-width: 130px; }
.fmt-x { font-weight: 800; font-size: 18px; color: var(--primary); }
.fmt span:last-child { font-size: 12.5px; color: var(--muted); }
.tech { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.tech-l { color: var(--muted); font-size: 13px; }
.chip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: 13px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot-card { margin: 0; }
.shot-card figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
.note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 26px; }
.note code, .dl-req code, .faq code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 12.5px; }

/* download */
.download .dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.dl-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.dl-card.featured { border-color: hsl(199 89% 52% / .5); box-shadow: 0 30px 60px -40px hsl(199 89% 52% / .6); }
.dl-badge { position: absolute; top: -11px; left: 28px; background: linear-gradient(180deg,var(--primary),var(--primary-2)); color: #04121c; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dl-card h3 { font-size: 19px; margin-bottom: 6px; }
.dl-card > p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.dl-req { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.dl-req li { padding-left: 18px; position: relative; }
.dl-req li::before { content: "›"; position: absolute; left: 0; color: var(--primary); }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.faq strong { color: var(--fg); }

/* contact */
.contact-box { max-width: var(--maxw); background: linear-gradient(135deg, hsl(199 89% 52% / .08), transparent 60%), var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-copy h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; margin-bottom: 12px; }
.contact-copy p { color: var(--muted); margin: 0; }
.contact-actions { display: grid; gap: 12px; }
.contact-link { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; font-size: 14px; transition: border-color .15s; }
a.contact-link:hover { border-color: hsl(199 89% 52% / .5); }
.contact-link .ci { font-size: 20px; }
.contact-link b { color: var(--fg); }
.contact-link.static { opacity: .9; }

/* footer */
.site-footer { max-width: var(--maxw); margin: 0 auto; padding: 36px clamp(16px, 5vw, 48px) 56px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.foot-brand img { border-radius: 7px; }
.foot-nav { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
.foot-nav a:hover { color: var(--fg); }
.foot-meta { margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); display: grid; gap: 2px; }
.foot-meta .muted { opacity: .7; }

/* protocol coverage */
.protos { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; margin: 0 auto; }
.proto { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; color: var(--fg); }
.proto small { color: var(--muted); font-weight: 400; }
.coverage-note { text-align: center; color: var(--muted); font-size: 13px; margin: 22px auto 0; max-width: 640px; }

/* heritage */
.heritage { background:
    linear-gradient(180deg, transparent, hsl(199 89% 52% / .04) 50%, transparent),
    var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.heritage .eyebrow { color: var(--high); }
.heritage .grad { background: linear-gradient(90deg, #f5c542, var(--high)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.legacy-win .window-bar i { filter: saturate(.4); }
.legacy-meta { display: grid; gap: 10px; margin-top: 18px; }
.legacy-meta .lm { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.legacy-meta .lm b { color: var(--high); font-variant-numeric: tabular-nums; min-width: 86px; }
.legacy-meta .lm span { color: var(--muted); }

/* clients strip */
.clients-head { text-align: center; color: var(--muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 22px; }
.clients { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; max-width: 920px; margin: 0 auto; }
.client { color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 6px 13px; font-size: 13px; font-weight: 600; opacity: .85; transition: color .15s, border-color .15s; }
.client:hover { color: var(--fg); border-color: hsl(199 89% 52% / .4); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid, .split, .feature-grid, .gallery, .download .dl-grid, .contact-box { grid-template-columns: 1fr; }
  .hero-shot .window { transform: none; }
  .split.reverse .split-copy { order: 0; }
  .foot-meta { margin-left: 0; text-align: left; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .header-cta .btn-ghost { display: none; }
  .stats { gap: 18px; }
  .stat { flex-basis: 40%; }
}

/* ── Prose (overview / AI-citeable copy) ── */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { color: var(--muted); font-size: 16.5px; line-height: 1.75; margin: 0 0 16px; }
.prose strong { color: var(--fg); }
.prose a { color: var(--primary); text-decoration: none; border-bottom: 1px solid hsl(199 89% 52% / .35); }
.prose a:hover { border-bottom-color: var(--primary); }

/* ── Comparison table ── */
.table-wrap { max-width: 980px; margin: 0 auto; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.cmp thead th { color: var(--fg); font-weight: 700; background: var(--surface-2); position: sticky; top: 0; }
.cmp thead th:first-child { border-top-left-radius: var(--radius); }
.cmp thead th:last-child { border-top-right-radius: var(--radius); }
.cmp tbody th { color: var(--fg); font-weight: 600; }
.cmp tbody td { color: var(--muted); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp td.yes { color: var(--res); font-weight: 600; }
.cmp tbody tr:hover { background: hsl(199 89% 52% / .04); }

/* ── Article / guide pages ── */
.breadcrumbs { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 0; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--fg); }
.breadcrumbs span { color: var(--border); margin: 0 6px; }
.article { max-width: 760px; margin: 0 auto; padding: 28px 24px 72px; }
.article-head { margin-bottom: 28px; }
.article-head .eyebrow { color: var(--primary); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.article h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 10px 0 14px; }
.article .meta { color: var(--muted); font-size: 13px; }
.article h2 { font-size: clamp(22px, 3vw, 28px); margin: 38px 0 14px; }
.article h3 { font-size: 19px; margin: 26px 0 10px; }
.article p, .article li { color: var(--muted); font-size: 16.5px; line-height: 1.75; }
.article p { margin: 0 0 16px; }
.article strong { color: var(--fg); }
.article a { color: var(--primary); text-decoration: none; border-bottom: 1px solid hsl(199 89% 52% / .35); }
.article a:hover { border-bottom-color: var(--primary); }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article li { margin: 0 0 8px; }
.article code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.article .callout { border: 1px solid var(--border); border-left: 3px solid var(--primary); background: var(--surface); border-radius: 10px; padding: 16px 18px; margin: 0 0 20px; }
.article .callout p:last-child { margin: 0; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: var(--maxw); margin: 0 auto; }
.guide-cards a.card { text-decoration: none; color: inherit; display: block; }
.guide-cards a.card:hover { border-color: hsl(199 89% 52% / .5); }
.guide-cards h3 { margin: 0 0 8px; }
.cta-band { max-width: 760px; margin: 40px auto 0; text-align: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 28px 24px; }
