/* ============================================
   JOSH — Threat Hunter & SOC
   ============================================ */

:root {
  --bg-deep: #090B11;
  --bg-primary: #0C0F17;
  --bg-card: #11151E;
  --bg-card-hover: #191E29;
  --surface-soft: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.065);
  --border-subtle: rgba(89, 195, 253, 0.28);
  --border-dim: rgba(255, 255, 255, 0.11);

  --teal: #59C3FD;
  --teal-bright: #8ED8FF;
  --teal-dim: rgba(89, 195, 253, 0.14);
  --teal-glow: rgba(74, 161, 253, 0.3);
  --amber: #862ADD;
  --amber-dim: rgba(134, 42, 221, 0.15);
  --purple: #A855F7;
  --purple-dim: rgba(168, 85, 247, 0.14);
  --red-alert: #FF607A;

  --text-primary: #F5F8FF;
  --text-secondary: #A7AFBF;
  --text-dim: #6F788A;

  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --max-width: 1320px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 115% 56% at 50% -24%, rgba(74, 161, 253, 0.045) 0%, transparent 72%),
    linear-gradient(180deg, #090B11 0%, #0D111A 48%, #090B11 100%);
  background-attachment: fixed;
}

/* Cyber grid background */
.cyber-grid {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(92, 156, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 156, 255, 0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 0%, transparent 70%);
}

/* Floating scan line — slow ambient drift */
.scanline {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  overflow: hidden;
}
.scanline::before {
  content: '';
  position: absolute; left: 0; width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(92, 156, 255, 0.15) 20%, rgba(92, 156, 255, 0.3) 50%, rgba(92, 156, 255, 0.15) 80%, transparent 100%);
  box-shadow: 0 0 12px 2px rgba(92, 156, 255, 0.08);
  animation: scanline-move 38s linear infinite;
}
@keyframes scanline-move {
  0%   { top: 3%; }
  18%  { top: 97%; }
  50%  { top: 97%; }
  68%  { top: 3%; }
  100% { top: 3%; }
}

/* Side glow columns — teal left, cyan right */
.side-glow {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
}
.side-glow::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 240px; height: 100%;
  background: linear-gradient(90deg, rgba(92, 156, 255, 0.08) 0%, transparent 100%);
  animation: side-flicker-left 4s ease-in-out infinite;
}
.side-glow::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 240px; height: 100%;
  background: linear-gradient(270deg, rgba(180, 92, 255, 0.08) 0%, transparent 100%);
  animation: side-flicker-right 5s ease-in-out infinite;
}
@keyframes side-flicker-left {
  0%, 100% { opacity: 0.5; }
  25% { opacity: 1; }
  50% { opacity: 0.2; }
  75% { opacity: 0.8; }
}
@keyframes side-flicker-right {
  0%, 100% { opacity: 0.4; }
  30% { opacity: 1; }
  60% { opacity: 0.15; }
  80% { opacity: 0.7; }
}

/* Glitch bars — subtle horizontal lines that flash sporadically */
.glitch-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1;
  overflow: hidden;
}
.glitch-overlay::before,
.glitch-overlay::after {
  content: '';
  position: absolute;
  height: 1px;
}

/* Line 1-2 */
.glitch-overlay::before { width: 100%; background: rgba(92, 156, 255, 0.18); animation: gl1 4s steps(1) infinite; }
.glitch-overlay::after  { width: 70%; left: 15%; background: rgba(180, 92, 255, 0.2); animation: gl2 6s steps(1) infinite; }

/* Line 3-4 */
.glitch-overlay.g2::before { width: 45%; left: 0; background: rgba(92, 156, 255, 0.15); animation: gl3 3s steps(1) infinite; }
.glitch-overlay.g2::after  { width: 35%; right: 0; left: auto; background: rgba(180, 92, 255, 0.16); animation: gl4 5s steps(1) infinite; }

/* Line 5-6 */
.glitch-overlay.g3::before { width: 80%; left: 10%; background: rgba(92, 156, 255, 0.14); animation: gl5 7s steps(1) infinite; }
.glitch-overlay.g3::after  { width: 25%; left: 50%; background: rgba(180, 92, 255, 0.18); animation: gl6 3.5s steps(1) infinite; }

/* Line 7-8 */
.glitch-overlay.g4::before { width: 30%; left: 0; background: rgba(92, 156, 255, 0.16); animation: gl7 4.5s steps(1) infinite; }
.glitch-overlay.g4::after  { width: 30%; right: 0; left: auto; background: rgba(180, 92, 255, 0.14); animation: gl8 6.5s steps(1) infinite; }

/* Line 9-10 */
.glitch-overlay.g5::before { width: 100%; background: rgba(92, 156, 255, 0.12); animation: gl9 8s steps(1) infinite; }
.glitch-overlay.g5::after  { width: 55%; left: 30%; background: rgba(180, 92, 255, 0.15); animation: gl10 3s steps(1) infinite; }

@keyframes gl1 {
  0%   { top: 12%; opacity: 0; }
  12%  { top: 12%; opacity: 0.9; }
  18%  { top: 12%; opacity: 0; }
  45%  { top: 67%; opacity: 0; }
  50%  { top: 67%; opacity: 0.7; }
  55%  { top: 67%; opacity: 0; }
  100% { top: 78%; opacity: 0; }
}
@keyframes gl2 {
  0%   { top: 55%; opacity: 0; }
  8%   { top: 55%; opacity: 0.8; }
  14%  { top: 55%; opacity: 0; }
  60%  { top: 23%; opacity: 0; }
  65%  { top: 23%; opacity: 0.6; }
  70%  { top: 23%; opacity: 0; }
  100% { top: 80%; opacity: 0; }
}
@keyframes gl3 {
  0%   { top: 22%;  opacity: 0; }
  20%  { top: 22%;  opacity: 0; }
  25%  { top: 22%;  opacity: 0.8; }
  32%  { top: 22%;  opacity: 0; }
  65%  { top: 52%; opacity: 0; }
  70%  { top: 52%; opacity: 0.7; }
  76%  { top: 52%; opacity: 0; }
  100% { top: 78%; opacity: 0; }
}
@keyframes gl4 {
  0%   { top: 72%; opacity: 0; }
  5%   { top: 72%; opacity: 0.6; }
  12%  { top: 72%; opacity: 0; }
  40%  { top: 15%; opacity: 0; }
  45%  { top: 15%; opacity: 0.9; }
  50%  { top: 15%; opacity: 0; }
  80%  { top: 80%; opacity: 0; }
  84%  { top: 80%; opacity: 0.5; }
  88%  { top: 80%; opacity: 0; }
  100% { top: 30%; opacity: 0; }
}
@keyframes gl5 {
  0%   { top: 40%; opacity: 0; }
  10%  { top: 40%; opacity: 0.6; }
  15%  { top: 40%; opacity: 0; }
  50%  { top: 75%; opacity: 0; }
  55%  { top: 75%; opacity: 0.5; }
  60%  { top: 75%; opacity: 0; }
  100% { top: 18%; opacity: 0; }
}
@keyframes gl6 {
  0%   { top: 22%; opacity: 0; }
  15%  { top: 22%; opacity: 0; }
  20%  { top: 22%; opacity: 0.9; }
  28%  { top: 22%; opacity: 0; }
  55%  { top: 68%; opacity: 0; }
  60%  { top: 68%; opacity: 0.7; }
  66%  { top: 68%; opacity: 0; }
  100% { top: 42%; opacity: 0; }
}
@keyframes gl7 {
  0%   { top: 82%; opacity: 0; }
  8%   { top: 82%; opacity: 0.7; }
  14%  { top: 82%; opacity: 0; }
  55%  { top: 35%; opacity: 0; }
  60%  { top: 35%; opacity: 0.6; }
  66%  { top: 35%; opacity: 0; }
  100% { top: 60%; opacity: 0; }
}
@keyframes gl8 {
  0%   { top: 20%;  opacity: 0; }
  5%   { top: 20%;  opacity: 0.5; }
  10%  { top: 20%;  opacity: 0; }
  35%  { top: 48%; opacity: 0; }
  40%  { top: 48%; opacity: 0.7; }
  45%  { top: 48%; opacity: 0; }
  70%  { top: 82%; opacity: 0; }
  74%  { top: 82%; opacity: 0.6; }
  78%  { top: 82%; opacity: 0; }
  100% { top: 25%; opacity: 0; }
}
@keyframes gl9 {
  0%   { top: 60%; opacity: 0; }
  6%   { top: 60%; opacity: 0.5; }
  11%  { top: 60%; opacity: 0; }
  45%  { top: 20%; opacity: 0; }
  50%  { top: 20%; opacity: 0.4; }
  55%  { top: 20%; opacity: 0; }
  100% { top: 78%; opacity: 0; }
}
@keyframes gl10 {
  0%   { top: 32%; opacity: 0; }
  10%  { top: 32%; opacity: 0; }
  15%  { top: 32%; opacity: 0.8; }
  22%  { top: 32%; opacity: 0; }
  60%  { top: 78%; opacity: 0; }
  65%  { top: 78%; opacity: 0.7; }
  72%  { top: 78%; opacity: 0; }
  100% { top: 50%; opacity: 0; }
}

