/* ============================================
   FOURIO SOLUTIONS — Advanced Animations
   BeamsBackground | Scan Line | Circular
   Testimonials | Footer Blur-in
============================================ */

/* ─── Scroll Expansion Hero ──────────────── */
#scrollExpandHero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

/* Background image layer */
.seh-bg {
  position: absolute; inset: 0;
  z-index: 0;
  will-change: opacity;
}
.seh-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.seh-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
}

/* Centered media box */
.seh-media-wrap {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border-radius: 18px;
  overflow: hidden;
  will-change: width, height;
  transition: none;
  box-shadow: 0 0 80px rgba(0,0,0,0.5);
}
.seh-media-wrap img,
.seh-media-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}
.seh-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
  border-radius: 18px;
  pointer-events: none;
  will-change: opacity;
}

/* Title split words */
.seh-title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  text-align: center;
  width: 100vw;
}
.seh-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  color: rgba(220,210,255,0.92);
  letter-spacing: -0.03em;
  line-height: 1.1;
  will-change: transform;
  transition: none;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.seh-word.right { color: rgba(140,220,255,0.92); }

/* Scroll hint */
.seh-scroll-hint {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  will-change: opacity;
  pointer-events: none;
}
.seh-scroll-hint span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(167,139,250,0.8);
}
.seh-scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(167,139,250,0.8), transparent);
  animation: scrollDrop 2s ease-in-out infinite;
}

/* ─── SEH Content Overlay (3D hero inside media box) ─── */
.seh-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  text-align: center;
  pointer-events: none;
}
.seh-content-overlay .hero-badge {
  margin-bottom: 18px;
  pointer-events: auto;
}
#heroWords {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
}
#heroSubtitle {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  color: rgba(255,255,255,0.78);
  max-width: 520px;
  margin: 0 0 28px;
  line-height: 1.65;
}
.seh-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  pointer-events: auto;
}

/* Three.js canvas fills the media box */
#heroCanvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

/* ─── Hero Scan Line ─────────────────────── */
.hero-scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.0) 10%,
    rgba(167, 139, 250, 0.8) 40%,
    rgba(6, 182, 212, 0.9) 50%,
    rgba(167, 139, 250, 0.8) 60%,
    rgba(167, 139, 250, 0.0) 90%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  animation: scanLineMove 6s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(167,139,250,0.4), 0 0 60px rgba(6,182,212,0.2);
}
@keyframes scanLineMove {
  0%   { top: 0%; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ─── Circular Testimonials ──────────────── */
.circ-testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.circ-images {
  position: relative;
  height: 360px;
  perspective: 1000px;
}

.circ-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.8s cubic-bezier(0.4, 2, 0.3, 1),
              opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.circ-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
}

.circ-quote-wrap {
  flex: 1;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.circ-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.circ-designation {
  font-size: 0.875rem;
  color: var(--accent-light);
  margin-bottom: 20px;
  font-weight: 500;
}

.circ-quote {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  font-style: italic;
}

.circ-arrows {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.circ-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-3);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.circ-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .circ-testimonials {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .circ-images {
    height: 260px;
  }
}

/* ─── Footer Blur-in Animation ───────────── */
.footer-item-anim {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(-10px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}
.footer-item-anim.footer-visible {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* ─── Glow shimmer on accent buttons ──────── */
.btn-primary {
  animation: btnPulse 4s ease-in-out infinite;
}
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
  50% { box-shadow: 0 0 0 6px rgba(124,58,237,0.08); }
}

/* ─── Text shimmer on .text-gradient ──────── */
.text-gradient {
  background-size: 200% auto;
  animation: shimmerText 4s linear infinite;
}
@keyframes shimmerText {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ─── Nav logo glow pulse ─────────────────── */
.nav-logo-mark {
  animation: logoGlow 3s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0); }
  50%       { box-shadow: 0 0 16px 4px rgba(124,58,237,0.35); }
}

/* ─── Stats counter shimmer ───────────────── */
.stat-num {
  position: relative;
}
.stat-num::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 32px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  border-radius: 2px;
}

/* ─── Service card gradient border on hover ─ */
.svc-card {
  position: relative;
}
.svc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.svc-card:hover::after { opacity: 0.5; }

/* ─── Floating label entrance ─────────────── */
.label {
  animation: labelEntrance 0.6s var(--ease-out) both;
}
@keyframes labelEntrance {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── Badge dot breathe ───────────────────── */
.badge-live .dot {
  box-shadow: 0 0 0 0 rgba(16,185,129,0.4);
  animation: breathe 2s ease-out infinite;
}
@keyframes breathe {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ─── Pricing Section ─────────────────────── */
.pricing-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-0);
}

/* Grid lines animation */
.pricing-grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
}
.p-hline, .p-vline {
  position: absolute;
  background: rgba(255,255,255,0.05);
}
.p-hline { left:0; right:0; height:1px; transform:scaleX(0); transform-origin:50%; animation: drawHLine 0.7s ease forwards; }
.p-vline { top:0; bottom:0; width:1px; transform:scaleY(0); transform-origin:50% 0; animation: drawVLine 0.8s ease forwards; }
.p-hline:nth-child(1) { top:20%; animation-delay:0.1s; }
.p-hline:nth-child(2) { top:50%; animation-delay:0.2s; }
.p-hline:nth-child(3) { top:80%; animation-delay:0.3s; }
.p-vline:nth-child(4) { left:20%; animation-delay:0.25s; }
.p-vline:nth-child(5) { left:50%; animation-delay:0.35s; }
.p-vline:nth-child(6) { left:80%; animation-delay:0.45s; }
@keyframes drawHLine { to { transform:scaleX(1); } }
@keyframes drawVLine { to { transform:scaleY(1); } }

