/* ============================================
   FirmBit Design System — styles.css
   ============================================ */

/* 1. Tokens */
:root {
  --fb-primary:        #D97859;
  --fb-primary-deep:   #B85F42;
  --fb-primary-soft:   #E89A82;
  --fb-secondary:      #EEECE8;
  --fb-secondary-warm: #E5E1D8;
  --fb-secondary-deep: #D6D1C5;

  --fb-ink:            #17130F;
  --fb-ink-soft:       #2B2520;
  --fb-stone:          #6B6055;
  --fb-stone-soft:     #9A9186;
  --fb-hairline:       rgba(23,19,15,0.08);
  --fb-hairline-strong:rgba(23,19,15,0.15);

  --fb-ink-hairline:       rgba(238,236,232,0.10);
  --fb-ink-hairline-strong:rgba(238,236,232,0.20);

  --fb-verified:      #2A3D2E;
  --fb-alert:         #A33A2A;

  --fb-display: 'Fraunces', 'Times New Roman', serif;
  --fb-sans:    'Inter Tight', 'Inter', system-ui, sans-serif;
  --fb-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fb-r-sm: 6px;
  --fb-r-md: 10px;
  --fb-r-lg: 16px;
  --fb-r-xl: 24px;

  --fb-shadow-sm: 0 1px 2px rgba(23,19,15,.06), 0 1px 0 rgba(23,19,15,.04);
  --fb-shadow-md: 0 4px 16px -4px rgba(23,19,15,.10), 0 2px 4px rgba(23,19,15,.04);
  --fb-shadow-lg: 0 24px 48px -12px rgba(23,19,15,.18), 0 4px 8px rgba(23,19,15,.05);
}

/* 2. Reset + Base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--fb-sans);
  color: var(--fb-ink);
  background: var(--fb-secondary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
p  { margin: 0; }
h1, h2, h3, h4 { margin: 0; }

/* 3. Typography utilities */
.fb-display {
  font-family: var(--fb-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
}
.fb-mono {
  font-family: var(--fb-mono);
  font-feature-settings: "ss01";
}
.fb-eyebrow {
  font-family: var(--fb-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fb-stone);
  font-weight: 500;
}
.fb-em-primary {
  font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  color: var(--fb-primary);
}

/* 4. Buttons */
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--fb-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.2,0.8,0.2,1);
  text-decoration: none;
  white-space: nowrap;
}
.fb-btn-primary {
  background: var(--fb-primary);
  color: #fff;
}
.fb-btn-primary:hover {
  background: var(--fb-primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(217,120,89,.5);
}
.fb-btn-ghost {
  background: transparent;
  color: var(--fb-ink);
  border-color: var(--fb-hairline-strong);
}
.fb-btn-ghost:hover {
  border-color: var(--fb-ink);
  background: rgba(23,19,15,.03);
}
.fb-btn-dark {
  background: var(--fb-ink);
  color: var(--fb-secondary);
}
.fb-btn-dark:hover {
  background: #000;
  transform: translateY(-1px);
}
.fb-btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.35);
}
.fb-btn-outline-light:hover {
  background: rgba(255,255,255,.1);
}

/* 5. Wordmark */
.fb-wordmark {
  font-family: var(--fb-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0, "opsz" 144;
  color: var(--fb-primary);
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-decoration: none;
}
.fb-wordmark .firm { font-weight: 500; }
.fb-wordmark .bit  { font-weight: 600; }

/* 6. Navigation */
.fb-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 56px;
  border-bottom: 1px solid var(--fb-hairline);
  position: sticky;
  top: 0;
  background: var(--fb-secondary);
  z-index: 50;
  backdrop-filter: blur(12px);
}
.fb-nav.dark {
  background: var(--fb-ink);
  border-bottom-color: var(--fb-ink-hairline);
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--fb-ink);
  letter-spacing: -0.005em;
  opacity: 0.85;
  transition: opacity 150ms;
}
.nav-links a:hover { opacity: 1; }
.fb-nav.dark .nav-links a { color: var(--fb-secondary); }
.nav-ctas {
  display: flex;
  gap: 10px;
  align-items: center;
}
.fb-nav.dark .fb-btn-ghost {
  color: var(--fb-secondary);
  border-color: var(--fb-ink-hairline-strong);
}

