/* ============================================
   AEGISCYBER — Design System
   Critical Infrastructure Cybersecurity
   ============================================ */

:root {
  /* Brand Colors */
  --navy-deep: #0A2540;
  --navy-mid: #1A3A5C;
  --navy-light: #2D5380;
  --silver-light: #C0C8D1;
  --silver-mid: #9DAAB8;
  --silver-dark: #7B8794;

  /* Functional Colors */
  --text-primary: #0A2540;
  --text-secondary: #5F6B78;
  --text-tertiary: #9DAAB8;
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7F9FB;
  --bg-tertiary: #EEF2F5;
  --border-light: #E5E9ED;
  --border-mid: #C5CDD6;

  /* Semantic */
  --success: #047857;
  --success-light: #ECFDF5;
  --warning: #B45309;
  --warning-light: #FEF3C7;
  --info: #1E40AF;
  --info-light: #EFF6FF;
  --danger: #B91C1C;
  --danger-light: #FEE2E2;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Sizing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 37, 64, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 37, 64, 0.08);
  --shadow-xl: 0 24px 60px rgba(10, 37, 64, 0.12);

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--navy-deep); }

a:focus-visible {
  outline: 2px solid var(--navy-mid);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style-position: inside; }

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy-deep);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver-dark);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
  gap: 1rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.logo-img {
  height: 58px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .logo-img { height: 44px; }
}


.logo-mark {
  width: 44px;
  height: 56px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-deep);
  letter-spacing: 0.01em;
}

.logo-name strong { font-weight: 600; }

.logo-tagline {
  font-size: 0.65rem;
  color: var(--silver-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-tertiary);
  color: var(--navy-deep);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-light);
}

.lang-switcher a {
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
}

.lang-switcher a.active {
  background: var(--navy-deep);
  color: white;
}

.menu-toggle {
  display: none;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--navy-deep);
  color: white;
}

.btn-primary:hover {
  background: var(--navy-mid);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--border-mid);
}

.btn-outline:hover {
  background: var(--navy-deep);
  color: white;
  border-color: var(--navy-deep);
}

.btn-ghost {
  color: var(--navy-mid);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--navy-deep);
  background: var(--bg-tertiary);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  background: linear-gradient(135deg, #0A2540 0%, #1A3A5C 50%, #0A2540 100%);
  color: white;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(192, 200, 209, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(192, 200, 209, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(192, 200, 209, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(192, 200, 209, 0.1);
  border: 1px solid rgba(192, 200, 209, 0.2);
  border-radius: 100px;
  color: var(--silver-light);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #34D399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34D399;
}

.hero h1 {
  color: white;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--silver-light);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--silver-light);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 650px;
}

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

.hero-actions .btn-primary {
  background: white;
  color: var(--navy-deep);
}

.hero-actions .btn-primary:hover {
  background: var(--silver-light);
}

.hero-actions .btn-outline {
  color: white;
  border-color: rgba(192, 200, 209, 0.3);
}

.hero-actions .btn-outline:hover {
  background: rgba(192, 200, 209, 0.1);
  border-color: var(--silver-light);
  color: white;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(192, 200, 209, 0.15);
  position: relative;
  z-index: 2;
}

.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: white;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--silver-mid);
  letter-spacing: 0.05em;
}

/* ============================================
   CARDS
   ============================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, color-mix(in oklab, var(--navy-deep) 8%, var(--bg-tertiary)), var(--bg-tertiary));
  border: 1px solid color-mix(in oklab, var(--navy-deep) 14%, transparent);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--navy-deep);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 2px rgba(15,27,61,0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover .card-icon {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--navy-deep) 28%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 6px 14px -8px rgba(15,27,61,0.35);
}
.card-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--navy-deep);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.card-meta {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-dark);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  width: 100%;
}

/* Service Cards with framework badge */
.service-card {
  position: relative;
}

.service-card .badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--info-light);
  color: var(--info);
  letter-spacing: 0.05em;
}

/* ============================================
   COMPLIANCE BADGES
   ============================================ */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.compliance-item {
  background: white;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--navy-mid);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  transition: all var(--transition);
}