/* Noise overlay */
.noise-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: -1; opacity: 0.02;
  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.9' 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;
}

a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: #8FB0FF; }
img { max-width: 100%; height: auto; }

/* CRT scanline texture */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(92,156,255,0.015) 2px, rgba(92,156,255,0.015) 4px);
  pointer-events: none;
  z-index: -1;
}

/* --- UTILITY --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-label::before { content: '//'; opacity: 0.5; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.text-teal { color: var(--teal); }
.text-amber { color: var(--amber); }
.text-purple { color: var(--purple); }
.text-secondary { color: var(--text-secondary); }

/* --- NAV --- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(8, 13, 25, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dim);
  transition: background var(--transition);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 800;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 0.5rem;
  letter-spacing: 1px;
}

.nav-brand .brand-dot {
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 var(--teal-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.nav-links a {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: var(--text-secondary); position: relative; padding: 0.25rem 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
}

/* --- HERO --- */
.hero {
  min-height: auto;
  padding-top: 120px; padding-bottom: 4rem;
  position: relative; z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: ''; position: absolute;
  top: -30%; right: -10%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(92, 156, 255, 0.08) 0%, rgba(92, 156, 255, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: ''; position: absolute;
  bottom: -20%; left: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(180, 92, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-pfp {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 0;
  position: relative;
  display: inline-block;
}
.hero-name::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber), transparent);
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem; color: var(--teal);
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 0;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: var(--teal-dim);
}

.hero-tag .status-dot {
  width: 8px; height: 8px;
  background: var(--teal); border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1.25rem; letter-spacing: -0.02em;
}

.hero h1 .line-break { display: block; }

.hero-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 2rem; line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Profile Picture */
.pfp-ring {
  width: 260px; height: 260px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--teal), rgba(92, 156, 255, 0.4), var(--amber));
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(92, 156, 255, 0.15), 0 0 80px rgba(92, 156, 255, 0.05);
}

.pfp-ring img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--bg-deep);
}

.pfp-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(92, 156, 255, 0.15);
}

/* Small inline PFP for about page etc */
.pfp-small {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  padding: 0.85rem 1.75rem; border-radius: var(--radius);
  border: none; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}

.btn-primary { background: var(--teal); color: var(--bg-deep); }
.btn-primary:hover {
  background: #8FB0FF; color: var(--bg-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--teal-glow);
}

.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn-ghost:hover {
  background: var(--teal-dim); border-color: var(--teal); color: var(--teal);
  transform: translateY(-2px);
}

/* --- CARDS --- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-dim);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.4rem;
}
.card-icon.amber { background: var(--amber-dim); }
.card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* --- DAILY CTI HUNT HYPOTHESES --- */
.daily-hunts {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--border-dim);
}
.daily-hunts-intro {
  max-width: 760px;
  color: var(--text-secondary);
  margin: -1rem 0 2rem;
}
.hearth-note {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(92, 156, 255, 0.08), rgba(180, 92, 255, 0.05));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.hearth-note p {
  margin: 0.75rem 0 0;
  color: var(--text-secondary);
  max-width: 760px;
}
.hearth-note a {
  color: var(--teal);
}
.hearth-note__link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(92, 156, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.hearth-note__link:hover {
  border-color: var(--teal);
  background: var(--teal-dim);
  color: var(--teal);
}
.hunt-hypothesis-card {
  position: relative;
  overflow: hidden;
}
.hunt-hypothesis-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  opacity: 0.8;
}
.hunt-hypothesis-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.hunt-hypothesis-card__statement {
  color: var(--text-primary) !important;
  font-style: italic;
}
.hunt-hypothesis-card p strong {
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hunt-hypothesis-card__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.hunt-hypothesis-card__tags .mitre-tag {
  margin-left: 0;
}
.hunt-hypothesis-card__source {
  display: block;
  margin-top: 1rem;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-decoration: none;
  word-break: break-word;
}
.hunt-hypothesis-card__source:hover {
  color: var(--amber);
}
.hunt-hypothesis-empty {
  max-width: 640px;
}
.hunt-history {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.45);
}
.hunt-history__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.hunt-history__header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}
.hunt-history__header p {
  color: var(--text-secondary);
  margin: 0;
  max-width: 620px;
}
.hunt-history__control {
  min-width: 220px;
}
.hunt-history__control label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}
.hunt-history__control select {
  width: 100%;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  outline: none;
}
.hunt-history__control select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.hunt-history__panel {
  display: none;
}
.hunt-history__panel.is-active {
  display: block;
}
.hunt-history__panel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 1rem;
}
.hunt-history__empty {
  border: 1px dashed var(--border-dim);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  color: var(--text-dim);
}
.hunt-history__empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* --- GRIDS --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* --- STATS --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border-dim);
  border-bottom: 1px solid var(--border-dim);
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 800;
  color: var(--teal); line-height: 1; margin-bottom: 0.5rem;
}
.stat-label { font-size: 0.85rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; }

