@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* =========================================================
   APIRE Design System — single source of truth
   ========================================================= */

:root {
  /* Color tokens */
  --bg-base: #000000;
  --bg-surface: #0a0a0f;
  --bg-card: #0f0f1a;
  --bg-card-hover: #141428;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(139, 92, 246, 0.4);

  --purple-primary: #7c3aed;
  --purple-bright: #8b5cf6;
  --purple-light: #a78bfa;
  --cyan-accent: #06b6d4;
  --cyan-bright: #22d3ee;
  --blue-accent: #2563eb;
  --emerald-accent: #10b981;

  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #06b6d4 100%);
  --gradient-brand: linear-gradient(135deg, #8b5cf6, #06b6d4);
  --gradient-cta: linear-gradient(135deg, #7c3aed, #5b21b6);

  /* Font stacks */
  --font-display: 'Poppins', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Typography scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: clamp(2.5rem, 6vw, 4rem);
  --text-hero: clamp(2.8rem, 7vw, 5rem);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow {
  max-width: 800px !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

@media (max-width: 768px) {
  .container-narrow {
    padding: 0 20px !important;
    max-width: 100% !important;
  }
}
section { padding: 96px 0; position: relative; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Card (base — overridden by V13 rules below) */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: var(--gradient-cta);
  color: white; font-weight: 600; font-size: 0.9rem;
  border: none; border-radius: 8px; cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  background: transparent;
  color: white; font-weight: 600; font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 8px;
  cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

/* Eyebrow badge (base — overridden below) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.08);
  margin-bottom: 16px;
}
.eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple-bright);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* Stat card (base — overridden below) */
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px 32px;
  text-align: center;
}
/* .stat-number — defined as definitive rule at end of file */
.stat-label {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-top: 4px;
}

/* Feature icon box */
.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--purple-light);
}

/* Gradient text */
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section heading */
.section-heading {
  font-size: var(--text-6xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  max-width: 640px;
  line-height: 1.7;
}
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* Ambient glows */
.glow-purple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15), transparent 70%);
  filter: blur(60px);
}
.glow-cyan {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
  filter: blur(60px);
}

/* Scroll reveal (overridden in V13 block) */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero background animation */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; z-index: 0;
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: wave-drift 12s ease-in-out infinite;
}
.hero-wave.delay-1 { animation-delay: -4s; }
.hero-wave.delay-2 { animation-delay: -8s; }
@keyframes wave-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(0.95); }
}

/* =========================================================
   Navigation
   ========================================================= */
.site-nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.1rem; letter-spacing: 0.04em;
  color: white;
}
.nav-logo-mark {
  width: 22px; height: 22px;
  background: var(--gradient-brand);
  border-radius: 6px;
  position: relative;
}
.nav-logo-mark::after {
  content: ""; position: absolute; inset: 4px;
  border-radius: 3px;
  background: #000;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.nav-pill {
  display: flex; align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.03);
  gap: 4px;
}
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px;
  color: var(--text-secondary);
  font-size: 0.875rem; font-weight: 500;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
  cursor: pointer;
  background: none; border: none;
}
.nav-link:hover, .nav-link.active { color: white; }
.nav-link .caret {
  width: 10px; height: 10px; opacity: 0.6;
  transition: transform 0.2s;
}
.nav-item:hover .nav-link .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-btn-partner {
  display: inline-flex; align-items: center;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white; font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}
.nav-btn-partner:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.nav-btn-cta {
  display: inline-flex; align-items: center;
  padding: 8px 20px;
  background: var(--gradient-cta);
  border-radius: 8px;
  color: white; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-btn-cta:hover { opacity: 0.92; transform: translateY(-1px); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  background: rgba(10, 10, 20, 0.95);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  min-width: 260px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 1100;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
}
.nav-dropdown.platform-dd {
  min-width: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.nav-dd-header {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 12px 8px;
}
.nav-dd-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: background 0.2s, color 0.2s;
}
.nav-dd-link:hover {
  background: rgba(139, 92, 246, 0.12);
  color: white;
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; color: white;
  width: 40px; height: 40px;
  position: relative;
  z-index: 1001;
  pointer-events: auto;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s ease;
  transform-origin: center;
}
.nav-mobile-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-mobile-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile-panel {
  display: block;
  max-height: 0;
  overflow: hidden;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 0 24px;
  z-index: 999;
  transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1),
              padding 0.35s cubic-bezier(0.4,0,0.2,1);
  visibility: hidden;
}
.nav-mobile-panel.open {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 24px;
  visibility: visible;
}
/* Block bleed-through of nav text while closed */
.nav-mobile-panel:not(.open) * {
  pointer-events: none;
}
.nav-mobile-group { padding: 12px 0; border-bottom: 1px solid var(--border-subtle); }
.nav-mobile-group h4 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px;
}
.nav-mobile-group a {
  display: block; padding: 10px 0; color: var(--text-secondary);
  font-size: 0.95rem;
}
.nav-mobile-group a:hover { color: white; }

@media (max-width: 1023px) {
  .nav-pill, .nav-actions { display: none !important; }
  .nav-mobile-toggle { display: flex !important; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero-section {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  overflow: hidden;
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 820px; margin: 0 auto;
}
.hero-title {
  font-size: var(--text-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px; margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex; flex-wrap: wrap; justify-content: center;
  gap: 12px;
}
.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin-inline: auto;
}

@media (max-width: 768px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-section { padding: 80px 0 64px; }
}

/* =========================================================
   How it works — 3 step flow
   ========================================================= */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 48px;
}
.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
}
.flow-step.featured {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.04));
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.18);
}
.flow-step h4 {
  font-size: var(--text-lg);
  margin-bottom: 8px;
}
.flow-step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--purple-light);
  font-size: 1.5rem;
  font-weight: 300;
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* Code snippet block (legacy — overridden below) */
.code-block {
  margin-top: 40px;
  background: #0d0d1a;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  overflow-x: auto;
}
.code-block .comment { color: #6b7280; }
.code-block .string  { color: #a78bfa; }
.code-block .keyword { color: #22d3ee; }
.code-block .ident   { color: #e5e7eb; }

/* =========================================================
   Five-layer defense
   ========================================================= */
.layers {
  margin-top: 56px;
  display: flex; flex-direction: column;
  gap: 16px;
  position: relative;
}
.layer-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: stretch;
}
.layer-index {
  display: flex; flex-direction: column;
  align-items: center;
  position: relative;
}
.layer-index .badge {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: white;
}
.layer-index .line {
  flex: 1; width: 2px;
  background: linear-gradient(180deg, var(--purple-bright), transparent);
  margin-top: 8px;
}
.layer-row:last-child .layer-index .line { display: none; }

.layer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 24px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.layer-card:hover { border-color: var(--border-accent); transform: translateY(-2px); }
.layer-card h3 { font-size: var(--text-xl); margin-bottom: 6px; }
.layer-card .layer-tag {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 8px;
}
.layer-card p { color: var(--text-secondary); font-size: 0.95rem; }

.layer-row[data-accent="cyan"]    .badge { border-color: rgba(6, 182, 212, 0.4); color: var(--cyan-bright); }
.layer-row[data-accent="cyan"]    .layer-tag { color: var(--cyan-bright); }
.layer-row[data-accent="purple"]  .badge { border-color: rgba(139, 92, 246, 0.4); color: var(--purple-light); }
.layer-row[data-accent="purple"]  .layer-tag { color: var(--purple-light); }
.layer-row[data-accent="blue"]    .badge { border-color: rgba(37, 99, 235, 0.4); color: #60a5fa; }
.layer-row[data-accent="blue"]    .layer-tag { color: #60a5fa; }
.layer-row[data-accent="emerald"] .badge { border-color: rgba(16, 185, 129, 0.4); color: var(--emerald-accent); }
.layer-row[data-accent="emerald"] .layer-tag { color: var(--emerald-accent); }

@media (max-width: 700px) {
  .layer-row { grid-template-columns: 1fr; gap: 12px; }
  .layer-index { flex-direction: row; gap: 12px; }
  .layer-index .line { display: none; }
}

/* =========================================================
   Feature grid (capabilities)
   ========================================================= */
.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { font-size: var(--text-xl); margin-bottom: 10px; }
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}
.feature-card .feature-link {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--purple-light);
  font-size: 0.875rem; font-weight: 500;
}
.feature-card .feature-link:hover { color: white; }

/* =========================================================
   Compliance pills
   ========================================================= */
.compliance-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 32px 0 56px;
}
.compliance-pill {
  padding: 8px 18px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.06);
  color: white;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
  background: linear-gradient(135deg, #2e1065 0%, #1e1b4b 50%, #0c4a6e 100%);
  border-radius: 24px;
  padding: 72px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.3), transparent 60%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  position: relative;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-lg);
  max-width: 580px;
  margin: 0 auto 28px;
  position: relative;
}
.cta-band .hero-cta { position: relative; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: #050508;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 72px 0 0;
}
.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
}
.footer-col h4 {
  font-size: 0.85rem; font-weight: 600;
  color: white;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: white; }

