/* ===========================================
   HAVFUN — home.css (Enterprise 2.0)
   Floating Pill Nav + Immersive Flow
   =========================================== */

/* ── NUMERIC PRELOADER (Global Entrance) ── */
.preloader-skip #preloader { display: none !important; }
.preloader-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.loader-content {
  text-align: center;
  position: relative;
}

.loader-percent {
  font-family: 'Rubik Mono One', sans-serif;
  font-size: clamp(4rem, 15vw, 10rem);
  color: #fff;
  line-height: 1;
  opacity: 0.15;
  user-select: none;
}

.loader-dot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--accent-1); /* Neon Purple */
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent-1), 0 0 40px var(--accent-1);
}

/* ── HEADER PILL ────────────────────────── */
.header-pill-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 40px; /* Increased for ample space */
  padding: 8px 12px 8px 24px;
  border-radius: 100px;
  height: 58px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.nav-brand img {
  height: 24px;
  width: auto;
  margin-top: 4px;
}

.nav-pill-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 16px; /* Added internal padding for space between links */
  transition: color 0.3s ease;
}

.nav-pill-link:hover,
.nav-pill-link.is-active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px; /* Increased to accommodate relocated timer */
}

.btn-pill-menu {
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 24px; /* Slightly wider for the VIBE text */
  border-radius: 100px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-pill-cta {
  background: var(--accent-cta);
  /* High-end contrast red */
  color: #fff;
  padding: 8px 22px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: transform 0.3s ease;
}

.btn-pill-cta:hover {
  transform: translateY(-2px);
}

/* ── ATMOSPHERE SHELL ────────────────────── */
.atmosphere-shell {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #000;
}

.mesh-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vw;
  height: 150vh;
  transform: translate(-50%, -50%);
  filter: blur(140px);
  opacity: 0.35;
  pointer-events: none;
  animation: mesh-drift 30s ease-in-out infinite alternate;
}

.mesh-purple {
  background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.mesh-cyan {
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  animation-delay: -15s;
}

@keyframes mesh-drift {
  from {
    transform: translate(-50%, -50%) rotate(0deg) scale(1.1);
  }

  to {
    transform: translate(-45%, -55%) rotate(15deg) scale(0.9);
  }
}

.particle-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 20%, #000 90%);
}

/* ── HERO ────────────────────────────────── */
.enterprise-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 120px;
}

.hero-text-wrap {
  width: 100%;
  text-align: center;
  pointer-events: none;
  /* title is already non-interactive; don't block footer-bar clicks */
}

.hero-huge-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: clamp(3rem, 15vw, 15rem);
  line-height: 0.85;
  pointer-events: none;
  mix-blend-mode: exclusion;
  width: 100%;
}

.hero-huge-title span {
  display: block;
  width: 100%;
}

.hero-subject-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  z-index: -1;
  width: clamp(340px, 45vh, 600px);
}

.hero-gif-canvas {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 40px 100px rgba(0, 0, 0, 0.8));
}

/* ── NAV COUNTDOWN ───────────────────────── */
.nav-countdown {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 5px 14px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(123, 47, 255, 0.15);
  border: 1px solid rgba(123, 47, 255, 0.35);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-count-label {
  font-size: 0.58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-right: 6px;
}

.nav-count-group {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
}

.nav-count-unit {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.nav-count-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
  margin: 0 1px;
}

.live-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-2);
}

.hero-footer-bar {
  position: absolute;
  bottom: 40px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 24px;
  z-index: 5;
  /* always above text wrap and GIF canvas */
  pointer-events: all;
  /* ensure clicks land even when hero is pinned */
}

.btn-enterprise {
  height: 60px;
  transition: all 0.4s var(--transition-base);
}

.btn-google-play img {
  height: 100%;
  width: auto;
  border-radius: 12px;
}

.btn-explore {
  padding: 0 44px;
  background: #fff;
  color: #000;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-explore:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.25);
}

/* ── PRODUCT FLOW ────────────────────────── */
.product-flow {
  position: relative;
  z-index: 10;
  padding: var(--section-pad) 0;
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 40px;
  margin-top: 60px;
}

.card-main {
  grid-column: span 12;
  aspect-ratio: 21 / 10;
}

.card-side {
  grid-column: span 6;
  aspect-ratio: 1 / 1;
}

.enterprise-card {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.6s var(--transition-base);
}

.card-visual {
  width: 100%;
  height: 100%;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--transition-slow);
}

.enterprise-card:hover .card-visual img {
  transform: scale(1.1);
}

