/* ==========================================================================
   CS BUSINESS SOLUTIONS — DESIGN SYSTEM v2 "MIDNIGHT DEFENSE"
   Palette : Midnight Defense Blue #070D18 · Polished Brass #D4AF37 · Institutional Slate #1E293B
             · Precision Radar Emerald #10B981
   Type    : Plus Jakarta Sans (display) · Inter (body) · JetBrains Mono (data / HUD)
   Surface : glassmorphism — backdrop-filter: blur(16px) on every card
   ========================================================================== */

:root {
  /* ---- Core palette ---- */
  --midnight: #070D18;
  --midnight-900: #0A1220;
  --midnight-800: #0E1727;
  --midnight-700: #111C30;
  --slate: #1E293B;
  --slate-700: #263349;
  --slate-600: #334155;
  --brass: #D4AF37;
  --brass-light: #E8CB6A;
  --brass-deep: #A8862A;
  --emerald: #10B981;
  --emerald-light: #34D399;
  --emerald-deep: #047857;
  --emerald-glow: #6EE7B7;

  /* ---- Surfaces (Midnight Defense Blue) ---- */
  --bg-primary: var(--midnight);
  --bg-secondary: var(--midnight-900);
  --bg-tertiary: var(--midnight-700);
  --bg-card: rgba(30, 41, 59, 0.42);
  --bg-card-hover: rgba(38, 51, 73, 0.62);
  --bg-glass: rgba(14, 23, 39, 0.62);
  --bg-input: var(--midnight-900);
  --blur-glass: 16px;

  /* ---- Borders & glows ---- */
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(52, 211, 153, 0.35);
  --border-brass: rgba(212, 175, 55, 0.45);
  --border-silver: rgba(212, 175, 55, 0.35);        /* legacy alias -> brass */
  --border-emerald: rgba(16, 185, 129, 0.6);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.25);
  --glow-brass: 0 0 30px rgba(212, 175, 55, 0.22);
  --glow-silver: var(--glow-brass);                  /* legacy alias -> brass */
  --glow-cyan: 0 0 30px rgba(52, 211, 153, 0.2);

  /* ---- Text ---- */
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-inverse: var(--midnight);

  /* ---- Accents (legacy names retained) ---- */
  --accent-emerald: var(--emerald);
  --accent-emerald-light: var(--emerald-light);
  --accent-emerald-deep: var(--emerald-deep);
  --accent-emerald-glow: var(--emerald-glow);
  --accent-silver: #E2E8F0;
  --accent-silver-light: #FFFFFF;
  --accent-silver-dark: #94A3B8;
  --accent-platinum: #F1F5F9;
  --accent-blue: #38BDF8;
  --accent-rose: #F43F5E;
  --accent-gold: var(--brass);
  --accent-gold-light: var(--brass-light);
  --accent-gold-deep: var(--brass-deep);

  /* ---- Gradients ---- */
  --grad-primary: linear-gradient(135deg, #34D399 0%, #10B981 50%, #047857 100%);
  --grad-emerald: linear-gradient(135deg, #6EE7B7 0%, #10B981 50%, #047857 100%);
  --grad-brass: linear-gradient(135deg, #F3DF8F 0%, #D4AF37 48%, #A8862A 100%);
  --grad-gold: var(--grad-brass);
  --grad-silver: var(--grad-brass);                  /* legacy alias -> brass */
  --grad-platinum: linear-gradient(135deg, #FFFFFF 0%, #E2E8F0 50%, #94A3B8 100%);
  --grad-emerald-silver: linear-gradient(135deg, #34D399 0%, #E8CB6A 100%);
  --grad-dark-card: linear-gradient(180deg, rgba(30, 41, 59, 0.55) 0%, rgba(10, 18, 32, 0.92) 100%);
  --grad-hud: linear-gradient(90deg, rgba(52, 211, 153, 0.15) 0%, rgba(212, 175, 55, 0.15) 100%);

  /* ---- Shadows ---- */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.75);

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ---- Typography ---- */
  --font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: var(--font-heading);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --font-serif: 'Plus Jakarta Sans', serif;

  /* ---- Motion ---- */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(52, 211, 153, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-emerald);
}

a {
  color: var(--accent-emerald-light);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--accent-silver-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.mono {
  font-family: var(--font-mono);
}

.text-emerald {
  color: var(--accent-emerald-light);
}
.text-silver {
  color: var(--accent-silver);
}
.text-platinum {
  color: var(--accent-platinum);
}
.text-cyan {
  color: var(--accent-emerald-light);
}
.text-gold, .text-brass {
  color: var(--brass);
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-silver, .text-gradient-gold, .text-gradient-brass {
  background: var(--grad-brass);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-gradient-emerald {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==================== CONTAINER & UTILITIES ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: 1440px;
}

.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald-light);
  border: 1px solid var(--border-accent);
  margin-bottom: 1rem;
}

.badge-tag.silver, .badge-tag.gold {
  background: rgba(212, 175, 55, 0.1);
  color: var(--accent-silver-light);
  border-color: var(--border-silver);
}

.badge-tag.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-glow);
  border-color: var(--border-emerald);
}

.badge-tag.cyan {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-emerald-light);
  border-color: var(--border-accent);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary, .btn-emerald {
  background: var(--grad-primary);
  color: #070D18;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}
.btn-primary:hover, .btn-emerald:hover {
  box-shadow: 0 6px 30px rgba(52, 211, 153, 0.6);
  transform: translateY(-2px);
  color: #070D18;
}

.btn-silver, .btn-gold {
  background: var(--grad-silver);
  color: #070D18;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
}
.btn-silver:hover, .btn-gold:hover {
  box-shadow: 0 6px 30px rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  color: #070D18;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.7);
  color: var(--text-primary);
  border: 1px solid var(--border-silver);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--accent-emerald-light);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  border-color: var(--accent-emerald-light);
  color: #fff;
  background: rgba(16, 185, 129, 0.1);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* ==================== GLASS CARDS ==================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-emerald);
  transform: translateY(-4px);
}

.glass-card-static {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
}

/* ==================== HEADER & NAVBAR ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(7, 13, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  padding: 0.65rem 0;
  background: rgba(7, 13, 24, 0.98);
  border-bottom-color: rgba(52, 211, 153, 0.3);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-crest {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  color: #070D18;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.navbar .brand-logo-img,
.brand-logo-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid var(--border-silver);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
  display: block;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1080px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-emerald-light);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-emerald-light);
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.mobile-menu-toggle {
  display: block;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

@media (min-width: 1080px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(7, 13, 24, 0.98);
  backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--border-accent);
  padding: 2rem 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 999;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==================== TICKER BANNER ==================== */
.stats-ticker-bar {
  background: rgba(11, 20, 36, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 0;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ticker-wrap {
  display: flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
  gap: 3rem;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-item strong {
  color: var(--accent-emerald-light);
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.disclosure-bar {
  background: rgba(10, 18, 32, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.6rem 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.disclosure-bar a {
  color: var(--accent-emerald-light);
  text-decoration: underline;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.6rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.metric-card {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-emerald-light);
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

/* Hero HUD Interactive Visual */
.hero-hud-card {
  position: relative;
  background: var(--grad-dark-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--glow-emerald);
  backdrop-filter: blur(16px);
}

.hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.hud-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-emerald-light);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hud-image-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.hud-feed-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hud-feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 18, 32, 0.75);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-emerald);
  font-size: 0.85rem;
}

.hud-feed-row.silver {
  border-left-color: var(--accent-silver);
}

/* ==================== RFP OPPORTUNITY FINDER ==================== */
.rfp-finder-section {
  position: relative;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.finder-filter-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: var(--bg-tertiary);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .finder-filter-bar {
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
  }
}

.filter-input, .filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.filter-input:focus, .filter-select:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

.rfp-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .rfp-results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rfp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.rfp-card:hover {
  border-color: var(--accent-emerald);
  box-shadow: var(--glow-emerald);
  transform: translateY(-3px);
}

.rfp-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.rfp-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.rfp-agency-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid var(--border-accent);
  white-space: nowrap;
}

.rfp-card-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.rfp-meta-item strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.rfp-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* ==================== READINESS ASSESSMENT QUIZ ==================== */
.readiness-section {
  position: relative;
}

.diagnostic-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), var(--glow-emerald);
}

.quiz-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.quiz-stepper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-subtle);
  transform: translateY(-50%);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.step-node.active {
  background: var(--accent-emerald);
  border-color: #fff;
  color: #070D18;
  box-shadow: 0 0 15px var(--accent-emerald);
}

