/* AIXG — base styles */
:root {
  --bg: #ffffff;
  --bg-muted: #eff6ff;
  --bg-tint: #dbeafe;
  --bg-dark: #050a17;
  --panel: #0a1328;
  --panel-2: #0f1a33;
  --border: #dbeafe;
  --border-dark: #172142;
  --border-dark-2: #1f2d56;
  --ink: #081024;
  --ink-2: #1e293b;
  --ink-3: #64748b;
  --ink-inv: #f1f5fb;
  --ink-inv-2: #c7d2e5;
  --ink-inv-3: #8fa0c2;
  /* Brand (from AIXG logo + live site) */
  --brand-1: #0b1f4a;
  --brand-2: #1e4fb8;
  --brand-3: #2563eb;
  --brand-4: #3b82f6;
  --cyan-1: #00b8f5;
  --cyan-2: #22d3ee;
  --accent: #00b8f5;
  --accent-2: #22d3ee;
  --accent-3: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  /* Signature brand gradient (deep blue → bright cyan) */
  --brand-grad: linear-gradient(135deg, #0b1f4a 0%, #1e4fb8 40%, #3b82f6 70%, #00b8f5 100%);
  --brand-grad-soft: linear-gradient(135deg, #1e4fb8 0%, #3b82f6 60%, #00b8f5 100%);
  --radius: 10px;
  --radius-lg: 14px;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* Typography */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.eyebrow.on-dark { color: var(--ink-inv-3); }
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  translate: 0 -1px;
}

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.025em; font-weight: 600; }
h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 600; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.08; letter-spacing: -0.025em; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -0.015em; }
p  { margin: 0; color: var(--ink-2); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 72px 0; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { font-size: 18px; margin-top: 16px; color: var(--ink-2); }

.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand-grad-soft);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 26px -10px rgba(0,184,245,.55);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 16px 36px -10px rgba(0,184,245,.7); }

.btn-primary.on-dark {
  background: var(--brand-grad-soft);
  color: #fff;
}
.btn-primary.on-dark:hover { filter: brightness(1.12); }

.btn-accent {
  background: linear-gradient(135deg, #00b8f5 0%, #22d3ee 100%);
  color: #051027;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 10px 30px -10px rgba(0,184,245,.65);
}
.btn-accent:hover { filter: brightness(1.08); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 16px 40px -10px rgba(34,211,238,.8); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--ink-inv); border-color: var(--border-dark-2); }
.btn-ghost.on-dark:hover { border-color: var(--ink-inv); }

