/* ═══════════════════════════════════════════════════════
   Agentix — Design System v2 (Futuristic / Neural)
   ═══════════════════════════════════════════════════════ */

/* ─── Variables ──────────────────────────────────────── */
:root {
  --bg:       #030712;
  --bg-2:     #06091a;
  --panel:    #0c1428;
  --panel-2:  #111f38;
  --text:     #eef2ff;
  --muted:    #8b9bbf;
  --soft:     #dbeafe;
  --brand:    #7c3aed;
  --brand-h:  #6d28d9;
  --brand-2:  #06b6d4;
  --brand-2h: #0891b2;
  --accent:   #22c55e;
  --warning:  #f59e0b;
  --danger:   #ef4444;
  --line:     rgba(255,255,255,.07);
  --line-2:   rgba(255,255,255,.13);
  --shadow:   0 32px 80px rgba(0,0,0,.5);
  --glow-p:   rgba(124,58,237,.35);
  --glow-c:   rgba(6,182,212,.25);
  --r-sm:  10px;
  --r:     18px;
  --r-lg:  26px;
  --max:   1200px;
  --nav-h: 68px;
}

/* ─── Reset & base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg);
  min-height: 100vh; overflow-x: hidden;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { line-height: 1.1; letter-spacing: -.04em; }

/* ─── Page background with grid mesh ─────────────────── */
.page-bg {
  background:
    radial-gradient(ellipse 900px 600px at 0% 0%,   rgba(124,58,237,.18) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 100% 5%,  rgba(6,182,212,.13) 0%, transparent 60%),
    radial-gradient(ellipse 500px 400px at 55% 80%,  rgba(124,58,237,.08) 0%, transparent 60%),
    linear-gradient(180deg, #030712 0%, #06091a 60%, #030712 100%);
  min-height: 100vh;
}

/* Grid mesh overlay on hero section */
.mesh-bg {
  background-image:
    linear-gradient(rgba(124,58,237,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,.07) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
}

/* ─── Layout helpers ──────────────────────────────────── */
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section    { padding-block: 72px; }

/* ─── Skip link ───────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 14px; z-index: 9999;
  padding: 10px 16px; background: #fff; color: #111;
  font-weight: 700; border-radius: 8px;
}
.skip-link:focus { left: 14px; }

/* ─── Reading progress ────────────────────────────────── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  z-index: 200; transition: width .08s linear;
}

/* ─── Navigation ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  background: rgba(3,7,18,.75);
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.site-header.scrolled { background: rgba(3,7,18,.92); }

.nav {
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px; height: 100%;
}

/* Logo: SVG icon + wordmark */
.logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 900; letter-spacing: -.04em; font-size: 1.08rem; flex-shrink: 0;
}
.logo-icon {
  width: 38px; height: 38px; flex-shrink: 0; display: block;
}
.logo-wordmark { color: var(--text); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 20px var(--glow-p);
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; color: var(--muted);
  font-size: .92rem; font-weight: 500; transition: color .15s, background .15s;
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  transform: translateX(-50%); width: 16px; height: 2px;
  border-radius: 1px; background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Burger */
.burger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; background: none; border: none; color: var(--text);
}
.burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .2s, opacity .2s;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed;
  inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(3,7,18,.97); backdrop-filter: blur(24px);
  flex-direction: column; padding: 20px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 16px; color: var(--muted);
  border-radius: 10px; font-size: 1rem; transition: color .15s, background .15s;
}
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.mobile-nav .btn { margin-top: 10px; text-align: center; justify-content: center; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07); color: var(--text);
  transition: transform .18s, background .18s, border-color .18s, box-shadow .18s;
}
.btn:hover {
  transform: translateY(-2px); background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #5b21b6 50%, var(--brand-2) 100%);
  border-color: transparent;
  box-shadow: 0 8px 28px var(--glow-p), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-primary:hover {
  box-shadow: 0 14px 40px var(--glow-p);
  transform: translateY(-3px);
}
.btn-sm { padding: 8px 16px; font-size: .84rem; }
.btn-ghost {
  background: transparent; border-color: var(--line-2);
}
.btn-ghost:hover { background: rgba(255,255,255,.05); }

/* ─── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .01em;
  background: rgba(8,47,73,.55); color: #bae6fd;
  border: 1px solid rgba(125,211,252,.18);
}
.badge-purple { background: rgba(76,29,149,.45); color: #c4b5fd; border-color: rgba(167,139,250,.2); }
.badge-green  { background: rgba(5,46,22,.55);   color: #86efac; border-color: rgba(134,239,172,.2); }
.badge-amber  { background: rgba(69,26,3,.55);   color: #fcd34d; border-color: rgba(252,211,77,.2); }
.badge-red    { background: rgba(69,10,10,.55);  color: #fca5a5; border-color: rgba(252,165,165,.2); }

/* ─── Eyebrow ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  color: var(--soft); border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(8px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; animation: pulse-anim 2.5s ease-in-out infinite;
}
@keyframes pulse-anim {
  0%,100% { box-shadow: 0 0 0 0   rgba(34,197,94,.5), 0 0 0 5px rgba(34,197,94,.12); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,.2), 0 0 0 9px rgba(34,197,94,.04); }
}

/* ─── Animated gradient orbs ──────────────────────────── */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.orb-purple {
  background: radial-gradient(circle, rgba(124,58,237,.55), transparent 70%);
  animation: float-orb 12s ease-in-out infinite;
}
.orb-cyan {
  background: radial-gradient(circle, rgba(6,182,212,.4), transparent 70%);
  animation: float-orb 10s ease-in-out infinite reverse;
}
@keyframes float-orb {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-20px) scale(1.08); }
  66%     { transform: translate(-20px,15px) scale(.94); }
}