/* Footer accordion */
.footer-accordion {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 0;
}

.footer-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.85rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s;
  text-align: left;
}

.footer-accordion-btn:hover {
  color: white;
}

.footer-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.footer-accordion-btn.open .footer-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.footer-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.footer-accordion-content.open {
  max-height: 500px;
}

.footer-accordion-content a {
  padding: 7px 0 7px 8px;
  color: #6b7280;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.15s;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.footer-accordion-content a:hover {
  color: white;
}

/* Footer Stay Connected */
.footer-stay-connected {
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 48px;
}

.footer-email-input {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: 0 !important;
  color: white !important;
  padding: 8px 0 !important;
  width: 100% !important;
  font-size: 0.9rem !important;
  outline: none !important;
  font-family: 'Poppins', sans-serif !important;
}

.footer-email-input::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

.footer-email-input:focus {
  border-bottom-color: rgba(255,255,255,0.7) !important;
}

.footer-subscribe-btn {
  background: transparent !important;
  border: 1.5px solid white !important;
  border-radius: 999px !important;
  color: white !important;
  font-weight: 600 !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em !important;
  padding: 10px 20px !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  font-family: 'Poppins', sans-serif !important;
  transition: background 0.2s, color 0.2s !important;
  flex-shrink: 0 !important;
}

.footer-subscribe-btn:hover {
  background: white !important;
  color: black !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: var(--text-muted);
}

@media (max-width: 1023px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr !important;
  }
  .footer-stay-connected {
    grid-column: 1 / -1;
    border-left: none !important;
    padding-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
  }
}

@media (max-width: 768px) {
  .footer-stay-connected {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 32px;
  }
}

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .hero-section { padding: 80px 0 64px; }
  .cta-band { padding: 56px 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 640px) {
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}

/* =========================================================
   ✦ V13 UPGRADE — Cosmic black, glassmorphism, JetBrains Mono accents
   ========================================================= */

/* Typography assignments */
h1, h2, h3, h4 { font-family: var(--font-display); }
.eyebrow, .tag, .stat-label, code, pre, .mono { font-family: var(--font-mono); }

/* Card upgrade — full V13 glassmorphic */
.card {
  background: linear-gradient(155deg, rgba(14,14,26,0.95), rgba(8,8,20,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card::before {
  content: '';
  position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.04), transparent);
  transform: skewX(-15deg);
  animation: gloss-sweep 9s ease-in-out infinite;
  pointer-events: none;
}

.card-top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    rgba(124,58,237,0.9), rgba(6,182,212,0.4), transparent);
  border-radius: 18px 18px 0 0;
  transition: height 0.3s;
}

.card:hover {
  border-color: rgba(124,58,237,0.4);
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.2),
    0 28px 60px rgba(0,0,0,0.7),
    0 0 80px rgba(124,58,237,0.1);
}
.card:hover .card-top-bar { height: 3px; }

.card-corner {
  position: absolute; width: 12px; height: 12px;
  border-color: rgba(124,58,237,0.6); border-style: solid;
  opacity: 0; transition: opacity 0.3s;
}
.card-corner-tl { top: 12px; left: 12px; border-width: 1.5px 0 0 1.5px; }
.card-corner-br { bottom: 12px; right: 12px; border-width: 0 1.5px 1.5px 0; }
.card:hover .card-corner { opacity: 1; }

@keyframes gloss-sweep {
  0%, 100% { left: -120%; }
  55% { left: 160%; }
}

/* Hero canvas */
#hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Eyebrow upgrade */
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgb(139,92,246);
  border: 1px solid rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.07);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgb(139,92,246);
  box-shadow: 0 0 8px rgba(139,92,246,0.9);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Stat cards upgrade */
.stat-card {
  background: linear-gradient(155deg, rgba(14,14,26,0.9), rgba(8,8,20,0.95));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, rgba(124,58,237,0.8), rgba(6,182,212,0.4), transparent);
}
.stat-card:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: 0 0 40px rgba(124,58,237,0.1);
}
/* .stat-number V13 — moved to definitive rule at end of file */

/* Layer stack upgrade (new system, complements existing .layer-row) */
.layer-item {
  background: linear-gradient(155deg, rgba(14,14,26,0.95), rgba(8,8,20,0.98));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 24px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.4s, transform 0.4s;
}
.layer-item::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    rgba(var(--layer-accent),0.9),
    rgba(var(--layer-accent),0.2),
    transparent);
}
.layer-item:hover {
  border-color: rgba(var(--layer-accent),0.4);
  transform: translateX(8px);
  box-shadow: -4px 0 30px rgba(var(--layer-accent),0.15);
}
.layer-0 { --layer-accent: 6,182,212; }
.layer-1 { --layer-accent: 139,92,246; }
.layer-2 { --layer-accent: 139,92,246; }
.layer-3 { --layer-accent: 56,189,248; }
.layer-4 { --layer-accent: 16,185,129; }

.layer-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: rgb(var(--layer-accent));
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.layer-badge::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: rgb(var(--layer-accent));
  box-shadow: 0 0 6px rgba(var(--layer-accent),0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Nav upgrade */
.nav-scroll {
  background: rgba(0,0,0,0.95) !important;
  backdrop-filter: blur(24px) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06),
              0 4px 30px rgba(0,0,0,0.5) !important;
}

/* Magnetic button */
.btn-magnetic {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

/* Proxy diagram */
.proxy-diagram {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 40px 0; position: relative;
  flex-wrap: wrap;
}
.proxy-node {
  background: linear-gradient(155deg, rgba(14,14,26,0.95), rgba(8,8,20,0.98));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px 24px;
  text-align: center; min-width: 160px;
  position: relative;
  font-family: var(--font-mono);
}
.proxy-node-label {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #6b7280; margin-bottom: 8px;
}
.proxy-node-name {
  font-size: 1rem; font-weight: 600; color: white;
}
.proxy-node.apire-node {
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 0 60px rgba(124,58,237,0.2),
              0 0 0 1px rgba(124,58,237,0.2);
  min-width: 200px;
}
.proxy-node.apire-node .proxy-node-name {
  background: linear-gradient(135deg, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.2rem;
}
.proxy-arrow {
  display: flex; flex-direction: column;
  align-items: center; padding: 0 12px;
  gap: 6px;
}
.proxy-arrow svg {
  width: 80px; height: 20px; overflow: visible;
}
.arrow-line {
  stroke: rgba(124,58,237,0.5);
  stroke-width: 1.5;
  stroke-dasharray: 6 3;
  animation: dash-flow 2s linear infinite;
}
.arrow-return-line {
  stroke: rgba(6,182,212,0.5);
  stroke-width: 1.5;
  stroke-dasharray: 6 3;
  animation: dash-flow-reverse 2s linear infinite;
}
.proxy-arrow-label {
  font-family: var(--font-mono);
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6b7280;
}
@keyframes dash-flow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}
@keyframes dash-flow-reverse {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 24; }
}

@media (max-width: 800px) {
  .proxy-arrow { transform: rotate(90deg); padding: 12px 0; }
  .proxy-diagram { flex-direction: column; gap: 12px; }
}

/* Code block upgrade */
.code-block {
  background: #0d0d1a;
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  padding: 24px 28px;
  font-family: var(--font-mono);
  font-size: 0.85rem; line-height: 1.8;
  position: relative; overflow: hidden;
}
.code-block::before {
  content: '● ● ●';
  display: block; margin-bottom: 16px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 6px; font-size: 0.7rem;
}
.code-comment { color: rgba(107,114,128,0.8); }
.code-comment.code-green { color: #10b981; }
.code-keyword { color: #8b5cf6; }
.code-string  { color: #06b6d4; }
.code-cyan    { color: #06b6d4; }
.code-default { color: #e5e7eb; }
.code-cursor {
  display: inline-block; width: 2px; height: 1em;
  background: #8b5cf6;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Terminal scan line */
.scan-line {
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(139,92,246,0.4), transparent);
  animation: scan 4s linear infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 0; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Ambient glows upgraded */
.hero-glow-1 {
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(124,58,237,0.18) 0%,
    rgba(124,58,237,0.05) 50%,
    transparent 70%);
  filter: blur(60px);
  top: -200px; left: -200px;
  pointer-events: none; z-index: 0;
  animation: glow-drift-1 15s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(6,182,212,0.12) 0%,
    transparent 70%);
  filter: blur(60px);
  top: 100px; right: -100px;
  pointer-events: none; z-index: 0;
  animation: glow-drift-2 18s ease-in-out infinite;
}
@keyframes glow-drift-1 {
  0%,100% { transform: translate(0,0); }
  33% { transform: translate(40px,-30px); }
  66% { transform: translate(-20px,20px); }
}
@keyframes glow-drift-2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-30px,40px); }
}

/* Section ambient glows */
.section-ambient {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0;
  filter: blur(80px);
}
.section-ambient-tl {
  width: 400px; height: 400px;
  top: -100px; left: -100px;
  background: radial-gradient(circle,
    rgba(124,58,237,0.12), transparent 70%);
}
.section-ambient-br {
  width: 300px; height: 300px;
  bottom: -80px; right: -80px;
  background: radial-gradient(circle,
    rgba(6,182,212,0.08), transparent 70%);
}

/* Pricing card featured glow */
.card-featured {
  border-color: rgba(124,58,237,0.5) !important;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.25),
    0 0 80px rgba(124,58,237,0.15),
    0 28px 60px rgba(0,0,0,0.7) !important;
}