.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 16px;
}
.logo img {
  height: 32px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, #0b1f4a 0%, #1e4fb8 55%, #7ebcff 120%);
  position: relative;
  overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 3px;
  border: 1.5px solid rgba(255,255,255,.85);
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: var(--ink-inv-2);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
}
.footer h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-inv-3);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer li a { color: var(--ink-inv-2); font-size: 14px; }
.footer li a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--ink-inv-3);
}
.footer .logo { color: #fff; }
.footer p.lede { color: var(--ink-inv-2); font-size: 14px; max-width: 320px; margin-top: 16px; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Scroll reveal — start visible; JS adds .reveal-armed to hide for animation when JS is healthy */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in, .reveal.reveal-armed.in {
  opacity: 1;
  transform: translateY(0);
}

/* Dark section utilities */
.on-dark-section {
  background: var(--bg-dark);
  color: var(--ink-inv);
}
.on-dark-section h1,
.on-dark-section h2,
.on-dark-section h3 { color: var(--ink-inv); }
.on-dark-section p { color: var(--ink-inv-2); }

/* Grid bg helpers */
.grid-bg {
  background-image:
    linear-gradient(to right, rgba(148,163,184,.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.08) 1px, transparent 1px);
  background-size: 64px 64px;
}
.grid-bg-light {
  background-image:
    linear-gradient(to right, rgba(15,23,42,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,.045) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -24px rgba(11,18,32,.18);
  border-color: #cbd5e1;
}
.card.dark {
  background: var(--panel);
  border-color: var(--border-dark);
}
.card.dark:hover {
  border-color: #334155;
  box-shadow: 0 20px 40px -24px rgba(14,165,233,.2);
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
}
.divider.dark { background: var(--border-dark); }

/* Table-ish rows */
.row-line {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.row-line:last-child { border-bottom: 1px solid var(--border); }
.row-line .label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); padding-top: 4px; }
.row-line .body  { color: var(--ink-2); }

.row-line.dark { border-color: var(--border-dark); }
.row-line.dark .label { color: var(--ink-inv-3); }
.row-line.dark .body { color: var(--ink-inv-2); }

/* Tag / pill */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
}
.tag.dark { background: transparent; border-color: var(--border-dark-2); color: var(--ink-inv-2); }
.tag.accent { border-color: rgba(14,165,233,.4); color: var(--accent); background: rgba(14,165,233,.06); }

/* Marquee-ish logo row */
.trust-row {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  opacity: .7;
}
.trust-row .client {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Gradient orb */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}

/* Small utilities */
.hstack { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.vstack { display: flex; flex-direction: column; gap: 16px; }

/* Numeric display */
.stat-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  font-weight: 500;
}


/* ===== Brand hero animations ===== */

/* Chrome gradient headline */
.brand-gradient {
  background: linear-gradient(90deg, #7ebcff 0%, #3d8bff 35%, #1e4fb8 70%, #3d8bff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShine 8s linear infinite;
}
@keyframes brandShine {
  to { background-position: 200% center; }
}

/* Typing cursor */
.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: linear-gradient(180deg, #7ebcff, #3d8bff);
  margin-left: 6px;
  translate: 0 6px;
  border-radius: 2px;
  animation: caret 1s steps(2) infinite;
  box-shadow: 0 0 12px rgba(125,188,255,.75);
}
@keyframes caret { 50% { opacity: 0; } }

/* Animated hero backdrop: flowing gradient + grid + scan line */
.hero-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-bg .mesh {
  position: absolute; inset: -10%;
  background:
    radial-gradient(600px 400px at 15% 25%, rgba(61,139,255,.35), transparent 60%),
    radial-gradient(500px 380px at 85% 30%, rgba(30,79,184,.45), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(125,188,255,.22), transparent 60%);
  animation: meshDrift 18s ease-in-out infinite alternate;
  filter: blur(2px);
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-3%, 2%) scale(1.05); }
  100% { transform: translate(2%, -2%) scale(1.02); }
}
.hero-bg .scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(125,188,255,.06) 50%, transparent 100%);
  height: 200%;
  animation: scanSweep 9s linear infinite;
}
@keyframes scanSweep {
  0%   { transform: translateY(-60%); }
  100% { transform: translateY(60%); }
}

/* AIXG logo-mark on dark: subtle glow pulse */
.logo-glow {
  animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { filter: drop-shadow(0 0 0 rgba(61,139,255,0)); }
  50%     { filter: drop-shadow(0 0 20px rgba(61,139,255,.55)); }
}

/* Node network sprite for dark sections */
.nodes {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
}
.nodes circle { fill: #7ebcff; }
.nodes line   { stroke: rgba(125,188,255,.35); stroke-width: 1; }

/* Counter roll-up (used via JS, CSS helper here) */
@keyframes countPulse {
  0% { opacity: .3; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Reveal: stronger motion (only when armed by JS) */
.reveal.reveal-armed {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .85s cubic-bezier(.2,.7,.2,1), transform .85s cubic-bezier(.2,.7,.2,1);
}

/* Card hover becomes more alive */
.card { transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .2s ease, background .3s ease; }
.card:hover { border-color: rgba(61,139,255,.35); box-shadow: 0 24px 48px -24px rgba(30,79,184,.25); }
.card.dark:hover { border-color: rgba(61,139,255,.45); box-shadow: 0 24px 48px -20px rgba(61,139,255,.3); }

/* Accent glow ring for featured tiers */
.card.featured-ring {
  box-shadow: 0 0 0 1px rgba(61,139,255,.35), 0 20px 50px -20px rgba(61,139,255,.35);
}

/* Marquee sheen on hero stats */
.stat-sheen {
  position: relative; overflow: hidden;
}
.stat-sheen::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.08) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: statSheen 6s ease-in-out infinite;
}
@keyframes statSheen {
  0%, 60% { transform: translateX(-100%); }
  80%, 100% { transform: translateX(100%); }
}

/* Section divider gradient line */
.gradient-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61,139,255,.5), transparent);
  border: 0;
  margin: 0;
}

/* Button arrow + shimmer on primary */
.btn-accent, .btn-primary.on-dark {
  position: relative;
  overflow: hidden;
}
.btn-accent::before, .btn-primary.on-dark::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.25) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-accent:hover::before, .btn-primary.on-dark:hover::before {
  transform: translateX(120%);
}
.btn-accent > *, .btn-primary.on-dark > * { position: relative; z-index: 1; }

/* Floating badges */
.float-slow { animation: floatSlow 7s ease-in-out infinite; }
@keyframes floatSlow {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}