/* Radial vignette */
.pricing-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 50% at 50% 15%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}

/* Toggle */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  justify-content: center;
  margin: 20px 0;
}
.toggle-switch {
  position: relative;
  width: 48px; height: 26px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.toggle-switch.active { background: var(--accent); border-color: var(--accent); }
.toggle-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Pricing cards grid */
.pricing-cards {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.pricing-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 300px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: cardFadeUp 0.6s ease forwards;
  backdrop-filter: blur(12px);
  /* Mouse glow */
  --mx: 50%; --my: 50%;
}
.pricing-card::before {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
  left: var(--mx); top: var(--my);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pricing-card:hover::before { opacity: 1; }
.pricing-card:nth-child(1) { animation-delay: 0.25s; }
.pricing-card:nth-child(2) { animation-delay: 0.35s; transform: translateY(26px); }
.pricing-card:nth-child(3) { animation-delay: 0.45s; }
@keyframes cardFadeUp { to { opacity:1; transform:translateY(0); } }
.pricing-card.featured {
  border-color: var(--border-accent);
  background: rgba(124,58,237,0.06);
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--accent);
  border-radius: 100px;
  font-size: 0.72rem; font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.pricing-plan-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 6px;
}
.pricing-plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}
.pricing-price-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem; font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--text-primary); line-height: 1;
}
.pricing-period { font-size: 0.8rem; color: var(--text-muted); padding-bottom: 6px; }
.pricing-saving {
  font-size: 0.75rem; color: var(--green);
  font-weight: 600; margin-bottom: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.pricing-separator {
  width: 100%; height: 1px;
  background: var(--border); margin: 20px 0;
}
.pricing-features { display: flex; flex-direction: column; gap: 12px; }
.pricing-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.875rem; color: var(--text-secondary);
}
.pricing-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem; color: var(--green); flex-shrink: 0;
}
.pricing-cta {
  width: 100%; margin-top: 28px;
  padding: 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 0.9rem;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.pricing-cta-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.pricing-cta-outline:hover {
  background: var(--surface-2);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.pricing-cta-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.pricing-cta-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}

/* ─── Case card number gradient ──────────────*/
.svc-card-num {
  background: linear-gradient(135deg, var(--text-muted), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

/* ─── Contact Card Component ──────────────── */
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  position: relative;
  overflow: visible;
  min-height: 600px;
}
/* Plus corner decorators */
.contact-card::before,
.contact-card::after {
  content: '+';
  position: absolute;
  font-size: 1.5rem;
  color: var(--border-accent);
  font-weight: 300;
  line-height: 1;
}
.contact-card::before { top: -12px; left: -10px; }
.contact-card::after { top: -12px; right: -10px; }
.contact-card-corner {
  position: absolute;
  font-size: 1.5rem;
  color: var(--border-accent);
  font-weight: 300;
  line-height: 1;
}
.contact-card-corner.bl { bottom: -12px; left: -10px; }
.contact-card-corner.br { bottom: -12px; right: -10px; }

.contact-card-left {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.contact-card-left h1 { margin-bottom: 14px; }
.contact-card-left > p { margin-bottom: 40px; font-size: 1rem; max-width: 480px; }
.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.contact-info-item:hover { background: var(--surface-2); border-color: var(--border-accent); }
.contact-info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(124,58,237,0.12);
  border: 1px solid var(--border-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.contact-info-item .ci-label { font-size: 0.8rem; font-weight: 600; color: var(--text-primary); }
.contact-info-item .ci-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.contact-card-right {
  padding: 40px 36px;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid var(--border);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-card-right h3 { margin-bottom: 6px; font-size: 1.15rem; }
.contact-card-right > p { font-size:0.85rem; margin-bottom:24px; }

@media (max-width: 768px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
  .contact-card-right {
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .contact-info-grid { grid-template-columns: 1fr; }
  .contact-card-left { padding: 36px 28px; }
  .contact-card-right { padding: 32px 28px; }
}
@media (max-width: 480px) {
  .contact-card-left { padding: 24px 20px; }
  .contact-card-right { padding: 24px 20px; }
  .contact-info-item { gap: 10px; }
  .contact-info-item .ci-sub { font-size: 0.7rem; }
}

/* ─── Auth Modal ──────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.auth-modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 420px;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), opacity 0.3s ease;
  opacity: 0;
  overflow: hidden;
}
.modal-overlay.open .auth-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.auth-modal-header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.auth-modal-header h3 { font-size: 1.05rem; }
.modal-close-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 1rem; cursor: pointer;
  transition: var(--transition);
}
.modal-close-btn:hover { background: var(--surface-3); color: var(--text-primary); }

.auth-modal-body { padding: 24px; }

.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 12px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; color: var(--text-primary);
  cursor: pointer; transition: var(--transition);
  margin-bottom: 20px;
}
.google-btn:hover { background: var(--surface-2); border-color: var(--border-light); transform: translateY(-1px); }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.auth-or span { font-size: 0.8rem; color: var(--text-muted); }
.auth-or-line { flex: 1; height: 1px; background: var(--border); }

.auth-modal-body .form-group { margin-bottom: 14px; }
.auth-modal-body input {
  width: 100%;
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 0.875rem; color: var(--text-primary); font-family: inherit;
  transition: var(--transition); outline: none;
}
.auth-modal-body input::placeholder { color: var(--text-muted); }
.auth-modal-body input:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
  background: var(--bg-2);
}
.auth-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.75rem; color: var(--text-muted);
}
.auth-modal-footer a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }

/* ─── Page transition overlay ─────────────── */
.page-transition-out {
  animation: pageFadeOut 0.3s ease forwards;
}
@keyframes pageFadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ═══════════════════════════════════════════
   GEOMETRIC SHAPES HERO (shape-landing-hero)
═══════════════════════════════════════════ */
.hero-geo {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-0);
}

/* Scan line sweeping top → bottom */
.hero-geo::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(167,139,250,0) 15%,
    rgba(167,139,250,0.85) 40%,
    rgba(6,182,212,1)     50%,
    rgba(167,139,250,0.85) 60%,
    rgba(167,139,250,0) 85%,
    transparent 100%
  );
  box-shadow: 0 0 22px rgba(167,139,250,0.5), 0 0 60px rgba(6,182,212,0.3);
  animation: heroScan 8s cubic-bezier(0.25,0.1,0.25,1) 1.2s infinite;
  z-index: 9;
  pointer-events: none;
}
@keyframes heroScan {
  0%   { top: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 0.7; }
  100% { top: 100%; opacity: 0; }
}

/* Radial bg + dot grid */
.hero-geo-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(99,102,241,0.07), transparent),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(244,63,94,0.06), transparent);
  background-image:
    radial-gradient(ellipse 70% 60% at 20% 50%, rgba(99,102,241,0.07), transparent),
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(244,63,94,0.06), transparent),
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px;
  pointer-events: none;
}