.step-node.completed {
  background: var(--accent-silver);
  border-color: #fff;
  color: #070D18;
}

.quiz-step-content {
  display: none;
}

.quiz-step-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.quiz-question-desc {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .quiz-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quiz-option-card {
  background: var(--bg-tertiary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.quiz-option-card:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 48, 39, 0.7);
}

.quiz-option-card.selected {
  border-color: var(--accent-emerald-light);
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 15px rgba(52, 211, 153, 0.25);
}

.option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-option-card.selected .option-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald-light);
}

.option-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.option-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.quiz-nav-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
}

/* Diagnostic Result Screen */
.result-card-box {
  text-align: center;
  padding: 1.5rem;
}

.score-gauge-wrapper {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.5rem;
}

.score-gauge-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(var(--accent-emerald) calc(var(--score-pct, 75) * 1%), var(--bg-tertiary) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

.score-inner-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-number {
  font-family: var(--font-mono);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.diagnostic-breakdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: left;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .diagnostic-breakdown-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.breakdown-card {
  background: var(--bg-secondary);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.breakdown-card.success {
  border-left: 4px solid var(--accent-emerald);
}
.breakdown-card.warning {
  border-left: 4px solid var(--accent-silver);
}
.breakdown-card.danger {
  border-left: 4px solid var(--accent-rose);
}

/* ==================== CAPABILITY STATEMENT BUILDER ==================== */
.capability-section {
  background: var(--bg-secondary);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .capability-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.builder-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
}

.form-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

/* Live Capability Statement Paper Preview (Contracting Officer 8.5x11 Format) */
.capability-sheet-preview {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  position: relative;
}

.sheet-header {
  border-bottom: 3px solid #047857;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.sheet-company-name {
  font-size: 20px;
  font-weight: 800;
  color: #0F3A2E;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.sheet-tagline {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

.sheet-codes-badge {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 11px;
  background: #f1f5f9;
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
}

.sheet-section {
  margin-bottom: 1.1rem;
}

.sheet-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  color: #047857;
  border-bottom: 1.5px solid #94a3b8;
  padding-bottom: 2px;
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.sheet-bullet-list {
  padding-left: 1.25rem;
  margin: 0;
}

.sheet-bullet-list li {
  margin-bottom: 3px;
  color: #334155;
}

.sheet-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sheet-corporate-data {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 8px;
  border-radius: 4px;
  font-size: 11px;
}

/* ==================== FAR BID WRAP RATE CALCULATOR ==================== */
.calculator-section {
  position: relative;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .calc-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.slider-group {
  margin-bottom: 1.5rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.slider-header label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-value-display {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
}

input[type=range] {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  outline: none;
  -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-emerald-light);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-emerald-light);
  transition: transform var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.calc-result-summary {
  background: var(--grad-dark-card);
  border: 1px solid var(--border-silver);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glow-silver);
}

.summary-metric-large {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.summary-rate-number {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-silver-light);
  line-height: 1.1;
}

.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.calc-breakdown-row strong {
  font-family: var(--font-mono);
  color: var(--text-primary);
}

/* ==================== SERVICES GRID ==================== */
.services-section {
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  border-color: var(--accent-emerald-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), var(--glow-emerald);
}

.service-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-emerald-light);
  margin-bottom: 1.5rem;
}

.service-card.silver .service-icon-wrapper, .service-card.gold .service-icon-wrapper {
  background: rgba(212, 175, 55, 0.1);
  border-color: var(--border-silver);
  color: var(--accent-silver-light);
}

.service-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-card-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.service-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.service-feature-list li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
}

/* ==================== PRICING & PROGRAM CARDS ==================== */
.pricing-section {
  position: relative;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.pricing-card:hover {
  border-color: var(--accent-emerald-light);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--glow-emerald);
}

.pricing-card.featured {
  border: 2px solid var(--accent-emerald);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 26, 46, 0.9) 100%);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.25);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-emerald);
  color: #070D18;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
}