/* ─── HERO (centered, futuristic) ─────────────────────── */
.hero {
  padding-top: 96px; padding-bottom: 80px;
  position: relative; overflow: hidden;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.8rem, 7vw, 6rem);
  letter-spacing: -.06em; line-height: .98; margin: 20px 0 0;
  background: linear-gradient(140deg, #fff 10%, #c4b5fd 45%, #67e8f9 75%, #fff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200%;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--muted); margin: 22px auto 0; max-width: 600px; line-height: 1.7;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 32px; justify-content: center;
}

/* Floating feature tags */
.hero-tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 28px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  color: var(--muted); transition: all .2s;
}
.hero-tag:hover { border-color: rgba(124,58,237,.4); color: var(--text); background: rgba(124,58,237,.08); }
.hero-tag .t-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .6; }

/* ─── Stats strip ─────────────────────────────────────── */
.stats-strip {
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 60px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
}
.stat-item {
  padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--line); position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,.06), transparent);
  opacity: 0; transition: opacity .2s;
}
.stat-item:hover::before { opacity: 1; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 900;
  letter-spacing: -.06em; line-height: 1;
  background: linear-gradient(135deg, var(--brand-2), #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-lbl { color: var(--muted); font-size: .84rem; margin-top: 6px; }

/* Legacy hero-card (for other pages) */
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 44px; align-items: center; text-align: left;
}
.hero-card {
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute;
  top: -80px; right: -80px; width: 230px; height: 230px; border-radius: 50%;
  background: radial-gradient(circle, rgba(6,182,212,.25), transparent 70%);
  pointer-events: none;
}
.hero-card-title { font-size: 1.4rem; letter-spacing: -.04em; margin: 14px 0 12px; }
.stat-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 18px; }
.stat-box {
  padding: 16px; border-radius: 14px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.stat-box strong { display: block; font-size: 1.75rem; letter-spacing: -.05em; color: #fff; }
.stat-box small  { color: var(--muted); font-size: .86rem; }

/* ─── Section header ──────────────────────────────────── */
.section-header { margin-bottom: 38px; }
.section-header h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-top: 12px; }
.section-header p  { color: var(--muted); max-width: 640px; margin-top: 12px; font-size: 1rem; }
.section-row {
  display: flex; justify-content: space-between;
  align-items: flex-end; gap: 20px; flex-wrap: wrap;
}

/* ─── Toolbar ─────────────────────────────────────────── */
.toolbar { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; align-items: center; }
.search-wrap { position: relative; flex: 1 1 260px; }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; width: 17px; height: 17px;
}
.search-input {
  width: 100%; padding: 13px 16px 13px 42px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.05); color: var(--text);
  font: inherit; font-size: .93rem; outline: none; transition: border-color .2s, background .2s;
}
.filter-select {
  flex: 0 1 200px; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,.05); color: var(--text);
  font: inherit; font-size: .93rem; outline: none; transition: border-color .2s;
}
.search-input:focus, .filter-select:focus {
  border-color: rgba(124,58,237,.5); background: rgba(124,58,237,.04);
  box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.search-input::placeholder { color: var(--muted); }
.filter-select option { background: #111827; color: var(--text); }

/* View toggle */
.view-toggle {
  display: flex; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; flex-shrink: 0;
}
.view-btn {
  padding: 10px 14px; border: none; background: none; color: var(--muted);
  cursor: pointer; transition: all .15s; font-size: .9rem;
}
.view-btn.active { background: rgba(124,58,237,.2); color: var(--text); }

/* ─── Articles grid ───────────────────────────────────── */
.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.article-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
}
.article-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(124,58,237,.0);
  transition: box-shadow .25s; pointer-events: none;
}
.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,58,237,.3);
  box-shadow: 0 30px 70px rgba(0,0,0,.4), 0 0 0 1px rgba(124,58,237,.15);
}
.article-card:hover::after { box-shadow: inset 0 0 60px rgba(124,58,237,.04); }

