/* ==========================================================================
   SecuredAI — Design tokens
   Palette: Ink (bg) / Panel / Line (hairlines) / Paper (text) / Fog (muted)
   Accents: Beacon (brand amber/orange, from the SecuredAI mark) / Safe (green, low risk)
            Alert (gold, risk-medium) / Danger (red, risk-high/critical)
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data, labels, code)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink:        #090E17;
  --ink-2:      #0C1220;
  --panel:      #111A2B;
  --panel-2:    #16223A;
  --line:       #223047;
  --line-soft:  #1A2536;
  --paper:      #E9EEF6;
  --paper-dim:  #C7D0E0;
  --fog:        #8A96AC;
  --fog-dim:    #5E6B82;

  --beacon:     #F6941E;
  --beacon-dim: #B8630F;
  --safe:       #34D399;
  --alert:      #E8C13A;
  --danger:     #FF5D5D;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 3px;
  --container: 1180px;
  --ease: cubic-bezier(.16,.8,.24,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *,*::before,*::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin:0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}

p{ margin: 0; color: var(--fog); }

a{ color: inherit; text-decoration: none; }

.mono{ font-family: var(--font-mono); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--beacon);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before{
  content:"";
  width: 18px; height: 1px;
  background: var(--beacon);
  display: inline-block;
}

.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section{ position: relative; }

.hairline{
  border-top: 1px solid var(--line);
}

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--beacon);
  border-color: var(--beacon);
  color: var(--ink);
  font-weight: 600;
}
.btn-primary:hover{ background: #FFAE45; border-color:#FFAE45; transform: translateY(-1px); }
.btn-ghost{
  background: transparent;
  color: var(--paper);
}
.btn-ghost:hover{ border-color: var(--fog-dim); background: var(--panel); }
.btn svg{ width:14px; height:14px; }

/* Nav */
.nav{
  position: static;
  background: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 32px;
}
.logo{
  display:flex; align-items:center;
}
.logo .mark{
  height: clamp(96px, 11vw, 168px);
  width: clamp(96px, 11vw, 168px);
  flex-shrink:0;
  display:block;
  object-fit: contain;
}

/* Hero tagline callout — brand voice, straight from the mark */
.hero-tagline{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--fog);
  letter-spacing: 0.02em;
  margin: -6px 0 34px;
}
.hero-tagline strong{
  color: var(--beacon);
  font-weight: 600;
}

.nav-links{
  display:flex; align-items:center; gap: 36px;
}
.nav-links a{
  font-size: 14px;
  color: var(--paper-dim);
  transition: color .15s;
}
.nav-links a:hover{ color: var(--beacon); }
.nav-cta{ display:flex; align-items:center; gap:16px; }
.nav-toggle{ display:none; }

@media (max-width: 900px){
  .nav-links{ display:none; }
  .nav-cta .btn-ghost{ display:none; }
}

/* Hero */
.hero{
  padding: 96px 0 60px;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(246,148,30,0.12), transparent 60%),
    var(--ink);
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-size: clamp(34px, 4.4vw, 54px);
  color: var(--paper);
  margin: 22px 0 24px;
}
.hero h1 em{
  font-style: normal;
  color: var(--beacon);
}
.hero p.lead{
  font-size: 18px;
  color: var(--fog);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-ctas{ display:flex; gap:14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-meta{
  display:flex; gap:28px; flex-wrap:wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fog-dim);
}
.hero-meta b{ color: var(--paper-dim); font-weight: 500; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

/* Perimeter diagram (signature element) */
.perimeter{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
}
.perimeter-head{
  display:flex; justify-content: space-between; align-items:center;
  font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 10px;
  padding: 0 4px;
}
.perimeter-head .live{ display:flex; align-items:center; gap:6px; color: var(--beacon); }
.perimeter-head .dot{ width:6px; height:6px; border-radius:50%; background: var(--beacon); animation: pulse 1.8s infinite; }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.3;} }

.lane{
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  align-items: center;
  height: 66px;
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.lane:first-child{ border-top: none; }
.lane-label{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-dim);
  display:flex; flex-direction:column; gap:2px;
  padding-left: 4px;
}
.lane-label small{ color: var(--fog-dim); font-size: 10px; }
.lane-track{
  position: relative;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 26px);
  overflow:hidden;
}
.lane-scan{
  position:absolute; top:0; bottom:0; width: 46px;
  background: linear-gradient(90deg, transparent, rgba(246,148,30,0.35), transparent);
  animation: scan 3.4s linear infinite;
}
.lane:nth-child(2) .lane-scan{ animation-duration: 4.1s; animation-delay: -1s; }
.lane:nth-child(3) .lane-scan{ animation-duration: 3.7s; animation-delay: -2.2s; }
@keyframes scan{ from{ left: -60px; } to{ left: 100%; } }

