/* ================================================================
   Quantum Next — Premium Visual Overrides v2.0
   Logo gradient, Cinematic Loader, Space Hero, Section fixes
   Applied ON TOP of main.css — no existing code broken
================================================================ */

/* ── PREMIUM COLOR TOKENS ──────────────────────────────────────── */
:root {
  /* New premium gradient palette — replaces teal-only logo accent */
  --grad-logo:      linear-gradient(110deg, #00d4ff 0%, #7b2fff 45%, #ff2d78 100%);
  --grad-logo-2:    linear-gradient(135deg, #60efff 0%, #0061ff 50%, #a855f7 100%);
  --grad-electric:  linear-gradient(135deg, #00d4ff, #0066ff, #7c3aed);
  --grad-aurora:    linear-gradient(135deg, #0066ff 0%, #7c3aed 35%, #ec4899 65%, #f97316 100%);
  --grad-space:     linear-gradient(135deg, #060918 0%, #0a0d24 40%, #080c1c 100%);
  --neon-blue:      #00d4ff;
  --neon-indigo:    #4f46e5;
  --neon-purple:    #a855f7;
  --space-deep:     #02040f;
}

/* ================================================================
   LOGO — Premium gradient text
================================================================ */
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  background: var(--grad-logo-2);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* "Quantum" part */
.logo-text .logo-brand {
  background: linear-gradient(110deg, #60efff 0%, #00aaff 50%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* "Next" accent — electric indigo-rose */
.logo-accent {
  background: linear-gradient(110deg, #818cf8 0%, #a855f7 50%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

/* "Digital" — vibrant electric cyan to match quantum theme */
.logo-sub {
  background: linear-gradient(110deg, #00d4ff 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Loader brand names */
.loader-brand-name {
  background: linear-gradient(110deg, #60efff, #0061ff, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.loader-brand-name strong {
  background: linear-gradient(110deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.loader-brand-sub {
  background: linear-gradient(90deg, #00d4ff, #0066ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: .2em;
}

/* ================================================================
   PREMIUM CINEMATIC LOADER — Quantum Deep Space
   Blue / Cyan / Indigo only — no pink
================================================================ */
.qn-loader {
  background:
    radial-gradient(ellipse 110% 70% at 50% 0%,  rgba(0,100,255,0.14) 0%, transparent 55%),
    radial-gradient(ellipse 65%  55% at 15% 75%, rgba(79,70,229,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 50%  45% at 90% 22%, rgba(0,180,255,0.08) 0%, transparent 50%),
    linear-gradient(170deg, #030612 0%, #020410 50%, #010208 100%);
}

/* Subtle animated grid */
.qn-loader::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,150,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,150,255,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black 0%, transparent 78%);
  animation: loaderGrid 9s linear infinite;
  pointer-events: none;
}
@keyframes loaderGrid {
  from { transform: translate(0,0); }
  to   { transform: translate(72px, 72px); }
}

/* Floating quantum particles — blue/cyan/indigo only */
.qn-loader::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(0,212,255,0.60) 0%, transparent 100%),
    radial-gradient(1px   1px   at 40% 72%, rgba(99,102,241,0.50) 0%, transparent 100%),
    radial-gradient(2px   2px   at 68% 28%, rgba(0,100,255,0.65)  0%, transparent 100%),
    radial-gradient(1px   1px   at 83% 65%, rgba(0,212,255,0.40)  0%, transparent 100%),
    radial-gradient(1px   1px   at 55% 88%, rgba(79,70,229,0.45)  0%, transparent 100%),
    radial-gradient(1px   1px   at 92% 38%, rgba(99,102,241,0.35) 0%, transparent 100%),
    radial-gradient(2px   2px   at  8% 82%, rgba(0,100,255,0.50)  0%, transparent 100%),
    radial-gradient(1px   1px   at 74%  8%, rgba(0,212,255,0.40)  0%, transparent 100%);
  background-size: 100% 100%;
  animation: loaderParticles 10s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes loaderParticles {
  0%   { opacity: 0.35; }
  100% { opacity: 0.85; }
}

/* Inner container — column, centred */
.loader-inner {
  gap: 24px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Brand row: image left, text column right */
.loader-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Text stacks vertically — Digital below Quantum Next, NO overlap */
.loader-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

/* Logo image — transparent bg, blue glow only */
.loader-brand-img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  background: transparent !important;
  object-fit: contain;
  flex-shrink: 0;
  filter:
    drop-shadow(0 0 14px rgba(0,180,255,0.9))
    drop-shadow(0 0 36px rgba(0,100,255,0.6));
  animation: loaderLogoPulse 2.8s ease-in-out infinite;
}
@keyframes loaderLogoPulse {
  0%,100% {
    filter:
      drop-shadow(0 0 14px rgba(0,180,255,0.9))
      drop-shadow(0 0 36px rgba(0,100,255,0.6));
    transform: scale(1);
  }
  50% {
    filter:
      drop-shadow(0 0 22px rgba(0,212,255,1.0))
      drop-shadow(0 0 55px rgba(79,70,229,0.75));
    transform: scale(1.05);
  }
}

/* Loader brand name — "Quantum Next" */
.loader-brand-name {
  background: linear-gradient(110deg, #60efff 0%, #2080ff 55%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
}
.loader-brand-name strong {
  background: linear-gradient(110deg, #818cf8 0%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* "Digital" sub — separate line, clear visible cyan */
.loader-brand-sub {
  background: linear-gradient(90deg, #00d4ff 0%, #38bdf8 60%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  display: block;
  margin-top: 3px;
}

/* Premium 4px progress bar — no pink */
.loader-bar {
  width: 280px;
  height: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(0,180,255,0.07);
}
.loader-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,180,255,0.07), rgba(99,102,241,0.07));
  border-radius: 99px;
}
.loader-progress {
  height: 100%;
  background: linear-gradient(90deg,
    #00d4ff 0%,
    #0080ff 30%,
    #4f46e5 65%,
    #6366f1 85%,
    #00d4ff 100%);
  background-size: 300% 100%;
  animation: loaderGradientShift 2s linear infinite;
  border-radius: 99px;
  box-shadow:
    0 0 10px rgba(0,180,255,0.85),
    0 0 28px rgba(0,100,255,0.55),
    0 0 55px rgba(79,70,229,0.30);
}
@keyframes loaderGradientShift {
  0%   { background-position: 0%    0%; }
  100% { background-position: -300% 0%; }
}

/* Status text — subtle, pulsing, no pink */
.loader-inner::after {
  content: 'Initializing quantum systems...';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  background: linear-gradient(90deg, rgba(0,180,255,0.55), rgba(99,102,241,0.55));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-top: -8px;
  animation: loaderTextPulse 2.5s ease-in-out infinite;
}
@keyframes loaderTextPulse {
  0%,100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

/* ================================================================
   HERO SECTION — Quantum in Space Background
================================================================ */
.hero-section {
  background: radial-gradient(ellipse 100% 90% at 50% 0%,
    rgba(4, 8, 30, 1) 0%,
    rgba(2, 4, 20, 1) 50%,
    rgba(0, 0, 10, 1) 100%);
}

/* Deep space starfield overlay */
.hero-section::before {
  background:
    radial-gradient(ellipse 80% 70% at 20% 40%, rgba(0,102,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(124,58,237,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 90%, rgba(0,212,255,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(2,4,15,0.6) 0%, transparent 100%) !important;
  animation: spacePulse 10s ease-in-out infinite alternate !important;
}
@keyframes spacePulse {
  0%   { opacity: 1; transform: scale(1) rotate(0deg); }
  100% { opacity: 0.75; transform: scale(1.08) rotate(1deg); }
}

/* Orbital rings removed — were causing visible circle artifacts */

/* Space dust particles (pure CSS stars) */
.hero-section::after {
  background-image:
    linear-gradient(rgba(0,102,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,102,255,0.04) 1px, transparent 1px),
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 40% 70%, rgba(0,212,255,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 60%, rgba(124,58,237,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.2) 0%, transparent 100%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100% !important;
}

/* Hero globe glow enhancement */
.hero-3d-wrapper {
  filter: drop-shadow(0 0 80px rgba(0,102,255,0.4)) drop-shadow(0 0 120px rgba(124,58,237,0.2)) !important;
}

/* ================================================================
   GRADIENT TEXT — Premium Upgrades
================================================================ */
.gradient-text {
  background: linear-gradient(135deg, #60efff 0%, #0066ff 45%, #a855f7 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-size: 200% auto;
  animation: gradientShimmer 4s linear infinite;
}
@keyframes gradientShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ================================================================
   SECTION TAGS — Professional eyebrow typography, no pill/badge
================================================================ */
.section-tag {
  /* Strip ALL badge styling */
  display: inline-block !important;
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;

  /* Eyebrow type */
  font-family: 'Space Grotesk', sans-serif !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: .22em !important;
  text-transform: uppercase !important;
  background: linear-gradient(90deg, #00d4ff, #0066ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  margin-bottom: 12px !important;
}
/* Remove the pulsing dot from old design */
.section-tag::before {
  display: none !important;
  content: none !important;
}


/* ================================================================
   FLOATING CARDS — More Cinematic
================================================================ */
.floating-card {
  background: rgba(5, 8, 30, 0.92) !important;
  border-color: rgba(0,102,255,0.2) !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0,102,255,0.08) !important;
}
.floating-card:nth-child(1) { border-color: rgba(0,212,255,0.2) !important; }
.floating-card:nth-child(2) { border-color: rgba(124,58,237,0.2) !important; }

/* ================================================================
   BUTTONS — Premium Cinematic
================================================================ */
.btn-primary {
  background: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%) !important;
  box-shadow: 0 4px 24px rgba(0,102,255,0.4), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}
.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(0,102,255,0.5), 0 0 60px rgba(124,58,237,0.2) !important;
}
.btn-teal {
  background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 24px rgba(0,212,255,0.35) !important;
}

/* ================================================================
   NAV HEADER — Scrolled state glow upgrade
================================================================ */
.qn-header.scrolled {
  box-shadow: 0 4px 40px rgba(0,102,255,0.15), 0 1px 0 rgba(0,102,255,0.1) !important;
}
.qn-nav-links a.active {
  color: #60a5fa !important;
}
.qn-nav-links a.active::after {
  background: linear-gradient(90deg, #00d4ff, #0066ff, #7c3aed) !important;
}

/* ================================================================
   TESTIMONIALS / REVIEWS — Fix alignment & improve style
================================================================ */
.testimonial-card {
  background: linear-gradient(145deg, #060918 0%, #0a0d24 100%) !important;
  border: 1px solid rgba(0,102,255,0.15) !important;
  border-radius: 16px !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease !important;
}
.testimonial-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(0,102,255,0.3) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,102,255,0.1) !important;
}

/* Stars rating */
.testimonial-stars,
.review-stars {
  color: #fbbf24 !important;
  font-size: 1rem;
  letter-spacing: 2px;
}

/* Reviewer avatar */
.testimonial-avatar,
.reviewer-avatar {
  border: 2px solid rgba(0,102,255,0.3) !important;
  box-shadow: 0 0 16px rgba(0,102,255,0.2) !important;
}

/* ================================================================
   STRATEGY / AI SECTION — Text alignment fix
================================================================ */
.strategy-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Prevent description text running longer than the visual column */
.strategy-content .section-desc,
.strategy-content p {
  max-width: 100% !important;
}

/* Match description block height to image */
.strategy-section .strategy-grid,
.strategy-section .qn-strategy-grid {
  align-items: center !important;
}

/* ================================================================
   SERVICE CARDS — Space color upgrades
================================================================ */
/* ================================================================
   SERVICE CARD IMAGES — AI-generated cinematic backgrounds
================================================================ */
.svc-bg-1 { background-image: url('../images/svc-bg-1.png') !important;     background-size: cover !important; background-position: center !important; }
.svc-bg-2 { background-image: url('../images/svc-bg-2.png') !important;     background-size: cover !important; background-position: center !important; }
.svc-bg-3 { background-image: url('../images/svc-bg-3.png') !important;  background-size: cover !important; background-position: center !important; }
.svc-bg-4 { background-image: url('../images/svc-bg-4.png') !important; background-size: cover !important; background-position: center !important; }
.svc-bg-5 { background-image: url('../images/svc-bg-5.png') !important;   background-size: cover !important; background-position: center !important; }
.svc-bg-6 { background-image: url('../images/svc-bg-6.png') !important;   background-size: cover !important; background-position: center !important; }

/* Darken overlay so text/icon is readable on top of images */
.service-img-overlay {
  background: linear-gradient(to bottom,
    rgba(4,6,20,0.35) 0%,
    rgba(4,6,20,0.5)  60%,
    rgba(4,6,20,0.85) 100%) !important;
}
/* Icon sits on top with blur-glass feel */
.service-img-icon {
  display: none !important;
}


.service-card {
  background: linear-gradient(145deg, #050818 0%, #080c28 60%, #040716 100%) !important;
  border-color: rgba(0,102,255,0.1) !important;
}
.service-card:hover {
  border-color: rgba(0,102,255,0.3) !important;
  box-shadow: 0 32px 70px rgba(0,0,0,0.7), 0 0 50px rgba(0,102,255,0.1) !important;
}
.service-card::before {
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), rgba(0,102,255,0.4), transparent) !important;
}

/* Service icon hover */
.service-card:hover .service-img-icon {
  background: rgba(0,102,255,0.2) !important;
  border-color: rgba(0,212,255,0.4) !important;
  box-shadow: 0 14px 48px rgba(0,102,255,0.3), inset 0 1px 0 rgba(255,255,255,0.15) !important;
}

/* Service link color */
.service-link {
  color: #60a5fa !important;
}
.service-link .link-arrow {
  background: rgba(0,102,255,0.12) !important;
  border-color: rgba(0,102,255,0.3) !important;
}
.service-link:hover .link-arrow {
  background: linear-gradient(135deg, #0066ff, #7c3aed) !important;
  color: #fff !important;
  box-shadow: 0 4px 20px rgba(0,102,255,0.4) !important;
}

/* ================================================================
   RESULTS / STATS — Glow upgrades
================================================================ */
.stat-unit, .result-unit {
  background: linear-gradient(135deg, #00d4ff, #0066ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.result-card {
  background: linear-gradient(145deg, #050818, #080c28) !important;
  border-color: rgba(0,102,255,0.12) !important;
}
.result-card:hover {
  border-color: rgba(0,102,255,0.28) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,102,255,0.1) !important;
}

/* ================================================================
   SCROLL PROGRESS — Premium neon
================================================================ */
#qn-scroll-progress {
  background: linear-gradient(90deg, #00d4ff, #0066ff, #7c3aed, #ec4899) !important;
  box-shadow: 0 0 16px rgba(0,102,255,0.7) !important;
}

/* ================================================================
   CUSTOM CURSOR — Electric blue
================================================================ */
.qn-cursor {
  border-color: rgba(0,102,255,0.55) !important;
}
.qn-cursor-dot {
  background: #00d4ff !important;
}
.qn-cursor.hover {
  border-color: rgba(0,212,255,0.6) !important;
  background: rgba(0,212,255,0.05) !important;
}

/* ================================================================
   MARQUEE — Electric glow
================================================================ */
.marquee-inner span:hover {
  color: #60a5fa !important;
}
.marquee-inner .sep {
  color: #4f46e5 !important;
  text-shadow: 0 0 10px rgba(79,70,229,0.8) !important;
}

/* ================================================================
   SECTION HERO ON INNER PAGES — Space style
================================================================ */
.page-hero,
.svc-page-hero,
.inner-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,102,255,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(124,58,237,0.1) 0%, transparent 65%),
    linear-gradient(180deg, #04060f 0%, #02030a 100%) !important;
}

/* ================================================================
   CINEMATIC ELEMENT ANIMATIONS — Applied to all key elements
================================================================ */

/* Step cards (Process section) */
.step-card {
  background: linear-gradient(145deg, #050818, #080c28) !important;
  border-color: rgba(0,102,255,0.12) !important;
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.3s ease !important;
}
.step-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(0,102,255,0.28) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,102,255,0.1) !important;
}

/* CTA section */
.cta-section {
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(0,102,255,0.12) 0%, transparent 70%),
    linear-gradient(135deg, #04060f, #060918) !important;
}

/* Footer */
.qn-footer {
  background: linear-gradient(180deg, #02030a 0%, #000 100%) !important;
  border-top: 1px solid rgba(0,102,255,0.12) !important;
}

/* ================================================================
   DUAL-ROW REVIEW MARQUEE — Linear / Vercel style
================================================================ */
.testimonials-section {
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0,102,255,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 100%, rgba(124,58,237,0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Marquee wrapper */
.qn-review-marquee {
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}
.qn-review-marquee::before,
.qn-review-marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.qn-review-marquee::before {
  left: 0;
  background: linear-gradient(to right, #02030a 0%, transparent 100%);
}
.qn-review-marquee::after {
  right: 0;
  background: linear-gradient(to left, #02030a 0%, transparent 100%);
}

/* Track */
.qn-review-track {
  display: flex;
  gap: 16px;
  width: max-content;
}

/* Scroll animations */
@keyframes qn-review-right {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes qn-review-left {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.qn-scroll-right {
  animation: qn-review-right 40s linear infinite;
}
.qn-scroll-left {
  animation: qn-review-left 38s linear infinite;
}
.qn-review-marquee:hover .qn-scroll-right,
.qn-review-marquee:hover .qn-scroll-left {
  animation-play-state: paused;
}

/* Individual card */
.qn-review-card {
  flex-shrink: 0;
  width: 320px;
  background: linear-gradient(145deg, #060a1e, #090e28);
  border: 1px solid rgba(0,102,255,0.14);
  border-radius: 16px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
  overflow: hidden;
}
.qn-review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,102,255,0.4), rgba(124,58,237,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.qn-review-card:hover {
  border-color: rgba(0,102,255,0.3);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(0,102,255,0.08);
  transform: translateY(-3px);
}
.qn-review-card:hover::before { opacity: 1; }

.qn-review-stars {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.qn-review-text {
  color: rgba(255,255,255,0.78);
  font-size: 0.88rem;
  line-height: 1.65;
  font-style: italic;
  flex: 1;
}
.qn-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.qn-review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.qn-review-author strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
}
.qn-review-author span {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.4);
}

/* ================================================================
   HERO — Deep Cinematic Space Level
================================================================ */
@media (max-width: 768px) {
  .logo-text, .logo-accent, .logo-sub {
    font-size: inherit;
  }
  .loader-bar { width: 200px; }
  .qn-loader::before, .qn-loader::after { display: none; }
}

/* ================================================================
   PROCESS STEPS — Equal height cards
================================================================ */
.process-timeline {
  align-items: flex-start !important;
}
.process-step {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}
.step-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 220px !important;
}
.step-card p {
  flex: 1 !important;
}

/* ================================================================
   SPACE BACKGROUND — Let Three.js canvas show through
================================================================ */
html, body {
  background: transparent !important;
}

/* Dark overlay sections — semi-transparent so stars/moon peek through */
.hero-section,
.services-section,
.results-section,
.process-section,
.strategy-section,
.testimonials-section,
.video-section,
.cta-section,
.marquee-section,
.qn-footer {
  background: transparent !important;
  position: relative;
  z-index: 1;
}

/* Section overlays — low opacity so space canvas shines through */
.hero-section::before,
.services-section::before,
.results-section::before,
.process-section::before,
.strategy-section::before,
.testimonials-section::before,
.video-section::before,
.cta-section::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(1, 2, 14, 0.42) !important;   /* was 0.72 — reduced by 30% */
  pointer-events: none !important;
  z-index: 0 !important;
}

/* Hero — most transparent, space fully visible */
.hero-section::before {
  background: rgba(1, 2, 14, 0.28) !important;   /* was 0.58 */
}

/* Services — slightly more overlay for card readability */
.services-section::before {
  background: rgba(1, 2, 14, 0.38) !important;
}

/* Results & Process — medium transparency */
.results-section::before,
.process-section::before {
  background: rgba(1, 2, 14, 0.40) !important;
}

/* Strategy, Reviews, Video — light overlay */
.strategy-section::before,
.testimonials-section::before,
.video-section::before {
  background: rgba(1, 2, 14, 0.36) !important;
}

/* CTA — slightly more overlay for readability */
.cta-section::before {
  background: rgba(1, 3, 18, 0.55) !important;   /* was 0.82 */
}


/* Content always above the overlay */
.hero-section > *,
.services-section > *,
.results-section > *,
.process-section > *,
.strategy-section > *,
.testimonials-section > *,
.video-section > *,
.cta-section > * {
  position: relative;
  z-index: 2;
}

/* Footer glass */
.qn-footer {
  background: rgba(0, 1, 8, 0.88) !important;
  backdrop-filter: blur(8px);
}

/* Header glass */
.qn-header {
  background: rgba(1, 2, 14, 0.7) !important;
  backdrop-filter: blur(20px) !important;
}
.qn-header.scrolled {
  background: rgba(1, 2, 14, 0.88) !important;
}

/* ================================================================
   HERO TITLE — Reduced font size for 2-line layout
   "Computing Beyond" / "Classical Limits"
================================================================ */
.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem) !important;
  line-height: 1.08 !important;
  margin-bottom: 20px !important;
}

/* Hero visual — reduce top padding so image sits closer to center */
.hero-visual {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  align-items: center !important;
}

/* Hero content — tighten vertical padding to match visual */
.hero-content {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem) !important;
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem) !important;
  }
  .hero-visual {
    padding-top: 0 !important;
    padding-bottom: 30px !important;
  }
}

/* ── Hero subtitle — tighter, more premium ── */
.hero-subtitle {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
  color: rgba(200, 210, 230, 0.75) !important;
  margin-bottom: 32px !important;
  max-width: 440px !important;
}

/* ================================================================
   HERO LAYOUT FIXES — Mobile overlap + Desktop top spacing
================================================================ */

/* Desktop — increase top breathing room */
@media (min-width: 1024px) {
  .hero-content {
    padding-top: 110px !important;
    padding-bottom: 80px !important;
  }
  .hero-visual {
    padding-top: 100px !important;
    padding-bottom: 80px !important;
    align-items: center !important;
  }
  .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem) !important;
    line-height: 1.08 !important;
  }
  .hero-subtitle {
    font-size: 1rem !important;
    line-height: 1.72 !important;
    max-width: 460px !important;
    color: rgba(200, 210, 230, 0.72) !important;
  }
}

/* Mobile — fix overlap and overflow */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .hero-content {
    padding: 100px 24px 32px !important;
    max-width: 100% !important;
    text-align: center !important;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
  .hero-subtitle {
    font-size: 0.92rem !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    margin-bottom: 24px !important;
    color: rgba(200, 210, 230, 0.68) !important;
  }
  .hero-actions {
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
  .hero-visual {
    padding: 16px 24px 48px !important;
    width: 100% !important;
    justify-content: center !important;
  }
  /* Prevent moon/canvas bleed into text area */
  .hero-visual .hero-3d-wrapper {
    max-width: 320px !important;
    margin: 0 auto !important;
  }
  /* Keep floating cards inside viewport */
  .floating-card {
    display: none !important;
  }
  /* Stats row scroll on mobile */
  .hero-stats {
    overflow-x: auto !important;
    max-width: 100% !important;
    padding: 16px !important;
  }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1023px) {
  .hero-content {
    padding: 90px 40px 60px !important;
  }
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.8rem) !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
  }
}

/* ================================================================
   GLOBAL BG FIX — Canvas visible on ALL screens including mobile
   KEY RULE: body MUST be transparent so z-index:-2 canvas shows.
             html has the dark fallback color (never visible normally).
             All WP wrappers explicitly dark so no white flash on scroll.
================================================================ */

/* html = dark safety net, never let white show through */
html {
  background-color: #01020d !important;
  min-height: 100% !important;
}

/* body MUST be transparent — solid color would paint over the canvas */
body {
  background: transparent !important;
  min-height: 100vh !important;
}

/* ALL WordPress wrapper divs — force dark, not white, not transparent */
#page,
.site,
#content,
.site-content,
.wp-site-blocks,
.entry-content,
.post-content,
main,
#main,
.site-main,
[id="primary"],
.wp-block-group,
.is-layout-constrained,
.wp-block-post-content {
  background: rgba(1, 2, 13, 0.0) !important;
  background-color: transparent !important;
}

/* Sections that don't have ::before overlays — give them a dark tint */
.marquee-section,
.qn-footer {
  background: rgba(1, 2, 13, 0.85) !important;
}

/* Kill admin bar space push on mobile */
@media (max-width: 782px) {
  html { margin-top: 0 !important; }
  #wpadminbar { display: none !important; }
}

/* Prevent Gutenberg white wrapper blocks */
.wp-block-cover,
.wp-block-group:not([class*="has-background"]) {
  background: transparent !important;
}

/* Ensure canvas is always visible on mobile too */
#qn-space-canvas {
  position: fixed !important;
  top: 0 !important; left: 0 !important;
  width: 100% !important; height: 100% !important;
  z-index: -2 !important;
  pointer-events: none !important;
  display: block !important;
}