.card-cover {
  aspect-ratio: 16/7; padding: 18px;
  display: flex; align-items: flex-start; justify-content: space-between;
  position: relative; overflow: hidden;
}
.cover-agents, .card-cover-agents {
  background: linear-gradient(135deg, rgba(109,40,217,.7), rgba(3,7,18,.2)),
              radial-gradient(circle at 75% 25%, rgba(124,58,237,.5), transparent 55%);
}
.cover-red, .card-cover-cyber {
  background: linear-gradient(135deg, rgba(185,28,28,.65), rgba(3,7,18,.2)),
              radial-gradient(circle at 75% 25%, rgba(239,68,68,.4), transparent 55%);
}
.cover-green, .card-cover-auto {
  background: linear-gradient(135deg, rgba(5,150,105,.65), rgba(3,7,18,.2)),
              radial-gradient(circle at 75% 25%, rgba(34,197,94,.35), transparent 55%);
}
.cover-blue, .card-cover-infra {
  background: linear-gradient(135deg, rgba(2,132,199,.65), rgba(3,7,18,.2)),
              radial-gradient(circle at 75% 25%, rgba(6,182,212,.35), transparent 55%);
}
.card-num {
  font-size: 3rem; font-weight: 900; opacity: .14; line-height: 1; color: #fff;
}
.card-cover > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0; opacity: .8; pointer-events: none;
  border-radius: inherit;
}
.card-cover > .badge,
.card-cover > .card-num { position: relative; z-index: 1; }