.lane-icon{
  position:absolute; top:50%; left:14px; transform: translateY(-50%);
  width:26px; height:26px; color: var(--fog);
}

.gate{
  margin-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  display:flex; align-items:center; gap: 12px;
}
.gate-icon{
  width:34px;height:34px; flex-shrink:0;
  border:1px solid var(--beacon); border-radius:6px;
  display:flex; align-items:center; justify-content:center;
  color: var(--beacon);
}
.gate-text{ font-family: var(--font-mono); font-size: 11.5px; color: var(--fog); line-height:1.5; }
.gate-text b{ color: var(--paper); }

/* Section headers */
.section-head{
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head h2{
  font-size: clamp(28px, 3.4vw, 38px);
  color: var(--paper);
  margin-top: 16px;
}
.section-head p{ margin-top: 16px; font-size: 16px; }

.section-pad{ padding: 110px 0; }

/* Surfaces */
.surfaces-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.surface-card{
  background: var(--ink-2);
  padding: 34px 30px 30px;
  display:flex; flex-direction: column;
  min-height: 420px;
}
.surface-card .num{
  font-family: var(--font-mono); font-size: 12px; color: var(--fog-dim);
}
.surface-card h3{
  font-size: 21px; color: var(--paper); margin: 18px 0 12px;
}
.surface-card .channel-tags{
  display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 20px;
}
.channel-tags span{
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--beacon); border: 1px solid var(--beacon-dim);
  padding: 3px 8px; border-radius: 20px;
}
.surface-card p{ font-size: 14.5px; margin-bottom: 20px; }
.threat-list{ list-style:none; margin: 0; padding: 0; margin-top: auto; }
.threat-list li{
  font-size: 13px; color: var(--paper-dim);
  padding: 9px 0; border-top: 1px solid var(--line-soft);
  display:flex; gap:10px;
}
.threat-list li::before{ content:"—"; color: var(--danger); flex-shrink:0; }

@media (max-width: 980px){
  .surfaces-grid{ grid-template-columns: 1fr; }
  .surface-card{ min-height: unset; }
}

/* Capability matrix (signature 2) */
.matrix-wrap{ border: 1px solid var(--line); background: var(--panel); border-radius: 6px; overflow: hidden; }
.matrix{
  display:grid;
  grid-template-columns: 200px repeat(3, 1fr);
}
.matrix-cell{
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  padding: 22px 20px;
  position: relative;
  transition: background .15s;
}
.matrix > .matrix-cell:nth-child(-n+4){ border-top:none; }
.matrix > .matrix-cell:nth-child(4n+1){ border-left:none; }

.matrix-cell.head-row{
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fog);
  display:flex; flex-direction: column; gap: 4px;
}
.matrix-cell.head-row b{ color: var(--beacon); font-size: 12.5px; }
.matrix-cell.head-col{
  background: var(--panel-2);
  font-family: var(--font-mono);
  font-size: 13px; color: var(--paper-dim);
  display:flex; align-items:center;
}
.matrix-cell.data{
  cursor: default;
}
.matrix-cell.data:hover{ background: var(--panel-2); }
.matrix-cell.data h4{
  font-family: var(--font-body); font-weight:600; font-size: 14.5px; color: var(--paper); margin-bottom:8px;
}
.matrix-cell.data p{ font-size: 13px; }

@media (max-width: 900px){
  .matrix{ grid-template-columns: 1fr; }
  .matrix-cell.head-col{ display:none; }
  .matrix-cell{ border-left: none !important; }
  .matrix-cell.data::before{
    content: attr(data-label);
    display:block; font-family: var(--font-mono); font-size: 10.5px;
    color: var(--fog-dim); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px;
  }
}