.pricing-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pricing-features li svg {
  color: var(--accent-emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==================== LOGO OPTIONS SHOWCASE ==================== */
.logo-showcase-section {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.08) 0%, rgba(7, 13, 24, 0.95) 70%);
  position: relative;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.logo-option-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-md);
  position: relative;
}

.logo-option-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-emerald);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.2);
}

.logo-option-card.active-brand {
  border: 2px solid var(--accent-emerald);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), inset 0 0 15px rgba(16, 185, 129, 0.1);
}

.logo-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-emerald);
  color: #34d399;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.logo-preview-canvas {
  background: radial-gradient(circle at center, #111C30 0%, #070D18 100%);
  padding: 2.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 260px;
  position: relative;
}

.logo-preview-canvas img {
  max-width: 220px;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
  transition: transform 0.4s ease;
}

.logo-option-card:hover .logo-preview-canvas img {
  transform: scale(1.05);
}

.logo-details {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.logo-subtitle {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-emerald);
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logo-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.logo-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.logo-actions .btn {
  flex: 1;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

/* ==================== STRATEGY INTAKE FORM ==================== */
.consultation-section {
  background: var(--bg-secondary);
}

.intake-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl), var(--glow-emerald);
}

.intake-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .intake-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ==================== FAQ ACCORDION ==================== */
.faq-section {
  position: relative;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.active {
  border-color: var(--accent-emerald-light);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
}

.faq-toggle-icon {
  font-size: 1.25rem;
  color: var(--accent-emerald-light);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.5rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: #04080F;
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1rem 0;
}

.footer-col h5 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-emerald-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.compliance-pill {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-secondary);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success {
  border-color: var(--accent-emerald);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}


/* ==================== DESIGN SYSTEM v2 — GLASS SURFACES ==================== */
.glass-card, .glass-card-static, .hero-hud-card, .pricing-card, .price-card, .service-card, .faq-item,
.rfp-card, .quiz-card, .calc-card, .form-card, .metric-card-glass {
  backdrop-filter: blur(var(--blur-glass)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(140%);
}
.glass-card::before, .price-card::before, .hero-hud-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 40%);
}
.glass-card:hover { background: var(--bg-card-hover); }