/* Comparison table upgrade */
.comparison-table tr:nth-child(even) {
  background: rgba(255,255,255,0.02);
}
.comparison-table td.apire-col {
  color: rgb(139,92,246);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.comparison-table td.dlp-col {
  color: #6b7280;
}

/* Scroll reveal (staggered) — overrides earlier */
.reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: none;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s cubic-bezier(0.22,1,0.36,1),
    transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero title word-reveal guards
   word-wrap is a clip box only; never paint anything on it.
   This prevents gradient-text backgrounds from leaking onto
   the wrap rectangle if a child has display:inline-block. */
.hero-title .word-wrap {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: inherit;
}
.hero-title .word { line-height: inherit; }
/* If GSAP fails to load and never animates words, fall back to
   visible after 1.5s rather than leaving them translated offscreen. */
@keyframes word-reveal-fallback {
  to { transform: translateY(0); }
}
.hero-title .word {
  animation: word-reveal-fallback 0.01s 2s forwards;
}

/* Lenis smooth scroll */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }

/* Performance */
@media (max-width: 640px) {
  .hero-glow-1, .hero-glow-2 { display: none; }
}
@media (max-width: 768px) {
  #hero-canvas { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* =========================================================
   ✦ MOBILE RESPONSIVENESS PASS (375 / 390 / 768)
   ========================================================= */

/* General base hardening */
img, video, svg, canvas { max-width: 100%; }

@media (max-width: 768px) {
  /* Skip scroll-triggered reveals on mobile entirely — the IO
     timing was racing the Playwright/mobile viewport resize and
     leaving sections invisibly stuck at opacity:0; better UX is
     just-show-everything on small screens. */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal.visible {
    transition: none !important;
  }

  section { padding: 48px 0; }
  .container, .container-narrow { padding: 0 20px; }

  /* Typography clamps */
  .hero-title,
  h1 { font-size: clamp(2rem, 8vw, 5rem) !important; line-height: 1.12 !important; }
  .section-heading,
  h2 { font-size: clamp(1.6rem, 5.5vw, 3.5rem) !important; line-height: 1.18 !important; }
  h3 { font-size: clamp(1.1rem, 3.2vw, 1.5rem) !important; }
  .hero-sub, .section-sub { font-size: 0.95rem !important; }
  body { font-size: 0.95rem; }

  /* Hero spacing */
  .hero-section {
    min-height: auto !important;
    padding: 96px 0 56px !important;
  }
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-bottom: 40px !important;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Grids → 1 column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Layer rows → stack */
  .layer-row { grid-template-columns: 1fr !important; gap: 12px; }
  .layer-index { flex-direction: row !important; gap: 12px; }
  .layer-index .line { display: none; }
  .layer-index .badge { width: 56px; height: 56px; font-size: 1rem; }

  /* Flow (how it works) → stack */
  .flow { grid-template-columns: 1fr !important; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }

  /* Proxy diagram → stack vertically with arrows pointing down */
  .proxy-diagram {
    flex-direction: column !important;
    gap: 12px;
    padding: 24px 0 !important;
  }
  .proxy-node {
    width: 100%;
    min-width: 0 !important;
  }
  .proxy-arrow {
    flex-direction: row !important;
    padding: 4px 0;
    gap: 12px;
  }
  .proxy-arrow svg {
    width: 60px; height: 16px;
    transform: rotate(90deg);
  }
  .proxy-arrow svg[style*="rotate(180deg)"] {
    transform: rotate(-90deg) !important;
  }

  /* Code block padding */
  .code-block { padding: 18px 16px !important; font-size: 0.78rem !important; }

  /* Footer */
  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding-bottom: 40px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center;
  }

  /* CTA band */
  .cta-band { padding: 48px 20px !important; }
  .cta-band h2 { font-size: clamp(1.5rem, 5vw, 2.4rem) !important; }
  .cta-band .hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cta-band .btn-primary,
  .cta-band .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Pricing grid */
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .price-card, .pricing-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Comparison table → allow horizontal scroll */
  .comparison-table { display: block; overflow-x: auto; }

  /* Compliance pills wrap tighter */
  .compliance-pills { gap: 8px; margin: 24px 0 40px; }
  .compliance-pill { font-size: 0.78rem; padding: 6px 14px; }
}

@media (max-width: 640px) {
  section { padding: 40px 0; }
  .container, .container-narrow { padding: 0 16px; }

  /* Hero stats → 2x2 */
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    max-width: 100% !important;
    margin-top: 32px !important;
  }
  .stat-card {
    padding: 16px 12px !important;
  }
  /* .stat-number 640px override — moved to definitive rule at end */
  .stat-label {
    font-size: 0.72rem !important;
    line-height: 1.3;
  }

  /* Kill all 3D transforms + hover lifts */
  .card-3d { transform: none !important; }
  .card:hover,
  .layer-card:hover,
  .stat-card:hover,
  .price-card:hover,
  .flow-step:hover {
    transform: none !important;
  }

  /* Simplify card animations on small screens */
  .card::before { animation: none !important; }
  .card-corner { display: none !important; }

  /* Ambient glows off */
  .hero-glow-1, .hero-glow-2, .glow-purple, .glow-cyan { display: none !important; }

  /* Buttons full-width by default */
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Eyebrow size */
  .eyebrow { font-size: 0.62rem !important; padding: 4px 10px !important; }

  /* Code block — smaller text + horizontal scroll allowed */
  .code-block {
    overflow-x: auto;
    font-size: 0.72rem !important;
  }

  /* Contact form rows stack */
  .contact-form .form-row { grid-template-columns: 1fr !important; }
}

@media (max-width: 380px) {
  /* Very small phones (iPhone SE etc) */
  .hero-stats { gap: 10px !important; }
  .stat-card { padding: 14px 10px !important; }
  /* .stat-number 380px override — moved to definitive rule at end */
  .hero-title { font-size: clamp(1.7rem, 8vw, 2.4rem) !important; }
}

/* =========================================================
   ✦ MOBILE FIX PASS v2 — proxy diagram, typed code, stats,
     contact, features grid, hero title, dot rows, spacing,
     footer taps, contact info accent, stat highlights
   ========================================================= */

@media (max-width: 768px) {
  /* Fix 2 — Hide arrow text labels on mobile (rotating them clips
     into card content). Stack the proxy diagram vertically and
     point arrows downward. */
  .proxy-arrow-label {
    display: none !important;
  }
  .proxy-diagram {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    padding: 24px 0 !important;
  }
  .proxy-node {
    width: 100% !important;
    min-width: unset !important;
    max-width: 340px !important;
    margin: 0 auto !important;
  }
  .proxy-arrow {
    padding: 4px 0 !important;
    width: 60px !important;
    margin: 4px auto !important;
    flex-direction: column !important;
    gap: 0 !important;
    transform: none !important;
  }
  .proxy-arrow svg {
    width: 60px !important;
    height: 16px !important;
    transform: rotate(90deg) !important;
  }
  .proxy-arrow svg[style*="rotate(180deg)"] {
    transform: rotate(-90deg) !important;
  }

  /* Fix 3 — Code block must allow content to render at full height
     on mobile (typed.code animation skipped via JS branch). */
  .code-block {
    overflow: visible !important;
    height: auto !important;
    min-height: 160px !important;
  }
  .typed-code {
    overflow: visible !important;
    height: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    font-size: 0.75rem !important;
    line-height: 1.7 !important;
  }
  .code-block pre {
    overflow-x: auto !important;
    height: auto !important;
    white-space: pre-wrap !important;
    word-break: break-all !important;
  }

  /* Fix 4 — Threat page hero has 3 stats. In a 2-col grid the 3rd
     would sit alone; span it full width and center. */
  .threat-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .threat-hero-stats > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 220px;
    margin: 0 auto;
  }

  /* Fix 5 — Contact hero dead zone: collapse hero bottom padding,
     hide any empty booking/iframe spacer. */
  .contact-hero,
  .contact-page > section:first-child {
    padding-bottom: 32px !important;
    min-height: unset !important;
  }
  .contact-spacer,
  .booking-widget,
  iframe[src=""],
  iframe:not([src]) {
    display: none !important;
    height: 0 !important;
  }

  /* Fix 8 — Stray dots / carousel indicators between sections */
  .carousel-indicators,
  .diagram-dots,
  .swiper-pagination,
  .dots-indicator,
  [class*="pagination"] {
    display: none !important;
  }
  .mobile-hide { display: none !important; }

  /* Fix 9 — Section vertical padding: cap the per-section gap. */
  section {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }
  .hero-section {
    padding-top: 80px !important;
    padding-bottom: 60px !important;
  }
}