/* --- TIMELINE --- */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--teal), var(--teal-dim), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dim);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.timeline-item::before {
  content: ''; position: absolute; left: -3rem; top: 8px;
  width: 12px; height: 12px; background: var(--teal); border-radius: 50%;
  transform: translateX(-5px);
  box-shadow: 0 0 0 4px var(--bg-deep), 0 0 0 6px var(--teal-dim);
}
.timeline-item.current::before { animation: pulse-dot 2s ease-in-out infinite; }
.timeline-date { font-family: var(--font-mono); font-size: 0.8rem; color: var(--teal); letter-spacing: 1px; margin-bottom: 0.5rem; }
.timeline-role { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-company-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.timeline-company-row.timeline-company-link {
  width: fit-content;
  color: var(--text-primary);
  text-decoration: none;
}
.timeline-company-link::after {
  content: '↗';
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.58;
  transition: opacity var(--transition), transform var(--transition);
}
.timeline-company-row.timeline-company-link:hover { color: var(--text-primary); }
.timeline-company-link .timeline-role,
.timeline-company-link .timeline-company-name {
  color: var(--text-primary);
  transition: color var(--transition);
}
.timeline-company-link:hover::after,
.timeline-company-link:focus-visible::after {
  opacity: 1;
  transform: translate(2px, -2px);
}
.timeline-company-link:hover .timeline-company,
.timeline-company-link:hover .timeline-company-name,
.timeline-company-link:focus-visible .timeline-company,
.timeline-company-link:focus-visible .timeline-company-name {
  color: var(--teal);
}
.timeline-company-link:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 6px;
}
.company-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  object-fit: contain;
  padding: 4px;
  flex-shrink: 0;
}
.timeline-company-row.logo-missing::before {
  content: attr(data-initial);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--teal-dim);
  color: var(--teal);
  text-align: center;
  line-height: 44px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.timeline-company { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0; }
.timeline-details { color: var(--text-secondary); font-size: 0.95rem; }
.timeline-details li { margin-bottom: 0.5rem; list-style: none; position: relative; padding-left: 1.25rem; }
.timeline-details li::before { content: '>'; position: absolute; left: 0; color: var(--teal); font-family: var(--font-mono); font-weight: 700; }
.timeline-company-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}
.timeline-role-group { display: grid; gap: 1.5rem; }
.timeline-role-entry {
  padding-left: 1rem;
  border-left: 1px solid var(--border-dim);
}
.timeline-role-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.timeline-subrole-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.timeline-subrole-date {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .timeline-role-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
}

/* --- TOOL TAGS --- */
.tool-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: 100px;
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--text-secondary); transition: all var(--transition);
}
.tool-tag:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }
.tools-cloud { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- DETECTION CODE VIEWER --- */
.detection-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.detection-card:hover {
  border-color: var(--border-subtle);
}

.detection-header {
  padding: 1.25rem 1.5rem;
  border-bottom: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detection-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.detection-meta {
  display: flex; gap: 0.75rem; align-items: center;
}

.detection-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.detection-tag.sigma { background: rgba(168, 85, 247, 0.15); color: #A855F7; }
.detection-tag.lima { background: var(--teal-dim); color: var(--teal); }
.detection-tag.fibratus { background: var(--amber-dim); color: var(--amber); }
.detection-tag.lima { background: var(--teal-dim); color: var(--teal); }
a.detection-tag:hover { opacity: 0.8; }

.detection-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(0,0,0,0.2);
}

.detection-tab {
  padding: 0.6rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.detection-tab:hover { color: var(--text-secondary); }
.detection-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: rgba(92, 156, 255, 0.05);
}

.detection-code {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.detection-code pre {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre;
  margin: 0;
}

.detection-code .key { color: var(--teal); }
.detection-code .string { color: #A855F7; }
.detection-code .comment { color: var(--text-dim); font-style: italic; }
.detection-code .value { color: var(--amber); }

.detection-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.mitre-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 59, 92, 0.1);
  color: var(--red-alert);
  border-radius: 4px;
  margin-left: 0.4rem;
}

/* --- BLOG POST CARDS --- */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  border-color: var(--border-subtle);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  color: inherit;
}

.blog-card-body { padding: 1.75rem; }

.blog-card-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.blog-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.75rem; line-height: 1.4;
}

.blog-card-body p { color: var(--text-secondary); font-size: 0.9rem; }

.blog-card-footer {
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border-dim);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* --- BLOG POST PAGE --- */
.post-content {
  max-width: 760px;
  margin: 0 auto;
}
.post-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.post-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 600;
  margin: 2rem 0 0.75rem;
}
.post-content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-card);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--teal);
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code {
  background: none; padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
pre code.hljs {
  display: block;
  color: var(--text-secondary);
}
.hljs-comment,
.hljs-quote {
  color: var(--text-dim);
  font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-section,
.hljs-link,
.hljs-operator {
  color: var(--purple);
}
.hljs-string,
.hljs-title,
.hljs-name,
.hljs-type,
.hljs-attribute,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
  color: var(--teal-bright);
}
.hljs-number,
.hljs-meta,
.hljs-built_in,
.hljs-builtin-name,
.hljs-params {
  color: var(--amber);
}
.hljs-variable,
.hljs-template-variable,
.hljs-regexp,
.hljs-deletion,
.hljs-char,
.hljs-escape {
  color: var(--red-alert);
}
.hljs-punctuation {
  color: var(--text-secondary);
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 700;
}
.post-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-dim);
  margin: 1.5rem auto;
  image-rendering: auto;
  cursor: zoom-in;
}
.post-content img.img-wide {
  display: block;
  width: auto;
  max-width: calc(100vw - 3rem);
  margin-left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .post-content img.img-wide {
    max-width: calc(100vw - 2rem);
  }
}
.post-content img:not(.post-featured-image):active {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: auto; height: auto;
  max-width: 95vw; max-height: 95vh;
  margin: auto;
  z-index: 9999;
  border-radius: 0;
  border: none;
  cursor: zoom-out;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.9);
  padding: 2vh 2vw;
  box-sizing: border-box;
}
.post-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--teal-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
}
.post-content .post-note {
  --post-note-accent: var(--teal);
  --post-note-bg: var(--teal-dim);
  margin: 1.75rem 0;
  padding: 1.15rem 1.35rem 1.2rem;
  border: 1px solid var(--border-dim);
  border-left: 3px solid var(--post-note-accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--post-note-bg);
}
.post-content .post-note--amber {
  --post-note-accent: var(--amber);
  --post-note-bg: var(--amber-dim);
}
.post-content .post-note--purple {
  --post-note-accent: var(--purple);
  --post-note-bg: var(--purple-dim);
}
.post-content .post-note--red {
  --post-note-accent: var(--red-alert);
  --post-note-bg: rgba(255, 96, 122, 0.1);
}
.post-content .post-note-label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--post-note-accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-content .post-note p {
  margin: 0;
  color: var(--text-secondary);
}
.post-content .post-featured {
  width: min(960px, calc(100vw - 3rem));
  margin: 0 0 2.25rem 50%;
  transform: translateX(-50%);
}
.post-content .post-featured-image {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  cursor: default;
}
.post-content .post-featured figcaption,
.post-content .post-figure figcaption {
  margin-top: 0.65rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.55;
  text-align: center;
}
.post-content .post-section-card {
  --post-card-accent: var(--teal);
  --post-card-bg: var(--teal-dim);
  position: relative;
  margin: 2rem 0;
  padding: 1.35rem 1.45rem 1.45rem;
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--post-card-accent);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, var(--post-card-bg), var(--bg-card) 72%);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
}
.post-content .post-section-card--amber {
  --post-card-accent: var(--amber);
  --post-card-bg: var(--amber-dim);
}
.post-content .post-section-card--purple {
  --post-card-accent: var(--purple);
  --post-card-bg: var(--purple-dim);
}
.post-content .post-section-card--red {
  --post-card-accent: var(--red-alert);
  --post-card-bg: rgba(255, 96, 122, 0.1);
}
.post-content .post-section-card-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--post-card-accent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.post-content .post-section-card h3 {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}
.post-content .post-section-card-copy {
  color: var(--text-secondary);
  line-height: 1.8;
}
.post-content .post-details {
  margin: 1.75rem 0;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  background: var(--bg-card);
  overflow: hidden;
}
.post-content .post-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  list-style: none;
}
.post-content .post-details summary::-webkit-details-marker {
  display: none;
}
.post-content .post-details summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 1.1rem;
}
.post-content .post-details[open] summary::after {
  content: '−';
}
.post-content .post-details-body {
  padding: 1.2rem;
  border-top: 1px solid var(--border-dim);
}
.post-content .post-details-copy {
  color: var(--text-secondary);
  line-height: 1.8;
}
.post-content .post-details pre {
  margin: 0;
}
@media (max-width: 768px) {
  .post-content .post-featured {
    width: calc(100vw - 2rem);
  }
  .post-content .post-section-card {
    padding: 1.1rem;
  }
  .post-content .post-details summary,
  .post-content .post-details-body {
    padding: 0.9rem 1rem;
  }
}
.post-content ul, .post-content ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.post-content li { margin-bottom: 0.5rem; }