.card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
}

.card-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-1);
  letter-spacing: 0.1em;
}

.card-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 8px;
}

/* ── MANIFESTO STATS ─────────────────────── */
.stats-enterprise {
  display: flex;
  justify-content: space-between;
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
}

.stat-big-num {
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
}

/* ── pc-only: visible on desktop, hidden on mobile ── */
.pc-only {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 900px: tablet/small desktop tweaks ── */
@media (max-width: 900px) {
  .hero-huge-title {
    font-size: 6rem;
    line-height: 0.85;
  }

  .card-main {
    grid-column: span 12;
    aspect-ratio: 16/9;
  }

  .card-side {
    grid-column: span 6;
    aspect-ratio: 1/1;
  }

  .stats-enterprise {
    gap: 40px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-big-num {
    font-size: 4rem;
  }
}

/* ── 767px: mobile — same look as desktop, optimised for 9:16 ── */
@media (max-width: 767px) {

  /* ── NAV: Mobile — same pill structure as PC, scaled to fit ── */
  .pc-only        { display: flex; gap: 4px; }
  .nav-countdown  { display: none; }
  .header-pill-wrap { padding: 0 12px; }
  .nav-pill       { gap: 10px; height: 48px; padding: 5px 6px 5px 12px; border-radius: 100px; flex-wrap: nowrap; }
  .nav-actions    { gap: 6px; }
  .nav-brand img  { height: 18px; margin-top: 2px; }
  .nav-pill-link  { font-size: 0.7rem; letter-spacing: 0.04em; padding: 0 4px; white-space: nowrap; }
  .btn-pill-menu  { padding: 5px 10px; font-size: 0.7rem; white-space: nowrap; }
  .btn-pill-cta   { display: inline-flex; align-items: center; gap: 2px; padding: 5px 8px; font-size: 0.68rem; white-space: nowrap; }

  /* ── HERO ── */
  .enterprise-hero {
    padding-top: 80px;
    overflow-x: hidden;
  }

  /* Title: scale to fill the 9:16 screen, same proportional look */
  .hero-huge-title {
    font-size: clamp(2.2rem, 12vw, 4.5rem);
    line-height: 0.85;
    padding: 0 8px;
  }

  /* GIF: same centred absolute position, scaled to not bleed off screen */
  .hero-subject-wrap {
    width: clamp(220px, 72vw, 300px);
  }

  .hero-gif-canvas {
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.75));
  }

  /* CTAs: same row, both buttons smaller to fit side-by-side at 375px */
  .hero-footer-bar {
    gap: 10px;
    bottom: 24px;
    padding: 0 16px;
  }

  .btn-enterprise {
    height: 50px;
  }

  .btn-google-play img {
    height: 100%;
    border-radius: 10px;
  }

  .btn-explore {
    padding: 0 18px;
    font-size: 0.82rem;
    gap: 8px;
    white-space: nowrap;
  }

  /* Cards: single column on mobile (two 167px cards side-by-side is unreadable) */
  .card-main {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }

  .card-side {
    grid-column: span 12;
    aspect-ratio: 4/3;
  }

  .card-name {
    font-size: 1.4rem;
  }

  .card-body {
    padding: 24px;
  }

  .premium-grid {
    gap: 20px;
    margin-top: 40px;
  }

  /* Stats */
  .stats-enterprise {
    padding: 60px 0;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stat-unit {
    text-align: center;
  }

  .stat-big-num {
    font-size: 3rem;
  }
}

/* ── Mobile Launch Bar (home page only, below nav) ── */
.mobile-launch-bar {
  display: none;
}

@media (max-width: 767px) {
  .mobile-launch-bar {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    position: fixed;
    top: 108px; /* 24px nav top + 48px nav height + 36px gap */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    padding: 5px 16px;
    border-radius: 100px;
    background: rgba(123, 47, 255, 0.15);
    border: 1px solid rgba(123, 47, 255, 0.35);
    backdrop-filter: blur(8px);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .mob-count-label {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-right: 6px;
  }
  .mob-count-group {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
  }
  .mob-count-unit {
    font-size: 0.55rem;
    color: var(--text-muted);
  }
  .mob-count-sep {
    color: var(--text-muted);
    font-size: 0.68rem;
    margin: 0 1px;
  }
}

/* ── PARALLAX SCROLL SPACE ── */
/* Gives the hero enough page height so ScrollTrigger can animate */
#main-content {
  padding-bottom: 100vh;
}