/* Drifting ambient orbs */
.hero-geo-bg::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.13) 0%, transparent 70%);
  top: -20%; left: -12%;
  animation: orbDrift1 22s ease-in-out infinite;
  will-change: transform;
}
.hero-geo-bg::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,63,94,0.11) 0%, transparent 70%);
  bottom: -20%; right: -8%;
  animation: orbDrift2 28s ease-in-out infinite;
  will-change: transform;
}
@keyframes orbDrift1 {
  0%, 100% { transform: translate(0,    0   ) scale(1);    }
  50%       { transform: translate(80px, 50px) scale(1.12); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0,     0    ) scale(1);    }
  50%       { transform: translate(-70px,-50px) scale(1.15); }
}

/* Shapes container */
.hero-geo-shapes {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Shared visual for each shape pill */
.hgs-visual {
  border-radius: 9999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 2px solid rgba(124,58,237,0.18);
  box-shadow: 0 8px 32px rgba(124,58,237,0.08);
  position: relative;
  overflow: hidden;
  animation: shapeGlow 5s ease-in-out infinite;
}
@keyframes shapeGlow {
  0%, 100% { opacity: 1;   border-color: rgba(255,255,255,0.18); }
  50%       { opacity: 0.75; border-color: rgba(255,255,255,0.28); }
}
.hgs-visual::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.18), transparent 70%);
}