/* Method / process (real sequence -> numbered) */
.method-list{ counter-reset: step; }
.method-item{
  display:grid; grid-template-columns: 90px 1fr; gap: 28px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.method-item:last-child{ border-bottom: 1px solid var(--line); }
.method-item .step-num{
  font-family: var(--font-mono); font-size: 13px; color: var(--beacon);
  padding-top: 2px;
}
.method-item h3{ font-size: 19px; color: var(--paper); margin-bottom: 8px; }
.method-item p{ font-size: 14.5px; max-width: 62ch; }

/* Trust strip */
.trust-strip{
  display:flex; flex-wrap:wrap; gap: 14px 40px;
  padding: 30px 0;
}
.trust-strip .item{
  font-family: var(--font-mono); font-size: 12px; color: var(--fog-dim);
  display:flex; align-items:center; gap:8px;
}
.trust-strip .item::before{ content:"◆"; color: var(--beacon); font-size:8px; }

/* CTA band */
.cta-band{
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 90px 0;
  text-align:center;
}
.cta-band h2{ font-size: clamp(26px,3.6vw,40px); color: var(--paper); max-width: 720px; margin: 0 auto 20px; }
.cta-band p{ max-width: 56ch; margin: 0 auto 34px; font-size:16px; }
.cta-band .hero-ctas{ justify-content:center; }

/* Contact */
.contact-grid{
  display:grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px;
}
.contact-side .eyebrow{ margin-bottom: 20px; }
.contact-side h2{ font-size: clamp(26px,3.2vw,34px); color: var(--paper); margin-bottom: 20px; }
.contact-detail{ margin-top: 34px; display:flex; flex-direction:column; gap: 16px; }
.contact-detail div{ font-family: var(--font-mono); font-size: 13px; }
.contact-detail div b{ display:block; color: var(--fog-dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.contact-detail div span{ color: var(--paper-dim); }

form.contact-form{ display:flex; flex-direction: column; gap: 18px; }
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label{
  display:block; font-family: var(--font-mono); font-size: 11px;
  color: var(--fog-dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
}
input, select, textarea{
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14.5px;
  padding: 13px 14px;
  border-radius: var(--radius);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus{
  outline: none; border-color: var(--beacon);
}
textarea{ resize: vertical; min-height: 110px; }
.form-note{ font-size: 12.5px; color: var(--fog-dim); }
#form-status{ font-family: var(--font-mono); font-size: 13px; margin-top: 6px; min-height: 18px; }
#form-status.ok{ color: var(--beacon); }

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .form-row{ grid-template-columns: 1fr; }
}

/* Footer */
footer{ border-top: 1px solid var(--line); padding: 50px 0 40px; }
.footer-grid{ display:flex; justify-content: space-between; align-items:flex-start; flex-wrap:wrap; gap: 30px; }
.footer-links{ display:flex; gap: 28px; flex-wrap: wrap; }
.footer-links a{ font-size: 13px; color: var(--fog); }
.footer-links a:hover{ color: var(--beacon); }
.footer-meta{ font-family: var(--font-mono); font-size: 11.5px; color: var(--fog-dim); }

/* Utility: focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--beacon); outline-offset: 2px;
}

/* Reveal-on-scroll */
.reveal{ opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in{ opacity:1; transform: none; }

/* Assessment app specific bits reused from base */
.badge{
  font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--fog-dim); display:inline-block;
}

/* ===================== Assessment app ===================== */
.app-shell{
  min-height: 70vh;
  padding: 64px 0 100px;
}
.app-header{ max-width: 680px; margin-bottom: 48px; }
.app-header h1{ font-size: clamp(28px,3.6vw,40px); color: var(--paper); margin: 16px 0 14px; }
.app-header p{ font-size: 16px; }

.progress-track{
  height: 3px; background: var(--line); border-radius: 3px; margin: 34px 0 0; overflow:hidden;
}
.progress-fill{
  height:100%; background: var(--beacon); width: 0%; transition: width .4s var(--ease);
}
.progress-steps{
  display:flex; justify-content: space-between; margin-top:10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); text-transform: uppercase; letter-spacing: .06em;
}
.progress-steps span.active{ color: var(--beacon); }

.app-card{
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 40px; max-width: 760px;
}

/* Surface picker */
.pick-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.pick-card{
  border: 1px solid var(--line); border-radius: 6px; padding: 22px 18px; cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--ink-2);
}
.pick-card:hover{ border-color: var(--fog-dim); }
.pick-card.selected{ border-color: var(--beacon); background: rgba(246,148,30,0.07); }
.pick-card .check{
  width:18px; height:18px; border-radius:4px; border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; margin-bottom: 16px;
}
.pick-card.selected .check{ background: var(--beacon); border-color: var(--beacon); }
.pick-card.selected .check::after{ content:"✓"; font-size: 11px; color: var(--ink); font-weight:700; }
.pick-card h4{ font-family: var(--font-body); font-size: 15px; color: var(--paper); font-weight:600; margin-bottom:6px; }
.pick-card p{ font-size: 12.5px; }

@media (max-width: 780px){
  .pick-grid{ grid-template-columns: 1fr; }
}

/* Question block */
.q-surface-title{
  display:flex; align-items:center; gap:10px; margin: 40px 0 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--beacon);
}
.q-surface-title:first-child{ margin-top:0; }
.q-block{ padding: 20px 0; border-top: 1px solid var(--line-soft); }
.q-block:first-of-type{ border-top:none; }
.q-block p.q-text{ font-size: 15px; color: var(--paper-dim); margin-bottom: 14px; }
.q-options{ display:flex; gap:10px; flex-wrap: wrap; }
.q-opt{
  font-family: var(--font-mono); font-size: 12.5px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 20px; cursor: pointer; color: var(--fog);
  transition: all .15s;
}
.q-opt:hover{ border-color: var(--fog-dim); }
.q-opt.sel-yes.active{ background: var(--beacon); border-color: var(--beacon); color: var(--ink); }
.q-opt.sel-unsure.active{ background: var(--alert); border-color: var(--alert); color: var(--ink); }
.q-opt.sel-no.active{ background: var(--danger); border-color: var(--danger); color: var(--ink); }

.app-nav{ display:flex; justify-content: space-between; margin-top: 40px; max-width: 760px; }

/* Results */
.results-top{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.risk-card{ border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--panel); }
.risk-card .label{ font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 14px; }
.risk-card .score{ font-family: var(--font-display); font-size: 30px; font-weight:700; margin-bottom: 8px; }
.risk-card .bar{ height: 6px; background: var(--line-soft); border-radius: 6px; overflow: hidden; }
.risk-card .bar-fill{ height:100%; border-radius:6px; }
.risk-low .score, .risk-low .bar-fill{ color: var(--safe); background: var(--safe); }
.risk-medium .score, .risk-medium .bar-fill{ color: var(--alert); background: var(--alert); }
.risk-high .score, .risk-high .bar-fill, .risk-critical .score, .risk-critical .bar-fill{ color: var(--danger); background: var(--danger); }

@media (max-width: 780px){ .results-top{ grid-template-columns: 1fr; } }

.rec-card{
  border: 1px solid var(--line); border-left: 3px solid var(--beacon); border-radius: 4px;
  padding: 20px 22px; margin-bottom: 14px; background: var(--ink-2);
}
.rec-card.pri-high{ border-left-color: var(--danger); }
.rec-card.pri-medium{ border-left-color: var(--alert); }
.rec-card .tag-row{ display:flex; gap:8px; margin-bottom:10px; }
.rec-card .tag{ font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--fog-dim); border:1px solid var(--line); padding:3px 8px; border-radius: 20px; }
.rec-card h4{ font-size: 15.5px; color: var(--paper); margin-bottom: 6px; }
.rec-card p{ font-size: 13.5px; }

