/* DBA Expert — Precision Engineering Aesthetic
   Dark-first. Gold accents. Geometric. Deliberate. */

/* Fonts self-hosted — see fonts/fonts.css */

/* ═══════════════ THEME ═══════════════ */

:root {
  --bg-primary: #07080C;
  --bg-elevated: #0E1018;
  --bg-card: #13151D;
  --bg-card-hover: #191C26;
  --text-primary: #E8E6E1;
  --text-secondary: #9B978F;
  --text-muted: #5C584F;
  --gold: #C9A227;
  --gold-bright: #E4BE3C;
  --gold-dim: #8B7019;
  --gold-glow: rgba(201, 162, 39, 0.12);
  --gold-border: rgba(201, 162, 39, 0.18);
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(201, 162, 39, 0.3);
  --shadow: 0 2px 20px rgba(0,0,0,0.4);
  --nav-bg: rgba(7, 8, 12, 0.85);
  --tag-bg: rgba(201, 162, 39, 0.1);
  --tag-text: #C9A227;
  --radius: 10px;
}

[data-theme="light"] {
  --bg-primary: #F7F6F3;
  --bg-elevated: #EEEDEA;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F9F8F5;
  --text-primary: #111111;
  --text-secondary: #4A4A4A;
  --text-muted: #999999;
  --gold: #A68517;
  --gold-bright: #C9A227;
  --gold-dim: #7A6312;
  --gold-glow: rgba(166, 133, 23, 0.08);
  --gold-border: rgba(166, 133, 23, 0.2);
  --border: rgba(0,0,0,0.07);
  --border-hover: rgba(166, 133, 23, 0.35);
  --shadow: 0 2px 20px rgba(0,0,0,0.06);
  --nav-bg: rgba(247, 246, 243, 0.88);
  --tag-bg: rgba(166, 133, 23, 0.08);
  --tag-text: #7A6312;
}

/* ═══════════════ RESET ═══════════════ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  transition: background 0.5s ease, color 0.5s ease;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Lexend', sans-serif; line-height: 1.15; }

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

/* ═══════════════ GRAIN ═══════════════ */

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

/* ═══════════════ ANIMATIONS ═══════════════ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes lineGrow {
  from { width: 0; }
  to { width: 48px; }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.fade-in { animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.25s; }
.fade-in-3 { animation-delay: 0.4s; }
.fade-in-4 { animation-delay: 0.55s; }
.fade-in-5 { animation-delay: 0.7s; }

.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.stagger.visible > *:nth-child(2) { transition-delay: 0.06s; }
.stagger.visible > *:nth-child(3) { transition-delay: 0.12s; }
.stagger.visible > *:nth-child(4) { transition-delay: 0.18s; }
.stagger.visible > *:nth-child(5) { transition-delay: 0.24s; }
.stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger.visible > *:nth-child(7) { transition-delay: 0.36s; }
.stagger.visible > *:nth-child(8) { transition-delay: 0.42s; }
.stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ═══════════════ NAV ═══════════════ */

nav {
  position: fixed; top: 0; width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-family: 'Lexend', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
}

.logo span { font-weight: 300; opacity: 0.7; }
.logo-brain { margin-left: 4px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
  cursor: pointer;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.theme-toggle:hover { border-color: var(--gold); transform: rotate(30deg); }

/* ═══════════════ HERO ═══════════════ */

.hero-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #07080C;
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem 2.5rem;
}

.hero-dark .hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Split hero (2 column) */
.hero-split {
  position: relative;
  z-index: 2;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.hero-split-left {
  flex: 0 0 45%;
}

.hero-split-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.hero-split-right {
  flex: 1;
  text-align: left;
}

.hero-split-right .hero-tagline {
  display: inline-block;
}

.hero-split-right .hero-tagline::before,
.hero-split-right .hero-tagline::after {
  display: none;
}

.hero-split-right h1 {
  font-size: 1.6rem !important;
  text-align: left;
}

.hero-split-right p {
  text-align: left;
  margin-left: 0 !important;
}

.hero-dark .hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

.hero-dark .hero-glow {
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.1) 0%, transparent 55%);
}

/* Force hero-dark to always be dark regardless of theme */
.hero-dark, [data-theme="light"] .hero-dark {
  background: #07080C !important;
  color: #E8E6E1 !important;
}