/* focus ring — brass, visible for keyboard users only */
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 2000;
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  background: var(--brass); color: var(--midnight); font-weight: 700;
  transition: top var(--transition-fast);
}
.skip-link:focus { top: 1rem; }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

/* ==================== BUTTONS — BRASS PRIMARY, SHEEN MICRO-INTERACTION ==================== */
.btn { position: relative; overflow: hidden; isolation: isolate; will-change: transform; }
.btn::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease-out-expo);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-silver, .btn-gold, .btn-brass {
  background: var(--grad-brass);
  color: var(--midnight);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.22);
  font-weight: 700;
}
.btn-silver:hover, .btn-gold:hover, .btn-brass:hover {
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
  color: var(--midnight);
}
.btn-secondary { background: rgba(30, 41, 59, 0.55); border-color: rgba(212, 175, 55, 0.35); }
.btn-secondary:hover { background: rgba(212, 175, 55, 0.12); border-color: var(--brass); color: #fff; }

.badge-tag.silver, .badge-tag.gold, .badge-tag.brass {
  background: rgba(212, 175, 55, 0.12);
  color: var(--brass-light);
  border-color: var(--border-brass);
}

/* ==================== HERO — COMMAND-CENTER HUD ==================== */
.hero-section {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(16, 185, 129, 0.10) 0%, transparent 60%);
}
.hero-title { font-family: var(--font-heading); font-weight: 800; letter-spacing: -0.035em; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-light); margin-bottom: 1rem;
}
.hero-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.metric-value { color: var(--brass-light); font-variant-numeric: tabular-nums; }
.metric-card { padding-left: 0.9rem; border-left: 2px solid rgba(212, 175, 55, 0.35); }