.results-actions{ display:flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ===================== Threat Intelligence page ===================== */
.intel-banner{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel);
  padding: 16px 22px; margin-bottom: 56px;
}
.intel-banner p{ font-size: 12.5px; max-width: 62ch; }
.intel-banner .refresh-all{ flex-shrink:0; }

.source-status{
  display:inline-flex; align-items:center; gap:7px;
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 20px; border: 1px solid var(--line);
}
.source-status .dot{ width:6px; height:6px; border-radius:50%; }
.source-status.live{ color: var(--safe); border-color: rgba(52,211,153,0.35); }
.source-status.live .dot{ background: var(--safe); animation: pulse 1.8s infinite; }
.source-status.loading{ color: var(--fog-dim); }
.source-status.loading .dot{ background: var(--fog-dim); animation: pulse 1.2s infinite; }
.source-status.fallback{ color: var(--alert); border-color: rgba(232,193,58,0.35); }
.source-status.fallback .dot{ background: var(--alert); }

.intel-panel{
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  margin-bottom: 56px; overflow: hidden;
}
.intel-panel-head{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap: 12px;
  padding: 22px 26px; border-bottom: 1px solid var(--line-soft);
}
.intel-panel-head h3{ font-size: 17px; color: var(--paper); }
.intel-panel-head .src-meta{ font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); margin-top: 5px; }
.intel-panel-head .head-right{ display:flex; align-items:center; gap:12px; }
.icon-btn{
  width: 30px; height: 30px; border-radius: 5px; border: 1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color: var(--fog); cursor:pointer;
  background: transparent; transition: all .15s;
}
.icon-btn:hover{ border-color: var(--beacon); color: var(--beacon); }
.icon-btn svg{ width:14px; height:14px; }

