/**
 * Life2it Neural — Main Stylesheet
 * Design System: Ultramodern Neural Data System + AuraGold Cloud Enterprise
 * Colors, Typography, Layout, Glassmorphism, Components & Responsive Rules
 */

/* ==========================================================================
   1. DESIGN TOKENS (CSS CUSTOM PROPERTIES)
   ========================================================================== */
:root {
  /* Substrate & Canvas Colors (Ultramodern Neural Data System) */
  --bg-void: #061426;
  --bg-base: #0B192C;
  --bg-midnight: #0A0D14;

  /* Surface Containers */
  --surface-low: #0E1C2F;
  --surface-mid: #132033;
  --surface-high: #1D2A3E;
  --surface-glass: rgba(14, 28, 47, 0.78);
  --surface-glass-elevated: rgba(19, 32, 51, 0.88);
  --surface-glass-hover: rgba(29, 42, 62, 0.92);
  --surface-input: #071120;

  /* Brand & Energy Accents */
  --gold-primary: #FFC72C;
  --gold-secondary: #F4B223;
  --gold-royal: #D4AF37;
  --gold-champagne: #FFDF73;
  --gold-gradient: linear-gradient(135deg, #FFC72C 0%, #F4B223 100%);
  --gold-glow: rgba(255, 199, 44, 0.38);
  --gold-subtle: rgba(255, 199, 44, 0.10);
  --gold-border: rgba(255, 199, 44, 0.24);

  /* Cybernetic & Secondary Palette */
  --cobalt-secondary: #1D429B;
  --navy-tertiary: #002E5B;
  --cyan-neural: #00E5FF;
  --cyan-subtle: rgba(0, 229, 255, 0.10);
  --cyan-border: rgba(0, 229, 255, 0.28);
  --cyan-glow: rgba(0, 229, 255, 0.35);

  /* Text & Contrast Hierarchy */
  --text-white: #FFFFFF;
  --text-primary: #D6E3FE;
  --text-secondary: #94A8C9;
  --text-muted: #647899;
  --text-on-gold: #061426;

  /* Borders & Hairlines */
  --border-subtle: rgba(214, 227, 254, 0.10);
  --border-card: rgba(255, 199, 44, 0.16);
  --border-card-hover: rgba(255, 199, 44, 0.45);
  --border-cyan: rgba(0, 229, 255, 0.25);

  /* Semantic Status */
  --status-success: #10B981;
  --status-warning: #FFC72C;
  --status-error: #FF6B6B;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Type Scale */
  --text-hero: clamp(2.35rem, 4.5vw + 1rem, 4rem);          /* 37.6px -> 64px */
  --text-h1: clamp(2.1rem, 3.5vw + 0.85rem, 3.25rem);        /* 33.6px -> 52px */
  --text-h2: clamp(1.75rem, 2.5vw + 0.75rem, 2.75rem);       /* 28px -> 44px */
  --text-h3: clamp(1.35rem, 1.5vw + 0.65rem, 1.75rem);       /* 21.6px -> 28px */
  --text-h4: 1.25rem;                                        /* 20px */
  --text-body-lg: 1.125rem;                                  /* 18px */
  --text-body: 0.96875rem;                                   /* 15.5px */
  --text-body-sm: 0.84375rem;                                /* 13.5px */
  --text-mono-sm: 0.75rem;                                   /* 12px */
  --text-mono-xs: 0.6875rem;                                 /* 11px */

  /* Layout & 8pt Spacing Cadence */
  --container-max: 1440px;
  --container-narrow: 960px;
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  --space-12: 6rem;     /* 96px */

  /* Corner Radii (DESIGN.md) */
  --radius-control: 8px;
  --radius-card: 16px;
  --radius-hero: 24px;
  --radius-pill: 9999px;

  /* Effects & Blur */
  --blur-glass: blur(18px);
  --blur-heavy: blur(28px);
  --shadow-card: 0 16px 40px -12px rgba(2, 8, 18, 0.75);
  --shadow-gold: 0 0 24px rgba(255, 199, 44, 0.35);
  --shadow-gold-lg: 0 0 36px rgba(255, 199, 44, 0.55);
  --shadow-cyan: 0 0 22px rgba(0, 229, 255, 0.28);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-void);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(29, 66, 155, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 82% 28%, rgba(255, 199, 44, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(0, 46, 91, 0.30) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-base) 50%, var(--bg-void) 100%);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Subtle Cybernetic Telemetry Grid Overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(214, 227, 254, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 227, 254, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

::selection {
  background-color: var(--gold-primary);
  color: var(--text-on-gold);
}

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

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-champagne);
}

