/* Cyber Threat Intel Brief — April 12, 2026 · Sunday Edition · "Channel Eight" dossier */

:root {
  --bg-primary: #0f0c0a;
  --bg-secondary: #1a1410;
  --bg-surface: rgba(212, 165, 116, 0.06);
  --bg-elevated: rgba(255, 245, 230, 0.04);
  --text-primary: #f5ebe0;
  --text-secondary: #b8a99a;
  --text-muted: #6d6258;
  --accent-red: #e63946;
  --accent-red-dim: rgba(230, 57, 70, 0.14);
  --accent-green: #2a9d5c;
  --accent-green-dim: rgba(42, 157, 92, 0.12);
  --accent-gold: #e9c46a;
  --accent-gold-dim: rgba(233, 196, 106, 0.14);
  --accent-blue: #4cc9f0;
  --glass: rgba(255, 248, 240, 0.04);
  --glass-border: rgba(233, 196, 106, 0.18);
  --glass-highlight: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Share Tech Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  padding-top: 42px;
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 0.065;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ═══ TICKER ═══ */
.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 42px;
  background: linear-gradient(90deg, rgba(230,57,70,0.12) 0%, var(--bg-primary) 18%, var(--bg-primary) 82%, rgba(233,196,106,0.1) 100%);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  flex-shrink: 0;
  padding: 0 1.5rem 0 0;
  animation: ticker-scroll 52s linear infinite;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.ticker__item {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
}

.ticker__sep {
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--accent-red);
  opacity: 0.55;
  flex-shrink: 0;
}

.ticker__item--cve { color: var(--accent-gold); }
.ticker__item--actor { color: var(--accent-red); }
.ticker__item--advisory { color: var(--accent-blue); }
.ticker__item--op { color: var(--accent-green); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 4rem);
  padding-bottom: clamp(3rem, 8vh, 6rem);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 10% 0%, rgba(230, 57, 70, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 90% 30%, rgba(233, 196, 106, 0.08) 0%, transparent 45%),
    linear-gradient(165deg, #120d0a 0%, var(--bg-primary) 45%, #0a0807 100%);
  z-index: 0;
}

.hero__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 56rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #fff8f0;
  text-shadow: 0 0 60px rgba(230, 57, 70, 0.25);
}

.hero__sub {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 44rem;
  margin-bottom: 1.75rem;
}

.hero__ref-strip {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-gold);
  letter-spacing: 0.04em;
  border-left: 3px solid var(--accent-red);
  padding-left: 1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
}

.hero__stat {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.1rem;
  border-radius: 2px;
}

.hero__stat-val {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--accent-gold);
  font-weight: 600;
}

.hero__stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
}

/* ═══ SECTIONS ═══ */
.sec {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.sec__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.sec__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 0.75rem;
}

.sec__title {
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.sec__rule {
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.sec__rule-text {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.sec__lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 58rem;
  margin-bottom: 2rem;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 2rem;
}

.source {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 201, 240, 0.35);
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.source:hover { color: var(--accent-gold); border-color: var(--accent-gold); }

/* EC follow-up */
.ec-follow {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.ec-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .ec-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.ec-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  padding: 1.5rem 1.75rem;
  border-radius: 2px;
}

.ec-panel__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-gold);
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.ec-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ec-tl-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

@media (max-width: 600px) {
  .ec-tl-row { grid-template-columns: 1fr; }
}

.ec-tl-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-red);
}

.ec-tl-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.ec-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.ec-stat {
  text-align: center;
  padding: 1rem;
  background: var(--accent-red-dim);
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 2px;
}

.ec-stat__val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--accent-gold);
}

.ec-stat__lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* CISA KEV rail */
.cisa-rail {
  background: var(--bg-primary);
}

.kev-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.kev-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.65rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
  color: var(--text-primary);
}

.kev-chip strong { color: var(--accent-gold); font-weight: 600; }

.kev-chip--urgent {
  border-color: rgba(230, 57, 70, 0.45);
  background: var(--accent-red-dim);
}

/* Fortinet + Ivanti cards */
.vendor-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .vendor-split { grid-template-columns: 1fr 1fr; }
}