@media (max-width: 640px) {
  /* Fix 6 — Force every grid to single column on small screens. */
  .grid-2,
  .grid-3,
  .grid-4,
  .features-grid,
  .scale-grid,
  .capability-grid,
  [class*="grid-"] {
    grid-template-columns: 1fr !important;
  }
  /* Also catch inline grid-template-columns on sections */
  section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Fix 9 — tighter on small phones. */
  section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
}

/* Fix 7 — H1 wrapping to 3 lines on 390px / 480px / 360px */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.15 !important;
  }
}
@media (max-width: 390px) {
  .hero-title {
    font-size: 1.75rem !important;
  }
}

/* Fix 10 — Footer tap targets must be ≥ 44px (iOS/Android min).
   Scoped to mobile so desktop footer rendering is unchanged. */
@media (max-width: 768px) {
  footer a,
  .footer-link,
  .site-footer a {
    display: flex !important;
    align-items: center !important;
    min-height: 44px !important;
    padding-block: 10px !important;
  }
}

/* Fix 11 — Contact info card missing purple top accent. */
.contact-info {
  position: relative;
  overflow: hidden;
}
.contact-info::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(124,58,237,0.9),
    rgba(6,182,212,0.4),
    transparent);
  border-radius: 16px 16px 0 0;
}

/* Fix 12 — Inline cyan/purple stat highlights should not read as
   links: kill underline/cursor/italic, dim the cyan, force normal. */
.threat-stat-highlight,
.stat-inline {
  color: rgba(6,182,212,0.75) !important;
  text-decoration: none !important;
  cursor: default !important;
  font-weight: 600 !important;
  font-style: normal !important;
}

/* =========================================================
   ✦ MOBILE FIX PASS v3 — Final pass
   ========================================================= */

/* Fix 3 — moved to definitive .stat-number rule at end of file */

/* Fix 1 — Hero stats 2x2 grid (mobile) — must win over
   `section [style*="grid-template-columns"]` catch-all. */
@media (max-width: 768px) {
  .hero-stats,
  section .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    max-width: 100% !important;
    padding: 0 4px !important;
  }
  .hero-stats .stat-card,
  section .hero-stats .stat-card {
    width: 100% !important;
    min-width: 0 !important;
  }
}
@media (max-width: 480px) {
  .hero-stats,
  section .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  /* .stat-number 480px override moved to definitive rule at end */
  .hero-stats .stat-card,
  .stat-card {
    padding: 14px 10px !important;
  }
}

/* Fix 4 — Proxy diagram arrows side-by-side on mobile */
@media (max-width: 768px) {
  .proxy-diagram {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
  }
  .proxy-node {
    width: calc(100% - 32px) !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    min-width: unset !important;
  }
  .proxy-arrow {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 200px !important;
    margin: 0 auto !important;
    padding: 8px 0 !important;
    gap: 24px !important;
    transform: none !important;
    min-height: 48px !important;
  }
  .proxy-arrow svg:first-of-type {
    transform: rotate(90deg) !important;
    width: 40px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
  .proxy-arrow svg:last-of-type {
    transform: rotate(-90deg) !important;
    width: 40px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
  }
  /* The response arrow points UP after rotate(-90deg). The
     `.arrow-return-line` default keyframes run dashoffset 0→24,
     which after -90deg rotation visually flows downward (against
     the arrowhead). Force it forward so dashes travel up. */
  .proxy-arrow svg:last-of-type .arrow-return-line {
    animation: dash-flow 2s linear infinite !important;
  }
  .proxy-arrow-label {
    display: none !important;
  }
}

/* Fix 5 — CTA card buttons full-width on mobile (systemic) */
@media (max-width: 768px) {
  .cta-band .btn-primary,
  .cta-band .btn-secondary,
  .cta-band a.btn-primary,
  .cta-band a.btn-secondary,
  .cta-section .btn-primary,
  .cta-section .btn-secondary,
  .cta-card .btn-primary,
  .cta-card .btn-secondary,
  section[class*="cta"] .btn-primary,
  section[class*="cta"] .btn-secondary,
  .hero-section .btn-primary,
  .hero-section .btn-secondary,
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary,
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .cta-band .btn-group,
  .cta-section .btn-group,
  .cta-card .btn-group,
  .cta-buttons,
  .cta-band .hero-cta,
  .cta-section .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    align-items: stretch !important;
  }
  .hero-ctas,
  .hero-cta {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Fix 6 — Contact hero gap close */
@media (max-width: 768px) {
  section.contact-hero,
  section.hero-section.contact-hero {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
    min-height: unset !important;
  }
  /* Tighten the section directly after contact hero */
  section.contact-hero + section {
    padding-top: 16px !important;
  }
}

/* Fix 8 — Mobile nav menu opaque background */
.nav-mobile-panel {
  background: rgba(0, 0, 0, 0.97) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
}
.nav-overlay,
.mobile-overlay,
.mobile-menu {
  background: rgba(0, 0, 0, 0.97) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  backdrop-filter: blur(24px) !important;
}

/* Fix 9 — Home H1 tightening at small viewports */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
    letter-spacing: -0.025em !important;
    line-height: 1.12 !important;
  }
}

/* Fix 11 — Hide empty decorative canvas/strips on threat page */
@media (max-width: 768px) {
  .hero-canvas-wrapper:empty,
  canvas.section-bg,
  .threat-bg-canvas,
  .section-decoration:empty,
  section:empty,
  div.section-spacer {
    display: none !important;
    height: 0 !important;
  }
}

/* Fix 12 — Pricing tier card purple top accent */
.pricing-card,
.price-card {
  position: relative !important;
  overflow: visible !important;
}
.pricing-card::before,
.price-card::before,
.pricing-card .card-top-bar,
.price-card .card-top-bar {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 0.9),
    rgba(6, 182, 212, 0.5),
    transparent
  ) !important;
  border-radius: 18px 18px 0 0 !important;
}
.pricing-card.card-featured::before,
.price-card.featured::before,
.pricing-card.card-featured .card-top-bar,
.price-card.featured .card-top-bar {
  height: 3px !important;
  background: linear-gradient(
    90deg,
    rgba(124, 58, 237, 1),
    rgba(6, 182, 212, 0.8),
    rgba(244, 114, 182, 0.4)
  ) !important;
}

/* =========================================================
   Legal pages — Terms, Privacy, DPA, etc.
   ========================================================= */
.legal-content {
  color: #9ca3af;
  line-height: 1.75;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .legal-content {
    font-size: 0.9rem;
    line-height: 1.7;
  }
}

.legal-content h1 {
  color: #ffffff;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.2;
}

.legal-content h2 {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  margin-top: 40px !important;
  margin-bottom: 14px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  line-height: 1.3 !important;
}

.legal-content h3 {
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  margin-top: 28px !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

.legal-content p {
  color: #9ca3af !important;
  margin-bottom: 16px !important;
  line-height: 1.75 !important;
  font-size: 0.93rem !important;
}

.legal-content ul,
.legal-content ol {
  margin: 12px 0 20px 24px !important;
  color: #9ca3af !important;
}

.legal-content li {
  margin-bottom: 10px !important;
  line-height: 1.7 !important;
  font-size: 0.93rem !important;
}

.legal-content a {
  color: #8b5cf6 !important;
  text-decoration: none !important;
}

.legal-content a:hover {
  text-decoration: underline !important;
}

.legal-content strong,
.legal-content b {
  color: #e5e7eb !important;
  font-weight: 600 !important;
}

/* Legal notice box (used on cookie page) */
.legal-notice-box {
  background: rgba(139, 92, 246, 0.08) !important;
  border-left: 4px solid #8b5cf6 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 16px 20px !important;
  margin: 0 0 32px 0 !important;
  color: #a78bfa !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
}

.legal-notice-box a {
  color: #8b5cf6 !important;
  text-decoration: underline !important;
}

/* Section wrapper for legal pages */
.legal-page-section {
  padding: 80px 0 60px !important;
}

@media (max-width: 768px) {
  .legal-page-section {
    padding: 60px 0 40px !important;
  }
  .legal-content h2 {
    font-size: 1.05rem !important;
    margin-top: 32px !important;
  }
  .legal-content h3 {
    font-size: 0.95rem !important;
  }
}

/* =========================================================
   ✦ MOBILE FIX PASS v4 — Final polish
   ========================================================= */

/* Fix 1 — Global button arrow alignment */
.btn-primary,
.btn-secondary,
a.btn-primary,
a.btn-secondary {
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: center !important;
}
.cta-band .btn-primary,
.cta-band .btn-secondary,
.cta-section .btn-primary,
.cta-section .btn-secondary,
.cta-card .btn-primary,
.cta-card .btn-secondary,
[class*="cta"] .btn-primary,
[class*="cta"] .btn-secondary {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
}
.btn-primary svg,
.btn-primary .btn-icon,
.btn-primary .arrow,
.btn-secondary svg,
.btn-secondary .btn-icon,
.btn-secondary .arrow {
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Fix 3 — Nav overlay solid black, no compositing surprises */
.mobile-menu,
.mobile-menu.open,
nav .mobile-menu,
#mobile-nav,
.nav-mobile-panel,
.nav-mobile-panel.open,
.mobile-nav-drawer {
  background: rgb(0, 0, 0) !important;
  background-color: rgb(0, 0, 0) !important;
  backdrop-filter: blur(0px) !important;
  -webkit-backdrop-filter: blur(0px) !important;
  opacity: 1 !important;
}

/* Fix 4 — Contact hero gap final */
@media (max-width: 768px) {
  #contact-hero,
  .contact-hero,
  section.contact-hero,
  .contact-page section:first-of-type,
  section[data-page="contact"]:first-child {
    padding-bottom: 16px !important;
    margin-bottom: 0 !important;
    min-height: unset !important;
    height: auto !important;
  }
  .contact-form-wrapper,
  .contact-form-section,
  section.contact-hero + section {
    margin-top: 0 !important;
    padding-top: 16px !important;
  }
}

/* Fix 5 — Pricing H1 single-line clamp */
@media (max-width: 768px) {
  .pricing-hero .hero-title,
  .pricing-page .hero-title,
  .pricing-hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    white-space: nowrap !important;
  }
}

/* ============================================
   STAT NUMBER — DEFINITIVE RULE (final cascade)
   ============================================ */
.stat-number {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.8rem, 5vw, 3rem) !important;
  line-height: 1.1 !important;
  display: block !important;
  margin-bottom: 4px !important;

  background: linear-gradient(
    135deg,
    #8b5cf6 0%,
    #06b6d4 100%
  ) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;

  -webkit-text-stroke: 0 !important;
}
@supports not (-webkit-background-clip: text) {
  .stat-number {
    color: #8b5cf6 !important;
    -webkit-text-fill-color: #8b5cf6 !important;
  }
}