.compliance-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.compliance-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--navy-mid);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.compliance-title {
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 0.25rem;
}

.compliance-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================
   SECURITY BADGES (Footer trust signals)
   ============================================ */
.security-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.security-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(192, 200, 209, 0.08);
  border: 1px solid rgba(192, 200, 209, 0.15);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--silver-light);
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: all var(--transition);
}

.security-badge:hover {
  background: rgba(192, 200, 209, 0.12);
  border-color: rgba(192, 200, 209, 0.25);
  color: white;
}

.security-badge-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  background: linear-gradient(135deg, #F7F9FB 0%, #EEF2F5 100%);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header .lead {
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   ARTICLE CONTENT (About, Compliance pages)
   ============================================ */
.article-content {
  max-width: 720px;
  margin: 0 auto;
}

.article-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.article-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--navy-mid);
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.75;
}

.article-content ul, .article-content ol {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-primary);
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content strong { color: var(--navy-deep); }

.callout {
  background: var(--info-light);
  border-left: 4px solid var(--info);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
}

.callout-success {
  background: var(--success-light);
  border-left-color: var(--success);
}

.callout-warning {
  background: var(--warning-light);
  border-left-color: var(--warning);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--navy-deep);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.95rem;
}

.contact-method:last-child { border-bottom: none; }

.contact-method-icon {
  width: 32px;
  height: 32px;
  background: var(--navy-deep);
  color: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.contact-method-label {
  font-size: 0.7rem;
  color: var(--silver-dark);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.contact-method-value {
  color: var(--navy-deep);
  font-weight: 500;
}

.contact-method-value a { color: inherit; }

.form-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-label .required { color: var(--danger); }

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--navy-deep);
  box-shadow: 0 0 0 3px rgba(10, 37, 64, 0.08);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox-group {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.85rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.form-checkbox-group input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--navy-deep);
}

.form-checkbox-group label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--navy-deep);
  color: var(--silver-mid);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-brand {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-name {
  color: white;
}

.footer-logo .logo-tagline {
  color: var(--silver-mid);
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--silver-mid);
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li { margin-bottom: 0.6rem; }

.footer-col a {
  color: var(--silver-mid);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(192, 200, 209, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--silver-dark);
}

.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }

.footer-legal a { color: var(--silver-dark); }

/* ============================================
   ALERTS / NOTICES
   ============================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  display: none;
}

.alert.show { display: block; }

.alert-error {
  background: var(--danger-light);
  color: var(--danger);
  border-left: 3px solid var(--danger);
}

.alert-success {
  background: var(--success-light);
  color: var(--success);
  border-left: 3px solid var(--success);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    width: 100%;
    padding: 0.75rem 1rem;
  }
  .lang-switcher {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
    justify-content: center;
  }

  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  section { padding: 3.5rem 0; }
  .hero { padding: 4rem 0 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .logo-tagline { display: none; }
}

.emblem-icon {
  width: 96px;
  height: 96px;
  display: block;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  filter: drop-shadow(0 6px 16px rgba(10,37,64,0.18));
}

.hero-emblem {
  width: 120px;
  height: 120px;
  display: block;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.45));
}
@media (max-width: 768px) {
  .hero-emblem { width: 92px; height: 92px; margin-bottom: 1.1rem; }
}

/* === Inline SVG icons (replacing legacy emoji) === */
.logo-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(15,27,61,0.25));
}
@media (max-width: 768px) {
  .logo-mark { width: 38px; height: 38px; }
  .logo-name { font-size: 1.05rem; }
}
/* === Mobile menu toggle: 44x44 hit target, animated hamburger → X === */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md, 8px);
  color: var(--navy-deep);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .2s ease, border-color .2s ease;
}
.menu-toggle:hover { background: rgba(15, 27, 61, 0.06); }
.menu-toggle:active { background: rgba(15, 27, 61, 0.12); }
.menu-toggle:focus-visible {
  outline: 2px solid var(--navy-deep);
  outline-offset: 2px;
}
.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.menu-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7px; }
.menu-toggle-bars span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  top: 7px; transform: rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  top: 7px; transform: rotate(-45deg);
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .main-nav a { min-height: 44px; display: flex; align-items: center; }
}
/* Body scroll lock while mobile menu is open (prevents page from shifting) */
html, body { overflow-x: hidden; }
body.menu-open {
  overflow: hidden;
  touch-action: none;
}
@media (max-width: 980px) {
  .main-nav.open {
    max-height: calc(100vh - 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
}
@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bars span { transition: none; }
}

.inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15em;
  height: 1.15em;
  margin-right: 0.45em;
  vertical-align: -0.18em;
  color: var(--navy-deep);
}
.inline-icon svg { width: 100%; height: 100%; }