.vendor-card {
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated);
  padding: 1.75rem;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.vendor-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
}

.vendor-card__cve {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.vendor-card__h {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.vendor-card__p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.vendor-card__due {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-red);
  letter-spacing: 0.04em;
}

/* Chrome zero-day strip */
.chrome-strip {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .chrome-strip { grid-template-columns: 1fr 1.2fr; }
}

.term-box {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.65;
  background: #080605;
  border: 1px solid rgba(233, 196, 106, 0.25);
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
  color: var(--accent-gold);
}

.term-box .k { color: var(--text-muted); }
.term-box .v { color: #f5ebe0; }

/* TrueChaos dossier */
.true-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .true-grid { grid-template-columns: repeat(3, 1fr); }
}

.true-card {
  padding: 1.35rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 2px;
}

.true-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.true-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* React2Shell */
.react-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .react-layout { grid-template-columns: 0.95fr 1.05fr; }
}

.react-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.react-metric {
  padding: 1.1rem;
  border: 1px solid var(--glass-border);
  text-align: center;
}

.react-metric__n {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  color: var(--accent-green);
}

.react-metric__l {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.ioc-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.ioc-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.45rem 0.65rem;
  background: rgba(42, 157, 92, 0.12);
  border: 1px solid rgba(42, 157, 92, 0.35);
  color: var(--accent-green);
  border-radius: 2px;
}

/* LiteLLM */
.llm-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.llm-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.llm-step__n {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 2px;
}

.llm-step__body {
  flex: 1;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--glass-border);
  background: var(--bg-elevated);
}

.llm-step__body h4 { font-size: 1rem; margin-bottom: 0.35rem; }
.llm-step__body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }

/* KICS */
.kics-banner {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--accent-red-dim);
  border: 1px solid rgba(230, 57, 70, 0.3);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

/* Unit42 map */
.u42-map {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .u42-map { grid-template-columns: repeat(4, 1fr); }
}

.u42-node {
  aspect-ratio: 1;
  max-height: 140px;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  background: linear-gradient(145deg, var(--bg-elevated), transparent);
}

.u42-node span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.u42-node strong {
  font-size: 0.85rem;
  margin-top: 0.35rem;
  color: var(--accent-gold);
}

/* Hasbro */
.hasbro-sec {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #120e0c 100%);
}

.hasbro-quote {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-secondary);
  border-left: 4px solid var(--accent-blue);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
}

.hasbro-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
}

/* Stats band */
.stats-band {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  background: #080605;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.stats-band__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .stats-band__inner { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  text-align: center;
}

.stat-cell__n {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent-red);
}

.stat-cell__l {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.4rem;
}

/* Week ahead */
.week-ahead {
  padding-bottom: 5rem;
}

.wa-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .wa-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .wa-grid { grid-template-columns: repeat(3, 1fr); }
}

.wa-card {
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--glass-border);
  background: var(--bg-elevated);
  border-radius: 2px;
  min-height: 44px;
}

.wa-card--hot {
  border-color: rgba(230, 57, 70, 0.45);
  background: var(--accent-red-dim);
}

.wa-card__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-gold);
  margin-bottom: 0.5rem;
}

.wa-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.wa-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Footer */
.site-footer {
  padding: 3rem clamp(1.25rem, 4vw, 3rem) calc(3rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--glass-border);
  text-align: center;
  background: #080605;
}

.site-footer__brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.site-footer__pulse {
  width: 10px;
  height: 10px;
  background: var(--accent-red);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.site-footer__regen {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 28rem;
  margin: 0 auto 1rem;
}

.site-footer__session {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer__timestamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.sn-wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1rem clamp(1.25rem, 4vw, 3rem) 0;
}

/* Easter egg — subtle broadcast test pattern in hero corner */
.hero__egg {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  opacity: 0.12;
  background: conic-gradient(
    from 0deg,
    #e63946 0deg 60deg,
    #e9c46a 60deg 120deg,
    #2a9d5c 120deg 180deg,
    #4cc9f0 180deg 240deg,
    #264653 240deg 300deg,
    #f5ebe0 300deg 360deg
  );
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent-gold);
}