/* --- POST ENGAGEMENT --- */
.post-engagement {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dim);
}

.engagement-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
}
.like-btn:hover:not(.liked) {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}
.like-btn.liked {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
  cursor: default;
}

.comment-count-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.comments-section h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.comment-form {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
}

.comment-form .btn {
  margin-top: 0.5rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-item {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}
.comment-header strong {
  color: var(--teal);
  font-family: var(--font-display);
}
.comment-header span {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.comment-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.no-comments {
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
  padding: 2rem;
}

/* --- CERTS --- */
.cert-badge {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); transition: all var(--transition);
}
.cert-badge:hover { border-color: var(--border-subtle); }
.cert-badge .cert-icon {
  width: 40px; height: 40px;
  background: var(--teal-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cert-badge .cert-name { font-weight: 600; font-size: 0.95rem; }
.cert-badge .cert-org { font-size: 0.8rem; color: var(--text-dim); }

/* --- CTA BANNER --- */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(92,156,255,0.08) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 4rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; position: relative; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 2rem; position: relative; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .btn { position: relative; }

/* --- PAGE HEADER --- */
.page-header {
  padding: 8rem 0 2.5rem; position: relative; z-index: 1;
  background: transparent;
}
.page-header::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--teal-dim) 0%, transparent 70%);
  pointer-events: none;
}
.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800; margin-bottom: 1rem; position: relative;
}
.page-header p { font-size: 1.15rem; color: var(--text-secondary); max-width: 600px; position: relative; }

/* --- POST TITLE BANNER (hunts + blog) --- */
.page-header.title-banner {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 130% at 10% -10%, rgba(92, 156, 255, 0.16) 0%, transparent 60%),
    radial-gradient(ellipse 65% 140% at 98% 115%, rgba(180, 92, 255, 0.14) 0%, transparent 55%);
  border-bottom: 1px solid var(--border-dim);
}
.page-header.title-banner::before {
  content: ''; position: absolute; inset: 0; width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(92, 156, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 156, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 78%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, transparent 78%);
  pointer-events: none; z-index: 0;
}
.page-header.title-banner::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 22%, var(--amber) 78%, transparent 100%);
  opacity: 0.75;
}
.page-header.title-banner .container { position: relative; z-index: 1; }
.page-header.title-banner .blog-card-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--teal-dim);
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-dim);
  padding: 4rem 0 2rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 800;
  margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.footer-desc { color: var(--text-secondary); font-size: 0.9rem; max-width: 320px; line-height: 1.7; }
.footer h4 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 1.25rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 2rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem; color: var(--text-dim);
}

.footer-social { display: flex; gap: 1rem; }
.footer-social a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  color: var(--text-secondary); transition: all var(--transition);
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }

/* --- ANIMATIONS --- */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* --- FORM --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--bg-card); border: 1px solid var(--border-dim);
  border-radius: var(--radius); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* --- ABOUT PAGE --- */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-sidebar { }
.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: sticky;
  top: 100px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(92, 156, 255, 0.05);
}
.about-card .pfp-ring {
  width: 180px; height: 180px;
  margin: 0 auto 1.5rem;
}
.about-info-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.about-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.about-info-row--stacked {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.35rem;
}
.about-info-row--stacked > span:last-child { line-height: 1.45; }
.about-info-row:last-child { border-bottom: none; }
.about-info-row span:first-child {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.about-info-row span:last-child,
.about-info-row a {
  font-weight: 600;
  color: var(--text-primary);
}
.about-info-row a { color: var(--teal); }
.about-content { min-width: 0; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 3rem; }
  .hero-grid .pfp-ring { width: 220px; height: 220px; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(8,13,25,0.98); backdrop-filter: blur(20px);
    flex-direction: column; padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border-dim);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.4rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-pfp { order: -1; }
  .hero-name { display: block; text-align: center; }
  .hero-name-row { justify-content: center; }
  .hero-name::after { left: 50%; transform: translateX(-50%); width: 60%; }
  .hero-content .hero-tag { margin: 0 auto 1.5rem; }
  .hero-subtitle { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-grid .pfp-ring { width: 200px; height: 200px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { max-width: 360px; margin: 0 auto; }
  .about-card { position: static; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hearth-note { align-items: flex-start; flex-direction: column; }
  .hearth-note__link { justify-content: center; width: 100%; }
  .hunt-history__header { align-items: stretch; flex-direction: column; }
  .hunt-history__control { min-width: 0; width: 100%; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .section { padding: 4rem 0; }
  .page-header { padding: 8rem 0 3rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stat-number { font-size: 2rem; }
  .hero-grid .pfp-ring { width: 160px; height: 160px; }
  .about-sidebar { max-width: 100%; }
}

/* ============================================
   THREAT INTELLIGENCE DASHBOARD
   ============================================ */
.ti-shell {
  padding: 7rem 0 4rem;
  position: relative;
  z-index: 1;
}
.ti-shell__inner {
  width: 100%;
  max-width: 100%;
  padding: 0 1.25rem;
}
@media (min-width: 1600px) {
  .ti-shell__inner { padding: 0 2rem; }
}

.ti-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}
.ti-page-header h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.5rem;
}
.ti-page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 720px;
  line-height: 1.6;
}
.ti-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.ti-status-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  box-shadow: 0 0 12px var(--teal-glow);
  animation: ti-pulse 2s infinite;
}
@keyframes ti-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.ti-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.85rem 0;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  background: rgba(10, 15, 30, 0.94);
  backdrop-filter: blur(10px);
  z-index: 50;
}
.ti-tab {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-secondary);
  background: transparent;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-dim);
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.ti-tab:hover {
  color: var(--teal);
  border-color: var(--teal);
  background: var(--teal-dim);
}
.ti-tab.is-active {
  color: var(--bg-deep);
  background: var(--teal);
  border-color: var(--teal);
  font-weight: 700;
  box-shadow: 0 0 14px var(--teal-glow);
}

/* Tab-switcher: only the active section is shown. */
.ti-section { display: none; }
.ti-section.is-active { display: block; }