/* ===== Section variants (visual rhythm) ===== */
.section-white { background: #ffffff; }
.section-tint  {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  position: relative;
}
.section-tint::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 85% 0%, rgba(0,184,245,.12), transparent 60%);
  pointer-events: none;
}
.section-brand {
  background: var(--brand-grad);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.section-brand::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 15% 20%, rgba(0,184,245,.4), transparent 60%),
    radial-gradient(600px 500px at 85% 80%, rgba(34,211,238,.25), transparent 60%);
  pointer-events: none;
}
.section-brand h1, .section-brand h2, .section-brand h3 { color: #fff; }
.section-brand p { color: rgba(255,255,255,.85); }
.section-brand .eyebrow { color: rgba(255,255,255,.8); }
.section-brand .section-head p { color: rgba(255,255,255,.85); }

/* Section label chip */
.section-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,184,245,.1);
  border: 1px solid rgba(0,184,245,.25);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.section-chip.on-dark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--cyan-2); }
.section-chip.on-brand { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }

/* Accent mark on headings */
.accent-mark {
  background: linear-gradient(90deg, #00b8f5, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero: push cyan brighter */
.brand-gradient {
  background: linear-gradient(90deg, #22d3ee 0%, #00b8f5 40%, #3b82f6 80%, #22d3ee 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brandShine 6s linear infinite;
}

.type-caret {
  background: linear-gradient(180deg, #22d3ee, #00b8f5);
  box-shadow: 0 0 16px rgba(0,184,245,.85);
}

/* Buttons: make cyan CTA pop harder */
.btn-accent { color: #051027 !important; }

/* ===== Mobile ===== */
@media (max-width: 820px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }
  h1 { font-size: 36px !important; line-height: 1.1 !important; }
  h2 { font-size: 28px !important; }
  h3 { font-size: 18px !important; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 16px !important; }

  /* Collapse all 2/3/4-col grids to 1 */
  .container [style*="grid-template-columns: repeat(2"],
  .container [style*="grid-template-columns: repeat(3"],
  .container [style*="grid-template-columns: repeat(4"],
  .container [style*="grid-template-columns: 1fr 1fr"],
  .container [style*="grid-template-columns: 1fr 1.3fr"],
  .container [style*="grid-template-columns: 1.1fr 1fr"],
  .container [style*="grid-template-columns: 200px 1fr"],
  .container [style*="grid-template-columns: 220px 1fr auto"] {
    grid-template-columns: 1fr !important;
  }

  /* Kill inter-column borders on collapsed grids */
  .container [style*="borderRight"] {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }
  .container [style*="borderLeft"] { border-left: none !important; }

  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  .hero-bg .mesh { filter: blur(8px); }

  /* Hero stats: 2 cols instead of 4 */
  section [class*="stat-sheen"] {
    grid-template-columns: 1fr 1fr !important;
  }
  section [class*="stat-sheen"] > div:nth-child(3) { border-top: 1px solid var(--border-dark); }

  .trust-row { gap: 24px; }
  .trust-row .client { font-size: 11px; }

  .row-line { padding: 20px 0 !important; }
  .row-line .label { padding-top: 0; }

  .btn { padding: 12px 18px; font-size: 14px; width: 100%; justify-content: center; }
  .hstack .btn { flex: 1; min-width: 0; }

  .card { padding: 22px; }

  /* Readable forms */
  input, select, textarea { font-size: 16px !important; /* prevents iOS zoom */ }
}

@media (max-width: 540px) {
  section { padding: 56px 0; }
  h1 { font-size: 32px !important; }
  .container { padding: 0 18px; }
  .section-head { margin-bottom: 28px; }
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* Restore specific borders where needed via class-targeted rules */
@media (max-width: 820px) {
  .bordered-group > * + * { border-top: 1px solid var(--border) !important; border-right: 0 !important; }
  .bordered-group.dark > * + * { border-top: 1px solid var(--border-dark) !important; }
}


/* Force readability on brand-gradient cost section, especially mobile */
.cost-section { background: var(--brand-grad) !important; }
.cost-section * { color: #fff; }
.cost-section .mono, .cost-section .eyebrow, .cost-section .stat-num { color: #fff !important; }
.cost-section [class*=stat-num] { color: #ffffff !important; }
.cost-section p, .cost-section div { color: rgba(255,255,255,.92); }
.cost-section [style*="color: var(--ink-inv-3)"], .cost-section [style*="color:var(--ink-inv-3)"] { color: rgba(255,255,255,.75) !important; }


/* Even stronger override for Cost of Inaction section on every device */
.cost-section { background: linear-gradient(135deg, #0b1f4a 0%, #1e4fb8 50%, #2563eb 100%) !important; }
.cost-section > * { position: relative; z-index: 1; }
.cost-section [style*="border: 1px solid var(--border-dark)"] {
  background: rgba(255,255,255,.08) !important;
  border-color: rgba(255,255,255,.18) !important;
  backdrop-filter: blur(4px);
}
.cost-section [style*="border-top"] { border-top-color: rgba(255,255,255,.15) !important; }
.cost-section [style*="font-size: 18px"] { color: #fff !important; }
.cost-section [style*="color: var(--ink-inv-3)"], 
.cost-section [style*="color:var(--ink-inv-3)"] { color: rgba(255,255,255,.8) !important; }
.cost-section .stat-num { color: #fff !important; }
.cost-section .mono { color: rgba(255,255,255,.85) !important; }
.cost-section p { color: rgba(255,255,255,.9) !important; }


/* Ensure section-tint content sits above the gradient overlay */
.section-tint > .container { position: relative; z-index: 1; }
.section-tint .section-head { position: relative; z-index: 2; }
.section-tint .section-head h2, .section-tint .section-head p, .section-tint .section-head .eyebrow { color: var(--ink) !important; }
.section-tint .section-head p { color: var(--ink-2) !important; }
.section-tint .section-head .eyebrow { color: var(--ink-3) !important; }

/* Tablet (Z Fold unfolded ~820-1024px) — keep 2-col but ensure things render */
@media (min-width: 640px) and (max-width: 1024px) {
  h1 { font-size: 44px !important; }
  h2 { font-size: 36px !important; }
  .section-head { margin-bottom: 40px !important; }
}

.cost-section [style*="rgba(255,255,255,.02)"] { background: rgba(255,255,255,.08) !important; }


/* Force all section headlines to render — belt-and-suspenders */
.section-head .eyebrow { color: rgba(255,255,255,.0) ; }
section .section-head h2 { color: inherit !important; opacity: 1 !important; visibility: visible !important; display: block !important; }
section .section-head p { opacity: 1 !important; visibility: visible !important; display: block !important; }
section .section-head .eyebrow { opacity: 1 !important; visibility: visible !important; display: block !important; }

/* Dark sections: white headlines */
.section-dark .section-head h2, .on-dark-section .section-head h2, .cost-section .section-head h2 { color: #fff !important; }
.section-dark .section-head p, .on-dark-section .section-head p, .cost-section .section-head p { color: rgba(255,255,255,.8) !important; }
.section-dark .section-head .eyebrow, .on-dark-section .section-head .eyebrow, .cost-section .section-head .eyebrow { color: rgba(255,255,255,.6) !important; }

/* Light/tint sections: dark headlines */
.section-tint .section-head h2, section:not(.section-dark):not(.on-dark-section):not(.cost-section) .section-head h2 { color: #0b1220 !important; }
.section-tint .section-head p, section:not(.section-dark):not(.on-dark-section):not(.cost-section) .section-head p { color: #475569 !important; }
.section-tint .section-head .eyebrow, section:not(.section-dark):not(.on-dark-section):not(.cost-section) .section-head .eyebrow { color: #64748b !important; }


/* Prevent horizontal overflow from decorative orbs/animations */
html, body { overflow-x: hidden !important; max-width: 100vw; }
section { overflow: hidden !important; max-width: 100vw; }
.orb { pointer-events: none; }

/* Mobile tightening */
@media (max-width: 520px) {
  .container { padding-left: 20px !important; padding-right: 20px !important; }
  section { padding-top: 56px !important; padding-bottom: 56px !important; }
  h1 { font-size: 34px !important; line-height: 1.1 !important; }
  h2 { font-size: 26px !important; line-height: 1.15 !important; }
  h3 { font-size: 20px !important; }
  .section-head { margin-bottom: 28px !important; }
  .section-head h2 { font-size: 26px !important; }
  .stat-num, [class*="stat"] { font-size: 36px !important; }
  /* Force any multi-column grid to stack */
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: repeat(4"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Any flex row with gap wraps */
  [style*="display: flex"][style*="gap"] { flex-wrap: wrap !important; }
  /* Cap huge ROI numbers */
  .cost-section [style*="font-size: 64px"],
  .cost-section [style*="font-size:64px"] { font-size: 36px !important; }
}


/* Safety: CSS fallback so reveal elements ALWAYS become visible even if JS/IntersectionObserver fails */
@keyframes reveal-fallback {
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: reveal-fallback 0.01s ease forwards 1.5s; }
.reveal.in { animation: none; opacity: 1 !important; transform: translateY(0) !important; }
