/* ============================================================
   VistaIQ — Holographic 3D Layer
   Loads AFTER style.css. Adds the WebGL canvas layering, neon
   accents, depth animation, and styles the feature deep-dive
   pages (smart-bookings / financial-clarity) that previously
   referenced CSS that did not exist.
   ============================================================ */

/* ---- Depth backdrop (sits behind the WebGL canvas) ---- */
body {
  background: radial-gradient(circle at 50% -10%, #0b1426 0%, #05070f 60%, #04050b 100%);
}

/* Full-viewport WebGL canvas, behind all content */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* CSS grid + scanline become faint overlays above the canvas */
.tech-grid-bg { opacity: 0.35; z-index: 1; }
.scanline { opacity: 0.12; }

/* Lift real content above the canvas (navbar keeps its own z-index) */
.hero, .features-summary, .features, .pricing,
.contact-section, .page-header, .page-content, footer {
  position: relative;
  z-index: 2;
}

/* ---- Navbar / brand glow ---- */
.navbar {
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 8px 30px -14px rgba(59, 130, 246, 0.3);
}
.logo { text-shadow: 0 0 18px rgba(59, 130, 246, 0.45); }
.nav-links a:not(.btn) { position: relative; }
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 10px var(--primary);
  transition: width 0.3s ease;
}
.nav-links a:not(.btn):hover::after { width: 100%; }

/* ---- Buttons: holographic ---- */
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  box-shadow: 0 0 20px -4px rgba(59, 130, 246, 0.6);
}
.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary-dark), var(--accent));
  box-shadow: 0 0 28px rgba(96, 165, 250, 0.7), 0 10px 24px -10px var(--primary);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: rgba(30, 41, 59, 0.55);
  border: 1px solid rgba(96, 165, 250, 0.35);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary-neon);
  box-shadow: 0 0 22px -6px var(--primary);
}

/* ---- Hero emphasis ---- */
.hero h1 .highlight { color: var(--primary-neon); text-shadow: 0 0 24px rgba(96, 165, 250, 0.6); }
.hero h1 .highlight::after {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.45), rgba(139, 92, 246, 0.25));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.4);
}

/* ---- Page headers: drop the white gradient over the dark 3D bg ---- */
.page-header { background: transparent; }
.page-header h1 { text-shadow: 0 0 26px rgba(59, 130, 246, 0.35); }
.features { background: transparent; }

/* ---- Cards: deepen the holographic feel ---- */
.glass-card { border-color: rgba(96, 165, 250, 0.28); }
.feature-card { will-change: transform; }
.feature-card i { box-shadow: 0 0 22px -6px var(--primary); }

/* ============================================================
   FEATURE DEEP-DIVE PAGES  (smart-bookings / financial-clarity)
   These classes had no styling before.
   ============================================================ */
.page-content { padding: 40px 0 100px; }

.feature-deep-dive { margin-bottom: 110px; perspective: 1400px; }
.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}
.feature-deep-dive.reverse .deep-dive-text { order: 2; }
.feature-deep-dive.reverse .deep-dive-visual { order: 1; }

.deep-dive-text h2 {
  font-size: 2.4rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 22px rgba(59, 130, 246, 0.25);
}
.deep-dive-text > p { color: var(--text-muted); font-size: 1.12rem; margin-bottom: 1.8rem; }

.feature-bullets { list-style: none; display: grid; gap: 0.9rem; }
.feature-bullets li { display: flex; align-items: center; gap: 0.8rem; font-weight: 500; }
.feature-bullets li i {
  color: var(--primary-neon);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.7));
}

/* Holographic mockup panel (icon + label placeholder) */
.deep-dive-visual { display: flex; justify-content: center; transform-style: preserve-3d; }
.visual-mockup {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 3rem 2rem;
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(59, 130, 246, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
}
.visual-mockup::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent 0%, rgba(96, 165, 250, 0.12) 18%, transparent 38%);
  animation: holoSweep 7s linear infinite;
}
.visual-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.visual-mockup i {
  width: 84px;
  height: 84px;
  color: var(--primary-neon);
  filter: drop-shadow(0 0 16px rgba(96, 165, 250, 0.85));
  position: relative;
  z-index: 1;
}
.visual-mockup p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfe0ff;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}
.visual-mockup:hover {
  box-shadow: 0 36px 70px -18px rgba(59, 130, 246, 0.4), inset 0 0 50px rgba(59, 130, 246, 0.12);
}
@keyframes holoSweep { to { transform: rotate(360deg); } }

