/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border-color);
  transition: border-color 0.28s ease;
}
nav::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(7,15,38,0.40);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
  transition: opacity 0.28s ease;
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ─── Brand Mark · e^(iπ) INSIGHTS ─── */
.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-primary);
  line-height: 1;
}
.brand-logo {
  height: 32px;
  width: auto;
  display: block;
  user-select: none;
  transition: opacity 0.2s;
}
.brand-mark:hover .brand-logo { opacity: 0.85; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-cta-mobile { display: none; }
.nav-links a:not(.btn-primary) {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:not(.btn-primary):hover { color: var(--text-primary); }

/* ─── Mobile Nav ─── */
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 768px) {
  .nav-toggle { display: block; position: relative; z-index: 100; }
  .brand-mark { position: relative; z-index: 100; }
  .nav-links {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99;
    background: rgba(7,15,38,0.40);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: calc(68px + 32px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
    overflow-y: auto;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(.4,0,.2,1), opacity 0.28s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  nav:has(.nav-links.open) { border-bottom-color: transparent; }
  nav:has(.nav-links.open)::before { opacity: 0; }
  .nav-links > li { text-align: left; }
  .nav-links a:not(.btn-primary):not(.btn-outline) { font-size: 1.05rem; }
  .nav-links > li.nav-cta-bottom { margin-top: auto; }
  .nav-links > li.nav-cta-bottom + li { margin-top: -14px; }
  .nav-links .btn-primary,
  .nav-links .btn-outline { width: 100%; }
  .nav-cta-mobile { display: block; }
  .dropdown-trigger { display: flex; width: 100%; justify-content: space-between; align-items: center; }
  .dropdown-trigger svg { width: 14px; height: 14px; }
}

/* ─── HERO ─── */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* WebGL background canvas — depends on .hero having position: relative + overflow: hidden */
.hero > .hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}
.hero > .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero h1 .highlight {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-feature-settings: "ss01";
  color: var(--accent-blue);
  letter-spacing: -0.015em;
  white-space: normal;
}
.hero-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-outline {
  background: rgba(14, 38, 87, 0.35);              /* same translucent navy as cards */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 500;
}
.btn-outline:hover {
  background: rgba(20, 48, 107, 0.55);
  border-color: var(--text-muted);
  color: var(--text-primary);
}
.btn-text {
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--accent-gold);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* ═══ Hero Dashboard Card · infographic ═══ */
.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px 20px;
  position: relative;
  overflow: hidden;
}

/* head */
.hc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.hc-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.hc-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hc-title em {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-blue);
  margin-left: 4px;
}
.hc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(59, 130, 246, 0.12);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--accent-blue-soft);
  white-space: nowrap;
}
.hc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue-soft);
  box-shadow: 0 0 0 0 rgba(96, 160, 255, 0.55);
  animation: hc-pulse-dot 2s ease-out infinite;
}
@keyframes hc-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(96, 160, 255, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(96, 160, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(96, 160, 255, 0); }
}