/* Stagger the glow pulse across shapes */
.hgs-1 .hgs-visual { animation-delay: 0s;   }
.hgs-2 .hgs-visual { animation-delay: 1s;   }
.hgs-3 .hgs-visual { animation-delay: 2s;   }
.hgs-4 .hgs-visual { animation-delay: 3s;   }
.hgs-5 .hgs-visual { animation-delay: 1.5s; }

/* ─── Shape 1 — indigo, 600×140, rotate 12° ─── */
.hgs-1 {
  position: absolute;
  left: -5%; top: 20%;
  animation:
    hgs1-in    2.4s cubic-bezier(0.23,0.86,0.39,0.96) 0.3s both,
    hgs1-float 12s  ease-in-out 2.7s infinite;
}
.hgs-1 .hgs-visual {
  width: 600px; height: 140px;
  background: linear-gradient(to right, rgba(99,102,241,0.28), transparent);
  box-shadow: 0 0 60px rgba(99,102,241,0.22), 0 8px 32px rgba(99,102,241,0.12);
}
@keyframes hgs1-in {
  from { opacity: 0; transform: translateY(-150px) rotate(-3deg); }
  to   { opacity: 1; transform: translateY(0)       rotate(12deg); }
}
@keyframes hgs1-float {
  0%, 100% { transform: rotate(12deg)  translateY(0); }
  50%       { transform: rotate(12deg) translateY(15px); }
}

/* ─── Shape 2 — rose, 500×120, rotate -15° ─── */
.hgs-2 {
  position: absolute;
  right: 0%; top: 72%;
  animation:
    hgs2-in    2.4s cubic-bezier(0.23,0.86,0.39,0.96) 0.5s both,
    hgs2-float 12s  ease-in-out 2.9s infinite;
}
.hgs-2 .hgs-visual {
  width: 500px; height: 120px;
  background: linear-gradient(to right, rgba(244,63,94,0.28), transparent);
  box-shadow: 0 0 60px rgba(244,63,94,0.22), 0 8px 32px rgba(244,63,94,0.12);
}
@keyframes hgs2-in {
  from { opacity: 0; transform: translateY(-150px) rotate(-30deg); }
  to   { opacity: 1; transform: translateY(0)       rotate(-15deg); }
}
@keyframes hgs2-float {
  0%, 100% { transform: rotate(-15deg) translateY(0); }
  50%       { transform: rotate(-15deg) translateY(15px); }
}