.feed-list{ padding: 6px 0; }
.feed-item{
  display:grid; grid-template-columns: 108px 1fr auto; gap: 18px; align-items: start;
  padding: 18px 26px; border-top: 1px solid var(--line-soft);
}
.feed-item:first-child{ border-top:none; }
.feed-item .fid{ font-family: var(--font-mono); font-size: 12.5px; color: var(--beacon); }
.feed-item .fid a{ color: inherit; }
.feed-item .fid a:hover{ text-decoration: underline; }
.feed-item .fbody h4{ font-family:var(--font-body); font-weight:600; font-size:14px; color: var(--paper); margin-bottom:5px; }
.feed-item .fbody p{ font-size: 12.5px; line-height: 1.55; }
.feed-item .fmeta{ text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:6px; white-space:nowrap; }
.feed-item .fdate{ font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); }

.sev-badge{
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing:.05em;
  padding: 3px 9px; border-radius: 20px; border: 1px solid transparent;
}
.sev-low{ color: var(--safe); border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.08); }
.sev-medium{ color: var(--alert); border-color: rgba(232,193,58,0.35); background: rgba(232,193,58,0.08); }
.sev-high, .sev-critical{ color: var(--danger); border-color: rgba(255,93,93,0.35); background: rgba(255,93,93,0.08); }
.sev-unknown{ color: var(--fog-dim); border-color: var(--line); }
.kev-flag{ font-family: var(--font-mono); font-size: 10px; color: var(--danger); }

.feed-empty, .feed-error{
  padding: 34px 26px; font-size: 13.5px; color: var(--fog);
}
.feed-error a{ color: var(--beacon); }
.feed-loading{ padding: 34px 26px; font-family: var(--font-mono); font-size: 12.5px; color: var(--fog-dim); }

@media (max-width: 700px){
  .feed-item{ grid-template-columns: 1fr; }
  .feed-item .fmeta{ flex-direction:row; align-items:center; }
}

/* Framework reference cards */
.framework-section{ margin-bottom: 64px; }
.framework-section-head{
  display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:10px;
  margin-bottom: 22px;
}
.framework-section-head h3{ font-size: 18px; color: var(--paper); }
.framework-section-head a{ font-family: var(--font-mono); font-size: 12px; color: var(--beacon); }
.framework-section-head a:hover{ text-decoration: underline; }