/* kpis */
.hc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.hc-kpi {
  background: rgba(5, 10, 27, 0.50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.hc-kpi-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hc-kpi-num {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 4px;
}
.hc-kpi-big {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
}
.hc-kpi-suffix {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.hc-kpi-delta {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.hc-kpi-delta.up   { color: var(--accent-blue-soft); }
.hc-kpi-delta.down { color: var(--text-muted); }

/* chart */
.hc-chart { margin-bottom: 16px; }
.hc-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.hc-chart-title {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.hc-chart-period {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--accent-blue-soft);
}
.hc-svg {
  width: 100%;
  height: 90px;
  display: block;
  overflow: visible;
}
.hc-grid {
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}
.hc-area {
  fill: url(#hc-area-fill);
  opacity: 0;
  animation: hc-fade-area 700ms 1700ms ease-out forwards;
}
.hc-line {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: hc-draw 1800ms 200ms cubic-bezier(.4,0,.2,1) forwards;
}
.hc-pulse {
  fill: var(--accent-blue);
  opacity: 0;
  animation: hc-fade-pt 400ms 2000ms ease-out forwards;
}
.hc-pulse-ring {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 1.5;
  opacity: 0;
  transform-origin: 320px 12px;
  animation: hc-ring 2.4s 2200ms ease-out infinite;
}
@keyframes hc-draw      { to { stroke-dashoffset: 0; } }
@keyframes hc-fade-area { to { opacity: 1; } }
@keyframes hc-fade-pt   { to { opacity: 1; } }
@keyframes hc-ring {
  0%   { opacity: 0.7; transform: scale(0.4); }
  70%  { opacity: 0;   transform: scale(2.4); }
  100% { opacity: 0;   transform: scale(2.4); }
}
.hc-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* signals */
.hc-signals {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hc-signal {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 10px;
}
.hc-signal-name {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}
.hc-signal-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.hc-signal-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-blue-deep), var(--accent-blue));
  border-radius: 2px;
  animation: hc-fill 1.4s 600ms cubic-bezier(.4,0,.2,1) forwards;
}
.hc-signal:nth-child(1) .hc-signal-fill { animation-delay: 600ms; }
.hc-signal:nth-child(2) .hc-signal-fill { animation-delay: 750ms; }
.hc-signal:nth-child(3) .hc-signal-fill { animation-delay: 900ms; }
.hc-signal:nth-child(4) .hc-signal-fill { animation-delay: 1050ms; }
@keyframes hc-fill { to { width: var(--fill); } }
.hc-signal-val {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--accent-blue-soft);
  text-align: right;
  font-feature-settings: "tnum";
}

@media (prefers-reduced-motion: reduce) {
  .hc-line { stroke-dashoffset: 0; animation: none; }
  .hc-area, .hc-pulse { opacity: 1; animation: none; }
  .hc-pulse-ring, .hc-status-dot { animation: none; }
  .hc-signal-fill { animation: none; width: var(--fill); }
  .hero-canvas { display: none; }
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
  margin-bottom: 0;
}
.trust-items {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  padding: 10px 16px;
}
.trust-icon {
  width: 20px; height: 20px;
  color: var(--accent-blue);
}

/* ─── SERVICES ─── */
.services { padding: 100px 0; }
.services-header { text-align: center; margin-bottom: 56px; }
.services-header .section-subtitle { margin: 0 auto; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.service-card:hover { border-color: var(--border-accent); transform: translateY(-4px); }

/* Card head — eyebrow on left, icon tile on right */
.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.service-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--accent-blue-soft);
  text-transform: uppercase;
  padding-top: 18px;     /* aligns optically with center of icon tile */
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
/* Subtle animations for in-icon highlights — pulse from the circle center */
.service-icon .ic-pulse-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: svc-icon-pulse 2.6s ease-out infinite;
}
.service-icon .ic-pulse-dot {
  transform-box: fill-box;
  transform-origin: center;
  animation: svc-icon-throb 2.6s ease-out infinite;
}
@keyframes svc-icon-pulse {
  0%   { opacity: 0.6; transform: scale(0.6); }
  60%  { opacity: 0;   transform: scale(2.4); }
  100% { opacity: 0;   transform: scale(2.4); }
}
@keyframes svc-icon-throb {
  0%, 100% { transform: scale(1);    }
  8%       { transform: scale(1.25); }
  35%      { transform: scale(1);    }
}
/* Bars fluctuate continuously like a live data feed */
.service-icon .ic-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: ic-bar-flux 3.4s ease-in-out infinite;
}
@keyframes ic-bar-flux {
  0%, 100% { transform: scaleY(1);    }
  20%      { transform: scaleY(1.18); }
  45%      { transform: scaleY(0.84); }
  70%      { transform: scaleY(1.08); }
  90%      { transform: scaleY(0.92); }
}
/* Grid-of-dots: most flicker faintly (noise), a few stay bright (the predictions) */
.service-icon .ic-grid-dot {
  fill: #60A0FF;
  transform-box: fill-box;
  transform-origin: center;
  animation: ic-grid-pulse 2.8s ease-in-out infinite;
}
.service-icon .ic-grid-dot-bright {
  animation-name: ic-grid-pulse-bright;
}
@keyframes ic-grid-pulse {
  0%, 100% { opacity: 0.16; }
  50%      { opacity: 0.55; }
}
@keyframes ic-grid-pulse-bright {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .service-icon .ic-pulse-ring,
  .service-icon .ic-pulse-dot,
  .service-icon .ic-bar,
  .service-icon .ic-grid-dot,
  .service-icon .ic-grid-dot-bright { animation: none; }
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}
.service-card .dh-link { margin-bottom: 1rem; font-size: 0.82rem; }