.hero-hud-card {
  border-color: var(--border-brass);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.08), var(--glow-brass);
  overflow: hidden;
}
.hud-status-indicator { color: var(--emerald-light); letter-spacing: 0.08em; }
.hud-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: var(--midnight-900);
}
.hud-visual img, .hud-visual picture { width: 100%; height: 100%; object-fit: cover; display: block; }
.hud-visual img { filter: saturate(0.92) contrast(1.05); transition: transform 1.2s var(--ease-out-expo), filter 0.6s ease; }
.hero-hud-card:hover .hud-visual img { transform: scale(1.03); filter: saturate(1) contrast(1.08); }
.hud-overlay { position: absolute; inset: 0; pointer-events: none; }
.hud-overlay::before {
  /* vignette + midnight tint so the HUD chips stay legible */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 13, 24, 0.45) 0%, rgba(7, 13, 24, 0) 35%, rgba(7, 13, 24, 0) 60%, rgba(7, 13, 24, 0.7) 100%),
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 55%, rgba(7, 13, 24, 0.55) 100%);
}
.hud-grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(52, 211, 153, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 211, 153, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 100%);
}
.hud-scanline {
  position: absolute; left: 0; right: 0; top: -20%; height: 18%;
  background: linear-gradient(180deg, transparent 0%, rgba(52, 211, 153, 0.14) 50%, transparent 100%);
  border-bottom: 1px solid rgba(52, 211, 153, 0.45);
  animation: hud-scan 6s linear infinite;
}
@keyframes hud-scan { 0% { top: -20%; } 100% { top: 110%; } }
.hud-corner {
  position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--brass); opacity: 0.9;
}
.hud-corner.tl { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.hud-chip {
  position: absolute;
  display: flex; flex-direction: column; gap: 2px;
  padding: 0.4rem 0.6rem;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  line-height: 1.2;
  animation: hud-chip-in 0.8s var(--ease-out-expo) both;
}
.hud-chip-label { font-size: 0.58rem; letter-spacing: 0.16em; color: var(--brass-light); text-transform: uppercase; }
.hud-chip-value { font-size: 0.72rem; color: #fff; display: flex; align-items: center; gap: 0.4rem; }
.hud-chip.tl { top: 14px; left: 14px; animation-delay: 0.1s; }
.hud-chip.tr { top: 14px; right: 14px; text-align: right; animation-delay: 0.25s; }
.hud-chip.bl { bottom: 14px; left: 14px; animation-delay: 0.4s; }
.hud-chip.br { bottom: 14px; right: 14px; text-align: right; animation-delay: 0.55s; }
.hud-chip.tr .hud-chip-value, .hud-chip.br .hud-chip-value { justify-content: flex-end; }
@keyframes hud-chip-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hud-meter { width: 54px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hud-meter i { display: block; height: 100%; width: var(--pct, 0%); background: var(--grad-emerald); animation: hud-meter 1.6s var(--ease-out-expo) 0.6s both; }
@keyframes hud-meter { from { width: 0; } }
.hud-live { color: var(--emerald-light); }
.hud-live::before { content: "●"; margin-right: 0.3rem; animation: pulse 2s infinite; }
.hud-caption {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  font-family: var(--font-heading); font-size: 0.72rem; /* overridden below */ font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-primary); white-space: nowrap;
  padding: 0.3rem 0.75rem; border-radius: var(--radius-full);
  background: rgba(7, 13, 24, 0.7); border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}
/* lower-third caption strip; the two lower chips sit above it */
.hud-caption {
  left: 0; right: 0; bottom: 0; transform: none; border-radius: 0; border: 0; border-top: 1px solid rgba(212, 175, 55, 0.25);
  padding: 0.35rem 0.75rem; text-align: center; white-space: normal;
  background: linear-gradient(180deg, rgba(7, 13, 24, 0.55) 0%, rgba(7, 13, 24, 0.9) 100%);
}
.hud-chip.bl, .hud-chip.br { bottom: 42px; }
.hud-corner.bl, .hud-corner.br { bottom: 38px; }
.hud-feed-row .badge-tag { white-space: nowrap; }
.hud-feed-row { background: rgba(10, 18, 32, 0.7); border-left-color: var(--emerald); transition: transform var(--transition-fast), background var(--transition-fast); }
.hud-feed-row:hover { transform: translateX(3px); background: rgba(30, 41, 59, 0.6); }
.hud-feed-row.silver, .hud-feed-row.brass { border-left-color: var(--brass); }
.hud-feed-row.slate { border-left-color: var(--slate-600); }

/* ==================== PROFIT LADDER (5 RUNGS) ==================== */
.ladder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  counter-reset: rung;
}
@media (min-width: 720px) { .ladder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .ladder-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }

.price-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.4rem;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
}
.price-card::after {
  /* rung accent bar — climbs the ladder */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald) 0%, var(--brass) 100%);
  opacity: 0.55; transition: opacity var(--transition-fast);
}
.price-card:hover { transform: translateY(-6px); border-color: var(--border-brass); box-shadow: var(--shadow-lg), var(--glow-brass); background: var(--bg-card-hover); }
.price-card:hover::after { opacity: 1; }
.price-card.featured { border-color: var(--brass); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.25), var(--glow-brass); background: linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(30, 41, 59, 0.5) 100%); }
.price-card.featured::after { opacity: 1; height: 4px; }
.price-rung {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.4rem;
}
.price-rung::before { counter-increment: rung; content: "Rung 0" counter(rung) " · "; color: var(--brass); }
.price-tier {
  display: inline-block; align-self: flex-start;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--emerald-glow); background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.22rem 0.6rem; border-radius: var(--radius-full); margin-bottom: 0.85rem;
}
.price-card.featured .price-tier { color: var(--brass-light); background: rgba(212, 175, 55, 0.12); border-color: var(--border-brass); }
.price-card h3 { font-size: 1.08rem; line-height: 1.25; min-height: 2.6em; margin-bottom: 0.5rem; }
.price-amount {
  font-family: var(--font-heading); font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em;
  color: #fff; line-height: 1.05; font-variant-numeric: tabular-nums;
}
.price-amount span, .price-amount-alt span { display: block; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.06em; color: var(--text-muted); text-transform: uppercase; margin-top: 0.2rem; }
.price-amount-alt { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 700; color: var(--brass-light); margin-top: 0.35rem; }
.price-card > p { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.55; margin: 0.9rem 0; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex-grow: 1; }
.price-card ul li { position: relative; padding-left: 1.15rem; font-size: 0.8rem; color: var(--text-secondary); line-height: 1.45; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--emerald-light); font-weight: 700; }
.price-band {
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.9rem; padding-top: 0.75rem; border-top: 1px dashed var(--border-subtle);
}
.price-band i { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 8px var(--emerald); }
.price-card[data-band="hot"] .price-band i { background: var(--brass); box-shadow: 0 0 8px var(--brass); }
.price-card[data-band="vip"] .price-band i { background: #fff; box-shadow: 0 0 8px var(--brass-light); }
.price-card .btn { width: 100%; justify-content: center; }
.price-pay { display: block; margin-top: 0.6rem; text-align: center; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--brass-light); }
.price-pay:hover { color: #fff; text-decoration: underline; }
.price-pay[hidden] { display: none; }

.ladder-addon {
  margin-top: 1.5rem;
  display: grid; grid-template-columns: 1fr; gap: 1rem; align-items: center;
  padding: 1.25rem 1.5rem;
  background: rgba(30, 41, 59, 0.35); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass));
}
@media (min-width: 900px) { .ladder-addon { grid-template-columns: auto 1fr auto; } }
.ladder-addon .price-amount { font-size: 1.5rem; }
.ladder-addon p { font-size: 0.86rem; color: var(--text-secondary); margin: 0; }