/* =========================================================
   ✦ HORIZONTAL OVERFLOW NUCLEAR FIX
   Body was reporting 200px wider than viewport at >= 768px
   (1640px on 1440px viewport, 968px on 768px viewport).
   The culprits are decorative absolutely-positioned glows
   (.hero-glow-1/-2 at 500–700px square with negative offsets)
   plus section ambients and the proxy diagram bleed.
   ========================================================= */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

section {
  overflow: hidden !important;
  position: relative !important;
}

#hero-canvas {
  max-width: 100% !important;
  width: 100% !important;
}

.hero-glow-1,
.hero-glow-2,
.section-ambient,
.section-ambient-tl,
.section-ambient-br,
.glow-purple,
.glow-cyan {
  max-width: 100vw !important;
  overflow: hidden !important;
}

/* .container max-width override intentionally removed.
   The nuclear fix used max-width:100%!important which broke
   the intended 1200px cap. Correct container sizing is
   restored in the UNIVERSAL RESPONSIVE PASS section below.
   The overflow:hidden is also removed — it is not needed
   on containers and was risking clipping child elements. */

/* =========================================================
   ✦ UNIVERSAL RESPONSIVE PASS — Final authoritative rules
   PURPOSE: Restores broken container sizing, adds large-screen
   breakpoints, and fills the mid-range viewport gap.
   All rules here override earlier cascade via document order.
   SAFE TO EDIT: Only modify values, never remove a rule block.
   ========================================================= */


/* ──────────────────────────────────────────────────────────
   1. CONTAINER MAX-WIDTHS — Authoritative restoration
   These rules come after the nuclear fix and win the cascade.
   clamp() on padding gives fluid breathing room between
   breakpoints without needing extra media queries.
   ────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 3vw, 32px) !important;
  padding-right: clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box !important;
}

.container-narrow {
  max-width: 800px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: clamp(16px, 3vw, 32px) !important;
  padding-right: clamp(16px, 3vw, 32px) !important;
  box-sizing: border-box !important;
}


/* ──────────────────────────────────────────────────────────
   2. LARGE-SCREEN SCALING — 1440px / 1920px / 2560px
   Progressive container widening + typography scaling so
   the site does not look tiny on large and QHD monitors.
   Nav inner tracks container width so they stay aligned.
   ────────────────────────────────────────────────────────── */

/* 1440px — Large laptop / standard desktop */
@media (min-width: 1440px) {
  /* .container / .nav-inner max-width removed — superseded by the
     FULL-WIDTH FILL SYSTEM appended at end of file. */
  .section-sub {
    max-width: 760px;
  }
  .hero-stats {
    max-width: 1040px;
    gap: 20px;
  }
  section:not(.hero-section) {
    padding: 80px 0;
  }
  .cta-band {
    padding: 88px 48px;
    border-radius: 28px;
  }
}

/* 1920px — Full HD monitor */
@media (min-width: 1920px) {
  /* .container / .nav-inner max-width removed — superseded by the
     FULL-WIDTH FILL SYSTEM appended at end of file. */
  :root {
    --text-hero: clamp(3rem, 5vw, 6.5rem);
    --text-6xl: clamp(2.8rem, 4vw, 5.5rem);
    --text-5xl: clamp(2rem, 3vw, 4rem);
  }
  .hero-section {
    padding: 140px 0 100px !important;
  }
  .hero-content {
    max-width: 1100px;
  }
  .section-sub {
    max-width: 900px;
  }
  .hero-stats {
    max-width: 1200px;
    gap: 24px;
  }
  section:not(.hero-section) {
    padding: 96px 0;
  }
  .cta-band {
    padding: 104px 64px;
    border-radius: 32px;
  }
  .footer-columns {
    grid-template-columns: 1.2fr 1.2fr 2fr;
  }
}

/* 2560px — QHD / 32-inch monitors */
@media (min-width: 2560px) {
  /* .container / .nav-inner max-width removed — superseded by the
     FULL-WIDTH FILL SYSTEM appended at end of file. */
  :root {
    --text-hero: clamp(3.5rem, 4.5vw, 7rem);
    --text-6xl: clamp(3rem, 3.5vw, 6rem);
    --text-5xl: clamp(2.5rem, 2.8vw, 4.8rem);
  }
  .hero-content {
    max-width: 1400px;
  }
  .section-sub {
    max-width: 1100px;
  }
  .hero-stats {
    max-width: 1500px;
    gap: 28px;
  }
  section {
    padding: 144px 0;
  }
  .cta-band {
    padding: 120px 80px;
    border-radius: 36px;
  }
  .card {
    padding: 36px;
  }
}


/* ──────────────────────────────────────────────────────────
   3. grid-4 INTERMEDIATE COLLAPSE — 4 → 2 → 1
   Before this fix: grid-4 jumped from 4 columns directly
   to 1 column at 768px — 4 huge cards on a 900px tablet.
   Now: 4col (>1024px) → 2col (768–1024px) → 1col (<768px).
   Note: the 1-col collapse at <768px is already handled
   by the existing mobile pass at line ~1344.
   ────────────────────────────────────────────────────────── */
/* ── PHASE 5 UPDATE: grid-4 tablet override ────────────────────────────
   Updated to keep justify-content: center working alongside auto-fit.
   The auto-fit already handles 2-col naturally; this override is kept
   for specificity safety but removes the hard 2-col force.
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 260px)) !important;
    justify-content: center !important;
    gap: 20px !important;
  }
}


/* ──────────────────────────────────────────────────────────
   4. MID-RANGE GAP COVERAGE — 601px to 740px
   The existing breakpoints jump from 640px to 768px.
   This fills the gap for:
   - Foldable phones in open state (Samsung Z Fold: ~720px)
   - Landscape small phones (~600–740px)
   - iPad Mini 6th gen at 744px CSS viewport
   These devices were getting half-broken desktop layouts.
   ────────────────────────────────────────────────────────── */