.ti-section-placeholder {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 2rem;
  border: 1px dashed var(--border-dim);
  border-radius: var(--radius);
  background: rgba(92, 156, 255, 0.03);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
}
.ti-section-placeholder--error {
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--amber);
}
.ti-section-placeholder button {
  border: 1px solid var(--amber);
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber);
  border-radius: 3px;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.ti-section-placeholder button:hover {
  background: rgba(245, 158, 11, 0.16);
}

.ti-chart__footnote {
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-dim);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: right;
}

.ti-section {
  margin-bottom: 3.5rem;
  scroll-margin-top: 5rem;
}
.ti-section__header {
  margin-bottom: 1.25rem;
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-dim);
}
.ti-section__header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.ti-section__header h2::before {
  content: '//';
  color: var(--teal);
  margin-right: 0.6rem;
  font-family: var(--font-mono);
  opacity: 0.6;
}
.ti-section__header p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.ti-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
  grid-auto-flow: row dense;
}
.ti-grid--1 { grid-template-columns: 1fr; }
.ti-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ti-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ti-grid--4 { grid-template-columns: repeat(4, 1fr); }
/* Merged feeds inside multi-column sections (e.g. Active Campaigns) span full width */
.ti-grid--2 > .ti-widget--rss-merged-widget,
.ti-grid--3 > .ti-widget--rss-merged-widget,
.ti-grid--4 > .ti-widget--rss-merged-widget {
  grid-column: 1 / -1;
}

.ti-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.ti-widget:hover {
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}
.ti-widget--embed-widget,
.ti-widget--chart-widget {
  border-color: var(--border-subtle);
}
.ti-widget--feature {
  border: 1px solid var(--teal);
  box-shadow: 0 0 24px rgba(92, 156, 255, 0.18);
  background: linear-gradient(180deg, rgba(92,156,255,0.06) 0%, var(--bg-card) 100%);
}
.ti-widget--feature .ti-widget__header {
  background: rgba(92, 156, 255, 0.10);
  border-bottom-color: var(--teal);
}
.ti-widget--feature .ti-widget__title {
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 1.5px;
}
.ti-widget--feature .ti-widget__title::before {
  content: '★ ';
  color: var(--teal);
}
.ti-widget__blurb {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-dim);
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.55;
  background: rgba(92, 156, 255, 0.03);
}

/* Filter UI for merged feeds + big bookmark widgets */
.ti-filter {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-dim);
  padding: 0.6rem 0.6rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ti-filter--simple { padding: 0.5rem 0.6rem; }
.ti-filter__search {
  width: 100%;
  padding: 0.45rem 0.7rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: var(--transition);
}
.ti-filter__search::placeholder { color: var(--text-dim); }
.ti-filter__search:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(92, 156, 255, 0.18);
}
.ti-filter__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-height: 110px;
  overflow-y: auto;
}
.ti-filter__summary {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  padding: 0 0.1rem;
  letter-spacing: 0.2px;
}
.ti-filter__summary strong {
  color: var(--teal);
  font-weight: 600;
}
.ti-filter__chip {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.5px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border-dim);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.ti-filter__chip span {
  opacity: 0.6;
  margin-left: 0.25rem;
}
.ti-filter__chip:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}
.ti-filter__chip.is-active {
  background: var(--teal-dim);
  border-color: var(--teal);
  color: var(--teal);
}
.ti-filter__chip.is-active span { opacity: 1; }
.ti-filter__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* News magazine layout (hero + grid) */
.ti-news {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  padding: 1rem 0.75rem;
}
.ti-news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  position: relative;
}
.ti-news-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35), 0 0 16px rgba(92, 156, 255, 0.15);
}
.ti-news-card:hover .ti-news-card__title { color: var(--teal); }
.ti-news-card:hover .ti-news-card__media img { transform: scale(1.04); }

.ti-news-card__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(92,156,255,0.08), rgba(180,92,255,0.05));
  overflow: hidden;
  position: relative;
}
.ti-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ti-news-card__media img.is-fallback {
  width: 56px;
  height: 56px;
  object-fit: contain;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.6;
}
.ti-news-card:hover .ti-news-card__media img.is-fallback {
  transform: translate(-50%, -50%) scale(1.04);
}

.ti-news-card__body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}
.ti-news-card__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ti-news-card__meta .ti-rss-item__source { color: var(--teal); }
.ti-news-card__date { color: var(--text-dim); }
.ti-news-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}
.ti-news-card__excerpt {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero card spans full width on desktop */
.ti-news-card--hero {
  grid-column: 1 / -1;
  flex-direction: row;
  min-height: 320px;
}
.ti-news-card--hero .ti-news-card__media {
  width: 50%;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.ti-news-card--hero .ti-news-card__body {
  padding: 2rem 2rem 2rem 1.5rem;
  justify-content: center;
  gap: 0.75rem;
}
.ti-news-card--hero .ti-news-card__title {
  font-size: 1.65rem;
  -webkit-line-clamp: 4;
}
.ti-news-card--hero .ti-news-card__excerpt {
  font-size: 0.95rem;
  -webkit-line-clamp: 4;
}
.ti-news-card--hero::before {
  content: 'TOP STORY';
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--teal);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  z-index: 2;
}

/* Make news widget body taller and remove its scrollbar — news takes its own space */
.ti-widget--rss-merged-widget .ti-news {
  max-height: none;
}
.ti-widget__body:has(.ti-news) {
  max-height: none;
  padding: 0.25rem;
}

@media (max-width: 800px) {
  .ti-news { grid-template-columns: 1fr; }
  .ti-news-card--hero { flex-direction: column; min-height: 0; }
  .ti-news-card--hero .ti-news-card__media { width: 100%; aspect-ratio: 16 / 9; }
  .ti-news-card--hero .ti-news-card__body { padding: 1rem 1.1rem 1.1rem; }
  .ti-news-card--hero .ti-news-card__title { font-size: 1.2rem; }
}

.ti-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(92, 156, 255, 0.04);
  flex-shrink: 0;
}
.ti-widget__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--teal);
}
.ti-widget__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}
.ti-widget__body {
  padding: 0.5rem;
  max-height: 500px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-dim) transparent;
}
/* Merged feeds (News, Vendor Research, Red Team Blogs) use the page scroll
   instead of a nested viewport. Filter stays sticky to the viewport top. */
.ti-widget--rss-merged-widget .ti-widget__body {
  max-height: none;
  overflow-y: visible;
  padding: 0.25rem 0;
}
.ti-widget--rss-merged-widget .ti-filter {
  top: 70px;
}
.ti-widget--rss-merged-widget .ti-rss-item {
  padding: 0.9rem 0.9rem;
  gap: 1rem;
}
.ti-widget--rss-merged-widget .ti-rss-item__thumb {
  width: 96px;
  height: 96px;
  border-radius: 6px;
}
.ti-widget--rss-merged-widget .ti-rss-item__title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  -webkit-line-clamp: 2;
}
.ti-widget--rss-merged-widget .ti-rss-item__meta {
  font-size: 0.72rem;
}
.ti-widget__body::-webkit-scrollbar { width: 6px; }
.ti-widget__body::-webkit-scrollbar-track { background: transparent; }
.ti-widget__body::-webkit-scrollbar-thumb {
  background: var(--border-dim);
  border-radius: 3px;
}
.ti-widget__body::-webkit-scrollbar-thumb:hover { background: var(--teal-dim); }