/* CTA banner */
.cta-banner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(96, 165, 250, 0.3);
  box-shadow: 0 30px 70px -25px rgba(59, 130, 246, 0.5), inset 0 0 60px rgba(59, 130, 246, 0.06);
  backdrop-filter: blur(10px);
}
.cta-banner h2 { font-size: 2rem; margin-bottom: 1.6rem; text-shadow: 0 0 24px rgba(59, 130, 246, 0.35); }

/* ---- Pricing cards float ---- */
.pricing-card { transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -20px rgba(59, 130, 246, 0.4); }
.pricing-card.featured { box-shadow: 0 0 40px -8px rgba(59, 130, 246, 0.5); }

/* ---- Contact form readability (light inputs need dark text) ---- */
.form-group input, .form-group textarea { color: #0f172a; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #64748b; }

.reveal-hidden { will-change: transform, opacity; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 968px) {
  .deep-dive-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feature-deep-dive.reverse .deep-dive-text,
  .feature-deep-dive.reverse .deep-dive-visual { order: 0; }
  .deep-dive-text { text-align: center; }
  .feature-bullets li { justify-content: center; }
}
@media (max-width: 600px) {
  .deep-dive-text h2 { font-size: 1.8rem; }
  .visual-mockup { min-height: 240px; padding: 2.2rem 1.5rem; }
  .visual-mockup i { width: 64px; height: 64px; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-banner h2 { font-size: 1.5rem; }
}

/* ============================================================
   ACCESSIBILITY — honor reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .tech-grid-bg, .hero-image, .visual-mockup::before { animation: none; }
  .reveal-hidden { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   DECK-DRIVEN SECTIONS (v1.1)
   Eyebrow, problem/segment grids, principles, guest lifecycle,
   proof-of-depth stats, integrations, CTA section.
   ============================================================ */

/* Every section floats above the WebGL canvas */
section { position: relative; z-index: 2; }

/* Hero eyebrow pill */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary-neon);
  margin-bottom: 1.3rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.08);
}
.hero p strong { color: var(--primary-neon); font-weight: 600; }

/* Closing note lines under sections */
.section-note {
  text-align: center;
  color: var(--text-muted);
  margin-top: 2.5rem;
  font-size: 1.05rem;
}
.section-note strong { color: var(--text); }

/* Fixed-column grids */
.features-grid.grid-4 { grid-template-columns: repeat(4, 1fr); }
.features-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Numbered problem cards */
.num-card { position: relative; }
.num-card::after {
  content: attr(data-num);
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(96, 165, 250, 0.18);
  line-height: 1;
}

/* Section spacing */
.principles-section, .lifecycle-section, .stats-section, .integrations-section, .cta-section {
  padding: 90px 0;
}
.principle-card i { background: rgba(139, 92, 246, 0.12); color: var(--accent-neon); }

/* Guest lifecycle */
.lifecycle-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.lifecycle-step {
  position: relative;
  padding: 1.8rem 1rem;
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.14);
  backdrop-filter: blur(6px);
  text-align: center;
  transition: transform .4s cubic-bezier(.23, 1, .32, 1), border-color .4s, box-shadow .4s;
}
.lifecycle-step:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 18px 40px -16px rgba(59, 130, 246, 0.45);
}
.lifecycle-step .step-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary-neon);
  margin-bottom: 0.8rem;
}
.lifecycle-step i {
  width: 34px;
  height: 34px;
  color: var(--primary-neon);
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}
.lifecycle-step h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.lifecycle-step p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* Proof-of-depth stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(96, 165, 250, 0.22);
}
.stat-num {
  display: block;
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 26px rgba(96, 165, 250, 0.5);
}
.stat-label { display: block; margin-top: 0.7rem; color: var(--text-muted); font-weight: 500; }
.tech-line { text-align: center; margin-top: 2.5rem; color: var(--text-muted); font-size: 0.95rem; letter-spacing: 0.02em; }

/* Integrations */
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.integration {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(59, 130, 246, 0.14);
  backdrop-filter: blur(6px);
  font-weight: 600;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.integration:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 14px 32px -16px rgba(59, 130, 246, 0.5);
}
.integration i {
  width: 28px;
  height: 28px;
  color: var(--primary-neon);
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.6));
}

/* CTA */
.cta-banner p { color: var(--text-muted); margin: 0 auto 2rem; max-width: 560px; }

/* Responsive — deck sections */
@media (max-width: 968px) {
  .features-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
  .features-grid.grid-3 { grid-template-columns: 1fr; }
  .lifecycle-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features-grid.grid-4 { grid-template-columns: 1fr; }
  .lifecycle-grid { grid-template-columns: 1fr 1fr; }
  .integrations-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 2.6rem; }
  .principles-section, .lifecycle-section, .stats-section, .integrations-section, .cta-section { padding: 60px 0; }
}
