<template>
  <div class="page dark-theme">

    <!-- PREMIUM NAV -->
    <nav class="nav" :class="{ 'nav--solid': scrolled, 'nav--hidden': !navVisible }">
      <div class="nav__wrap">
        <div class="nav__brand" @click="scrollToTop">
          <img src="/titulosib.png" alt="SIB" class="nav__logo" />
        </div>
        <div class="nav__actions">
          <button class="nav__link hidden-mobile" @click="scrollToInstall">
            ¿Cómo instalar?
          </button>
          <button class="btn-glow" @click="launchApp">
            <span>Abrir app</span>
            <span class="material-icons">arrow_forward</span>
          </button>
        </div>
      </div>
    </nav>

    <!-- PREMIUM HERO -->
    <header class="hero">
      <div class="hero__background">
        <div class="hero__glow hero__glow--1"></div>
        <div class="hero__glow hero__glow--2"></div>
      </div>
      <img src="/landing-bg-bus.png" alt="Bus in background" class="hero__img" />
      <div class="hero__overlay"></div>

      <div class="hero__content">
        <div class="badge-live fade-in-up" style="animation-delay: 0.1s;">
          <span class="badge-live__dot"></span>
          <span class="badge-live__text">GPS EN TIEMPO REAL</span>
        </div>

        <h1 class="hero__title fade-in-up" style="animation-delay: 0.2s;">
          Tu transporte, <br />
          <span class="text-gradient">bajo control.</span>
        </h1>

        <p class="hero__desc fade-in-up" style="animation-delay: 0.3s;">
          Rastrea las rutas en vivo, descubre promociones exclusivas en tu zona y accede al instante sin descargas lentas.
        </p>

        <div class="hero__btns fade-in-up" style="animation-delay: 0.4s;">
          <button class="btn-primary" @click="launchApp">
            <span class="material-icons">directions_bus</span>
            Rastrear mi bus
          </button>
          <button class="btn-secondary" @click="scrollToInstall">
            <span class="material-icons">help_outline</span>
            Instalación
          </button>
        </div>
      </div>
    </header>

    <!-- PREMIUM FEATURES -->
    <section class="features">
      <div class="features__wrap">
        
        <div class="feature-card reveal">
          <div class="feature-card__icon-wrap cyan-glow">
            <span class="material-icons feature-card__icon">my_location</span>
          </div>
          <h3 class="feature-card__title">Monitoreo Exacto</h3>
          <p class="feature-card__desc">Conoce la ubicación exacta de cada unidad y el tiempo real que tardará en llegar a tu parada. Se acabaron las esperas a ciegas.</p>
        </div>

        <div class="feature-card reveal" style="transition-delay: 0.1s;">
          <div class="feature-card__icon-wrap yellow-glow">
            <span class="material-icons feature-card__icon">local_offer</span>
          </div>
          <h3 class="feature-card__title">Ofertas Locales</h3>
          <p class="feature-card__desc">Descubre negocios cerca de tu ruta y accede a descuentos exclusivos mientras esperas o viajas.</p>
        </div>

        <div class="feature-card reveal" style="transition-delay: 0.2s;">
          <div class="feature-card__icon-wrap pink-glow">
            <span class="material-icons feature-card__icon">bolt</span>
          </div>
          <h3 class="feature-card__title">Acceso Instantáneo</h3>
          <p class="feature-card__desc">Nuestra tecnología PWA la instala directo en tu pantalla de inicio en segundos, sin pasar por los molestos registros de la App Store.</p>
        </div>

      </div>
    </section>

    <!-- PREMIUM INSTALL GUIDE -->
    <section id="install-guide" class="install">
      <div class="install__orb install__orb--1"></div>
      <div class="install__orb install__orb--2"></div>
      <div class="install__wrap">
        
        <div class="install__header reveal">
          <p class="install__eyebrow">Sin descargas pesadas</p>
          <h2 class="install__title">Añade SIB a tu inicio</h2>
          <p class="install__sub">Disfruta de la experiencia completa como una app nativa. Ligera, rápida y siempre a mano.</p>
        </div>

        <div class="install__grid">
          
          <!-- iPhone Card -->
          <div class="icard reveal">
            <div class="icard__header">
              <div class="icard__icon icard__icon--apple">
                <!-- SVG Apple logo (Material Icons no incluye marcas de terceros) -->
                <svg viewBox="0 0 814 1000" fill="currentColor" width="26" height="26" xmlns="http://www.w3.org/2000/svg">
                  <path d="M788.1 340.9c-5.8 4.5-108.2 62.2-108.2 190.5 0 148.4 130.3 200.9 134.2 202.2-.6 3.2-20.7 71.9-68.7 141.9-42.8 61.6-87.5 123.1-155.5 123.1s-85.5-39.5-164-39.5c-76 0-103.7 40.8-165.9 40.8s-105-37.3-166.4-123.1C192 472.5 144.3 332.6 144.3 202.6c0-115.3 75-176 145-176 72.4 0 132.9 48.3 177.7 48.3 43 0 110.8-50.9 194.5-50.9 30.2 0 107.7 2.6 168.3 98.3zm-234-181.5c31.1-36.9 53.1-88.1 53.1-139.3 0-7.1-.6-14.3-1.9-20.1-50.6 1.9-110.8 33.7-147.1 75.8-28.5 32.4-55.1 83.6-55.1 135.5 0 7.8 1.3 15.6 1.9 18.1 3.2.6 8.4 1.3 13.6 1.3 45.4 0 102.5-30.4 135.5-71.3z"/>
                </svg>
              </div>
              <div>
                <h3 class="icard__device">iPhone / iPad</h3>
                <span class="icard__browser">Requiere Safari</span>
              </div>
            </div>
            <ol class="icard__steps">
              <li>
                <div class="icard__step-num">1</div>
                <div>Abre esta página en <strong>Safari</strong></div>
              </li>
              <li>
                <div class="icard__step-num">2</div>
                <div>Toca el botón <strong>Compartir</strong> <span class="material-icons step-inline-icon">ios_share</span></div>
              </li>
              <li>
                <div class="icard__step-num">3</div>
                <div>Selecciona <strong>Agregar a inicio</strong> <span class="material-icons step-inline-icon">add_box</span></div>
              </li>
            </ol>
          </div>

          <!-- Android Card -->
          <div class="icard reveal" style="transition-delay: 0.15s;">
            <div class="icard__header">
              <div class="icard__icon icard__icon--android">
                <span class="material-icons">android</span>
              </div>
              <div>
                <h3 class="icard__device">Android</h3>
                <span class="icard__browser">Google Chrome</span>
              </div>
            </div>
            <ol class="icard__steps">
              <li>
                <div class="icard__step-num">1</div>
                <div>Abre esta página en <strong>Chrome</strong></div>
              </li>
              <li>
                <div class="icard__step-num">2</div>
                <div>Toca el menú <strong>⋮</strong> arriba a la derecha</div>
              </li>
              <li>
                <div class="icard__step-num">3</div>
                <div>Elige <strong>Instalar Aplicación</strong></div>
              </li>
            </ol>
          </div>

        </div>

        <div class="install__footer reveal">
          <button class="btn-primary btn-primary--large" @click="launchApp">
            <span class="material-icons">directions_bus</span>
            Continuar a la Aplicación
          </button>
        </div>

      </div>
    </section>

    <!-- FOOTER -->
    <footer class="footer">
      <div class="footer__wrap">
        <img src="/titulosib.png" alt="SIB" class="footer__logo" />
        <p class="footer__copy">© 2026 SIB. Redefiniendo la movilidad inteligente.</p>
      </div>
    </footer>

  </div>