/* Footer mini security-badge icons */
.footer-badges .inline-icon,
.footer .inline-icon { color: var(--silver-dark); }

/* ============================================
   V10 — Bolder type, bigger icons, section bg, perf
   ============================================ */
body { font-size: 17px; line-height: 1.7; color: #0A2540; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.015em; color: #0A2540; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.65rem); font-weight: 600; }
.lead { font-size: 1.25rem; color: #3a4756; font-weight: 400; }
.section-eyebrow { font-size: 0.8rem; color: #1A3A5C; font-weight: 700; }
p { color: #2f3a48; }
.card p { color: #455160; font-size: 1rem; }

/* Alternating section backgrounds (skip hero/dark — they keep their own bg) */
main > section:not(.hero):not(.page-header):not(.section-dark):not(.threat-ticker):nth-of-type(odd)  { background: #ffffff; }
main > section:not(.hero):not(.page-header):not(.section-dark):not(.threat-ticker):nth-of-type(even) { background: linear-gradient(180deg, #F4F7FB 0%, #EAF0F6 100%); }
/* Re-assert hero + page-header navy gradient with higher specificity so nothing overrides it */
main > section.hero,
main > section.page-header,
.page-header {
  background: linear-gradient(135deg, #0A2540 0%, #1A3A5C 50%, #0A2540 100%) !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
}
main > section.page-header h1,
.page-header h1 { color: #ffffff !important; }
.page-header .lead,
main > section.page-header .lead { color: rgba(255,255,255,0.88) !important; }
.page-header .section-eyebrow,
main > section.page-header .section-eyebrow { color: #9DB6D6 !important; }

/* Bigger, bolder card icons */
.card-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, #0F1B3D 0%, #1E3A5F 100%);
  border: 1px solid #0F1B3D;
  color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px -8px rgba(15,27,61,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.card-icon svg { width: 32px; height: 32px; stroke-width: 2.1; }
.card:hover .card-icon {
  background: linear-gradient(135deg, #1E3A5F 0%, #3B6FA0 100%);
  border-color: #3B6FA0;
  box-shadow: 0 14px 28px -10px rgba(15,27,61,0.55);
}
.card { padding: 2.25rem; border-radius: 16px; border-color: #DDE4EC; }
.card:hover { border-color: #1E3A5F; }

/* Stronger header logo */
.site-header { background: #ffffff; border-bottom: 1px solid #DDE4EC; box-shadow: 0 1px 0 rgba(15,27,61,0.04); }
.logo-mark, .logo-img { width: 56px; height: 56px; filter: drop-shadow(0 2px 6px rgba(15,27,61,0.25)); }
.logo-name { font-size: 1.45rem; font-weight: 700; color: #0A2540; }
.logo-tagline { font-size: 0.7rem; color: #1A3A5C; font-weight: 600; }
@media (max-width: 768px) {
  .logo-mark, .logo-img { width: 44px; height: 44px; }
  .logo-name { font-size: 1.15rem; }
}

/* Section eyebrow with accent bar */
.section-eyebrow::before {
  content: ''; display: inline-block; width: 28px; height: 2px;
  background: #C9A84C; vertical-align: middle; margin-right: 10px;
  transform: translateY(-2px);
}

/* Buttons bolder */
.btn-primary, .btn-outline { font-weight: 600; letter-spacing: 0.01em; }

/* Performance: hint browser */
img { content-visibility: auto; }

/* ============================================
   V11 — Lighthouse a11y + perf fixes
   ============================================ */
/* Footer contrast (silver-on-navy was too low) */
.site-footer .footer-bottom,
.site-footer .footer-bottom span,
.site-footer .footer-legal a { color: #DDE4EC !important; }
.site-footer .footer-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* Inline article links: not color-only */
.article-content a,
main p a, main li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; color: #0F1B3D; }
.article-content a:hover { text-decoration-thickness: 2px; }

/* Footer logo aspect */
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }

/* V11.1 — final contrast + heading order */
.card-meta { color: #1A3A5C; font-weight: 600; }
/* footer h4 acts as a section label; expose as h3 visually w/o changing tag isn't ideal — fix in HTML instead */

/* ============================================
   V12 — Balanced logo sizing (header + footer)
   ============================================ */
/* Header coin: crisp at every breakpoint */
.site-header .logo-mark,
.site-header .logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 2px 6px rgba(15,27,61,0.28));
}
@media (max-width: 1024px) {
  .site-header .logo-mark,
  .site-header .logo-img { width: 48px; height: 48px; }
}
@media (max-width: 768px) {
  .site-header .logo-mark,
  .site-header .logo-img { width: 42px; height: 42px; }
  .logo-name { font-size: 1.1rem; }
  .logo-tagline { font-size: 0.65rem; }
}
@media (max-width: 420px) {
  .site-header .logo-mark,
  .site-header .logo-img { width: 38px; height: 38px; }
  .logo-tagline { display: none; }
}

/* Footer coin: slightly smaller, balanced with text */
.site-footer .footer-brand img,
.site-footer .footer-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.35));
}
@media (max-width: 768px) {
  .site-footer .footer-brand img,
  .site-footer .footer-logo img { width: 40px; height: 40px; }
}

/* ===== Live Threat Feed ===== */
.threat-ticker {
  background: linear-gradient(135deg, #0F1B3D 0%, #16294F 55%, #1E3A5F 100%) !important;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 0;
  font-family: var(--font-mono);
}
.threat-ticker .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: center; }
.tt-cell { text-align: left; }
.tt-label { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(232,237,243,.65); margin-bottom: .25rem; }
.tt-value { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.tt-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; margin-right: .5rem; box-shadow: 0 0 0 0 rgba(16,185,129,.7); animation: tt-pulse 2s infinite; vertical-align: middle; }
@keyframes tt-pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.7)} 70%{box-shadow:0 0 0 10px rgba(16,185,129,0)} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0)} }
.tt-foot { grid-column: 1/-1; font-size: .72rem; color: rgba(232,237,243,.55); text-align: center; margin-top: .25rem; }
@media (max-width: 768px) {
  .threat-ticker .container { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .tt-value { font-size: 1.25rem; }
}

/* Threats dashboard page */
.tf-dashboard { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.tf-kpi { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden; }
.tf-kpi::before { content:""; position:absolute; top:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--brand-navy), var(--brand-blue)); }
.tf-kpi-value { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; color: var(--brand-navy); line-height: 1; }
.tf-kpi-label { font-size: .85rem; color: var(--text-secondary); margin-top: .5rem; }
.tf-kpi-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: .35rem; }
@media (max-width: 768px) { .tf-dashboard { grid-template-columns: repeat(2, 1fr); } .tf-kpi-value { font-size: 1.6rem; } }

.tf-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .75rem; }
.tf-item { background: #fff; border: 1px solid var(--border-light); border-left: 3px solid var(--brand-blue); border-radius: var(--radius-md); padding: 1rem 1.25rem; }
.tf-item-ransom { border-left-color: var(--danger); background: linear-gradient(90deg, var(--danger-light) 0%, #fff 40%); }
.tf-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; }
.tf-cve { font-family: var(--font-mono); font-weight: 700; color: var(--brand-navy); font-size: .95rem; }
.tf-date { font-family: var(--font-mono); font-size: .75rem; color: var(--text-muted); }
.tf-item-body strong { display: block; color: var(--text-primary); font-size: .95rem; }
.tf-name { display: block; color: var(--text-secondary); font-size: .85rem; margin-top: .25rem; }
.tf-tag { display: inline-block; margin-top: .5rem; font-size: .72rem; font-weight: 600; color: var(--danger); background: var(--danger-light); padding: .15rem .5rem; border-radius: var(--radius-sm); }
.tf-updated { font-size: .8rem; color: var(--text-muted); font-family: var(--font-mono); text-align: right; margin-top: 1rem; }

/* === Threat-feed status indicator ============================== */
.tf-status {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .75rem; border-radius: 999px;
  background: rgba(15, 27, 61, .08);
  border: 1px solid rgba(15, 27, 61, .12);
  font-size: .78rem; color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.threat-ticker .tf-status {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18);
  color: #cfd9ea;
}
.tf-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: tf-pulse 2s infinite;
}
.tf-dot-busy { background: #f59e0b; animation-duration: .8s; }
@keyframes tf-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.tf-refresh-btn {
  background: transparent; border: 1px solid currentColor;
  color: inherit; font: inherit; font-size: .72rem;
  padding: .2rem .55rem; border-radius: 999px; cursor: pointer;
  opacity: .85; transition: opacity .15s ease, background .15s ease;
}
.tf-refresh-btn:hover { opacity: 1; background: rgba(255,255,255,.08); }
.tf-status-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .75rem; margin: .25rem 0 1.25rem;
}
.tf-privacy-note {
  font-size: .72rem; color: var(--text-muted, #6b7280);
  margin-top: .5rem;
}
@media (prefers-reduced-motion: reduce) { .tf-dot { animation: none; } }

/* ---------- Cookie notice ---------- */
.cookie-notice{position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:9999;background:#0F1B3D;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.35);padding:1rem 1.25rem;max-width:760px;margin:0 auto;transform:translateY(0);transition:transform .3s ease,opacity .3s ease;font-size:.92rem;line-height:1.5}
.cookie-notice-hidden{opacity:0;transform:translateY(120%)}
.cookie-notice-inner{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;justify-content:space-between}
.cookie-notice-msg{margin:0;color:#E6ECF7;flex:1 1 280px}
.cookie-notice-actions{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap}
.cookie-notice-link{color:#9DB7E6;text-decoration:underline;font-size:.88rem}
.cookie-notice-btn{background:#fff;color:#0F1B3D;border:0;border-radius:8px;padding:.55rem 1.1rem;font-weight:700;cursor:pointer;font-size:.9rem}
.cookie-notice-btn:hover{background:#E6ECF7}

/* ---------- Team grid ---------- */
.team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;margin-top:1.5rem}
.team-card{background:#fff;border:1px solid rgba(15,27,61,.08);border-radius:14px;padding:1.5rem;text-align:center;transition:transform .2s ease,box-shadow .2s ease}
.team-card:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(15,27,61,.12)}
.team-avatar{width:64px;height:64px;border-radius:50%;background:linear-gradient(135deg,#0F1B3D,#1A3A5C);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.4rem;margin:0 auto .9rem;letter-spacing:.5px}
.team-card h4{margin:.25rem 0 .25rem;font-size:1.05rem}
.team-role{color:var(--text-secondary);font-size:.88rem;margin:0 0 .75rem}
.team-card a{font-size:.88rem;color:var(--navy-deep);word-break:break-all}


/* === Contact page: team cards === */
.team-contact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin-bottom:1.75rem}
.team-contact-card{background:#fff;border:1px solid rgba(15,27,61,.1);border-radius:14px;padding:1.4rem 1.2rem;text-align:center;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.team-contact-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px rgba(15,27,61,.14);border-color:rgba(15,27,61,.2)}
.team-contact-card .team-avatar{width:58px;height:58px;font-size:1.15rem;margin:0 auto .8rem}
.team-contact-card .team-avatar--alt{background:linear-gradient(135deg,#1A3A5C,#3a6ea8);font-size:1.6rem}
.team-contact-card h4{margin:.2rem 0 .25rem;font-size:1rem;color:var(--navy-deep,#0F1B3D)}
.team-contact-card .team-role{color:var(--text-secondary);font-size:.82rem;margin:0 0 .9rem;min-height:2.2em}
.team-contact-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.45rem;font-size:.85rem}
.team-contact-list li{display:flex;align-items:center;justify-content:center;gap:.45rem;color:var(--text-secondary);word-break:break-all}
.team-contact-list span{opacity:.7}
.team-contact-list a{color:var(--navy-deep,#0F1B3D);text-decoration:none;border-bottom:1px solid transparent;transition:border-color .15s}
.team-contact-list a:hover{border-bottom-color:currentColor}
.team-contact-card--general{background:linear-gradient(180deg,#f6f8fc,#eef2f9);border-color:rgba(15,27,61,.15)}
.contact-meta{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-top:.5rem}
.contact-meta-card{background:#fff;border:1px solid rgba(15,27,61,.08);border-radius:12px;padding:1rem 1.1rem}
.contact-meta-card h4{margin:0 0 .35rem;font-size:.92rem;color:var(--navy-deep,#0F1B3D)}
.contact-meta-card p{margin:0;font-size:.82rem;color:var(--text-secondary);line-height:1.55}
.contact-meta-card a{color:var(--navy-deep,#0F1B3D);text-decoration:underline}

/* ============================================================
   V26 — 3D Intro overlay
   ============================================================ */
#aegis-intro {
  position: fixed; inset: 0; z-index: 99999;
  background: radial-gradient(ellipse at 50% 38%, #123457 0%, #0A2540 45%, #061426 100%);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16vh;
  opacity: 1; transition: opacity 0.85s ease;
}
#aegis-intro.aegis-intro-out { opacity: 0; pointer-events: none; }
#aegis-intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aegis-intro-lock { overflow: hidden; }
.aegis-intro-brand {
  position: relative; z-index: 2; text-align: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity 1s ease, transform 1s ease;
  pointer-events: none;
}
#aegis-intro.aegis-intro-brand-in .aegis-intro-brand { opacity: 1; transform: none; }
.aegis-intro-name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 600; color: #F4F6F8; letter-spacing: 0.02em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.aegis-intro-name strong { font-weight: 700; color: #C8D2DC; }
.aegis-intro-tag {
  margin-top: 0.6rem;
  font-family: var(--font-sans);
  font-size: clamp(0.65rem, 1.6vw, 0.85rem);
  font-weight: 600; letter-spacing: 0.45em; text-transform: uppercase;
  color: #8FA3B8;
}
.aegis-intro-skip {
  position: absolute; bottom: 2rem; right: 2rem; z-index: 3;
  background: rgba(255,255,255,0.06); color: #9FB2C5;
  border: 1px solid rgba(159,178,197,0.35); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-family: var(--font-sans);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.25s ease;
}
.aegis-intro-skip:hover { background: rgba(255,255,255,0.14); color: #fff; }


/* ===== Hero persistent particles (v27) ===== */
.hero { position: relative; }
.hero-particles {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; opacity: .55;
}
.hero > .container, .hero > * { position: relative; z-index: 1; }
.hero-particles + * { position: relative; z-index: 1; }

/* ===== Intro sound toggle (v27) ===== */
.intro-sound-btn {
  position: absolute; bottom: 24px; left: 24px; z-index: 10;
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.08); color: #cfd9ea;
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  padding: .45rem .9rem; font-size: .8rem; cursor: pointer;
  backdrop-filter: blur(4px); transition: background .2s ease;
}
.intro-sound-btn:hover { background: rgba(255,255,255,.16); }
.intro-sound-btn svg { width: 16px; height: 16px; }

/* ===== Security / responsible disclosure page (v27) ===== */
.sec-txt-box {
  background: #0F1B3D; color: #cfd9ea; border-radius: var(--radius-lg);
  padding: 1.5rem; font-family: var(--font-mono); font-size: .85rem;
  line-height: 1.7; overflow-x: auto; border: 1px solid rgba(255,255,255,.1);
}
.sec-txt-box a { color: #9bb4d4; }