/* Accessible Focus States */
:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-3);
  background: var(--gold-primary);
  color: var(--text-on-gold);
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-control);
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-2);
}

/* ==========================================================================
   3. TYPOGRAPHY HIERARCHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-white);
  margin: 0 0 var(--space-2) 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.display-hero {
  font-size: var(--text-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1, .h1 { font-size: var(--text-h1); }
h2, .h2 { font-size: var(--text-h2); font-weight: 700; }
h3, .h3 { font-size: var(--text-h3); font-weight: 700; letter-spacing: -0.015em; }
h4, .h4 { font-size: var(--text-h4); font-weight: 600; letter-spacing: -0.01em; }

p {
  margin: 0 0 var(--space-2) 0;
  font-size: var(--text-body);
  color: var(--text-primary);
  line-height: 1.65;
}

.lead {
  font-size: var(--text-body-lg);
  color: var(--text-primary);
  line-height: 1.65;
}

.text-muted {
  color: var(--text-secondary);
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFC72C 50%, #F4B223 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #FFFFFF 0%, #00E5FF 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

/* ==========================================================================
   4. LAYOUT & 12-COLUMN FLUID GRID
   ========================================================================== */
.site-main {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
}

.l2i-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}

.l2i-container--narrow {
  max-width: var(--container-narrow);
}

.l2i-section {
  position: relative;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  z-index: 2;
}

.l2i-section--alt {
  background: rgba(11, 25, 44, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.l2i-grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}

.l2i-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}

.l2i-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}

.l2i-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

/* Column Spans (Desktop >= 1200px) */
.col-span-4 { grid-column: span 4; }
.col-span-5 { grid-column: span 5; }
.col-span-6 { grid-column: span 6; }
.col-span-7 { grid-column: span 7; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

/* Section Header Block */
.section-header {
  max-width: 780px;
  margin-bottom: var(--space-6);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ==========================================================================
   5. COMPONENTS (BUTTONS, CHIPS, CARDS, GAUGES, INPUTS)
   ========================================================================== */

/* --- 5.1 Buttons (8px radius per DESIGN.md) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.625rem;
  border-radius: var(--radius-control);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold-gradient);
  color: var(--text-on-gold);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  color: var(--text-on-gold);
  box-shadow: var(--shadow-gold-lg);
  transform: translateY(-2px);
}

.btn--secondary {
  background: rgba(19, 32, 51, 0.78);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  color: var(--text-white);
  border-color: rgba(255, 199, 44, 0.35);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  background: rgba(29, 42, 62, 0.95);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 199, 44, 0.2);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan-neural);
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--border-cyan);
  padding: 0.85rem 1.4rem;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cyan-subtle);
  border-color: var(--cyan-neural);
  color: var(--text-white);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.625rem 1.15rem;
  font-size: 0.84375rem;
}

/* --- 5.2 Telemetry Chips & Status Pills (9999px radius) --- */
.telemetry-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(14, 28, 47, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.telemetry-chip--cyan {
  border-color: var(--cyan-border);
  color: var(--cyan-neural);
  background: rgba(6, 20, 38, 0.85);
}

.telemetry-chip--neutral {
  border-color: var(--border-subtle);
  color: var(--text-primary);
  background: rgba(19, 32, 51, 0.75);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot--gold {
  background-color: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse-dot 2.2s infinite ease-in-out;
}

.status-dot--cyan {
  background-color: var(--cyan-neural);
  box-shadow: 0 0 10px var(--cyan-neural);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

/* --- 5.3 Glass Data Cards with 1px Gradient Border & Spotlight --- */
.glass-card {
  position: relative;
  background: var(--surface-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  overflow: hidden;
}

/* Top overhead hairline highlight */
.glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 199, 44, 0.45), rgba(0, 229, 255, 0.3), transparent);
  pointer-events: none;
}

/* Interactive mouse spotlight overlay */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 199, 44, 0.08), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.glass-card:hover {
  border-color: var(--border-card-hover);
  background: var(--surface-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -12px rgba(2, 8, 18, 0.85), 0 0 28px -6px rgba(255, 199, 44, 0.18);
}

.glass-card:hover::after {
  opacity: 1;
}

.glass-card--hero {
  border-radius: var(--radius-hero);
  background: var(--surface-glass-elevated);
  backdrop-filter: var(--blur-heavy);
  -webkit-backdrop-filter: var(--blur-heavy);
}

.glass-card--cyan:hover {
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 20px 44px -12px rgba(2, 8, 18, 0.85), 0 0 28px -6px rgba(0, 229, 255, 0.18);
}

/* --- 5.4 Icon Well & Node Header --- */
.card-node-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.icon-well {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 199, 44, 0.16), rgba(29, 66, 155, 0.25));
  border: 1px solid rgba(255, 199, 44, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.icon-well--cyan {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(29, 66, 155, 0.25));
  border-color: rgba(0, 229, 255, 0.30);
  color: var(--cyan-neural);
}

.node-id {
  font-family: var(--font-mono);
  font-size: var(--text-mono-xs);
  color: var(--cyan-neural);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.22);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.08em;
}

/* --- 5.5 Tech Stack Tag Chips --- */
.tech-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-2);
  padding: 0;
  list-style: none;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: var(--text-mono-xs);
  color: var(--text-primary);
  background: rgba(6, 20, 38, 0.75);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