.chip-grid{ display:grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.chip-card{ background: var(--ink-2); padding: 18px 16px; }
.chip-card .cid{ font-family: var(--font-mono); font-size: 10.5px; color: var(--beacon); margin-bottom: 8px; display:block; }
.chip-card h5{ font-family: var(--font-body); font-weight:600; font-size: 13px; color: var(--paper); margin-bottom: 6px; }
.chip-card p{ font-size: 11.5px; line-height:1.5; }

@media (max-width: 980px){ .chip-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .chip-grid{ grid-template-columns: 1fr; } }

.ref-card-row{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ref-card{ background: var(--ink-2); padding: 24px 22px; }
.ref-card .eyebrow{ margin-bottom: 12px; font-size: 10.5px; }
.ref-card h4{ font-size: 15.5px; color: var(--paper); margin-bottom: 8px; }
.ref-card p{ font-size: 12.5px; margin-bottom: 10px; }
.ref-card a{ font-family: var(--font-mono); font-size: 11px; color: var(--beacon); }
.ref-card a:hover{ text-decoration: underline; }

@media (max-width: 900px){ .ref-card-row{ grid-template-columns: 1fr; } }

.methodology-note{
  border-top: 1px solid var(--line); padding-top: 30px; margin-top: 20px;
  font-size: 13px; color: var(--fog-dim); max-width: 78ch;
}
.methodology-note b{ color: var(--paper-dim); }

/* ===================== Multi-column footer ===================== */
footer{ border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer-top{
  display:grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 48px;
}
.footer-brand p{ font-size: 12.5px; margin-top: 18px; max-width: 32ch; }
.footer-col h5{
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--fog-dim); margin-bottom: 16px;
}
.footer-col{ display:flex; flex-direction:column; gap: 11px; }
.footer-col a{ font-size: 13px; color: var(--fog); }
.footer-col a:hover{ color: var(--beacon); }
.footer-bottom{
  border-top: 1px solid var(--line-soft);
  padding: 22px 0 30px;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.footer-bottom .footer-meta{ font-family: var(--font-mono); font-size: 11.5px; color: var(--fog-dim); }
.footer-legal-links{ display:flex; gap:20px; flex-wrap:wrap; }
.footer-legal-links a{ font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); }
.footer-legal-links a:hover{ color: var(--beacon); }

@media (max-width: 980px){
  .footer-top{ grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand{ grid-column: 1 / -1; }
}
@media (max-width: 620px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}

/* ===================== Prose pages (Trust / Privacy / Terms) ===================== */
.prose{ max-width: 740px; }
.prose h2{ font-size: 22px; color: var(--paper); margin: 44px 0 16px; }
.prose h2:first-child{ margin-top:0; }
.prose h3{ font-size: 16px; color: var(--paper); margin: 26px 0 10px; }
.prose p{ font-size: 14.5px; margin-bottom: 14px; }
.prose ul{ margin: 0 0 14px; padding-left: 20px; }
.prose li{ font-size: 14.5px; color: var(--fog); margin-bottom: 8px; }
.prose a{ color: var(--beacon); }
.prose a:hover{ text-decoration: underline; }
.disclaimer-box{
  border: 1px solid var(--line); border-left: 3px solid var(--alert); border-radius: 4px;
  background: var(--panel); padding: 16px 20px; margin-bottom: 40px; font-size: 13px; color: var(--paper-dim);
}
.disclaimer-box b{ color: var(--alert); }
.updated-date{ font-family: var(--font-mono); font-size: 12px; color: var(--fog-dim); margin-bottom: 30px; }

/* ===================== Team / About ===================== */
.team-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.team-card{ border: 1px solid var(--line); border-radius: 6px; padding: 26px 22px; background: var(--panel); }
.team-avatar{
  width: 56px; height:56px; border-radius:50%; background: var(--panel-2); border:1px dashed var(--line);
  display:flex; align-items:center; justify-content:center; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 10px; color: var(--fog-dim); text-align:center; line-height:1.3;
}
.team-card h4{ font-size: 16px; color: var(--paper); margin-bottom: 4px; }
.team-card .role{ font-family: var(--font-mono); font-size: 11.5px; color: var(--beacon); margin-bottom: 12px; display:block; }
.team-card p{ font-size: 13px; }
.placeholder-tag{
  display:inline-block; font-family: var(--font-mono); font-size: 9.5px; text-transform:uppercase; letter-spacing:.06em;
  color: var(--fog-dim); border: 1px dashed var(--line); padding: 2px 8px; border-radius: 20px; margin-bottom: 14px;
}
@media (max-width: 900px){ .team-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .team-grid{ grid-template-columns: 1fr; } }

.value-list{ display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; margin-top: 30px; }
.value-item{ padding: 20px 0; border-top: 1px solid var(--line-soft); }
.value-item h4{ font-size: 15px; color: var(--paper); margin-bottom: 8px; }
.value-item p{ font-size: 13.5px; }
@media (max-width: 700px){ .value-list{ grid-template-columns: 1fr; } }

/* ===================== Case studies ===================== */
.case-card{
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 34px; margin-bottom: 28px;
}
.case-card .case-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 18px; }
.case-card .case-tags span{
  font-family: var(--font-mono); font-size: 10.5px; color: var(--beacon);
  border: 1px solid var(--beacon-dim); padding: 3px 9px; border-radius: 20px;
}
.case-card h3{ font-size: 19px; color: var(--paper); margin-bottom: 20px; }
.case-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-grid .col h5{ font-family: var(--font-mono); font-size: 10.5px; text-transform:uppercase; letter-spacing:.07em; color: var(--fog-dim); margin-bottom: 10px; }
.case-grid .col p{ font-size: 13.5px; }
.case-metrics{ display:flex; gap: 28px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-soft); flex-wrap:wrap; }
.case-metrics .metric b{ display:block; font-family: var(--font-display); font-size: 22px; color: var(--beacon); }
.case-metrics .metric span{ font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); }