.ti-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.6rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 4px;
  transition: var(--transition);
  line-height: 1.3;
}
.ti-link:hover {
  background: rgba(92, 156, 255, 0.06);
  color: var(--text-primary);
}
.ti-link__favicon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 3px;
  background: var(--bg-deep);
  object-fit: contain;
}
.ti-link__favicon-fb {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 10px;
  background: var(--bg-deep);
  border-radius: 3px;
}
.ti-link__text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* RSS items with thumbnail */
.ti-rss-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--border-dim);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
.ti-rss-item:last-child { border-bottom: none; }
.ti-rss-item:hover { background: rgba(92, 156, 255, 0.04); }
.ti-rss-item:hover .ti-rss-item__title { color: var(--teal); }

.ti-rss-item__thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: var(--bg-deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-dim);
}
.ti-rss-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ti-rss-item__thumb img.is-fallback {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.85;
}

.ti-rss-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ti-rss-item__title {
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}
.ti-rss-item__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}
.ti-rss-item__source { color: var(--teal); }
.ti-rss-empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  line-height: 1.6;
}

.ti-widget--ip-lookup-widget .ti-widget__body {
  max-height: none;
  overflow: visible;
  padding: 0;
}
.ti-ip-lookup-shell {
  padding: 1rem;
  display: grid;
  gap: 1rem;
}
.ti-ip-lookup {
  padding: 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
}
.ti-ip-lookup__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}
.ti-ip-lookup__field {
  display: grid;
  gap: 0.4rem;
}
.ti-ip-lookup__field span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ti-ip-lookup__field input,
.ti-ip-lookup__field select {
  width: 100%;
  min-height: 42px;
  background: rgba(10, 15, 30, 0.9);
  border: 1px solid var(--border-dim);
  border-radius: 5px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  outline: none;
  transition: var(--transition);
}
.ti-ip-lookup__field input:focus,
.ti-ip-lookup__field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(92, 156, 255, 0.18);
}
.ti-ip-lookup__submit {
  min-height: 42px;
  border: 1px solid var(--teal);
  border-radius: 5px;
  background: var(--teal);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.ti-ip-lookup__submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 18px var(--teal-glow);
}
.ti-ip-lookup__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}
.ti-ip-lookup__hint {
  margin: 0.75rem 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.5;
}
.ti-ip-result {
  min-height: 140px;
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  background: rgba(10, 15, 30, 0.55);
  overflow: hidden;
}
.ti-ip-result__empty,
.ti-ip-result__loading,
.ti-ip-result__error {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
}
.ti-ip-result__error {
  color: var(--amber);
}
.ti-ip-result__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(56, 189, 248, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.ti-ip-result__status--error {
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber);
}
.ti-ip-result__notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.08);
  color: var(--amber);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.45;
}
.ti-ip-result__notice .ti-ip-result__cached {
  flex: 0 0 auto;
}
.ti-ip-result__summary {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-dim);
  background: rgba(92, 156, 255, 0.04);
}
.ti-ip-result__label,
.ti-ip-score__top span,
.ti-ip-field span,
.ti-ip-result__cached {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ti-ip-risk {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.ti-ip-risk--low-risk { color: var(--teal); }
.ti-ip-risk--review { color: var(--amber); }
.ti-ip-risk--suspicious { color: var(--amber); }
.ti-ip-risk--high-risk { color: var(--red-alert); }
.ti-ip-risk--unknown { color: var(--text-secondary); }
.ti-ip-score__top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 0.45rem;
}
.ti-ip-score__top strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
}
.ti-ip-score__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dim);
  overflow: hidden;
}
.ti-ip-score__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--red-alert));
  border-radius: inherit;
}
.ti-ip-score__unavailable {
  min-height: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.ti-ip-result__badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.ti-ip-result__cached {
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border-dim);
  border-radius: 999px;
}

.ti-ip-result__signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-dim);
}
.ti-ip-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border-dim);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}
.ti-ip-pill span { color: var(--text-secondary); }
.ti-ip-pill strong { color: var(--text-dim); }
.ti-ip-pill--yes { border-color: rgba(245, 158, 11, 0.45); background: rgba(245, 158, 11, 0.08); }
.ti-ip-pill--yes strong { color: var(--amber); }
.ti-ip-pill--no { border-color: rgba(56, 189, 248, 0.28); }
.ti-ip-pill--no strong { color: var(--teal); }
.ti-ip-result__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.5rem;
  padding: 1rem;
}
.ti-ip-field {
  padding: 0.65rem;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dim);
  border-radius: 5px;
  min-width: 0;
}
.ti-ip-field strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.ti-embed {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
  flex: 1;
  display: flex;
  min-height: 380px;
}
.ti-embed__stage {
  width: 100%;
  flex: 1;
  display: flex;
}
.ti-embed iframe {
  width: 100%;
  flex: 1;
  border: 0;
  display: block;
}
.ti-embed__placeholder {
  width: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 2rem;
  color: var(--text-dim);
  text-align: center;
  font-family: var(--font-mono);
  background:
    radial-gradient(circle at center, rgba(92, 156, 255, 0.09), transparent 58%),
    var(--bg-deep);
}
.ti-embed__placeholder i {
  color: var(--teal);
  font-size: 1.6rem;
}
.ti-embed__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}
.ti-embed__actions button,
.ti-embed__actions a {
  background: rgba(10, 15, 30, 0.85);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--teal);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}
.ti-embed__actions button:hover,
.ti-embed__actions a:hover {
  background: var(--teal-dim);
}
.ti-widget--embed-widget .ti-widget__body {
  padding: 0;
  max-height: none;
  overflow: hidden;
  flex: 1;
  display: flex;
}
.ti-grid--2 > .ti-widget--wide,
.ti-grid--3 > .ti-widget--wide,
.ti-grid--4 > .ti-widget--wide {
  grid-column: span 2;
}
.ti-grid--2 > .ti-widget--full-row,
.ti-grid--3 > .ti-widget--full-row,
.ti-grid--4 > .ti-widget--full-row {
  grid-column: 1 / -1;
}
.ti-embed__overlay {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
}
.ti-embed__overlay a {
  background: rgba(10, 15, 30, 0.85);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--teal);
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ti-embed__overlay a:hover { background: var(--teal-dim); }