</template>

<script setup lang="ts">
import { ref, onMounted, onUnmounted } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()
const scrolled = ref(false)
const navVisible = ref(true)
let lastScrollY = 0

// Lógica mejorada del scroll con Hysteresis para evitar el "flickering" o jittering (Bug Fix de la Navbar)
const onScroll = () => {
  const currentScrollY = window.scrollY
  
  // Cambiar a diseño sólido muy rápido
  scrolled.value = currentScrollY > 10
  
  // En el tope, siempre visible
  if (currentScrollY < 80) {
    navVisible.value = true
  } 
  // Scroll hacia abajo (Ocultar) - Threshold de 15px para evitar ocultar por saltitos
  else if (currentScrollY > lastScrollY + 15) {
    navVisible.value = false
  } 
  // Scroll hacia arriba (Mostrar) - Threshold rápido
  else if (currentScrollY < lastScrollY - 10) {
    navVisible.value = true
  }
  
  // Actualizar la última posición solo si se movió lo suficiente
  if (Math.abs(currentScrollY - lastScrollY) > 10) {
      lastScrollY = currentScrollY
  }
  
  // Efectos de revelado
  revealElements()
}

// Ejecutar animaciones al hacer scroll
const revealElements = () => {
  const reveals = document.querySelectorAll('.reveal')
  for (let i = 0; i < reveals.length; i++) {
    const el = reveals[i]
    if (!el) continue

    const windowHeight = window.innerHeight
    const elementTop = el.getBoundingClientRect().top
    const elementVisible = 100
    if (elementTop < windowHeight - elementVisible) {
      el.classList.add('active')
    }
  }
}