/* ─── Shape 3 — violet, 300×80, rotate -8° ─── */
.hgs-3 {
  position: absolute;
  left: 10%; bottom: 10%;
  animation:
    hgs3-in    2.4s cubic-bezier(0.23,0.86,0.39,0.96) 0.4s both,
    hgs3-float 12s  ease-in-out 2.8s infinite;
}
.hgs-3 .hgs-visual {
  width: 300px; height: 80px;
  background: linear-gradient(to right, rgba(139,92,246,0.28), transparent);
  box-shadow: 0 0 50px rgba(139,92,246,0.25), 0 8px 32px rgba(139,92,246,0.12);
}
@keyframes hgs3-in {
  from { opacity: 0; transform: translateY(-150px) rotate(-23deg); }
  to   { opacity: 1; transform: translateY(0)       rotate(-8deg); }
}
@keyframes hgs3-float {
  0%, 100% { transform: rotate(-8deg)  translateY(0); }
  50%       { transform: rotate(-8deg) translateY(15px); }
}

/* ─── Shape 4 — amber, 200×60, rotate 20° ─── */
.hgs-4 {
  position: absolute;
  right: 20%; top: 14%;
  animation:
    hgs4-in    2.4s cubic-bezier(0.23,0.86,0.39,0.96) 0.6s both,
    hgs4-float 12s  ease-in-out 3.0s infinite;
}
.hgs-4 .hgs-visual {
  width: 200px; height: 60px;
  background: linear-gradient(to right, rgba(245,158,11,0.28), transparent);
  box-shadow: 0 0 40px rgba(245,158,11,0.2), 0 8px 32px rgba(245,158,11,0.1);
}
@keyframes hgs4-in {
  from { opacity: 0; transform: translateY(-150px) rotate(5deg); }
  to   { opacity: 1; transform: translateY(0)       rotate(20deg); }
}
@keyframes hgs4-float {
  0%, 100% { transform: rotate(20deg) translateY(0); }
  50%       { transform: rotate(20deg) translateY(15px); }
}

/* ─── Shape 5 — cyan, 150×40, rotate -25° ─── */
.hgs-5 {
  position: absolute;
  left: 25%; top: 9%;
  animation:
    hgs5-in    2.4s cubic-bezier(0.23,0.86,0.39,0.96) 0.7s both,
    hgs5-float 12s  ease-in-out 3.1s infinite;
}
.hgs-5 .hgs-visual {
  width: 150px; height: 40px;
  background: linear-gradient(to right, rgba(6,182,212,0.28), transparent);
  box-shadow: 0 0 40px rgba(6,182,212,0.22), 0 8px 32px rgba(6,182,212,0.1);
}
@keyframes hgs5-in {
  from { opacity: 0; transform: translateY(-150px) rotate(-40deg); }
  to   { opacity: 1; transform: translateY(0)       rotate(-25deg); }
}
@keyframes hgs5-float {
  0%, 100% { transform: rotate(-25deg) translateY(0); }
  50%       { transform: rotate(-25deg) translateY(15px); }
}

/* ─── Hero content ─── */
.hero-geo-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 120px 24px 80px;
  animation: fadeUpIn 1s ease 0.3s both;
}

@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badge */
.hero-geo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  margin-bottom: 44px;
  animation: fadeUpIn 1s ease 0.5s both, badgeShimmer 4s ease-in-out 2s infinite;
}
@keyframes badgeShimmer {
  0%, 100% { border-color: rgba(255,255,255,0.1);  box-shadow: none; }
  50%       { border-color: rgba(167,139,250,0.4); box-shadow: 0 0 20px rgba(167,139,250,0.15); }
}
.hgb-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(244,63,94,0.9);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(244,63,94,0.7);
  animation: dotPulse 2.2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(244,63,94,0.7);  transform: scale(1);    }
  50%       { box-shadow: 0 0 16px rgba(244,63,94,1), 0 0 32px rgba(244,63,94,0.4); transform: scale(1.25); }
}