.how-we-work { margin-top: 3rem; padding: 2rem; border-radius: var(--radius-lg); background: rgba(30, 41, 59, 0.3); border: 1px solid var(--border-subtle); backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass)); }
.how-we-work h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.how-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .how-grid { grid-template-columns: repeat(4, 1fr); } }
.how-grid strong { display: block; color: var(--brass-light); margin-bottom: 0.35rem; font-family: var(--font-heading); }
.how-grid p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

/* ==================== MICRO-INTERACTIONS ==================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }
.navbar { background: rgba(7, 13, 24, 0.82); }
.navbar.scrolled { background: rgba(7, 13, 24, 0.96); border-bottom-color: rgba(212, 175, 55, 0.3); }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--brass); transition: right var(--transition-normal); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 1001; background: linear-gradient(90deg, var(--emerald), var(--brass)); pointer-events: none; }
.form-control:focus { border-color: var(--brass); box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }

/* sticky mobile CTA */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
  display: none; gap: 0.6rem; padding: 0.6rem 0.9rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(7, 13, 24, 0.92); border-top: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass));
  transform: translateY(100%); transition: transform var(--transition-smooth);
}
.mobile-cta.show { transform: none; }
.mobile-cta .btn { flex: 1; justify-content: center; }
@media (max-width: 767px) { .mobile-cta { display: flex; } body { padding-bottom: 0; } }