/* Footer — price as KPI tile + CTA */
.service-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.service-price-label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.service-price-value {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--accent-blue);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.service-price-value .price-suffix {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-left: 2px;
}
.service-price-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.service-cta { width: 100%; margin-top: 14px; }

/* ─── DATA HEALTH CHECK ─── */
.data-health { padding: 100px 0; }
.dh-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.dh-right .section-label { margin-bottom: 8px; }
.dh-right .section-title { margin-bottom: 16px; }
.dh-right .section-subtitle { margin-bottom: 32px; }

/* Platform pills */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.platform-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 120%;
  color: var(--text-secondary);
  text-align: left;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}
.platform-pill svg,
.platform-pill img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}
.platform-pill:hover { border-color: var(--border-accent); color: var(--text-primary); }

.dh-link {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

/* Stat blocks */
.stat-blocks { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; }
.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-block .big-num {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 3.2rem;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--accent-blue);
}
.stat-block .big-num.blue { color: var(--accent-blue); }
.stat-block .big-num.green { color: var(--accent-blue); }
.stat-block .big-num.amber { color: var(--accent-blue); }
.stat-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.stat-block p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.stat-block .source-link {
  color: var(--accent-gold);
  font-size: 0.82rem;
  text-decoration: none;
  margin-top: 2rem;
  display: inline-block;
  font-weight: 500;
}

/* ─── CASE STUDIES ─── */
.case-studies {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background:
    /* cobalt highlight at top-right (matches hero/body) */
    radial-gradient(ellipse at 78% 18%, rgba(59,130,246,0.08), transparent 55%),
    /* vertical band: dim overlay at top + bottom, transparent through the middle */
    linear-gradient(180deg,
      rgba(1, 4, 19, 0.85) 0%,
      rgba(1, 4, 19, 0)   18%,
      rgba(1, 4, 19, 0)   82%,
      rgba(1, 4, 19, 0.85) 100%),
    /* horizontal navy blend: lighter left → darker right (mirrors the hero shader) */
    linear-gradient(90deg, var(--bg-gradient-top) 0%, var(--bg-gradient-mid) 100%);
}
.case-studies > .container { position: relative; z-index: 1; }
/* Same WebGL data-signal animation as the hero, mounted across the bottom
   band of the section. Runs L→R (no -45° rotation), transparent canvas so
   the section's own gradient shows through. Fades in (rather than the
   testimonial cards fading in) so we don't introduce a parent transform
   that would break the cards' backdrop-filter blur. */
.case-canvas {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 55%;
  z-index: 0;
  pointer-events: none;
  display: block;
  opacity: 0;
  transition: opacity 1.4s ease-out;
}
.case-canvas.is-active { opacity: 0.95; }
@media (prefers-reduced-motion: reduce) {
  .case-canvas { display: none; }
}
.case-header { text-align: center; margin-bottom: 56px; }
.case-header .section-subtitle { margin: 0 auto; }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}
.case-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.case-card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg-accent-dark), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}
.case-card-img span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 6px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
}
.case-card-body { padding: 20px 22px; }
.case-type {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}
.case-card-body h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.case-card-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(5px);
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--accent-blue);
  opacity: 0.5;
  margin-bottom: 12px;
}
.testimonial-card blockquote {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  object-fit: cover;
  background: var(--bg-accent-dark);
  flex-shrink: 0;
  display: block;
}
.author-info .name {
  font-size: 0.85rem;
  font-weight: 600;
}
.author-info .role {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.testimonials-dots { display: none; }
.testimonials-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: width 0.4s cubic-bezier(.4, 0, .2, 1), background 0.4s ease;
}
.testimonials-dot.active {
  width: 24px;
  background: var(--accent-blue);
}