@media (max-width: 740px) and (min-width: 641px) {
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .grid-3 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .pricing-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .flow {
    grid-template-columns: 1fr !important;
  }
  .flow-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }
  .hero-ctas {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
  .cta-band .hero-cta {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .cta-band .btn-primary,
  .cta-band .btn-secondary {
    width: 100% !important;
    justify-content: center !important;
  }
  section {
    padding: 56px 0;
  }
  .hero-section {
    padding: 96px 0 56px !important;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .footer-columns {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    gap: 8px !important;
    text-align: center;
  }
  .layer-row {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .layer-index {
    flex-direction: row !important;
    gap: 12px;
  }
  .layer-index .line {
    display: none;
  }
}


/* ──────────────────────────────────────────────────────────
   5. TABLET RANGE POLISH — 769px to 1024px
   This range already had some rules (nav collapse at 1024px,
   grid-3 → 2col at 1024px). Adding small improvements:
   - Section padding slightly tighter than desktop
   - Hero stats stay 4-col (looks good at this range)
   - Code block comfortable padding
   ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 769px) {
  section {
    padding: 80px 0;
  }
  .cta-band {
    padding: 64px 32px;
    border-radius: 20px;
  }
  .hero-section {
    padding: 100px 0 72px !important;
  }
  /* Footer: 2-col already set in original CSS at 1024px.
     Ensure stay-connected section spans full width. */
  .footer-stay-connected {
    padding-left: 0 !important;
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-top: 32px !important;
  }
}


/* ──────────────────────────────────────────────────────────
   6. SMALL PHONE ULTRA-NARROW — 320px to 359px
   Devices like iPhone SE (1st gen), old Android budget phones.
   The existing 380px breakpoint already helps, but 320px
   needs the most aggressive scaling.
   ────────────────────────────────────────────────────────── */
@media (max-width: 359px) {
  .container,
  .container-narrow {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .hero-title,
  h1 {
    font-size: clamp(1.55rem, 9vw, 2rem) !important;
    line-height: 1.1 !important;
  }
  .section-heading,
  h2 {
    font-size: clamp(1.3rem, 7vw, 1.7rem) !important;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .stat-card {
    padding: 12px 8px !important;
  }
  .btn-primary,
  .btn-secondary {
    padding: 11px 16px !important;
    font-size: 0.82rem !important;
  }
  .nav-inner {
    padding: 0 12px !important;
  }
  .eyebrow {
    font-size: 0.58rem !important;
    letter-spacing: 0.1em !important;
  }
}


/* ──────────────────────────────────────────────────────────
   7. FLUID CONTAINER PADDING on mobile
   The existing mobile pass sets fixed 20px/16px padding.
   This makes sure the container rule above (using clamp)
   doesn't conflict by explicitly reinforcing on narrow screens.
   ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container,
  .container-narrow {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}
@media (max-width: 359px) {
  .container,
  .container-narrow {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}


/* ──────────────────────────────────────────────────────────
   8. PROXY DIAGRAM — Large screen refinement
   On large screens (1440px+), the proxy diagram nodes
   can grow proportionally. Currently fixed min-width: 160px.
   ────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .proxy-node {
    min-width: 200px;
    padding: 24px 32px;
  }
  .proxy-node.apire-node {
    min-width: 260px;
  }
  .proxy-arrow svg {
    width: 100px;
  }
}


/* ──────────────────────────────────────────────────────────
   9. COMPARISON TABLE — Ensure horizontal scroll on all small sizes
   The existing rule only applies at ≤768px. Tables need
   this treatment at any size where they might overflow.
   ────────────────────────────────────────────────────────── */
.comparison-table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ──────────────────────────────────────────────────────────
   10. SUPPORTED PROVIDERS / COMPLIANCE PILLS — large screen
   The compliance pills row wraps properly on mobile but on
   very large screens it can look sparse. Max-width it.
   ────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .compliance-pills {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ──────────────────────────────────────────────────────────
   END UNIVERSAL RESPONSIVE PASS
   ────────────────────────────────────────────────────────── */


/* =========================================================
   ✦ PHASE 2 FIX PASS — Post-1509-image audit corrections
   These rules win the cascade via document order. Each block
   is keyed to a bug ID from the master issue registry.
   ========================================================= */

/* ── FIX A: Extend reveal safety to all widths ─────────────
   The IO-based reveal animation fails silently when JS doesn't
   scroll-trigger in time. All elements must render visibly.
   The base .reveal state is now visible at ALL widths, not
   just ≤768px. The .visible class remains compatible with the
   existing JS — it stays visible after JS adds it.
   ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}
.reveal.visible {
  opacity: 1 !important;
  transform: none !important;
}

/* ── FIX D: Force container-narrow centering at desktop ────
   Audit confirmed left-aligned column at 1280/1440/1920 on
   legal pages despite Universal Pass having margin:auto. This
   rule has higher document-order specificity to win.
   ────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .container-narrow,
  body .container-narrow,
  section .container-narrow {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ── FIX E: Pricing H1 nowrap override at narrow mobile ────
   The earlier mobile pass sets white-space:nowrap on
   .pricing-hero-title at ≤768px which causes clipping at
   320–480px. Restore wrap at ≤640px.
   ────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .pricing-hero .hero-title,
  .pricing-page .hero-title,
  .pricing-hero-title {
    white-space: normal !important;
    word-break: break-word !important;
  }
}

/* ── FIX F REMOVED ─────────────────────────────────────────
   The 1440px/1920px .hero-section min-height caps (85vh/75vh)
   were dead: the higher-specificity .hero-section:has(#hero-canvas)
   rule won regardless of order. The homepage hero height is now
   handled by the LARGE-SCREEN SCALE-UP + HERO VOID FIX block
   appended at end of file.
   ────────────────────────────────────────────────────────── */

/* ── FIX G: Center hero-stats row at desktop ───────────────
   Stat cards row was left-aligned at 1440/1920 on
   ai-threat-protection despite the heading being centered.
   ────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-stats {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
  }
}

/* ── FIX H: Hero CTAs side-by-side at desktop widths ───────
   Mobile pass forces flex-direction:column!important on
   .hero-ctas. Override at ≥769px to restore row layout for
   the multi-CTA hero variant used on compliance pages.
   ────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .hero-ctas {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: auto !important;
  }
}

/* ── FIX I: Constrain subscribe email input width ──────────
   Email input has flex:1 which expanded to fill the row at
   640–768px, leaving a 250–350px gap before SUBSCRIBE.
   ────────────────────────────────────────────────────────── */
@media (min-width: 640px) and (max-width: 768px) {
  .footer-stay-connected input[type="email"],
  .footer-subscribe input[type="email"],
  .subscribe-form input[type="email"],
  .footer-email-input {
    max-width: 220px !important;
    flex: 0 1 220px !important;
  }
}

/* ── FIX J: Comparison table minimum width to force scroll ─
   Table needs a min-width wider than the mobile viewport to
   make the overflow-x:auto scroll actually trigger.
   ────────────────────────────────────────────────────────── */
.comparison-table table {
  min-width: 560px;
}

/* ── FIX K: Tighten nav actions at 1024–1279 ─────────────────
   Group 2 (max-width:1023px) makes the desktop nav pill
   appear at 1024px. At that width the nav-pill + Partner Login
   + GET STARTED competes for horizontal space and the two
   button labels wrap to 2 lines ("Partner / Login",
   "GET / STARTED"). At 1280+ they fit on one line again.
   This rule keeps them single-line at 1024–1279 by:
   - forcing white-space:nowrap on the buttons
   - tightening nav-pill internal padding/gap
   - shrinking nav-link horizontal padding
   - reducing nav-btn-partner/cta padding and font-size
   ──────────────────────────────────────────────────────────── */
@media (min-width: 1024px) and (max-width: 1279px) {
  /* Force buttons to stay on one line */
  .nav-btn-partner,
  .nav-btn-cta {
    white-space: nowrap !important;
    padding: 7px 14px !important;
    font-size: 0.8rem !important;
  }
  /* Tighten gap between Partner Login and GET STARTED */
  .nav-actions {
    gap: 8px !important;
  }
  /* Tighten nav-pill so menu items take less horizontal space,
     leaving more room for the actions cluster */
  .nav-pill {
    padding: 4px 6px !important;
    gap: 2px !important;
  }
  .nav-link {
    padding: 8px 10px !important;
    font-size: 0.83rem !important;
  }
}

/* =========================================================
   END PHASE 2 FIX PASS
   ========================================================= */

/* =========================================================
   ✦ PHASE 3 FIX PASS — Post-Pass-2-audit corrections
   These rules win the cascade via document order.
   ========================================================= */

/* ── FIX 2A: Hero section padding reduction at large screens ──
   Hero padding-bottom causes 250-500px empty voids below CTAs
   before next section even with min-height cap from Phase 2.
   ────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  .hero-section {
    padding-bottom: 64px !important;
  }
}
@media (min-width: 1440px) {
  .hero-section {
    padding-bottom: 56px !important;
    min-height: 80vh !important;
  }
}
@media (min-width: 1920px) {
  .hero-section {
    padding-bottom: 48px !important;
    min-height: 70vh !important;
  }
}

/* ── FIX 3A: Footer PRODUCT accordion → expanded link list at desktop ──
   At ≥1024px, show actual links and hide accordion toggles in the
   footer PRODUCT column. Mobile accordion UX is correct at ≤768px.
   Footer markup: .footer-accordion > .footer-accordion-btn +
   .footer-accordion-content.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .footer-col .footer-accordion {
    border-bottom: none !important;
  }
  .footer-col .footer-accordion-btn {
    display: none !important;
  }
  .footer-col .footer-accordion-content {
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    opacity: 1 !important;
  }
  .footer-col .footer-accordion-content a {
    padding: 0 !important;
    min-height: 0 !important;
    margin-bottom: 10px !important;
    color: var(--text-secondary) !important;
    font-size: 0.85rem !important;
    display: block !important;
  }
  .footer-col .footer-accordion-content a:hover {
    color: white !important;
  }
}

/* ── FIX 4A: CTA band H2 gradient text at desktop widths ──────────────
   The dark CTA card H2 renders flat white. Apply purple→cyan→green
   gradient to all CTA headings to match design intent.
   ────────────────────────────────────────────────────────────────────── */
.cta-band .section-heading,
.cta-band h2,
.cta-band .cta-heading,
.cta-section .section-heading,
.cta-section h2,
.cta-card .section-heading,
.cta-card h2 {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ── FIX 5A: Footer columns align to top, not stretched ────────────────
   Apire.io column has only ~4 elements; should not stretch to match
   tallest column.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .footer-columns {
    align-items: start !important;
  }
  .footer-col {
    align-self: start !important;
  }
  .footer-stay-connected {
    align-self: start !important;
  }
}

/* ── FIX 6A: Broaden hero CTA pair side-by-side at desktop ─────────────
   .hero-cta (singular) on nis2 stays stacked because Phase 2 Fix H
   only targeted .hero-ctas (plural). Cover all known wrappers.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 769px) {
  .hero-cta,
  .hero-actions,
  .cta-buttons,
  .hero-cta-group {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 16px !important;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-secondary,
  .hero-cta .btn-outline,
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: auto !important;
    flex: 0 0 auto !important;
  }
}

/* ── FIX 7A: solutions-code-assistants H1 proportional width ──────────
   H1 spans edge-to-edge while pill+body stay narrower at 1440/1920.
   Cap hero-title max-width to keep proportions consistent.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  .hero-content .hero-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (min-width: 1920px) {
  .hero-content .hero-title {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── FIX 8A: Hero stat row centering reinforcement at 1280px ───────────
   Reinforces Phase 2 Fix G with higher specificity.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero-content .hero-stats,
  .hero-section .hero-stats {
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    width: fit-content !important;
  }
}

/* ── FIX 9A: Subscribe email field gap at all narrow widths ────────────
   At <640px stack vertically; at 640-768 keep side-by-side but
   constrain field width.
   ────────────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  .footer-stay-connected form,
  .footer-stay-connected .subscribe-row,
  .footer-subscribe form,
  [class*="subscribe"] form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .footer-stay-connected input[type="email"],
  .footer-subscribe input[type="email"],
  .subscribe-form input[type="email"],
  .footer-email-input {
    max-width: 100% !important;
    width: 100% !important;
    flex: 1 1 auto !important;
  }
  .footer-stay-connected button[type="submit"],
  .footer-stay-connected .footer-subscribe-btn,
  .footer-subscribe button[type="submit"],
  [class*="subscribe"] button {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ── FIX 10A: vs-dlp comparison table scroll reinforcement ─────────────
   Force horizontal scroll on the comparison table at narrow widths so
   the APIRE column is reachable.
   ────────────────────────────────────────────────────────────────────── */
.comparison-table {
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
}
.comparison-table table {
  min-width: 680px !important;
  width: max-content !important;
}

/* ── FIX 11A: Legal page H1 orphan wrap at 1920px ─────────────────────
   "Terms & Conditions" wraps to a single-word orphan at 1920px.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1920px) {
  .container-narrow .hero-title,
  .container-narrow h1,
  .container-narrow .section-heading,
  .legal-page .hero-title,
  .legal-page h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem) !important;
    line-height: 1.15 !important;
  }
}

/* ── FIX 13A: Reduce page-end padding at large screens ────────────────
   Pages at 1440/1920 show a thin solid-black slice after footer.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1440px) {
  body {
    padding-bottom: 0 !important;
  }
  main,
  .page-wrapper {
    padding-bottom: 0 !important;
  }
}

/* =========================================================
   ✦ PHASE 4 FIX PASS — Manual spot-check corrections
   ========================================================= */

/* ── FIX A: REMOVED — superseded by Phase 5 auto-fit approach.
   The auto-fit minmax() + justify-content: center on .grid-3
   now handles orphan centering at ALL widths automatically
   without needing a breakpoint range.
   ────────────────────────────────────────────────────────────── */

/* ── FIX B: Hero stat cards centering — high-specificity override ──────
   Phase 2 Fix G and Phase 3 Fix 8A targeted .hero-stats but lost the
   cascade. Use deeper selector chains + flex layout to force centering.
   ────────────────────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  section.hero-section .hero-stats,
  .hero-section > .container .hero-stats,
  .hero-section .hero-content .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: auto !important;
    max-width: 100% !important;
  }
}

/* ── FIX C: Remove forced min-height void on non-home hero sections ────
   Home hero contains #hero-canvas (particles fill the viewport). Every
   other page's hero inherits the same min-height:100svh inline rule
   but has no canvas, producing a 300-500px void. :has() lets us cleanly
   distinguish them. Supported in all modern browsers (Chrome 105+,
   Safari 15.4+, Firefox 121+).
   ────────────────────────────────────────────────────────────────────── */

/* Home: full min-height (canvas fills the space) */
.hero-section:has(#hero-canvas) {
  min-height: 100svh !important;
}

/* All other pages: content-driven height */
@media (min-width: 1024px) {
  .hero-section:not(:has(#hero-canvas)) {
    min-height: auto !important;
    height: auto !important;
    padding-top: 120px !important;
    padding-bottom: 80px !important;
  }
}
@media (min-width: 1280px) {
  .hero-section:not(:has(#hero-canvas)) {
    padding-top: 140px !important;
    padding-bottom: 96px !important;
  }
}
@media (min-width: 1440px) {
  .hero-section:not(:has(#hero-canvas)) {
    padding-top: 160px !important;
    padding-bottom: 112px !important;
  }
}
@media (min-width: 1920px) {
  .hero-section:not(:has(#hero-canvas)) {
    padding-top: 180px !important;
    padding-bottom: 120px !important;
  }
}

/* ── END PHASE 4 FIX PASS ── */

/* =========================================================
   ✦ PHASE 5 FIX PASS — Auto-fit responsive grids
   Replaces breakpoint-dependent orphan centering with
   math-based auto-fit that works at every pixel width.
   ========================================================= */

/* ── FIX A (Phase 4) REMOVED — see comment in Phase 4 block ── */

/* ── Auto-fit grid definitions ───────────────────────────────────────────

   The minmax(min(100%, Xpx), Ypx) formula:
   - min(100%, Xpx): minimum column width. On narrow screens (< Xpx),
     uses 100% to prevent overflow. On wider screens, uses Xpx.
   - Ypx: maximum column width. Columns won't grow beyond this.
   - auto-fit: fills as many columns as fit. Collapses empty tracks.
   - justify-content: center: centers the column tracks in the container,
     so partial rows (orphans) automatically center themselves.

   Column count transitions (approximate, based on container width):
   ┌─────────────┬────────────────────────────────────────────────────┐
   │   .grid-2   │ 2-col above 624px, 1-col below                     │
   │   .grid-3   │ 3-col above 888px, 2-col 580-887px, 1-col below   │
   │   .grid-4   │ 4-col above 848px, 2-col 424-847px, 1-col below   │
   └─────────────┴────────────────────────────────────────────────────┘

   Orphan centering: when N items don't fill a full row, the column
   tracks are centered (justify-content: center), so the orphan card
   sits centered in the row automatically — at EVERY viewport width,
   not just at tested breakpoints.
   ────────────────────────────────────────────────────────────────── */

/* Grid-2: pairs of cards (deployment models, comparison pairs) */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 520px)) !important;
  justify-content: center !important;
}

/* Grid-3: feature cards, risk cards, solution cards — primary card grid */
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 340px)) !important;
  justify-content: center !important;
}

/* Grid-4: stat cards, compact feature grids */
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 260px)) !important;
  justify-content: center !important;
}