/* ===================== Insurance trends source cards ===================== */
.source-card-grid{ display:grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 56px; }
.source-card{ background: var(--ink-2); padding: 28px 26px; }
.source-card .eyebrow{ margin-bottom: 10px; font-size: 10.5px; }
.source-card h4{ font-size: 16px; color: var(--paper); margin-bottom: 4px; }
.source-card .src-date{ font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); margin-bottom: 18px; display:block; }
.source-card .case-metrics{ margin-top: 4px; padding-top: 0; border-top: none; gap: 22px; }
.source-card ul{ margin: 16px 0 14px; padding-left: 18px; }
.source-card li{ font-size: 12.5px; color: var(--fog); margin-bottom: 6px; }
.source-card a{ font-family: var(--font-mono); font-size: 11px; color: var(--beacon); }
.source-card a:hover{ text-decoration: underline; }
@media (max-width: 860px){ .source-card-grid{ grid-template-columns: 1fr; } }
@media (max-width: 900px){ .case-grid{ grid-template-columns: 1fr; } }

/* ===================== Blog ===================== */
.blog-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.blog-card{ border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 26px; display:flex; flex-direction:column; }
.blog-card .blog-tag{ font-family: var(--font-mono); font-size: 10.5px; color: var(--beacon); text-transform:uppercase; letter-spacing:.06em; margin-bottom: 14px; }
.blog-card h3{ font-size: 17px; color: var(--paper); margin-bottom: 10px; line-height:1.3; }
.blog-card p{ font-size: 13px; margin-bottom: 18px; }
.blog-card .blog-meta{ margin-top:auto; font-family: var(--font-mono); font-size: 11px; color: var(--fog-dim); }
.blog-card a.blog-link{ color: var(--beacon); font-family: var(--font-mono); font-size: 12px; margin-top: 14px; display:inline-block; }
@media (max-width: 900px){ .blog-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .blog-grid{ grid-template-columns: 1fr; } }

.post-header{ max-width: 740px; margin-bottom: 40px; }
.post-header h1{ font-size: clamp(26px,3.4vw,38px); color: var(--paper); margin: 16px 0 14px; }
.post-meta{ font-family: var(--font-mono); font-size: 12px; color: var(--fog-dim); }
.post-lead{ font-size: 16px; color: var(--fog); margin-top: 16px; }

/* ===================== Resource hub ===================== */
.resource-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; margin-bottom: 60px; }
.resource-card{ border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 26px; display:flex; flex-direction:column; }
.resource-card .res-type{ font-family: var(--font-mono); font-size: 10.5px; color: var(--beacon); text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; }
.resource-card h3{ font-size: 16px; color: var(--paper); margin-bottom: 10px; }
.resource-card p{ font-size: 13px; margin-bottom: 20px; }
.resource-card button{ margin-top:auto; }
@media (max-width: 900px){ .resource-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .resource-grid{ grid-template-columns: 1fr; } }

.newsletter-band{
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 44px; display:flex; align-items:center; justify-content:space-between; gap: 30px; flex-wrap:wrap;
}
.newsletter-band h3{ font-size: 19px; color: var(--paper); margin-bottom: 8px; }
.newsletter-band p{ font-size: 13.5px; max-width: 46ch; }
.newsletter-form{ display:flex; gap: 10px; flex-wrap:wrap; }
.newsletter-form input{ width: 240px; }
@media (max-width: 700px){ .newsletter-form input{ width:100%; } }

/* ===================== Training animation page ===================== */
.train-tabs{ display:flex; gap: 10px; margin-bottom: 34px; flex-wrap:wrap; }
.train-tab{
  font-family: var(--font-mono); font-size: 12.5px; padding: 11px 20px; border-radius: 20px;
  border: 1px solid var(--line); color: var(--fog); cursor:pointer; transition: all .15s;
  background: transparent;
}
.train-tab:hover{ border-color: var(--fog-dim); }
.train-tab.active{ background: var(--beacon); border-color: var(--beacon); color: var(--ink); font-weight:600; }

.train-panel{ display:none; }
.train-panel.active{ display:block; }

.train-stage{
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  padding: 18px; margin-bottom: 22px;
}
.train-stage svg{ width:100%; height:auto; display:block; }