let observer: IntersectionObserver | null = null

onMounted(() => {
  window.addEventListener('scroll', onScroll, { passive: true })

  // IntersectionObserver ES más fiable que scroll manual para las animaciones
  observer = new IntersectionObserver(
    (entries) => {
      entries.forEach(entry => {
        if (entry.isIntersecting) {
          entry.target.classList.add('active')
          observer?.unobserve(entry.target) // Para de monitorear una vez activo
        }
      })
    },
    { threshold: 0.1 } // Activa cuando el 10% del elemento es visible
  )

  // Registrar todos los elementos con la clase .reveal
  document.querySelectorAll('.reveal').forEach(el => observer?.observe(el))

  // Redirigir si ya está instalada / Standalone
  const isStandalone =
    window.matchMedia('(display-mode: standalone)').matches ||
    (window.navigator as any).standalone === true

  if (isStandalone) {
    router.replace('/splash')
  }
})

onUnmounted(() => {
  window.removeEventListener('scroll', onScroll)
  observer?.disconnect()
})

const launchApp = () => router.push('/splash')
const scrollToInstall = () => document.getElementById('install-guide')?.scrollIntoView({ behavior: 'smooth' })
const scrollToTop = () => window.scrollTo({ top: 0, behavior: 'smooth' })
</script>