/* --- 5.6 Concentric SVG Metric Gauges --- */
.metric-gauge-card {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
}

.gauge-svg {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.gauge-track {
  fill: none;
  stroke: rgba(214, 227, 254, 0.12);
  stroke-width: 5;
}

.gauge-value {
  fill: none;
  stroke: var(--gold-primary);
  stroke-width: 5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 6px rgba(255, 199, 44, 0.45));
}

.gauge-value--cyan {
  stroke: var(--cyan-neural);
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

/* --- 5.7 Dark-Recessed Inputs with Gold Focus State --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: var(--space-2);
}

.form-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-control);
  background-color: var(--surface-input);
  border: 1px solid rgba(214, 227, 254, 0.15);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.45);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px rgba(255, 199, 44, 0.28), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23FFC72C' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* Honeypot anti-spam field */
.l2i-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-alert--success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
}

.form-alert--error {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: #FCA5A5;
}

/* ==========================================================================
   6. HEADER, NAVIGATION & CERTIFICATIONS STRIP
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 20, 38, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 199, 44, 0.16);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: var(--space-3);
}

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

.brand-logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-slot img,
.brand-logo-gold {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(255, 199, 44, 0.28));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-identity:hover .brand-logo-gold {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 4px 18px rgba(255, 199, 44, 0.48));
}

.brand-logo-gold--footer {
  max-height: 38px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-wordmark__name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-white);
  line-height: 1.05;
}

.brand-wordmark__name span {
  color: var(--gold-primary);
}

.brand-wordmark__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-neural);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav__list a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.primary-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-fast);
}

.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list a[aria-current="page"] {
  color: var(--gold-primary);
  font-weight: 600;
}

.primary-nav__list a:hover::after,
.primary-nav__list .current-menu-item > a::after,
.primary-nav__list a[aria-current="page"]::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(19, 32, 51, 0.85);
  border: 1px solid var(--gold-border);
  color: var(--gold-primary);
  border-radius: var(--radius-control);
  padding: 0.55rem 0.75rem;
  cursor: pointer;
}

/* Slim Federal Certifications Strip */
.cert-strip {
  position: relative;
  z-index: 90;
  background: linear-gradient(90deg, rgba(6, 20, 38, 0.95) 0%, rgba(19, 32, 51, 0.95) 50%, rgba(6, 20, 38, 0.95) 100%);
  border-bottom: 1px solid rgba(0, 229, 255, 0.18);
  padding: 0.5rem 0;
}