.hero-dark h1, [data-theme="light"] .hero-dark h1 {
  color: #E8E6E1 !important;
}

.hero-dark p, [data-theme="light"] .hero-dark p {
  color: #9B978F !important;
}

.hero-dark .hero-badge, [data-theme="light"] .hero-dark .hero-badge {
  background: rgba(201, 162, 39, 0.12) !important;
  color: #E4BE3C !important;
  border-color: rgba(201, 162, 39, 0.25) !important;
}

.hero-dark .hero-cta-secondary-dark, [data-theme="light"] .hero-dark .hero-cta-secondary-dark {
  color: #9B978F !important;
  border-color: rgba(255,255,255,0.1) !important;
}

.hero-dark .hero-grid, [data-theme="light"] .hero-dark .hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) !important;
}

.hero-dark .hero-glow, [data-theme="light"] .hero-dark .hero-glow {
  background: radial-gradient(ellipse, rgba(201, 162, 39, 0.1) 0%, transparent 55%) !important;
}

.hero-banner-img {
  max-width: 320px;
  width: 65%;
  height: auto;
  margin-bottom: 0.75rem;
  border-radius: var(--radius);
}

.hero-tagline {
  font-family: 'Lexend', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  display: inline-block;
}

.hero-tagline::before, .hero-tagline::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 32px; height: 1px;
  background: var(--gold-dim);
}

.hero-tagline::before { right: calc(100% + 16px); }
.hero-tagline::after { left: calc(100% + 16px); }

.hero-dark h1 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.6rem;
  color: #E8E6E1 !important;
}

.hero-dark h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-dark p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 1.25rem;
  line-height: 1.6;
}

.hero-badge {
  display: inline-block;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Lexend', sans-serif;
}

.hero-buttons {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--gold);
  color: #0A0A0A;
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  font-family: 'Lexend', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 162, 39, 0.3);
  background: var(--gold-bright);
}

.hero-cta-secondary-dark {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: 13px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  font-family: 'Lexend', sans-serif;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
}

.hero-cta-secondary-dark:hover {
  border-color: var(--gold-border);
  color: var(--gold);
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 100px 100px;
  mask-image: radial-gradient(ellipse at 50% 60%, black 20%, transparent 70%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  top: 35%; left: 50%;
  transform: translate(-50%, -50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 55%);
  z-index: 0;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-particles {
  position: absolute; inset: 0;
  z-index: 1;
}

/* ═══════════════ SECTION ═══════════════ */

.section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2rem 2rem 1.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-header h2::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--gold);
}

.section-header a {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ═══════════════ DIVIDER ═══════════════ */

.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ═══════════════ STATS ═══════════════ */

.stats-bar {
  display: flex;
  justify-content: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 2rem 3rem;
  position: relative;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0; top: 30%; height: 40%;
  width: 1px;
  background: var(--border);
}

.stat .number {
  font-family: 'Lexend', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1;
}

.stat .label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 0.6rem;
}

/* ═══════════════ CARDS ═══════════════ */

.expertise-card, .agent-card, .training-card, .service-card, .article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.expertise-card:hover, .agent-card:hover, .training-card:hover, .service-card:hover, .article-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

/* Gold top-line on hover */
.expertise-card::before, .agent-card::before, .service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.expertise-card:hover::before, .agent-card:hover::before, .service-card:hover::before {
  opacity: 1;
}

/* ═══════════════ GRIDS ═══════════════ */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.expertise-card.highlight {
  grid-column: span 2;
  border-color: var(--gold-border);
  background: var(--gold-glow);
}

.expertise-card h3, .agent-card h3, .service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  letter-spacing: -0.2px;
}

.expertise-card p, .agent-card p, .service-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.agents-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.training-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* ═══════════════ TAGS ═══════════════ */

.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }

.card-tags span {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ═══════════════ ICON ═══════════════ */

.icon-wrap {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
}

.icon-wrap svg {
  width: 20px; height: 20px;
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ═══════════════ AGENTS BOX ═══════════════ */

.agents-hero-box {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.agents-hero-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.agents-hero-content { position: relative; z-index: 1; }
.agents-hero-content h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; }
.agents-hero-content p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.75; }

.agent-number {
  font-family: 'Lexend', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 0.75rem;
}

/* ═══════════════ SECURITY ═══════════════ */

.security-callout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.security-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
}