/* ── Mobile overrides: force 1-col at narrow viewports ───────────────────
   These override the auto-fit at small screens where even the minimum
   column width would produce too-narrow cards side by side.
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 580px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }
}
@media (max-width: 424px) {
  .grid-4 {
    grid-template-columns: 1fr !important;
    justify-content: stretch !important;
  }
}

/* ── grid-4 tablet override: keep auto-fit behavior ─────────────────────
   Overrides the Phase 2 repeat(2, 1fr) rule that prevented centering.
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 581px) {
  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 260px)) !important;
    justify-content: center !important;
  }
}

/* ── Desktop column count caps REMOVED ────────────────────────────────────
   The hard pixel caps repeat(3, minmax(0,340px)) / repeat(4, minmax(0,260px))
   / repeat(2, minmax(0,520px)) froze the grids into a centered island with
   huge gutters on wide screens. Superseded by the FULL-WIDTH FILL SYSTEM
   appended at end of file (equal 1fr columns that fill the container).
   ────────────────────────────────────────────────────────────────────── */

/* ── FIX: Subscribe form mobile stack ─────────────────────────────────
   footer-email-input has width:100%!important which compresses to
   almost nothing next to footer-subscribe-btn in a narrow flex row.
   Stack vertically on mobile so both elements use full width.
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-stay-connected form,
  .footer-stay-connected > div {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
  }
  .footer-email-input {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
  .footer-subscribe-btn {
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    flex: none !important;
  }
}

/* ── END PHASE 5 FIX PASS ─────────────────────────────────────────────── */

/* ── END PHASE 3 FIX PASS ────────────────────────────────────────────── */

/* ═══ ULTRAWIDE RESPONSIVE PASS — dynamic container ═══ */

/* Above 1920px: container grows proportionally with viewport.
   clamp(min, preferred, max) — preferred is 90vw so it always
   fills 90% of whatever screen size is used.
   Max cap at 3600px prevents extreme stretching on very large displays.
   container-narrow stays tight for legal/reading pages. */