.cert-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert-strip__badges,
.cert-strip__codes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cert-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-primary);
}

.cert-strip__item strong {
  color: var(--gold-primary);
}

.cert-strip__divider {
  color: rgba(214, 227, 254, 0.25);
}

/* ==========================================================================
   7. HERO & THREE.JS NEURAL MESH CANVAS
   ========================================================================== */
.hero-neural {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  /* Static fallback poster gradient when WebGL is disabled or reduced-motion is preferred */
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 199, 44, 0.16) 0%, rgba(0, 229, 255, 0.08) 32%, transparent 65%),
    radial-gradient(circle at 20% 25%, rgba(29, 66, 155, 0.35) 0%, transparent 55%),
    linear-gradient(160deg, #061426 0%, #0B192C 55%, #061426 100%);
}

.hero-neural__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

#neural-hero-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Content stays clickable above the Three.js canvas */
.hero-neural__content {
  position: relative;
  z-index: 3;
  pointer-events: none;
  width: 100%;
}

.hero-neural__content a,
.hero-neural__content button,
.hero-neural__content .telemetry-chip,
.hero-neural__content .glass-card {
  pointer-events: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  margin-bottom: var(--space-5);
}

.hero-telemetry-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--space-3);
}

/* ==========================================================================
   8. DATA PIPELINE FLOW & TELEMETRY SECTIONS
   ========================================================================== */
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  position: relative;
}

.pipeline-stage {
  position: relative;
}

.pipeline-stage__connector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px dashed rgba(0, 229, 255, 0.35);
}

/* ==========================================================================
   9. ACCORDION (FAQ) & TABLES (NAICS)
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--surface-glass);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.faq-item[open] {
  border-color: var(--gold-primary);
  background: var(--surface-glass-elevated);
}

.faq-item summary {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  font-family: var(--font-mono);
  color: var(--gold-primary);
  font-size: 1.25rem;
  transition: transform var(--transition-fast);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__body {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

/* NAICS & Capability Data Tables */
.naics-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-card);
  background: var(--surface-glass);
}

.naics-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.naics-table th,
.naics-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.naics-table th {
  font-family: var(--font-mono);
  font-size: var(--text-mono-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: rgba(6, 20, 38, 0.85);
}

.naics-table tr:last-child td {
  border-bottom: none;
}

.naics-table tr:hover td {
  background: rgba(255, 199, 44, 0.05);
}

/* Placeholder Marker Styling */
.placeholder-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-mono-xs);
  color: var(--gold-primary);
  background: rgba(255, 199, 44, 0.14);
  border: 1px dashed rgba(255, 199, 44, 0.55);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 2;
  background: rgba(6, 20, 38, 0.96);
  border-top: 1px solid rgba(255, 199, 44, 0.2);
  padding-top: var(--space-8);
  padding-bottom: var(--space-5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr 1.5fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: var(--text-mono-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-primary);
  margin-bottom: var(--space-2);
  display: block;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: var(--text-body-sm);
  color: var(--text-secondary);
}

/* ==========================================================================
   11. GUTENBERG / BLOCK EDITOR COMPATIBILITY
   ========================================================================== */
.entry-content > * + * {
  margin-top: var(--space-3);
}

.alignwide {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (1440 / 1200 / 768 / 390)
   ========================================================================== */

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) {
  .l2i-container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .l2i-grid-4,
  .pipeline-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .l2i-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8 {
    grid-column: span 6;
  }
}

/* Mobile (< 768px) */
@media (max-width: 767px) {
  .l2i-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .l2i-section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 20, 38, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--gold-border);
    padding: var(--space-3);
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .l2i-grid-2,
  .l2i-grid-3,
  .l2i-grid-4,
  .pipeline-flow,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .col-span-4,
  .col-span-5,
  .col-span-6,
  .col-span-7,
  .col-span-8,
  .col-span-12 {
    grid-column: span 12;
  }

  .cert-strip__inner {
    justify-content: center;
    text-align: center;
  }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