/* ==================== MOBILE RESPONSIVENESS ==================== */
@media (max-width: 767px) {
  .hero-section { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-title { font-size: 2.15rem; }
  .hero-description { font-size: 1.02rem; }
  .hero-metrics { grid-template-columns: 1fr; gap: 1rem; }
  .metric-value { font-size: 1.5rem; }
  .hud-header { flex-wrap: wrap; gap: 0.5rem; }
  .hud-chip.bl, .hud-chip.br { display: none; }
  .hud-caption { display: none; }
  .hero-hud-card { padding: 1rem; }
  .section-title { font-size: 1.9rem; }
  .price-card h3 { min-height: 0; }
}
@media (max-width: 480px) {
  .hud-chip { padding: 0.3rem 0.45rem; }
  .hud-chip-value { font-size: 0.64rem; }
  .btn-lg { width: 100%; justify-content: center; }
}
@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; }
  .reveal { opacity: 1; transform: none; }
  .hud-scanline { display: none; }
}
@supports not (backdrop-filter: blur(1px)) {
  .glass-card, .price-card, .hero-hud-card, .how-we-work, .ladder-addon { background: rgba(14, 23, 39, 0.94); }
}


/* ==================== MOBILE OVERFLOW GUARDS ==================== */
.hero-grid > *, .capability-grid > *, .calc-grid > *, .form-group-row > *, .services-grid > *, .ladder-grid > *,
.quiz-grid > *, .rfp-grid > *, .how-grid > *, .faq-grid > *, .nav-container > *, .intake-grid > * { min-width: 0; }
.form-control, input[type="range"], select, textarea { max-width: 100%; min-width: 0; }
input[type="range"] { width: 100%; }
.brand-info { min-width: 0; }
.brand-tagline { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1079px) {
  .nav-actions .btn { display: none; }        /* the CTA lives in the drawer and the sticky mobile bar */
  .nav-actions { gap: 0.5rem; }
}
@media (max-width: 767px) {
  .form-group-row { grid-template-columns: 1fr; }
  .calc-card, .builder-form-wrapper, .capability-sheet-preview, .intake-box { padding: 1.25rem; }
  .intake-box h2 { font-size: 1.7rem !important; }
  .intake-grid > * { min-width: 0; }
  .slider-header { flex-wrap: wrap; gap: 0.35rem; }
  .slider-header label { white-space: normal; }
  .section-padding { padding-left: 0; padding-right: 0; }
}
@media (max-width: 479px) {
  .brand-tagline { display: none; }
  .brand-name { font-size: 1rem; }
}
@media (min-width: 1080px) and (max-width: 1439px) {
  .nav-links { gap: 0.9rem; }
  .nav-link { font-size: 0.86rem; }
  .brand-tagline { display: none; }
}


/* ==================== 320 px VIEWPORT GUARDS ==================== */
html { overflow-x: clip; }   /* belt and braces: no horizontal pan on iOS even if a pseudo-element overflows */
@media (max-width: 359px) {
  .brand-name { font-size: 0.82rem; letter-spacing: 0; }
  .brand-logo { gap: 0.5rem; }
  .nav-container { gap: 0.5rem; }
  .mobile-menu-toggle { width: 36px; height: 36px; }
  .sheet-header, .sheet-codes-badge { white-space: normal; text-align: left; }
  .sheet-codes-badge { display: block; margin-top: 6px; max-width: 100%; word-break: break-word; }
  .logo-option-card { padding: 1.25rem 0.9rem; min-width: 0; }
  .logo-preview-canvas { max-width: 100%; }
  .logo-preview-canvas img { max-width: 100%; }
  .container, .container-wide { padding-left: 0.9rem; padding-right: 0.9rem; }
  .price-amount { font-size: 1.8rem; }
}

/* ==================== PRINT STYLES (one-page capability statement) ==================== */
@page { size: Letter portrait; margin: 0.5in; }
@media print {
  html, body { background: #fff !important; height: auto !important; }
  body > *:not(.print-root) { display: none !important; }
  .print-root, .print-root * { display: revert; }
  #capability-sheet-preview {
    position: static !important; width: 7.5in !important; max-height: 10in !important; overflow: hidden !important;
    margin: 0 !important; padding: 0 !important; box-shadow: none !important; border: 0 !important;
    font-size: 10.5px !important; line-height: 1.3 !important; color: #000 !important;
    page-break-inside: avoid; break-inside: avoid;
  }
  #capability-sheet-preview .sheet-section { page-break-inside: avoid; break-inside: avoid; margin-bottom: 8px !important; }
  #capability-sheet-preview ul { margin: 2px 0 !important; padding-left: 16px !important; }
  #capability-sheet-preview .sheet-company-name { font-size: 18px !important; }
  a[href]:after { content: none !important; }
}