/* 7. Footer */
.fb-footer {
  background: var(--fb-ink);
  color: var(--fb-secondary);
  padding: 72px 56px 40px;
}
.fb-footer.light {
  background: var(--fb-secondary-warm);
  color: var(--fb-ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-tagline {
  margin-top: 20px;
  color: rgba(238,236,232,.55);
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
}
.fb-footer.light .footer-tagline { color: var(--fb-stone); }
.footer-badges {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-badge {
  font-family: var(--fb-mono);
  font-size: 10px;
  padding: 4px 8px;
  border: 1px solid rgba(238,236,232,.2);
  border-radius: 4px;
  color: rgba(238,236,232,.55);
  letter-spacing: 0.06em;
}
.fb-footer.light .footer-badge {
  border-color: var(--fb-hairline-strong);
  color: var(--fb-stone);
}
.footer-col-title {
  font-family: var(--fb-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238,236,232,.55);
  font-weight: 500;
  margin-bottom: 16px;
}
.fb-footer.light .footer-col-title { color: var(--fb-stone); }
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-links a {
  color: var(--fb-secondary);
  font-size: 14px;
  opacity: 0.82;
  transition: opacity 150ms;
}
.footer-col-links a:hover { opacity: 1; }
.fb-footer.light .footer-col-links a { color: var(--fb-ink); }
.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(238,236,232,.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(238,236,232,.55);
}
.fb-footer.light .footer-bottom {
  border-top-color: var(--fb-hairline);
  color: var(--fb-stone);
}
.footer-status {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6FCF97;
  box-shadow: 0 0 8px #6FCF97;
}

/* 8. Trust Marquee */
.trust-marquee {
  overflow: hidden;
  border-top: 1px solid var(--fb-hairline);
  border-bottom: 1px solid var(--fb-hairline);
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: fb-marquee 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-size: 12px;
  color: var(--fb-stone);
  letter-spacing: 0.02em;
}
.marquee-diamond {
  color: var(--fb-primary);
  margin-right: 12px;
}

/* 9. Pulse dot */
.pulse-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fb-primary);
  animation: fb-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.pulse-dot.green {
  background: #6FCF97;
  box-shadow: 0 0 8px #6FCF97;
}

/* 10. Page hero shared */
.page-hero {
  padding: 80px 56px 56px;
}
.page-hero-eyebrow { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--fb-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 112px;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--fb-ink);
}
.page-hero p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--fb-ink-soft);
  max-width: 640px;
  margin-top: 28px;
}

/* 11. Section utilities */
.section-pad { padding: 120px 56px; }
.section-pad-bottom { padding: 0 56px 120px; }
.section-label {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  margin-bottom: 64px;
}
.section-h2 {
  font-family: var(--fb-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 56px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 16px;
}

/* 12. Card grid utilities */
.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--fb-hairline-strong);
  border: 1px solid var(--fb-hairline-strong);
  border-radius: var(--fb-r-lg);
  overflow: hidden;
}
.card-grid-4 .card {
  background: var(--fb-secondary);
  padding: 32px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
}
.card-tag {
  font-family: var(--fb-mono);
  font-size: 11px;
  color: var(--fb-primary);
  letter-spacing: 0.08em;
}