.card-body { flex: 1; display: flex; flex-direction: column; padding: 22px; gap: 10px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: .83rem; }
.card-meta .sep { opacity: .35; }
.card-title, .card-body h3 { font-size: 1.07rem; letter-spacing: -.03em; line-height: 1.28; }
.card-excerpt, .card-body p { color: var(--muted); font-size: .9rem; flex: 1; }
.card-link, .card-body .btn { margin-top: auto; align-self: flex-start; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 700; color: var(--brand-2);
  transition: gap .15s, color .15s;
}
.card-link:hover { gap: 10px; color: #22d3ee; }
.no-results { color: var(--muted); padding: 60px 0; text-align: center; grid-column: 1/-1; }

/* ─── Expandable accordion articles ──────────────────── */
.exp-list { display: flex; flex-direction: column; gap: 0; }
.exp-item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.exp-item:first-child { border-top: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.exp-item:last-child  { border-radius: 0 0 var(--r) var(--r); }

.exp-header {
  width: 100%; display: flex; align-items: center; gap: 18px;
  padding: 20px 24px; background: none; border: none; text-align: left;
  color: var(--text); cursor: pointer;
  transition: background .15s;
}
.exp-header:hover { background: rgba(255,255,255,.03); }
.exp-header[aria-expanded="true"] { background: rgba(124,58,237,.06); }

.exp-cat-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.exp-cat-icon.ic-agents { background: rgba(124,58,237,.15); border-color: rgba(124,58,237,.2); }
.exp-cat-icon.ic-cyber  { background: rgba(239,68,68,.12);  border-color: rgba(239,68,68,.2); }
.exp-cat-icon.ic-auto   { background: rgba(34,197,94,.12);  border-color: rgba(34,197,94,.2); }
.exp-cat-icon.ic-infra  { background: rgba(6,182,212,.12);  border-color: rgba(6,182,212,.2); }

.exp-info { flex: 1; min-width: 0; }
.exp-info .exp-title { font-size: 1.02rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.exp-info .exp-sub { font-size: .82rem; color: var(--muted); margin-top: 3px; }

.exp-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.exp-time { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.exp-chevron {
  width: 20px; height: 20px; color: var(--muted); flex-shrink: 0;
  transition: transform .3s cubic-bezier(.4,0,.2,1), color .15s;
}
.exp-header[aria-expanded="true"] .exp-chevron { transform: rotate(180deg); color: var(--brand-2); }

.exp-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.exp-body-inner {
  padding: 0 24px 24px 86px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
}
.exp-body-inner p { color: var(--muted); font-size: .93rem; line-height: 1.65; }
@media(max-width: 620px) {
  .exp-body-inner { padding: 0 20px 20px; grid-template-columns: 1fr; }
}

/* ─── Resources grid ──────────────────────────────────── */
.resources-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.resource-card {
  padding: 24px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative; overflow: hidden;
}
.resource-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124,58,237,.5), transparent);
  opacity: 0; transition: opacity .2s;
}
.resource-card:hover {
  border-color: rgba(124,58,237,.25);
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 40px rgba(124,58,237,.06);
  transform: translateY(-4px);
}
.resource-card:hover::before { opacity: 1; }
.resource-card .r-icon { font-size: 1.8rem; margin-bottom: 16px; }
.resource-card h3 { font-size: .98rem; letter-spacing: -.02em; margin-bottom: 8px; }
.resource-card p  { color: var(--muted); font-size: .87rem; margin-bottom: 16px; line-height: 1.55; }

/* ─── Newsletter ──────────────────────────────────────── */
.newsletter-box {
  border-radius: var(--r-lg); border: 1px solid rgba(124,58,237,.25);
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(ellipse at top left, rgba(124,58,237,.2), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(6,182,212,.1), transparent 55%),
    rgba(255,255,255,.04);
  display: grid; grid-template-columns: 1fr auto; gap: 36px; align-items: center;
}
.newsletter-box h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 10px; }
.newsletter-box p  { color: var(--muted); margin-top: 10px; }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.nl-input {
  flex: 1 1 220px; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.07);
  color: var(--text); font: inherit; font-size: .93rem;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.nl-input:focus { border-color: rgba(124,58,237,.5); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.nl-input::placeholder { color: var(--muted); }
.nl-msg { font-size: .88rem; font-weight: 600; color: var(--accent); margin-top: 8px; min-height: 20px; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 80px; padding: 52px 0 60px;
  color: var(--muted);
  background: radial-gradient(ellipse at top, rgba(124,58,237,.05), transparent 60%);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 12px;
}
.footer-desc  { font-size: .87rem; max-width: 240px; line-height: 1.65; }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; color: var(--text);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: .08em;
}
.footer-col a  {
  display: block; font-size: .87rem; color: var(--muted);
  padding: 4px 0; transition: color .15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: .83rem;
}
.footer-bottom a { transition: color .15s; }
.footer-bottom a:hover { color: var(--text); }
.footer-bottom nav { display: flex; gap: 16px; }

/* ─── Scroll to top ───────────────────────────────────── */
#scroll-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border: none; color: #fff; font-size: 1.15rem;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 28px var(--glow-p);
  transition: transform .2s, box-shadow .2s;
}
#scroll-top.show { display: flex; }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--glow-p); }

/* ─── Article page ────────────────────────────────────── */
.article-layout { max-width: 820px; margin-inline: auto; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: .85rem; padding-top: 28px; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: .35; }

.article-hero { padding-top: 28px; padding-bottom: 44px; }
.article-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  letter-spacing: -.05em; line-height: 1.07; margin: 16px 0 20px;
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  color: var(--muted); font-size: .88rem; margin-bottom: 24px;
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.article-figure {
  margin: 0 0 32px; border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 16px 50px rgba(0,0,0,.35);
}
.article-figure img { width: 100%; height: auto; display: block; }
.article-figure figcaption {
  padding: 9px 16px; font-size: .81rem; color: var(--muted);
  background: rgba(255,255,255,.04); border-top: 1px solid var(--line);
  text-align: center; font-style: italic;
}

.article-intro {
  font-size: 1.12rem; color: #cbd5e1; line-height: 1.72;
  padding: 22px; border-radius: var(--r);
  border-left: 4px solid var(--brand-2);
  background: rgba(6,182,212,.08); margin-bottom: 32px;
}