@media (min-width: 1921px) {
  /* .container max-width clamp removed — superseded by the FULL-WIDTH
     FILL SYSTEM appended at end of file. container-narrow keeps its
     reading-width cap (text must NOT stretch to a 3000px line length). */
  .container-narrow {
    max-width: clamp(740px, 50vw, 960px) !important;
  }
}

/* Footer centering at ultrawide — same dynamic approach */
@media (min-width: 2048px) {
  .site-footer .container,
  .footer-columns {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  /* vs-dlp table max-width */
  table, .comparison-table {
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* Keep the individual breakpoint blocks for footer/table
   rules but REMOVE the .container max-width overrides
   from the 2048, 2560, 3440, 3840 blocks — the clamp
   above handles all widths dynamically now.
   Only keep non-container rules in the per-breakpoint blocks. */

/* ═══ CARD GRID FIX — 640/720px narrow column issue ═══ */

/* At 640-720px, grid cards collapse to a single
   narrow centered column instead of filling width.
   Force full-width single column below 768px. */
@media (min-width: 640px) and (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
  }
  .feature-card,
  .card {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ═══ HERO VOID FIX — non-homepage hero min-height cap ═══ */

/* Non-homepage heroes with minimal content
   (no CTA buttons or only one) create large voids.
   Cap the min-height more aggressively on large screens. */
@media (min-width: 1280px) {
  .hero-section:not(:has(#hero-canvas)) {
    min-height: unset !important;
    padding-top: 120px !important;
    padding-bottom: 80px !important;
  }
}

@media (min-width: 1440px) {
  .hero-section:not(:has(#hero-canvas)) {
    padding-top: 140px !important;
    padding-bottom: 100px !important;
  }
}

@media (min-width: 1920px) {
  .hero-section:not(:has(#hero-canvas)) {
    padding-top: 160px !important;
    padding-bottom: 120px !important;
  }
}

/* ═══ FOOTER SUBSCRIBE — email input flex fill ═══ */
@media (min-width: 641px) {
  .footer-stay-connected .footer-email-input {
    flex: 1 !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .footer-stay-connected > div:last-child {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    width: 100% !important;
  }
}

/* ═══ ORPHAN CARD — center lone card in 2-col grid ═══ */

@media (min-width: 640px) and (max-width: 1023px) {
  .grid-3 {
    justify-items: center;
  }
  /* When a grid-3 becomes 2-col and has orphan 3rd item */
  .grid-3 > *:last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    max-width: 48%;
  }
}

/* ═══ LEGAL PAGE — reading column at tablet widths ═══ */

@media (min-width: 640px) and (max-width: 1023px) {
  .legal-content,
  .legal-page .container-narrow,
  .terms-content,
  .privacy-content,
  .legal-body {
    max-width: 680px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* ═══ DATA-MASKING — "Restored for Authorized" card 320px ═══ */

@media (max-width: 390px) {
  .data-masking-page .card,
  .data-masking-page .feature-card {
    width: 100% !important;
    min-width: unset !important;
    padding: 20px 16px !important;
  }
  .data-masking-page .card p,
  .data-masking-page .card-body {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ═══ VS-DLP — comparison table mobile scroll ═══ */

.comparison-table-wrapper {
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  width: 100% !important;
}

.comparison-table-wrapper table,
.comparison-table-wrapper .vs-table {
  min-width: 560px !important;
}

@media (max-width: 639px) {
  .comparison-table-wrapper::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 32px !important;
    background: linear-gradient(to left, rgba(0,0,0,0.8), transparent) !important;
    pointer-events: none !important;
  }
  .comparison-table-wrapper {
    position: relative !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   FULL-WIDTH FILL SYSTEM — authoritative, appended last
   Content fills ~90vw at every wide size (cap 3600px). Grids fill
   the container with equal 1fr columns. No centered island, no hard
   pixel caps above 1280px. Supersedes earlier container/grid caps.
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .container,
  .nav-inner {
    max-width: min(90vw, 3600px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: clamp(24px, 1.6vw, 48px) !important;
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: clamp(20px, 1.4vw, 44px) !important;
  }
}
@media (min-width: 650px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: clamp(24px, 1.6vw, 48px) !important;
  }
}
@media (min-width: 1920px) {
  .card { padding: clamp(28px, 2vw, 48px) !important; }
}

/* ── FULLER CARDS ON HUGE SCREENS — DISABLED ─────────────────────────
   This used to grow the column COUNT (grid-3→4/5, grid-4→6) on big
   screens. But nearly every section holds exactly 3 (grid-3) or 4
   (grid-4) cards, so more columns than cards left the cards packed into
   the first tracks and CLUSTERED hard left (up to ~1380px of empty space
   on the right at 3840). Grids now keep their semantic 3/4 columns (set
   by the FILL SYSTEM above); the per-card max-width below keeps cards
   from becoming absurd ~1100px slabs while staying centered in-cell.
   ──────────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════════
   LARGE-SCREEN SCALE-UP + HERO VOID FIX — authoritative, appended last
   ═══════════════════════════════════════════════════════════════ */

/* 1) Grow root font so all rem-based UI scales together on large screens */
@media (min-width:1920px){ html{ font-size:18px; } }
@media (min-width:2560px){ html{ font-size:20px; } }
@media (min-width:3440px){ html{ font-size:22px; } }

/* 2) Nav bar height grows to fit the larger text */
@media (min-width:1920px){ .nav-inner{ height:76px !important; } }
@media (min-width:2560px){ .nav-inner{ height:88px !important; } }

/* 3) Kill the hero void — cap the homepage hero height.
      This selector matches the existing :has(#hero-canvas) 100svh rule;
      appended last so it wins. Supersedes FIX F (75vh/85vh) too. */
.hero-section:has(#hero-canvas){ min-height:clamp(640px, 82vh, 1040px) !important; }
@media (min-width:2560px){
  .hero-section:has(#hero-canvas){ min-height:clamp(800px, 72vh, 1180px) !important; }
}

/* 4) Hero content + stats sizing on large screens is now handled by the
      WIDE-SCREEN HEADLINE + CARD PROPORTIONS block below (appended last).
      The former pixel caps here boxed the hero title — removed. */

/* 5) CTA buttons get a touch larger on big screens */
@media (min-width:2560px){ .btn-primary,.btn-secondary{ padding:16px 36px !important; } }

/* ═══════════════════════════════════════════════════════════════
   WIDE-SCREEN HEADLINE + CARD PROPORTIONS (final)
   Titles fill the container width and balance their wrapping; the hero
   is no longer boxed. Paragraph copy stays readable. Single cards get a
   sane max so 3-up rows don't stretch absurdly on 4K.
   ═══════════════════════════════════════════════════════════════ */

/* Hero is no longer trapped — follows .container (90vw) exactly.
   NB: `.hero-content` and `.container` have equal specificity, so a bare
   `max-width:none` here would beat the container cap and push the hero
   full-bleed (wider than every other 90vw section). Pin it to the same
   value so the hero aligns with the rest of the page. This also overrides
   the base .hero-content{max-width:820px} and the 1100/1400px responsive caps. */
@media (min-width: 1920px) {
  .hero-content { max-width: min(90vw, 3600px) !important; }
  .hero-sub     { max-width: 65ch !important; margin-left: auto !important; margin-right: auto !important; }
  .hero-stats   { max-width: 1400px !important; }
}
@media (min-width: 2560px) { .hero-stats { max-width: 1700px !important; } }
@media (min-width: 3440px) { .hero-stats { max-width: 2000px !important; } }

/* Headlines: use full content width, balance line breaks, center.
   text-wrap:balance evens multi-line titles; pretty falls back gracefully. */
@media (min-width: 1280px) {
  .hero-title,
  .section-heading,
  .section-title { max-width: 100% !important; text-wrap: balance; }
}

/* Collapse the hardcoded <br> inside the homepage hero title on wide
   screens so it wraps naturally (balanced) instead of a forced 2 lines.
   If the <br> has no class, this targets any <br> directly in .hero-title. */
@media (min-width: 1280px) {
  .hero-title br { display: none; }
}

/* Card proportions: equal columns already fill the container (FILL SYSTEM).
   Cap a SINGLE card's width so a 3-card row on 4K stays tidy/centered
   rather than three ~1100px slabs. Cards remain centered as a group. */
@media (min-width: 2560px) {
  .grid-3 > *, .grid-4 > * { max-width: 720px; margin-inline: auto; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX: gradient-text clips descenders (g/y/p/q/j) because background-clip:text
   on an inline box cuts at the line-box. inline-block + small bottom pad fixes
   it without affecting layout/wrapping. Negative margin compensates the pad so
   vertical rhythm is unchanged.
   ═══════════════════════════════════════════════════════════════ */
.gradient-text{
  display: inline-block !important;
  padding-bottom: 0.12em !important;
  margin-bottom: -0.12em !important;   /* cancel the pad so spacing is unchanged */
  /* keep existing background/clip/fill from the base .gradient-text rule */
}

/* FIX: unify footer column heading casing — all .footer-col h4 use the same
   uppercase + tracking treatment (previously only the PRODUCT column had it
   via an inline style). Casing now lives in the shared rule. */
.footer-col h4{
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}