/* 13. Dark stat block */
.stat-block {
  background: var(--fb-ink);
  border-radius: var(--fb-r-xl);
  padding: 72px 56px;
  color: var(--fb-secondary);
  position: relative;
  overflow: hidden;
}
.stat-block-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.stat-h2 {
  font-family: var(--fb-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 16px 0 32px;
}
.stat-sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(238,236,232,.72);
  max-width: 440px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.stat-cell {
  padding: 32px 0;
}
.stat-cell:nth-child(n+3) { border-top: 1px solid var(--fb-ink-hairline); }
.stat-cell:nth-child(odd)  { padding-right: 32px; }
.stat-cell:nth-child(even) {
  padding-left: 32px;
  border-left: 1px solid var(--fb-ink-hairline);
}
.stat-num {
  font-family: var(--fb-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 72px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.stat-label { margin-top: 12px; font-size: 14px; font-weight: 500; }
.stat-sub2  { margin-top: 4px; font-size: 12px; color: rgba(238,236,232,.6); }

/* 14. Process timeline */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  position: relative;
  padding-top: 32px;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--fb-ink);
}
.process-step::after {
  content: '';
  position: absolute;
  top: -6px; left: 0;
  width: 12px; height: 12px;
  background: var(--fb-primary);
  border-radius: 50%;
}
.process-day {
  font-family: var(--fb-mono);
  font-size: 11px;
  color: var(--fb-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.process-title {
  font-family: var(--fb-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
}
.process-body { font-size: 14px; color: var(--fb-stone); line-height: 1.5; }

/* 15. CTA banner */
.cta-banner {
  background: var(--fb-primary);
  border-radius: var(--fb-r-xl);
  padding: 88px 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 85% 50%, rgba(255,255,255,.18), transparent 60%);
}
.cta-banner-inner {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-h2 {
  font-family: var(--fb-display);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
  margin: 12px 0 24px;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-note {
  font-family: var(--fb-mono);
  font-size: 11px;
  text-align: center;
  opacity: 0.75;
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* 16. Threat Ticker */
.threat-ticker {
  background: var(--fb-ink);
  color: var(--fb-secondary);
  border-radius: var(--fb-r-lg);
  padding: 20px;
  font-family: var(--fb-mono);
  font-size: 12px;
  border: 1px solid var(--fb-ink-hairline-strong);
  box-shadow: var(--fb-shadow-lg);
}
.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--fb-ink-hairline);
}
.ticker-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ticker-label { opacity: 0.6; letter-spacing: 0.06em; }
.ticker-time  { opacity: 0.5; }
.ticker-feed  { display: flex; flex-direction: column; gap: 8px; }
.ticker-row {
  display: grid;
  grid-template-columns: 56px 72px 1fr 88px;
  gap: 10px;
  align-items: center;
}
.ticker-sev   { text-transform: uppercase; font-weight: 600; letter-spacing: 0.08em; }
.ticker-type  { opacity: 0.85; }
.ticker-target{ opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticker-status-ok { color: #6FCF97; text-align: right; }
.ticker-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fb-ink-hairline);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.55;
}

/* 17. Hero layout */
.hero-section { padding: 72px 56px 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(217,120,89,.12);
  margin-bottom: 32px;
}
.hero-badge-text {
  font-size: 11px;
  color: var(--fb-primary-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.hero-h1 {
  font-size: 88px;
  line-height: 0.94;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--fb-ink);
}
.hero-sub {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--fb-ink-soft);
  max-width: 540px;
  letter-spacing: -0.01em;
}
.hero-ctas {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.hero-cta-btn { padding: 14px 22px !important; font-size: 15px !important; }
.hero-proof {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  color: var(--fb-stone);
  font-size: 13px;
}
.hero-right { display: flex; flex-direction: column; gap: 16px; }
.hero-widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.widget-coverage {
  padding: 20px;
  background: var(--fb-secondary-warm);
  border-radius: var(--fb-r-lg);
  border: 1px solid var(--fb-hairline);
}
.widget-coverage-text {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 8px;
  line-height: 1;
}
.widget-coverage-sub { margin-top: 10px; font-size: 12px; color: var(--fb-stone); }
.widget-time {
  padding: 20px;
  border-radius: var(--fb-r-lg);
  background: var(--fb-primary);
  color: #fff;
}
.widget-time-label { font-size: 11px; opacity: 0.8; letter-spacing: 0.06em; text-transform: uppercase; }
.widget-time-number {
  font-size: 60px;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-top: 8px;
  line-height: 1;
}
.widget-time-number span { font-size: 24px; }
.widget-time-sub { margin-top: 10px; font-size: 12px; opacity: 0.85; }

/* 18. Animations */
@keyframes fb-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes fb-pulse {
  0%,100% { opacity: 1;    transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

/* ============================================
   19. Social Icons
   ============================================ */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(238,236,232,.2);
  color: rgba(238,236,232,.55);
  transition: border-color 150ms, color 150ms, background 150ms;
  flex-shrink: 0;
}
.social-link svg { width: 15px; height: 15px; display: block; }
.social-link:hover {
  border-color: var(--fb-primary);
  color: var(--fb-primary);
  background: rgba(217,120,89,.08);
}
.fb-footer.light .social-link {
  border-color: var(--fb-hairline-strong);
  color: var(--fb-stone);
}
.fb-footer.light .social-link:hover {
  border-color: var(--fb-primary);
  color: var(--fb-primary);
  background: rgba(217,120,89,.08);
}

/* Trust marquee — pause on hover */
.trust-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ============================================
   20. Hamburger + Mobile Nav
   ============================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--fb-r-sm);
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fb-ink);
  border-radius: 2px;
  transition: transform 220ms cubic-bezier(0.2,0.8,0.2,1), opacity 220ms;
  transform-origin: center;
}
.fb-nav.dark .nav-hamburger span { background: var(--fb-secondary); }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: 57px;
  bottom: 0;
  background: var(--fb-secondary);
  z-index: 48;
  padding: 20px 20px 40px;
  flex-direction: column;
  overflow-y: auto;
  border-top: 1px solid var(--fb-hairline);
}
.nav-mobile-menu.open { display: flex; }
.fb-nav.dark + .nav-mobile-menu {
  background: var(--fb-ink);
  border-top-color: var(--fb-ink-hairline);
}
.nav-mobile-link {
  display: block;
  font-family: var(--fb-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-size: 32px;
  font-weight: 400;
  color: var(--fb-ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--fb-hairline);
  letter-spacing: -0.025em;
  line-height: 1;
  transition: color 150ms;
}
.nav-mobile-link:hover { color: var(--fb-primary); }
.fb-nav.dark + .nav-mobile-menu .nav-mobile-link {
  color: var(--fb-secondary);
  border-bottom-color: var(--fb-ink-hairline);
}
.fb-nav.dark + .nav-mobile-menu .nav-mobile-link:hover { color: var(--fb-primary-soft); }
.nav-mobile-ctas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.nav-mobile-ctas .fb-btn {
  justify-content: center;
  padding: 16px 20px;
  font-size: 15px;
  width: 100%;
}

/* ============================================
   20. Responsive — Tablet (≤ 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .fb-nav { padding: 18px 32px; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }

  .hero-section { padding: 56px 32px 40px; }
  .hero-h1 { font-size: 64px; }
  .hero-sub { font-size: 17px; }

  .page-hero { padding: 60px 32px 44px; }
  .page-hero h1 { font-size: 80px; }

  .section-pad { padding: 80px 32px; }
  .section-pad-bottom { padding: 0 32px 80px; }

  .stat-block { padding: 52px 40px; }
  .stat-h2 { font-size: 54px; }
  .stat-num { font-size: 54px; }

  .cta-banner { padding: 64px 40px; }
  .cta-h2 { font-size: 54px; }

  .fb-footer { padding: 56px 32px 32px; }
  .footer-grid { gap: 32px; }

  /* 4-col inline grids → 2 col at tablet */
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Fraction-based 2-col inline layouts → 1 col at tablet */
  div[style*="grid-template-columns:1fr 1.6fr"],
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns:1.3fr 1fr"],
  div[style*="grid-template-columns: 1.3fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  /* Section side padding at tablet */
  section[style*="padding:80px 56px"],
  section[style*="padding:40px 56px"],
  section[style*="padding:0 56px"],
  section[style*="padding:120px 56px"] {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }
}

/* ============================================
   21. Responsive — Mobile (≤ 768px)
   ============================================ */
@media (max-width: 768px) {
  /* Nav */
  .fb-nav { padding: 14px 20px; }
  .nav-links,
  .nav-ctas { display: none !important; }
  .nav-hamburger { display: flex; }

  /* Section spacing */
  .section-pad { padding: 52px 20px; }
  .section-pad-bottom { padding: 0 20px 52px; }
  .page-hero { padding: 36px 20px 28px; }
  .hero-section { padding: 36px 20px 28px; }

  /* Typography */
  .hero-h1 { font-size: 40px; line-height: 1; }
  .hero-sub { font-size: 16px; max-width: 100%; }
  .page-hero h1 { font-size: 52px; }
  .page-hero p { font-size: 16px; margin-top: 20px; }
  .section-h2 { font-size: 34px; margin-top: 12px; }
  .stat-h2 { font-size: 36px; margin: 12px 0 20px; }
  .stat-num { font-size: 44px; }
  .cta-h2 { font-size: 36px; margin: 10px 0 16px; }
  .stat-sub { font-size: 15px; }

  /* Hero layout */
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-badge { margin-bottom: 20px; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-btn { justify-content: center !important; text-align: center; }
  .hero-proof { flex-wrap: wrap; gap: 8px 14px; font-size: 12px; }
  .hero-widgets { grid-template-columns: 1fr 1fr; }

  /* Section label */
  .section-label { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }

  /* Service cards — 1 col */
  .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-4 .card { min-height: auto; padding: 24px; }

  /* Stat block */
  .stat-block { padding: 36px 20px; border-radius: 16px; }
  .stat-block-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Process */
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }

  /* CTA banner */
  .cta-banner { padding: 40px 20px; border-radius: 16px; }
  .cta-banner-inner { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { align-items: stretch; }
  .cta-actions .fb-btn { justify-content: center; }

  /* Footer */
  .fb-footer { padding: 44px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; margin-top: 40px; }

  /* Threat ticker on mobile */
  .threat-ticker { font-size: 11px; padding: 16px; }
  .ticker-row { grid-template-columns: 44px 58px 1fr 72px; gap: 6px; }

  /* Trust marquee */
  .trust-marquee { padding: 14px 0; }

  /* ---- Inline-style layout overrides ---- */

  /* Contact page: section padding */
  section[style*="padding:80px 56px"] {
    padding: 36px 20px 56px !important;
  }
  /* Contact page: 2-col → stack */
  section[style*="padding:80px 56px"] > div[style*="grid-template-columns:1fr 1fr"],
  section[style*="padding:80px 56px"] > div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }
  /* Contact h1 96px */
  h1[style*="font-size:96px"] { font-size: 48px !important; line-height: 1 !important; }

  /* Golden-Fork hero h1 144px */
  h1[style*="font-size:144px"] { font-size: 56px !important; line-height: 0.96 !important; }
  /* Golden-Fork hero section padding */
  section[style*="padding:80px 56px 0"] {
    padding: 40px 20px 0 !important;
  }
  /* Golden-Fork hero paragraph */
  section[style*="padding:80px 56px 0"] p[style*="font-size:22px"] {
    font-size: 16px !important;
    margin-top: 20px !important;
  }
  /* Golden-Fork hero CTA row */
  section[style*="padding:80px 56px 0"] div[style*="display:flex;gap:12px;justify-content:center"] {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 20px !important;
  }
  section[style*="padding:80px 56px 0"] div[style*="display:flex;gap:12px;justify-content:center"] .fb-btn {
    justify-content: center !important;
  }

  /* 4-col inline grids → 1 col */
  div[style*="grid-template-columns:repeat(4,1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* 3-col inline grids → 1 col */
  div[style*="grid-template-columns:repeat(3,1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* 2-col inline grids → 1 col */
  div[style*="grid-template-columns:repeat(2,1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  /* 1fr 2fr process header → block */
  div[style*="grid-template-columns:1fr 2fr"],
  div[style*="grid-template-columns: 1fr 2fr"] { display: block !important; }
  /* 2fr 1fr → 1 col */
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }
  /* Fraction-based 2-col inline grids → 1 col */
  div[style*="grid-template-columns:1fr 1.6fr"],
  div[style*="grid-template-columns: 1fr 1.6fr"],
  div[style*="grid-template-columns:1.3fr 1fr"],
  div[style*="grid-template-columns: 1.3fr 1fr"],
  div[style*="grid-template-columns:1.2fr 1fr"],
  div[style*="grid-template-columns: 1.2fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Remaining 56px side padding sections → 20px */
  section[style*="padding:0 56px"],
  section[style*="padding:120px 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Case studies header flex row → column */
  div[style*="justify-content:space-between;align-items:baseline"],
  div[style*="justify-content: space-between; align-items: baseline"] {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: flex-start !important;
  }

  /* Generic 56px side padding → 20px */
  section[style*="padding:40px 56px"],
  div[style*="padding:40px 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  section[style*="padding:40px 56px 120px"] {
    padding: 32px 20px 56px !important;
  }

  /* Stat block inline padding */
  .stat-block[style],
  div[style*="padding:72px 56px"] { padding: 36px 20px !important; }
}

/* ============================================
   22. Responsive — Small mobile (≤ 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero-h1 { font-size: 32px; }
  .page-hero h1 { font-size: 40px; }
  .stat-h2 { font-size: 30px; }
  .stat-num { font-size: 36px; }
  .cta-h2 { font-size: 30px; }
  .section-h2 { font-size: 28px; }

  .hero-widgets { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .widget-coverage-text { font-size: 32px; }
  .widget-time-number { font-size: 44px; }

  h1[style*="font-size:96px"] { font-size: 38px !important; }
  h1[style*="font-size:144px"] { font-size: 44px !important; }

  /* Ticker compact */
  .ticker-row { grid-template-columns: 40px 52px 1fr; gap: 6px; }
  .ticker-status-ok { display: none; }
}