/* ─── ABOUT ─── */
.about { padding: 100px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-left .section-title { margin-bottom: 20px; }
.about-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.about-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
}
.about-stat .value {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 3rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent-blue);
}
.about-stat .label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── LEAD MAGNET ─── */
.lead-magnet { padding: 80px 0; }
.lm-card {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(59,130,246,0.10), transparent 60%),
    linear-gradient(135deg, rgba(11,27,57,0.55) 0%, rgba(7,15,38,0.55) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.lm-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.lm-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.lm-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 28px;
}
.lm-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.lm-highlights li svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Reveal-on-scroll: any element with class "reveal" fades up softly the first
   time it enters the viewport (handled by IntersectionObserver below). */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.85s cubic-bezier(.4,0,.2,1), transform 0.85s cubic-bezier(.4,0,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Once the reveal transition finishes, drop transform/will-change so the
   container is no longer a "backdrop root" — otherwise descendant cards
   with backdrop-filter can't see the section's background to blur it. */
.reveal.is-settled {
  transform: none;
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.lm-form { position: relative; z-index: 1; }
.lm-input-wrap {
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.lm-input {
  flex: 1;
  background: rgba(14, 38, 87, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-sm);
  height: 34px;
  padding: 0 16px;
  line-height: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.lm-input::placeholder { color: rgba(148,163,184,0.7); }
.lm-input:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.15); }
.lm-btn { padding: 10px 22px 10px 40px; }
.lm-privacy {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.lm-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}
.lm-book {
  position: relative;
  width: 220px;
  transform: perspective(800px) rotateY(-8deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.lm-card:hover .lm-book {
  transform: perspective(800px) rotateY(-2deg) translateY(-4px);
  box-shadow: 0 8px 60px 4px rgba(59, 130, 246, 0.45);
}
.lm-book-spine {
  position: absolute;
  left: -12px;
  top: 4px;
  bottom: 4px;
  width: 12px;
  background: linear-gradient(180deg, #1647A8 0%, #0E2657 100%);
  border-radius: 2px 0 0 2px;
  transform: skewY(0deg);
}
.lm-book-cover {
  background:
    linear-gradient(145deg, rgba(11,27,57,0.55) 0%, rgba(5,10,27,0.65) 60%, rgba(1,4,19,0.78) 100%),
    url('../images/graphic-background-lm-book-cover.jpg') center / cover no-repeat;
  border: 1px solid rgba(59,130,246,0.30);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 32px 24px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 8px 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}
.lm-book-cover::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-blue);
}
.lm-book-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 3px;
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.lm-book-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.lm-book-subtitle {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 400;
  margin-bottom: 24px;
}
.lm-book-author {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.lm-book-pages {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.lm-success {
  text-align: left;
  animation: fadeUp 0.4s ease-out;
}
.lm-success-icon { margin-bottom: 12px; }
.lm-success-icon svg { width: 36px; height: 36px; }
.lm-success-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-green);
  margin-bottom: 8px;
}
.lm-success-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.lm-success-link {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border-color);
  padding: 48px 0 32px;
  background: var(--bg-accent-dark);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 28px; list-style: none; }
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

/* ─── RESPONSIVE ─── */
.hero-card-mobile { display: none; }
.hero-card-desktop { display: block; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 500px; }
  .hero-content { display: flex; flex-direction: column; }
  .hero-card-mobile { order: 1; display: block; margin-bottom: 0; padding: 14px 16px 16px; }
  .hero-ctas { margin-bottom: 48px; }
  .hero-card-mobile .hc-head { margin-bottom: 10px; padding-bottom: 10px; }
  .hero-card-mobile .hc-kpis { margin-bottom: 12px; gap: 6px; }
  .hero-card-mobile .hc-kpi { padding: 8px 10px; }
  .hero-card-mobile .hc-chart { margin-bottom: 0; }
  .hero-card-mobile .hc-svg { height: 56px; }
  .hero-card-mobile .hc-signals { display: none; }
  .hero-card-desktop { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .dh-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .lm-card { grid-template-columns: 1fr; padding: 36px; }
  .lm-preview { order: -1; }
  .lm-book { transform: perspective(800px) rotateY(0deg); }
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .testimonials-grid {
    display: flex;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid > .testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
  }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .trust-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
    justify-items: center;
    align-items: start;
  }
  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 0;
  }
  .hero h1 { font-size: 2rem; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .lm-card { padding: 28px 20px; }
  .lm-highlights { grid-template-columns: 1fr; }
  .lm-input-wrap { flex-direction: column; }
  .lm-btn { width: 100%; text-align: center; }
  .lead-magnet { padding: 48px 0; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-outline { width: 100%; }
  .stat-block .big-num,
  .about-stat .value { font-size: 32px; }
  .services { padding: 56px 0; }
  .services-header { margin-bottom: 32px; }
  .data-health { padding: 56px 0; }
  .case-studies { padding: 56px 0; }
  .about { padding: 56px 0; }
  .hero { padding: 100px 0 56px; }
  .hero-canvas,
  .case-canvas { transform: scale(2); transform-origin: center; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-content > *:not(.hero-card-mobile) { animation: fadeUp 0.7s ease-out; }
.service-card, .case-card, .testimonial-card, .stat-block {
  animation: fadeUp 0.6s ease-out both;
}
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.nav-dropdown { position: relative; }
.dropdown-trigger { display: inline-flex; align-items: center; gap: 4px; }
.dropdown-trigger svg { transition: transform 0.2s; }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 12px); left: -16px;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 8px 0; min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.3); z-index: 200;
}
.dropdown-menu::before {
  content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px;
}
.dropdown-menu a {
  display: block; padding: 10px 20px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); text-decoration: none; transition: all 0.15s;
}
.dropdown-menu a:hover { background: rgba(255,255,255,0.04); color: var(--text-primary); }
.nav-dropdown:hover .dropdown-menu { display: block; }
.nav-dropdown:hover .dropdown-trigger svg { transform: rotate(180deg); }
@media (max-width: 768px) {
  .dropdown-menu {
    position: static; box-shadow: none; border: none; background: transparent;
    min-width: 0;
    display: block;
    max-height: 0;
    opacity: 0;
    padding: 0 0 0 16px;
    overflow: hidden;
    transition: max-height 0.32s ease, opacity 0.22s ease, padding 0.32s ease;
  }
  .nav-dropdown:hover .dropdown-trigger svg { transform: none; }
  .nav-dropdown.open .dropdown-menu {
    max-height: 320px;
    opacity: 1;
    padding: 4px 0 4px 16px;
  }
  .nav-dropdown.open .dropdown-trigger svg { transform: rotate(180deg); }
}