<style scoped>
/* ─── BASE & THEME ─────────────────────────────────────────── */
.dark-theme {
  --bg-color: #050505;
  --bg-elevated: #121212;
  --text-main: #FFFFFF;
  --text-muted: #A1A1AA;
  --primary-color: #FEE715;
  --primary-glow: rgba(254, 231, 21, 0.4);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(18, 18, 18, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
}

.page {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── ANIMACIONES GLOBALES ────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ─── PREMIUM NAV ──────────────────────────────────────────── */
.nav {
  position: fixed; 
  top: 0; left: 0; right: 0; 
  z-index: 1000;
  height: 90px; 
  display: flex; align-items: center; 
  padding: 0 4%;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.nav--hidden {
  transform: translateY(-100%);
  opacity: 0;
}
.nav--solid {
  height: 70px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav__wrap {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-between; align-items: center;
}
.nav__brand { cursor: pointer; display: flex; align-items: center; }
.nav__logo {
  height: 40px; /* Tamaño consistente, arregla el bug del salto */
  width: auto;
  transition: transform 0.3s ease;
}
.nav--solid .nav__logo {
  height: 36px;
}
.nav__brand:hover .nav__logo { transform: scale(1.05); }

.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__link {
  background: none; border: none; color: var(--text-muted);
  font-family: inherit; font-size: 0.95rem; font-weight: 500;
  cursor: pointer; transition: color 0.2s ease;
}
.nav__link:hover { color: var(--text-main); }

/* Botón Nav Brillante */
.btn-glow {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-glow .material-icons { font-size: 18px; transition: transform 0.3s ease; }
.btn-glow:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}
.btn-glow:hover .material-icons { transform: translateX(4px); }

/* ─── HERO SECCTION ─────────────────────────────────────────── */
.hero {
  position: relative; 
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 4% 60px;
  overflow: hidden;
}

.hero__background {
  position: absolute; inset: 0; z-index: 0;
  background: var(--bg-color);
}
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4;
  animation: floatBlobs 10s ease-in-out infinite alternate;
}
.hero__glow--1 {
  top: -10%; left: -10%; width: 50vw; height: 50vw;
  background: rgba(43, 88, 118, 0.6); /* Azul oscuro lujoso */
}
.hero__glow--2 {
  bottom: 0; right: -10%; width: 40vw; height: 40vw;
  background: rgba(78, 67, 118, 0.5); /* Violeta profundo */
  animation-delay: -5s;
}
@keyframes floatBlobs {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.35; mix-blend-mode: luminosity;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
}

.hero__content {
  position: relative; z-index: 10;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}

/* Badge en vivo */
.badge-live {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(254, 231, 21, 0.1);
  border: 1px solid rgba(254, 231, 21, 0.2);
  margin-bottom: 24px;
}
.badge-live__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  animation: pulsate 1.5s ease-out infinite;
}
@keyframes pulsate {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}
.badge-live__text {
  color: var(--primary-color); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
}

.hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.text-gradient {
  background: linear-gradient(to right, #ffffff, #a1a1aa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted); line-height: 1.6;
  max-width: 600px; margin: 0 auto 40px;
}

.hero__btns {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* Botones principales */
.btn-primary {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary-color); color: #000;
  border: none; border-radius: 12px;
  padding: 16px 32px; font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(254, 231, 21, 0.2);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(254, 231, 21, 0.4);
}

.btn-secondary {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.05); color: var(--text-main);
  border: 1px solid var(--border-subtle); border-radius: 12px;
  padding: 16px 32px; font-size: 1.05rem; font-weight: 600;
  cursor: pointer; transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* ─── FEATURES ─────────────────────────────────────────────── */
.features {
  padding: 100px 4%;
  position: relative; z-index: 2;
  background: var(--bg-color);
}
.features__wrap {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 24px; padding: 40px 32px;
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, -20%), rgba(255,255,255,0.03), transparent 40%);
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { 
  transform: translateY(-10px); 
  border-color: rgba(255,255,255, 0.15);
}
.feature-card:hover::before { opacity: 1; }

.feature-card__icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.cyan-glow { background: rgba(6, 182, 212, 0.1); color: #06b6d4; box-shadow: 0 0 30px rgba(6, 182, 212, 0.2); }
.yellow-glow { background: rgba(250, 204, 21, 0.1); color: #facc15; box-shadow: 0 0 30px rgba(250, 204, 21, 0.2); }
.pink-glow { background: rgba(236, 72, 153, 0.1); color: #ec4899; box-shadow: 0 0 30px rgba(236, 72, 153, 0.2); }

.feature-card__icon { font-size: 32px; }
.feature-card__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.feature-card__desc  { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }


/* ─── INSTALL ──────────────────────────────────────────────── */
.install {
  padding: 120px 4%;
  position: relative;
  overflow: hidden;
  background: #0c0c0c;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* Orbes de luz de fondo */
.install__orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; filter: blur(80px);
}
.install__orb--1 {
  width: 500px; height: 500px;
  top: -100px; left: -150px;
  background: radial-gradient(circle, rgba(254,231,21,0.12) 0%, transparent 70%);
}
.install__orb--2 {
  width: 400px; height: 400px;
  bottom: -80px; right: -100px;
  background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
}

.install__wrap { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }

.install__header { text-align: center; margin-bottom: 64px; }
.install__eyebrow {
  display: inline-block;
  color: var(--primary-color); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(254,231,21,0.08);
  border: 1px solid rgba(254,231,21,0.2);
}
.install__title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 16px;
  color: #fff;
}
.install__sub {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 500px; margin: 0 auto; line-height: 1.6;
}

.install__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 56px; }

/* Tarjetas de instalación rediseñadas */
.icard {
  background: #181818;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.icard:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.icard__header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.icard__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.icard__icon .material-icons { font-size: 28px; }
.icard__icon--apple { background: rgba(255,255,255,0.08); color: #ffffff; }
.icard__icon--android { background: rgba(52,168,83,0.12); color: #4ade80; }

.icard__device { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 2px; }
.icard__browser { font-size: 0.82rem; color: var(--text-muted); }

.icard__steps {
  list-style: none;
  display: flex; flex-direction: column; gap: 18px;
  counter-reset: none;
}
.icard__steps li {
  display: flex; gap: 14px; align-items: flex-start;
}
.icard__step-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(254,231,21,0.1);
  border: 1px solid rgba(254,231,21,0.25);
  color: var(--primary-color);
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.icard__steps li > div:last-child {
  font-size: 0.92rem; color: #c0c0c8; line-height: 1.5;
}
.icard__steps li strong { color: #fff; font-weight: 600; }
.step-inline-icon {
  font-size: 16px; vertical-align: middle;
  margin: 0 2px; color: var(--text-muted);
}

.install__footer { text-align: center; }
.btn-primary--large {
  font-size: 1.05rem; padding: 18px 44px;
  border-radius: 14px; display: inline-flex;
  gap: 10px;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px 4%; background: #000;
}
.footer__wrap {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.footer__logo { height: 28px; opacity: 0.5; filter: grayscale(1); transition: opacity 0.3s; }
.footer__logo:hover { opacity: 1; filter: grayscale(0); }
.footer__copy { color: var(--text-muted); font-size: 0.9rem; }

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .features__wrap { grid-template-columns: 1fr; }
  .install__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hidden-mobile { display: none; }
  .hero { align-items: center; padding-top: 140px; }
  .hero__title { font-size: 3rem; }
  .hero__btns { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .footer__wrap { flex-direction: column; text-align: center; }
  .install { padding: 80px 4%; }
  .glass-card { padding: 32px 24px; }
}
</style>