.ti-chart {
  padding: 1rem 1.25rem;
}
.ti-bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ti-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.ti-bar-row__label {
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ti-bar-row__bar {
  height: 16px;
  background: linear-gradient(90deg, var(--teal-dim), rgba(92, 156, 255, 0.3));
  border: 1px solid var(--teal);
  border-radius: 3px;
  position: relative;
  min-width: 4px;
  box-shadow: 0 0 12px rgba(92, 156, 255, 0.15);
}
.ti-bar-row__value {
  text-align: right;
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 1500px) {
  .ti-grid--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .ti-grid--3, .ti-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 750px) {
  .ti-grid--2, .ti-grid--3, .ti-grid--4 { grid-template-columns: 1fr; }
  .ti-grid--2 > .ti-widget--wide,
  .ti-grid--3 > .ti-widget--wide,
  .ti-grid--4 > .ti-widget--wide,
  .ti-grid--2 > .ti-widget--full-row,
  .ti-grid--3 > .ti-widget--full-row,
  .ti-grid--4 > .ti-widget--full-row {
    grid-column: span 1;
    grid-row: span 1;
  }
  .ti-shell { padding: 6rem 0 3rem; }
  .ti-shell__inner { padding: 0 1rem; }
  .ti-page-header h1 { font-size: 1.75rem; }
  .ti-tabs { gap: 0.35rem; }
  .ti-tabs a { font-size: 0.65rem; padding: 0.3rem 0.6rem; }
  .ti-bar-row { grid-template-columns: 100px 1fr 40px; }
  .ti-ip-lookup__controls { grid-template-columns: 1fr; }
  .ti-ip-result__summary { grid-template-columns: 1fr; }
  .ti-ip-result__badges { align-items: flex-start; }
}

/* ============================================
   ELECTRIC BLUE THEME REFRESH
   ============================================ */

.cyber-grid {
  background-image: radial-gradient(circle, rgba(89, 195, 253, 0.3) 1px, transparent 1.35px);
  background-size: 19px 19px;
  opacity: 0.34;
  mask-image: radial-gradient(ellipse 72% 32% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 72% 32% at 50% 0%, black 0%, transparent 75%);
}

.scanline,
body::before {
  display: none;
}

.glitch-overlay {
  display: block;
  z-index: 0;
  opacity: 0.52;
  mix-blend-mode: screen;
}

.glitch-overlay::before {
  background-color: rgba(74, 161, 253, 0.19) !important;
}

.glitch-overlay::after {
  background-color: rgba(134, 42, 221, 0.19) !important;
}

.side-glow { display: none; }

.noise-overlay { opacity: 0.012; }

a:hover { color: var(--teal-bright); }

.container {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.section { padding: 7rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(89, 195, 253, 0.25);
  border-radius: var(--radius-pill);
  background: rgba(89, 195, 253, 0.08);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
}

.section-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal-glow);
  opacity: 1;
}

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.nav {
  background: rgba(5, 6, 10, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.015);
}