/* Title */
.hero-geo-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: fadeUpIn 1s ease 0.7s both;
}
.hgt-1 {
  background: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0.82));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hgt-2 {
  background: linear-gradient(to right, #a5b4fc, #c4b5fd 25%, rgba(255,255,255,0.95) 50%, #fda4af 75%, #fb7185);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradShift 5s ease-in-out infinite alternate;
}
@keyframes gradShift {
  from { background-position: 0%   center; }
  to   { background-position: 100% center; }
}

/* Subtitle */
.hero-geo-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  color: rgba(255,255,255,0.38);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: 0.01em;
  animation: fadeUpIn 1s ease 0.9s both;
}

/* Buttons row */
.hero-geo-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUpIn 1s ease 1.1s both;
}

/* Top & bottom edge fades */
.hero-geo-fade-t,
.hero-geo-fade-b {
  position: absolute;
  left: 0; right: 0;
  height: 180px;
  pointer-events: none;
  z-index: 6;
}
.hero-geo-fade-t {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-0) 0%, transparent 100%);
}
.hero-geo-fade-b {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-0) 0%, transparent 100%);
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .hgs-1 .hgs-visual { width: 340px; height: 90px; }
  .hgs-2 .hgs-visual { width: 280px; height: 80px; }
  .hgs-3 .hgs-visual { width: 200px; height: 56px; }
  .hgs-4 .hgs-visual { width: 140px; height: 44px; }
  .hgs-5 .hgs-visual { width: 110px; height: 32px; }
  .hero-geo-content { padding: 100px 20px 60px; }
  .hero-geo-badge { margin-bottom: 28px; }
}


/* ═══════════════════════════════════════════════════
   COSMOS SPECTRUM HERO  (cosmos-spectrum.tsx → Vanilla)
═══════════════════════════════════════════════════ */

.cs-wrapper {
  position: relative;
  overflow-x: hidden;
  background: var(--bg-0);
}
/* Subtle top glow so the floating nav pill is always visible on Home */
.cs-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 340px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Full-screen hero section ── */
.cs-hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h, 70px) + 60px) 24px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Small badge above title */
.cs-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
  animation: fadeUpIn 0.8s ease 0.3s both;
}

/* Big title */
.cs-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text-primary);
  margin: 0 0 36px;
  visibility: hidden; /* hidden until JS splits chars; GSAP sets visible */
}
.cs-title .char {
  display: inline-block;
  opacity: 0; /* GSAP reveals */
}

/* Hero text blocks (GSAP animates these) */
.cs-hero-text {
  opacity: 0; /* GSAP reveals via clipPath */
}
.cs-hero-desc {
  max-width: 460px;
  font-size: clamp(0.9rem, 1.6vw, 1rem);
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 36px;
}
.cs-hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Scroll hint — fixed bottom centre ── */
.cs-scroll-hint {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  pointer-events: none;
  white-space: nowrap;
}
.cs-scroll-hint .char { display: inline-block; }

/* ── Spacer — creates scroll room before animation ── */
.cs-spacer { height: 50vh; }

/* ── Animation trigger section ── */
.cs-animation-section {
  height: 100vh;
  position: relative;
}

/* Fixed stage (spectrum bars + tagline) */
.cs-fixed-stage {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 100dvh;
  pointer-events: none;
  z-index: 10;
}

/* SVG wrapper */
.cs-svg-container {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100dvh;
  opacity: 0;
  transform-origin: bottom;
  transform: scaleY(0.05) translateY(100vh);
  will-change: transform, opacity;
  z-index: 15;
}
.cosmos-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Tagline revealed over spectrum */
.cs-main-title {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  text-align: center;
  font-size: clamp(0.7rem, 1.2vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 20;
  opacity: 0;
  white-space: nowrap;
  line-height: 1.9;
}

/* ── Mobile ── */
@media (max-width: 640px) {
  .cs-title { font-size: clamp(2.8rem, 12vw, 4rem); }
  .cs-hero  { padding-top: calc(var(--nav-h, 64px) + 10px); }
  .cs-main-title { white-space: normal; width: 90%; }
}