.node-box rect{ fill: var(--ink-2); stroke: var(--line); stroke-width: 1.5; transition: all .35s var(--ease); }
.node-box text{ fill: var(--fog); font-family: var(--font-mono); transition: fill .35s var(--ease); }
.node-box .node-title{ fill: var(--paper-dim); font-family: var(--font-body); font-weight:600; }
.node-box.attacker-node rect{ stroke: var(--danger); stroke-dasharray: 4 3; }
.node-box.attacker-node .node-title{ fill: var(--danger); }

.edge-path{ fill:none; stroke: var(--line); stroke-width: 1.6; transition: stroke .35s var(--ease), opacity .35s var(--ease); marker-end:url(#arrow-default); }
.edge-path.attack-edge{ stroke: var(--line); stroke-dasharray: 5 4; }

/* active/inactive states applied by JS per step */
.diagram-el{ opacity: 0.32; transition: opacity .35s var(--ease); }
.diagram-el.step-active{ opacity: 1; }
.diagram-el.step-active .edge-path{ stroke: var(--beacon); marker-end:url(#arrow-active); }
.diagram-el.step-active.danger .edge-path{ stroke: var(--danger); marker-end:url(#arrow-danger); }
.diagram-el.step-active .node-box rect{ stroke: var(--beacon); }
.diagram-el.step-active.danger .node-box rect{ stroke: var(--danger); }
.diagram-el.step-active .node-box text{ fill: var(--paper); }
.always-on{ opacity: 1; }

.train-caption{
  border: 1px solid var(--line); border-left: 3px solid var(--beacon); border-radius: 4px;
  background: var(--ink-2); padding: 20px 24px; margin-bottom: 20px; min-height: 76px;
}
.train-caption.danger{ border-left-color: var(--danger); }
.train-caption .step-tag{ font-family: var(--font-mono); font-size: 10.5px; color: var(--fog-dim); text-transform:uppercase; letter-spacing:.07em; margin-bottom:8px; display:block; }
.train-caption h4{ font-size: 16px; color: var(--paper); margin-bottom: 6px; }
.train-caption p{ font-size: 13.5px; }
.train-caption .owasp-tag{
  display:inline-block; font-family: var(--font-mono); font-size: 10px; color: var(--danger);
  border: 1px solid rgba(255,93,93,0.35); background: rgba(255,93,93,0.08);
  padding: 2px 8px; border-radius: 20px; margin-top: 10px;
}

.train-controls{ display:flex; align-items:center; justify-content:space-between; gap: 20px; flex-wrap:wrap; }
.train-controls-left{ display:flex; align-items:center; gap: 10px; }
.step-dots{ display:flex; gap:7px; }
.step-dot{ width:8px; height:8px; border-radius:50%; background: var(--line); cursor:pointer; transition: background .2s; }
.step-dot.active{ background: var(--beacon); }
.step-dot.danger.active{ background: var(--danger); }

@media (max-width: 700px){
  .train-stage{ overflow-x:auto; }
  .train-stage svg{ min-width: 720px; }
}

/* ---------- Free preview announcement bar + footer CTA ---------- */
.preview-announcement-bar{
  display:flex; align-items:center; justify-content:center; gap:16px;
  flex-wrap:wrap; text-align:center;
  background: var(--beacon); color: var(--ink); text-decoration:none;
  padding:12px 20px; font-family: var(--font-body); font-size:14px; font-weight:600;
}
.preview-announcement-bar:hover{ background: var(--beacon-dim); }
.preview-announcement-arrow{ text-decoration:underline; white-space:nowrap; }

.footer-preview-cta{
  max-width: var(--container); margin:0 auto 40px auto; padding:32px 24px; text-align:center;
  background: var(--panel); border:1px solid var(--line); border-radius: 10px;
}
.footer-preview-cta p{ margin:0 0 16px 0; font-size:16px; color: var(--paper-dim); font-family: var(--font-body); }
.footer-preview-cta a{
  display:inline-block; padding:12px 26px; background: var(--beacon); color: var(--ink);
  border-radius: var(--radius); text-decoration:none; font-weight:600;
  font-family: var(--font-body); font-size:14px;
}
.footer-preview-cta a:hover{ background: var(--beacon-dim); }

/* ---------- Nav CTA: distinct treatment for Read the Book / Talk to us ---------- */
.btn-nav-book{
  background: var(--beacon);
  border-color: var(--beacon);
  color: var(--ink);
  font-weight: 600;
}
.btn-nav-book:hover{ background: #FFAE45; border-color:#FFAE45; }
.btn-nav-talk{
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.btn-nav-talk:hover{ background: var(--ink-2); border-color: var(--ink-2); }
