/* ============================================
   Vuwio Landing Page — Styles
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  color: #2D2A5A;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  font-weight: 600;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #6366F1;
  color: #fff;
}

.btn-primary:hover {
  background: #4F46E5;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(45, 42, 90, 0.08);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  transition: filter 0.3s ease;
}

.navbar.scrolled .nav-logo-img {
  filter: brightness(0);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, #1E1B4B 0%, #2D2A5A 40%, #6366F1 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(217, 70, 239, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 700px;
}

.hero-logo {
  width: auto;
  height: auto;
  max-width: 360px;
}

.hero-tagline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  line-height: 1.7;
}

.hero .btn-primary {
  margin-top: 8px;
}

/* ============================================
   Sections — General
   ============================================ */
.section {
  padding: 100px 24px;
}

.section-light {
  background: #F8F9FA;
}

.section-dark {
  background: #1E1B4B;
  color: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-dark .section-title {
  color: #fff;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 300;
  max-width: 500px;
  margin: -32px auto 48px;
  opacity: 0.85;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(45, 42, 90, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.card-title {
  margin-bottom: 10px;
  color: #2D2A5A;
}

.card-text {
  font-size: 0.95rem;
  color: #5A577A;
  line-height: 1.6;
}

/* ============================================
   How It Works — Steps
   ============================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #22D3EE);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.step-title {
  margin-bottom: 10px;
  color: #fff;
}

.step-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ============================================
   App Preview
   ============================================ */
.app-preview-content {
  text-align: center;
}

.app-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.app-badge:hover {
  background: rgba(255, 255, 255, 0.12);
}

.badge-icon {
  font-size: 1.75rem;
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge-soon {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
}

.badge-store {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

/* ============================================
   Waitlist / CTA Section
   ============================================ */
.section-cta {
  background: linear-gradient(135deg, #6366F1 0%, #22D3EE 50%, #D946EF 100%);
  color: #fff;
  text-align: center;
}

.section-cta .section-title {
  color: #fff;
}

.section-cta .section-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.waitlist-content {
  max-width: 600px;
  margin: 0 auto;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.waitlist-input:focus {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.section-cta .btn-primary {
  background: #1E1B4B;
  flex-shrink: 0;
}

.section-cta .btn-primary:hover {
  background: #2D2A5A;
  box-shadow: 0 8px 24px rgba(30, 27, 75, 0.4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: #2D2A5A;
  color: rgba(255, 255, 255, 0.7);
  padding: 40px 24px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  height: 28px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards */
.card-grid .card:nth-child(2) .fade-in,
.card-grid .card.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.card-grid .card:nth-child(3) .fade-in,
.card-grid .card.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.card-grid .card:nth-child(4) .fade-in,
.card-grid .card.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

.steps .step.fade-in:nth-child(2) {
  transition-delay: 0.15s;
}

.steps .step.fade-in:nth-child(3) {
  transition-delay: 0.3s;
}

/* ============================================
   Responsive — Tablet (768px–1024px)
   ============================================ */
@media (max-width: 1024px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 24px;
  }
}

/* ============================================
   Responsive — Mobile (<768px)
   ============================================ */
@media (max-width: 768px) {
  .card-grid-3,
  .card-grid-4 {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 64px 16px;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .section-subtitle {
    margin: -20px auto 36px;
  }

  .hero {
    padding: 100px 16px 64px;
    min-height: auto;
  }

  .hero-logo {
    max-width: 240px;
  }

  .hero-content {
    gap: 20px;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form .btn-lg {
    width: 100%;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .nav-logo-img {
    height: 30px;
  }
}