/* ─── MODAL ─── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease-out;
}
.modal-overlay.active { display: flex; }
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: rgba(11, 27, 57, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.modal-header-text .section-label { margin-bottom: 6px; }
.modal-header-text h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}
.modal-close {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s;
  flex-shrink: 0;
  margin-left: 16px;
}
.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
}
.modal-body {
  padding: 22px 28px 26px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: flex;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.form-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: background-color 0.2s, border-color 0.2s;
  outline: none;
}
.form-input::placeholder {
  color: var(--text-muted);
}
.form-input:not(:placeholder-shown) {
  background: rgba(14, 38, 87, 0.65);
}
.form-input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-group-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: block;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.checkbox-item input[type="checkbox"] { margin-top: 1px; }
.checkbox-item:hover {
  border-color: var(--border-accent);
  color: var(--text-primary);
}
.checkbox-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--text-muted);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.15s;
}
.checkbox-item input[type="checkbox"]:checked {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}
.checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-item:has(input:checked) {
  border-color: var(--accent-blue);
  background: rgba(59,130,246,0.12);
  color: var(--text-primary);
}
.form-submit { width: 100%; margin-top: 8px; padding: 10px 24px 10px 42px; }
.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
}
/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 32px;
}
.form-success.active { display: block; }
.form-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16,185,129,0.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  margin-bottom: 8px;
}
.form-success p {
  color: var(--text-secondary);
  font-size: 0.92rem; line-height: 1.6;
}
@media (max-width: 480px) {
  .checkbox-grid { grid-template-columns: 1fr; }
  .modal-header { padding: 24px 20px 0; }
  .modal-body { padding: 24px 20px 28px; }
}