.security-icon-wrap svg { width: 24px; height: 24px; stroke: var(--gold); stroke-width: 2; fill: none; }

.security-content h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 0.5rem; }
.security-content p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.75; }

.security-content .card-tags span {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ═══════════════ TOOLS ═══════════════ */

.tools-row { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

.tool-badge {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-width: 160px;
  cursor: pointer;
}

.tool-badge:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-name { font-family: 'Lexend', sans-serif; font-weight: 700; font-size: 0.85rem; margin-bottom: 0.2rem; }
.tool-desc { color: var(--text-muted); font-size: 0.7rem; }

/* ═══════════════ TRAINING ═══════════════ */

.training-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.training-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }

.training-topics { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.training-topics span {
  background: var(--tag-bg); color: var(--tag-text);
  padding: 3px 10px; border-radius: 16px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.5px;
}

/* ═══════════════ ARTICLES ═══════════════ */

.article-card { display: block; }

.article-card .tag {
  display: inline-block;
  background: var(--tag-bg); color: var(--tag-text);
  padding: 2px 8px; border-radius: 3px;
  font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.article-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.35; }
.article-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.55; margin-bottom: 0.75rem; }
.article-card .meta { color: var(--text-muted); font-size: 0.72rem; letter-spacing: 0.3px; }

/* ═══════════════ ARTICLE CONTENT ═══════════════ */

.article-content { max-width: 680px; margin: 7rem auto 4rem; padding: 0 2rem; }
.article-content h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 1rem; }
.article-content .article-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.article-content h2 { font-size: 1.3rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.article-content p { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.85; color: var(--text-secondary); }
.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.article-content li { margin-bottom: 0.5rem; line-height: 1.65; color: var(--text-secondary); }

/* ═══════════════ CTA SECTION ═══════════════ */

.cta-section {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  position: relative;
}

.cta-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; font-size: 0.95rem; }

/* ═══════════════ FOOTER ═══════════════ */

footer {
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

footer p { color: var(--text-muted); }
footer a { color: var(--gold); }
footer a:hover { color: var(--gold-bright); }

/* ═══════════════ MOBILE ═══════════════ */

.nav-toggle {
  display: none;
  background: none; border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 60px; left: 0; right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .hero-dark { min-height: auto; padding: 5rem 1.25rem 2rem; }
  .hero-split { flex-direction: column; text-align: center; gap: 1.5rem; }
  .hero-split-left { flex: none; width: 70%; max-width: 300px; margin: 0 auto; }
  .hero-split-right { text-align: center; }
  .hero-split-right h1 { text-align: center !important; font-size: 1.3rem !important; }
  .hero-split-right p { text-align: center !important; }
  .hero-split-right .hero-cta { display: inline-flex; }
  .hero-dark h1 { font-size: 1.4rem; letter-spacing: -0.5px; }
  .hero-dark p { font-size: 0.95rem; }
  .hero-tagline { font-size: 0.6rem; letter-spacing: 4px; }
  .hero-tagline::before, .hero-tagline::after { width: 20px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .hero-cta, .hero-cta-secondary-dark { width: 100%; max-width: 280px; text-align: center; justify-content: center; }
  .stats-bar { flex-wrap: wrap; }
  .stat { flex: 0 0 50%; padding: 2rem 1rem; }
  .stat + .stat::before { display: none; }
  .section { padding: 1.75rem 1.25rem; }
  .section-header h2 { font-size: 1.25rem; }
  .expertise-grid, .articles-grid, .agents-grid, .training-grid, .services-grid { grid-template-columns: 1fr; }
  .expertise-card.highlight { grid-column: span 1; }
  .security-callout { flex-direction: column; padding: 1.5rem; }
  .tools-row { flex-direction: column; align-items: stretch; }
  .cta-section { padding: 4rem 1.25rem; }
  .cta-section h2 { font-size: 1.4rem; }
  .article-content { margin: 5rem auto 2rem; padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero-dark h1 { font-size: 1.2rem; }
  .stat .number { font-size: 1.8rem; }
  .logo { font-size: 0.9rem; }
}
