/* ============================================================
   TVSpot — Homepage Styles
   ============================================================ */

/* THE ORB CAGE */
.glow-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100vh;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  z-index: 1; 
  pointer-events: none;
}
.glow-blue { 
  background: #1BB0E6; 
  width: 60vw; height: 60vw; 
  top: -20vw; left: 20vw; 
  opacity: 0.20; 
}
.glow-purple { 
  background: #5E5CE6; 
  width: 50vw; height: 50vw; 
  top: 20vh; right: -10vw; 
  opacity: 0.05; 
}

/* Apple-style Blur Reveals */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ─── APPLE-CLEAN HERO TAKEOVER ─────────────────────────── */
.hero-clean {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 20px 80px; 
  position: relative;
  overflow: hidden; 
}

/* Background Wrapper */
.hero-bg-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

/* Background Grid */
.hero-bg-grid {
  position: absolute;
  top: -20%;
  left: -15%;
  width: 130%;
  height: 140%;
  transform: rotate(-10deg);
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0.35; 
}

.bg-marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; gap: 16px; padding-right: 16px; }
.track-left { animation: scrollLeft 240s linear infinite; }
.track-right { animation: scrollRight 240s linear infinite; }

@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.bg-poster {
  width: 140px;
  height: 210px;
  border-radius: 12px;
  object-fit: cover;
  filter: brightness(0.6) saturate(0.8);
}

.hero-fade-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 50%, rgba(0,0,0,1) 90%);
  z-index: 2; 
}

/* Foreground Content */
.hero-standalone-icon, .hero-text, .hero-cta, .hero-gallery {
  position: relative;
  z-index: 10;
}

.hero-standalone-icon { 
  margin-bottom: 20px; 
  display: inline-block;
  background: #000; 
  overflow: hidden; 
  border-radius: 22.5%; 
  box-shadow: 0 16px 32px rgba(0,0,0,0.6); 
  position: relative; 
}

.hero-standalone-icon img {
  width: 96px;
  height: 96px;
  border-radius: 22.5%; 
  display: block;
  position: relative;
  z-index: 1;
}

.hero-standalone-icon::after {
  content: '';
  position: absolute;
  inset: 0; 
  border-radius: 22.5%; 
  z-index: 10; 
  pointer-events: none; 
  background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.05) 50%, rgba(27,176,230,0.1) 100%);
  padding: 1.5px; 
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hero-text { max-width: 800px; }
.hero-text h1 {
  font-family: var(--font);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 12px;
}
.hero-text h1 .gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 480px; 
  margin: 0 auto 28px;
  line-height: 1.4;
  font-weight: 500;
}

.hero-cta { margin-bottom: 60px; }

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #000;
  padding: 8px 8px 8px 24px; 
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  gap: 16px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.btn-download:hover {
  transform: scale(1.04);
  opacity: 0.95;
}
.btn-circle {
  background: #000;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.platform-note {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── HORIZONTAL DEVICE GALLERY ─────────────────────────── */
.hero-gallery {
  display: flex;
  justify-content: center;
  align-items: center; 
  gap: 30px; 
  width: 100%;
  max-width: 1000px;
  perspective: 1000px;
}

.gallery-device {
  flex: 1;
  max-width: 260px; 
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.gallery-device.center { transform: scale(1.05); z-index: 2; }
.gallery-device.side { transform: scale(0.92); z-index: 1; opacity: 0.65; }

.hero-gallery:hover .gallery-device { opacity: 0.4; }
.hero-gallery .gallery-device:hover { transform: scale(1.08); opacity: 1; z-index: 10; }

/* PRO CSS iPHONE HARDWARE */
.css-device {
  background: #0f0f11;
  border-radius: 46px;
  padding: 10px; 
  box-shadow: 
    inset 0 0 2px 1px rgba(255,255,255,0.2), 
    inset 0 0 0 4px #2c2c2e, 
    0 30px 60px -10px rgba(0,0,0,0.9);
  position: relative;
}
.css-device::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 46px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 30%);
  pointer-events: none;
  z-index: 20;
}
.css-screen {
  position: relative;
  background: #000;
  border-radius: 36px;
  overflow: hidden;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 24px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
}
.screen-img { width: 100%; height: auto; display: block; }

/* ─── CLASSIC FEATURE SECTIONS ──────────────────────────── */
.story-wrapper { margin-top: 40px; display: flex; flex-direction: column; }

.story-block { padding: 120px 0; width: 100%; }
.story-block.alt-bg {
  background: rgba(255, 255, 255, 0.07);
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.story-section {
  max-width: 920px; 
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px; 
}
.story-block:nth-child(even) .story-section { flex-direction: row-reverse; }

.story-text { flex: 1; max-width: 460px; }
.story-eyebrow {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.story-text h2 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 20px;
}
.story-text p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.story-visual {
  width: 320px; 
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  position: relative;
}
.story-visual .css-device { width: 100%; max-width: 320px; }

/* ─── SUPPORT BANNER ────────────────────────────────────── */
.support-banner {
  width: calc(100% - 40px);
  max-width: 880px;         
  margin: 80px auto 120px;
  text-align: center;
  padding: 60px 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.support-banner h2 { font-family: var(--font); font-size: 2rem; margin-bottom: 16px; color: #fff; }
.support-banner p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.1rem; }

/* ─── HOME RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  .hero-gallery { flex-direction: column; align-items: center; gap: 0; }
  .gallery-device { max-width: 240px; margin-bottom: -60px; }
  .gallery-device.side { display: none; } 
  .gallery-device.center { transform: none; margin-bottom: 0; }

  .story-block { padding: 80px 0; }
  .story-section { flex-direction: column !important; text-align: center; gap: 50px; }
  .story-text { max-width: 100%; }
  .story-visual { width: 100%; }
  .story-visual .css-device { max-width: 280px; margin: 0 auto; }
  
  .support-banner { width: calc(100% - 40px); }
}