/* —— Motion & depth layer —— */
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,0.16), transparent 55%),
    radial-gradient(900px 500px at 0% 40%, rgba(245,158,11,0.07), transparent 50%),
    var(--bg);
}

.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  margin: -180px 0 0 -180px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(59,130,246,0.1), transparent 68%);
  opacity: 0;
  transition: opacity 0.35s ease;
  will-change: transform;
  mix-blend-mode: screen;
}
body.glow-on .cursor-glow { opacity: 1; }

.sky-grid {
  background-size: 56px 56px;
  animation: gridDrift 28s linear infinite;
  opacity: 0.9;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 56px 28px; }
}
.sky-wash.a { animation: washA 14s ease-in-out infinite alternate; }
.sky-wash.b { animation: washB 18s ease-in-out infinite alternate; }
@keyframes washA {
  from { transform: translate3d(0,0,0) scale(1); opacity: 0.32; }
  to { transform: translate3d(-6%, 8%, 0) scale(1.12); opacity: 0.48; }
}
@keyframes washB {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(8%, -5%, 0) scale(1.15); }
}
.sky-scan {
  animation: scanMove 7s linear infinite;
  opacity: 0.55;
}
@keyframes scanMove {
  from { transform: translateY(-8%); }
  to { transform: translateY(8%); }
}

.topbar {
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.topbar.scrolled {
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero {
  overflow: hidden;
}
.hero-layout {
  will-change: transform, opacity;
  transform-origin: center top;
}
.hero .accent {
  position: relative;
  display: inline-block;
}
.hero .accent::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.08em;
  height: 0.18em;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,0.55), transparent);
  filter: blur(1px);
  animation: accentPulse 3.2s ease-in-out infinite;
}
@keyframes accentPulse {
  0%, 100% { opacity: 0.35; transform: scaleX(0.85); }
  50% { opacity: 0.9; transform: scaleX(1); }
}

.hero-ring.r1 {
  animation: ringPulse 5.5s ease-in-out infinite;
  box-shadow: 0 0 28px rgba(59,130,246,0.1), inset 0 0 28px rgba(59,130,246,0.05);
}
.hero-ring.r2 {
  animation: spin 48s linear infinite;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.hero-logo {
  filter:
    drop-shadow(0 22px 48px rgba(0,0,0,0.5))
    drop-shadow(0 0 28px rgba(59,130,246,0.18));
}
.hud-tag { display: none !important; }

.btn-primary {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(59,130,246,0.32), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-ghost {
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.metrics {
  position: relative;
  backdrop-filter: blur(14px) saturate(1.15);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), transparent 50%),
    rgba(17, 21, 30, 0.78);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
  overflow: hidden;
}
.metrics::before { display: none; }
.metric .val {
  background: none;
  -webkit-text-fill-color: unset;
  color: var(--text);
}
.metric .val.text-val {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #e8eef8;
}

.section-block { /* structure in landing-layout.css */ }

.reveal {
  /* overridden by landing-layout.css */
}
.package-card,
.panel-card,
.feature-trio article,
.ops-band article {
  border-radius: 16px;
}
.product-stage {
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.38);
}
.demo-form {
  border-radius: 18px;
  border-color: rgba(255,255,255,0.1);
}

.section-block {
  position: relative;
  /* padding/background owned by landing-layout.css */
}

.package-card,
.panel-card,
.arch-card,
.feature-trio article,
.ops-band article,
.model-insight article,
.vf-card,
.audience div,
.faq-list details,
.demo-form,
.compare-mini,
.product-stage,
.findings-shell {
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s, box-shadow 0.35s;
}
.package-card:hover,
.panel-card:hover,
.arch-card:hover,
.feature-trio article:hover,
.ops-band article:hover,
.model-insight article:hover,
.vf-card:hover,
.audience div:hover {
  transform: translateY(-4px);
  border-color: rgba(59,130,246,0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(59,130,246,0.12);
}

.card {
  transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.35s, transform 0.15s ease-out;
  will-change: transform;
}
.card:hover {
  border-color: rgba(59,130,246,0.45);
  box-shadow: 0 22px 48px rgba(0,0,0,0.35), 0 0 40px rgba(59,130,246,0.08);
  transform: translateY(-4px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,0.16), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }

.terminal {
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.12);
}
.product-stage {
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.product-stage:hover {
  box-shadow: 0 36px 80px rgba(0,0,0,0.48), 0 0 0 1px rgba(59,130,246,0.2);
}

.funnel-step {
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.funnel-step:hover {
  transform: translateY(-5px) scale(1.03);
  border-color: rgba(59,130,246,0.4);
  box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}
.funnel-step.confirmed {
  box-shadow: 0 0 30px rgba(52,211,153,0.15);
  animation: confGlow 2.8s ease-in-out infinite;
}
@keyframes confGlow {
  0%, 100% { box-shadow: 0 0 18px rgba(52,211,153,0.12); }
  50% { box-shadow: 0 0 36px rgba(52,211,153,0.28); }
}

.cta-band {
  margin: 0;
  animation: none;
  box-shadow: none;
}

.scroll-progress {
  box-shadow: 0 0 12px rgba(59,130,246,0.65);
}

@media (max-width: 980px) {
  .cursor-glow, .fx-canvas { display: none; }
  .card:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .fx-canvas, .cursor-glow, .noise, .sky-scan, .sky-grid, .metrics::before { display: none !important; }
  .reveal, .reveal[data-fx] { opacity: 1; filter: none; transform: none; }
  .hero-logo, .hud-tag, .hero-ring, .sky-wash, .cta-band, .funnel-step.confirmed { animation: none !important; }
}