.toc {
  padding: 20px 22px; border-radius: var(--r);
  background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 36px;
}
.toc h4 {
  font-size: .82rem; font-weight: 700; color: var(--muted);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .07em;
}
.toc ol { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.toc li { list-style: decimal; }
.toc a { color: var(--muted); font-size: .91rem; transition: color .15s; }
.toc a:hover { color: var(--brand-2); }

.article-body { color: #c8d4e8; }
.article-body h2 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem); letter-spacing: -.045em;
  color: var(--text); margin: 44px 0 16px; padding-top: 6px;
}
.article-body h3 { font-size: 1.22rem; color: var(--text); margin: 28px 0 12px; }
.article-body p  { margin-bottom: 18px; font-size: 1rem; }
.article-body ul,
.article-body ol { padding-left: 24px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong { color: var(--text); }
.article-body a { color: var(--brand-2); border-bottom: 1px solid rgba(6,182,212,.28); transition: border-color .15s; }
.article-body a:hover { border-color: var(--brand-2); }

.callout {
  padding: 18px 20px; border-radius: 14px; margin: 22px 0; font-size: .96rem;
  border-left: 4px solid var(--brand-2); background: rgba(6,182,212,.09); color: #e0f7ff;
}
.callout.warning { border-left-color: var(--warning); background: rgba(245,158,11,.09); color: #fef3c7; }
.callout.danger  { border-left-color: var(--danger);  background: rgba(239,68,68,.09);  color: #fee2e2; }
.callout.tip     { border-left-color: var(--accent);  background: rgba(34,197,94,.09);  color: #dcfce7; }
.callout b       { display: block; margin-bottom: 5px; font-size: .97rem; }

.checklist { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 20px 0; }
.checklist-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px;
  border-radius: 12px; border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04); font-size: .91rem; color: #dbeafe;
}
.checklist-item .ck { color: var(--accent); flex-shrink: 0; font-weight: 800; }

.compare-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .91rem; overflow-x: auto; display: block; }
.compare-table th {
  text-align: left; padding: 12px 16px;
  background: rgba(124,58,237,.15); color: var(--text); font-weight: 700;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.compare-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #c8d4e8; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,.02); }
.compare-table .yes { color: var(--accent); }
.compare-table .no  { color: var(--danger); }
.compare-table .mid { color: var(--warning); }

.article-share {
  margin-top: 52px; padding: 24px; border-radius: var(--r);
  border: 1px solid var(--line); background: rgba(255,255,255,.04);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.article-share p { color: var(--muted); font-size: .92rem; }
.share-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.related-section { padding: 56px 0 0; }
.related-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 24px; }

/* ─── Resources page ─────────────────────────────────── */
.tool-categories { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; margin-top: 12px; }
.tool-category h3 { font-size: 1.1rem; margin-bottom: 16px; color: var(--text); }
.tool-list { display: flex; flex-direction: column; gap: 10px; }
.tool-item {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  transition: border-color .18s, background .18s;
}
.tool-item:hover { border-color: rgba(124,58,237,.25); background: rgba(124,58,237,.04); }
.tool-item .t-icon { font-size: 1.4rem; flex-shrink: 0; }
.tool-item strong { display: block; font-size: .94rem; }
.tool-item span   { font-size: .83rem; color: var(--muted); }

/* ─── Scroll reveal ──────────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .resources-grid { grid-template-columns: repeat(2,1fr); }
  .stats-strip    { grid-template-columns: repeat(2,1fr); }
  .stats-strip .stat-item:nth-child(2) { border-right: none; }
  .stats-strip .stat-item:nth-child(3) { border-top: 1px solid var(--line); }
  .stats-strip .stat-item:nth-child(4) { border-top: 1px solid var(--line); border-right: none; }
}
@media (max-width: 900px) {
  .hero-grid      { grid-template-columns: 1fr; }
  .articles-grid  { grid-template-columns: repeat(2,1fr); }
  .newsletter-box { grid-template-columns: 1fr; }
  .nav-links      { display: none; }
  .nav-actions .hide-mob { display: none; }
  .burger         { display: flex; }
  .related-grid   { grid-template-columns: 1fr; }
  .tool-categories { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .section        { padding-block: 48px; }
  .hero           { padding-top: 56px; }
  .articles-grid  { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; }
  .checklist      { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; }
  .hero-actions   { justify-content: center; }
  .stat-grid      { grid-template-columns: repeat(2,1fr); }
  .stats-strip    { grid-template-columns: repeat(2,1fr); }
  .article-share  { flex-direction: column; }
}