.nav-inner {
  height: 82px;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.nav-brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-brand .brand-dot {
  width: 8px;
  height: 8px;
}

.nav-links { gap: 1.75rem; }

.nav-links a {
  padding: 0.5rem 0;
  font-size: 0.92rem;
}

.nav-links a::after {
  bottom: -0.25rem;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  opacity: 0;
  transform: translateX(-50%) scale(0.5);
  transition: opacity var(--transition), transform var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 4px;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.hero {
  min-height: 760px;
  padding-top: 148px;
  padding-bottom: 7rem;
  display: flex;
  align-items: center;
}

.hero::before {
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(112deg,
    transparent 0%,
    transparent 50%,
    rgba(89, 195, 253, 0.075) 66%,
    rgba(40, 97, 220, 0.16) 84%,
    rgba(134, 42, 221, 0.09) 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
  mask-image: linear-gradient(180deg, black 0%, black 72%, transparent 100%);
}

.hero::after { display: none; }

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 7rem;
}

.hero-name-row { margin-bottom: 2rem; }

.hero-name {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-name::after {
  height: 1px;
  background: linear-gradient(90deg, var(--teal), rgba(74, 161, 253, 0.22), transparent);
}

.hero-tag {
  border-radius: var(--radius-pill);
  background: rgba(89, 195, 253, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.hero h1 {
  font-size: clamp(3.4rem, 6.4vw, 5.35rem);
  font-weight: 600;
  line-height: 0.99;
  margin-bottom: 1.75rem;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  max-width: 650px;
  margin-bottom: 2.25rem;
  font-size: 1.12rem;
  line-height: 1.7;
}

.pfp-ring {
  width: 300px;
  height: 300px;
  padding: 3px;
  background: linear-gradient(145deg, var(--teal), #2861DC 48%, var(--amber));
  box-shadow: 0 0 48px rgba(74, 161, 253, 0.2), 0 0 110px rgba(40, 97, 220, 0.1);
}

.pfp-ring::after { border-color: rgba(89, 195, 253, 0.2); }

.btn {
  min-height: 50px;
  padding: 0.9rem 1.55rem;
}

.btn-primary {
  background: linear-gradient(135deg, #59C3FD 0%, #4AA1FD 55%, #3A88FC 100%);
  color: var(--bg-deep);
  border: 1px solid rgba(142, 216, 255, 0.35);
  box-shadow: 0 8px 24px rgba(40, 97, 220, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #78D0FF 0%, #59C3FD 55%, #4A9BFF 100%);
  color: var(--bg-deep);
  box-shadow: 0 12px 30px rgba(40, 97, 220, 0.28);
}

.btn-ghost {
  background: var(--surface-soft);
  border-color: rgba(245, 248, 255, 0.2);
}

.btn-ghost:hover {
  background: var(--surface-strong);
  border-color: rgba(89, 195, 253, 0.52);
  color: var(--teal-bright);
}

.card,
.detection-card,
.blog-card,
.cert-badge,
.comment-form,
.comment-item {
  background: linear-gradient(145deg, rgba(74, 161, 253, 0.035) 0%, rgba(255, 255, 255, 0.025) 44%, rgba(134, 42, 221, 0.018) 100%);
  border-color: var(--border-dim);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.card { padding: 2.25rem; }

.card:hover,
.blog-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(89, 195, 253, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(89, 195, 253, 0.24);
  border-radius: 50%;
  background: rgba(74, 161, 253, 0.1);
  color: var(--teal);
  font-size: 1.05rem;
}

.card-icon.amber {
  border-color: rgba(134, 42, 221, 0.3);
  background: var(--amber-dim);
  color: var(--amber);
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.grid-2,
.grid-3 { gap: 1.25rem; }

.stats-bar {
  gap: 0;
  padding: 0;
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-lg);
  background: linear-gradient(105deg, rgba(74, 161, 253, 0.035) 0%, rgba(255, 255, 255, 0.022) 52%, rgba(134, 42, 221, 0.025) 100%);
  overflow: hidden;
}

.stat {
  padding: 2.1rem 2.25rem;
  text-align: left;
}

.stat + .stat { border-left: 1px solid var(--border-dim); }

.stat-number {
  font-size: 2.45rem;
  font-weight: 600;
}

.stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.tool-tag { background: var(--surface-soft); }

.tool-tag:hover {
  border-color: rgba(89, 195, 253, 0.48);
  color: var(--teal-bright);
}

.cta-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 3rem;
  padding: 3.5rem 4rem;
  border-color: var(--border-dim);
  background: linear-gradient(120deg, rgba(74, 161, 253, 0.045) 0%, var(--surface-soft) 45%, rgba(134, 42, 221, 0.03) 100%);
  text-align: left;
}

.cta-banner::before {
  top: -90%;
  right: -8%;
  left: auto;
  width: 560px;
  height: 560px;
  transform: none;
  background: radial-gradient(circle, rgba(89, 195, 253, 0.07) 0%, transparent 70%);
}

.cta-banner h2 {
  margin-bottom: 0.65rem;
  font-size: 2.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cta-banner p {
  max-width: 620px;
  margin: 0;
}

.cta-banner .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.page-header { padding: 10rem 0 3.5rem; }

.page-header::before {
  background: radial-gradient(circle, rgba(89, 195, 253, 0.055) 0%, transparent 70%);
}

.page-header h1 {
  font-weight: 600;
  letter-spacing: -0.04em;
}

.page-header.title-banner {
  background: linear-gradient(110deg, rgba(74, 161, 253, 0.035) 0%, rgba(255, 255, 255, 0.012) 52%, rgba(134, 42, 221, 0.025) 100%);
}

.page-header.title-banner::before {
  background-image: radial-gradient(circle, rgba(89, 195, 253, 0.2) 1px, transparent 1.25px);
  background-size: 20px 20px;
}

.footer {
  background: linear-gradient(180deg, rgba(11, 13, 19, 0.97) 0%, rgba(5, 6, 10, 0.99) 72%);
}

.fade-in {
  transform: translateY(18px);
  transition-duration: 0.65s;
}

.stagger > * {
  transform: translateY(14px);
  transition-duration: 0.55s;
}

/* Keep dashboard components in the same palette without changing their density. */
.ti-tabs { background: rgba(5, 6, 10, 0.95); }
.ti-section-placeholder { background: rgba(74, 161, 253, 0.045); }
.ti-widget--feature {
  background: linear-gradient(180deg, rgba(74, 161, 253, 0.04) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 24px rgba(74, 161, 253, 0.2);
}
.ti-widget--feature .ti-widget__header,
.ti-widget__header { background: rgba(74, 161, 253, 0.065); }
.ti-filter__search:focus,
.ti-ip-lookup__field input:focus,
.ti-ip-lookup__field select:focus { box-shadow: 0 0 0 2px rgba(89, 195, 253, 0.22); }
.ti-news-card__media { background: linear-gradient(135deg, rgba(74, 161, 253, 0.12), rgba(134, 42, 221, 0.08)); }
.ti-news-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(74, 161, 253, 0.2); }
.ti-link:hover,
.ti-rss-item:hover { background: rgba(74, 161, 253, 0.065); }
.ti-ip-result__status { background: rgba(74, 161, 253, 0.11); }
.ti-ip-result__summary { background: rgba(74, 161, 253, 0.06); }
.ti-ip-pill--no { border-color: rgba(89, 195, 253, 0.32); }
.ti-bar-row__bar {
  background: linear-gradient(90deg, var(--teal-dim), rgba(74, 161, 253, 0.34));
  box-shadow: 0 0 12px rgba(74, 161, 253, 0.2);
}

@media (max-width: 768px) {
  .nav-links {
    top: 82px;
    background: rgba(5, 6, 10, 0.98);
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
  }

  .nav-toggle:hover { background: var(--surface-soft); }

  .nav-toggle span { width: 22px; }

  .hero {
    min-height: auto;
    padding-top: 8.5rem;
    padding-bottom: 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }

  .about-sidebar {
    width: 100%;
    max-width: 360px;
  }

  .stats-bar { grid-template-columns: repeat(2, 1fr) !important; }

  .stats-bar .stat {
    border: 0;
    border-bottom: 1px solid var(--border-dim);
  }

  .stats-bar .stat:nth-child(even) { border-left: 1px solid var(--border-dim); }

  .stats-bar .stat:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .cta-banner {
    display: block;
    padding: 2.5rem 1.5rem;
    text-align: center;
  }

  .cta-banner p { margin: 0 auto 1.75rem; }
}

@media (max-width: 480px) {
  .container,
  .nav-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .stats-bar { grid-template-columns: 1fr !important; }

  .stats-bar .stat,
  .stats-bar .stat:nth-child(even),
  .stats-bar .stat:last-child:nth-child(odd) {
    grid-column: auto;
    border-left: 0;
    border-bottom: 1px solid var(--border-dim);
  }

  .stats-bar .stat:last-child { border-bottom: 0; }

  .about-sidebar { max-width: 100%; }
}

/* Animated point-cloud wave for routes that opt into the full-page background. */
.dot-wave-bg {
  position: fixed;
  top: 82px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 82px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
  contain: strict;
  -webkit-mask-image: none;
  mask-image: none;
}

@supports (height: 100dvh) {
  .dot-wave-bg { height: calc(100dvh - 82px); }
}

body.has-dot-wave .cyber-grid { display: none; }

body.has-dot-wave > main,
body.has-dot-wave > section {
  position: relative;
  z-index: 1;
}

body.has-dot-wave > section:not(.hero) { background-image: none; }

@media (max-width: 768px) {
  .dot-wave-bg {
    opacity: 0.66;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .dot-wave-bg { opacity: 0.58; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .stagger > * {
    opacity: 1;
    transform: none;
  }
}


/* --- DETECTION CHOKEPOINTS (upstream community contributions) --- */
.chokepoint-card { margin-bottom: 1rem; }

.chokepoint-card .detection-header { padding: 1rem 1.25rem 0.85rem; }

/* Colour comes from the theme's own link styling, which outranks anything set
   here on specificity. Only layout and the trailing icon are ours. */
.chokepoint-title-link {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}
.chokepoint-title-link i {
  font-size: 0.62em;
  opacity: 0.65;
}
.chokepoint-title-link:hover i { opacity: 1; }

.chokepoint-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

.chokepoint-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.chokepoint-head .section-title { margin-bottom: 0.5rem; }
.chokepoint-head p { margin: 0; max-width: 62ch; }

.chokepoint-project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.chokepoint-project-link:hover {
  background: var(--teal-dim);
  color: var(--teal-bright);
}

.chokepoint-constant {
  padding: 0.75rem 1rem;
  margin: 0 1.25rem 0.85rem;
  border-left: 2px solid var(--teal);
  background: var(--surface-soft);
}
.chokepoint-constant .chokepoint-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--teal);
  margin-bottom: 0.3rem;
}
.chokepoint-constant p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Compact stage chain shown while the card is collapsed. */
.chokepoint-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  padding: 0 1.25rem 0.85rem;
}
.chokepoint-chain__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-dim);
  background: var(--surface-soft);
  font-size: 0.78rem;
}
.chokepoint-chain__tier {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal);
}
.chokepoint-chain__arrow {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.8rem;
}

.chokepoint-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  padding: 0 1.25rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}
.chokepoint-facts a { color: var(--teal); text-decoration: none; }
.chokepoint-facts a:hover { text-decoration: underline; }

.chokepoint-sigma-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  border-top: 1px solid var(--border-dim);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.chokepoint-sigma-toggle:hover { color: var(--teal); }

/* Full stage detail, revealed with the Sigma rules. */
.chokepoint-stages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  padding: 1.25rem;
}
.chokepoint-stage {
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--surface-soft);
}
.chokepoint-stage__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.chokepoint-stage__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
}
.chokepoint-stage__tier {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--teal);
  white-space: nowrap;
}
.chokepoint-stage__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin: 0.6rem 0 0.25rem;
}
.chokepoint-stage__text {
  font-size: 0.79rem;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

.chokepoint-source {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 1rem;
}
.chokepoint-source a { color: var(--teal); text-decoration: none; }
.chokepoint-source a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .chokepoint-stages { grid-template-columns: 1fr; }
  .chokepoint-head { align-items: flex-start; }
}
@media (max-width: 600px) {
  .chokepoint-constant { margin: 0 1rem 0.85rem; }
  .chokepoint-chain,
  .chokepoint-facts { padding-left: 1rem; padding-right: 1rem; }
  .chokepoint-sigma-toggle { padding: 0.7rem 1rem; }
  .chokepoint-stages { padding: 1rem; }
  .chokepoint-project-link { width: 100%; justify-content: center; }
}

/* The 2-column stats fallback starts at 1024px but the odd-orphan fix only
   exists at 768px, which leaves a lone half-width cell in between. Scoped to
   the detections bar so the 3-stat homepage bar keeps its current behavior. */
@media (max-width: 1024px) {
  .stats-bar--chokepoints .stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
