/* ============================================
   TROVVY - Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  /* Primary Colors */
  --primary: #007AFF;
  --primary-dark: #0051D5;
  --primary-light: #5AC8FA;

  /* Semantic Colors */
  --success: #34C759;
  --warning: #FF9500;
  --error: #FF3B30;

  /* Special Colors */
  --gold: #FFD700;
  --gold-muted: #C9A227;
  --purple: #9C27B0;
  --pink: #E91E63;
  --cyan: #00BCD4;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
  --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  --gradient-dark: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);

  /* Typography */
  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text-hero: 4rem;
  --text-h1: 3rem;
  --text-h2: 2.25rem;
  --text-h3: 1.5rem;
  --text-body: 1.125rem;
  --text-small: 0.875rem;
  --text-badge: 0.75rem;

  /* Font Weights */
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-hero: 6rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-button: 0 2px 4px rgba(0, 122, 255, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* Font Face */
@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/assets/fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body);
  font-weight: var(--font-regular);
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gray-900);
  font-weight: var(--font-bold);
  line-height: 1.2;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: 1rem;
  box-shadow: var(--shadow-button);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--white);
  color: var(--primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: var(--font-semibold);
  font-size: 1rem;
  border: 2px solid var(--primary);
  transition: all var(--transition-base);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn-arrow {
  width: 20px;
  height: 20px;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--gray-900);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-700);
  font-weight: var(--font-medium);
  transition: color var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 20px;
  font-size: var(--text-small);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
}

.mobile-menu a {
  padding: 0.75rem 0;
  color: var(--gray-700);
  font-weight: var(--font-medium);
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  text-align: center;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-links, .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-menu.active {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  padding: 10rem 1.5rem 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Hero with full-bleed background image */
.hero.hero-with-bg {
  background: none;
  padding: 0;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

.hero.hero-with-bg .hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 8rem 1.5rem 6rem;
}

.hero-content-centered {
  text-align: center;
  max-width: 700px;
}

.hero.hero-with-bg h1 {
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero.hero-with-bg .hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

.hero.hero-with-bg .hero-buttons {
  justify-content: center;
}

.hero.hero-with-bg .hero-trust {
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
}

.hero.hero-with-bg .check-icon {
  color: var(--success);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  color: var(--white);
  animation: fadeInUp 1s ease 1s both;
}

.scroll-indicator span {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  margin: 0 auto;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 100%;
  height: 100%;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gray-900);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.store-btn:hover {
  background: var(--gray-800);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-icon {
  width: 28px;
  height: 28px;
}

.store-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-label {
  font-size: 0.7rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.store-name {
  font-size: 1.1rem;
  font-weight: var(--font-semibold);
  line-height: 1.2;
}

.hero-trust {
  display: flex;
  gap: 1.5rem;
  font-size: var(--text-small);
  color: var(--gray-600);
  flex-wrap: wrap;
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  max-width: 400px;
}

.phone-mockup img {
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Hero Responsive */
@media (max-width: 968px) {
  .hero {
    padding: 8rem 1.5rem 4rem;
    min-height: auto;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    max-width: 280px;
  }
}

/* ============================================
   SHOWCASE SECTION
   ============================================ */
.showcase {
  padding: 6rem 1.5rem;
  background: var(--white);
  overflow: hidden;
}

.showcase-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: var(--text-h2);
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 3rem;
}

.showcase-scroll {
  overflow-x: auto;
  padding: 2rem 0;
  margin: 0 -1.5rem;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.showcase-scroll::-webkit-scrollbar {
  display: none;
}

.showcase-track {
  display: flex;
  gap: 2rem;
  padding: 0 1.5rem;
  width: max-content;
}

.showcase-item {
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: center;
}

.showcase-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow);
}

.showcase-item:hover img {
  transform: scale(1.02);
}

.showcase-label {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: var(--font-medium);
  color: var(--gray-700);
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  padding: 6rem 1.5rem;
  background: var(--gray-50);
}

.features-container {
  max-width: 1200px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 4rem;
}

.features-header h2 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}

.features-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #E8F4FD 0%, #F0F7FF 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.feature-icon.verified {
  background: var(--gradient-gold);
}

.feature-icon.verified svg {
  color: #7A5C00;
}

.feature-card h3 {
  font-size: var(--text-h3);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.7;
}

.features-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Features Responsive */
@media (max-width: 968px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.how-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.step {
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 60%;
  width: calc(100% - 20%);
  height: 2px;
  background: var(--gray-200);
}

.step:last-child::after {
  display: none;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gradient-hero);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

.step-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: var(--text-small);
  color: var(--gray-600);
}

/* Steps Responsive */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .step::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROVIDER CTA SECTION
   ============================================ */
.provider-cta {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
}

.provider-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.provider-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--font-semibold);
  margin-bottom: 1.5rem;
}

.provider-content h2 {
  font-size: var(--text-h2);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.provider-content p {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.provider-benefits {
  list-style: none;
  margin-bottom: 2rem;
}

.provider-benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: rgba(255, 255, 255, 0.9);
}

.benefit-check {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
}

.provider-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Provider Responsive */
@media (max-width: 968px) {
  .provider-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .provider-benefits {
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .provider-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ============================================
   EARLY ACCESS SECTION
   ============================================ */
.early-access {
  padding: 6rem 1.5rem;
  background: var(--gray-50);
}

.early-access-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.early-access-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--font-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.early-perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.perk {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.perk-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #E8F4FD 0%, #F0F7FF 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.perk-icon svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.perk h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.perk p {
  font-size: var(--text-small);
  color: var(--gray-600);
  line-height: 1.6;
}

.early-access-visual {
  margin-top: 3rem;
}

.early-access-visual img {
  max-width: 500px;
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .early-perks {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Social Proof Responsive */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.final-cta {
  padding: 6rem 1.5rem;
  background: var(--gradient-hero);
  text-align: center;
}

.cta-container {
  max-width: 800px;
  margin: 0 auto;
}

.final-cta h2 {
  font-size: var(--text-h2);
  color: var(--white);
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.final-cta .store-btn {
  background: var(--white);
  color: var(--gray-900);
}

.final-cta .store-btn:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.cta-note {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 4rem;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: background var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: var(--font-semibold);
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0;
  transition: color var(--transition-base);
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: var(--text-small);
}

/* Footer Responsive */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ============================================
   PAGE CONTENT (for inner pages)
   ============================================ */
.page-header {
  padding: 10rem 1.5rem 4rem;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
  text-align: center;
}

.page-header h1 {
  font-size: var(--text-h1);
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 4rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: var(--text-h2);
  margin: 2rem 0 1rem;
}

.page-content h3 {
  font-size: var(--text-h3);
  margin: 1.5rem 0 0.75rem;
}

.page-content p {
  margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-hint {
  font-size: var(--text-small);
  color: var(--gray-500);
  margin-top: 0.25rem;
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }

.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }

.hidden { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease forwards;
}

/* ============================================
   LEGAL PAGES (Terms, Privacy)
   ============================================ */
.legal-content {
  padding-bottom: 6rem;
}

.legal-content h2 {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.legal-content h2:first-of-type,
.toc + h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
  color: var(--gray-800);
}

.legal-content h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: var(--gray-700);
}

.legal-content ul {
  margin-bottom: 1.5rem;
}

.legal-content li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.legal-caps {
  text-transform: uppercase;
  font-size: 0.9rem;
}

.legal-note {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-200);
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Table of Contents */
.toc {
  background: var(--gray-50);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.toc h2 {
  margin: 0 0 1rem 0;
  padding: 0;
  border: none;
  font-size: 1.25rem;
}

.toc ol {
  margin: 0;
  padding-left: 1.5rem;
  columns: 2;
  column-gap: 2rem;
}

.toc li {
  margin-bottom: 0.5rem;
  break-inside: avoid;
}

.toc a {
  color: var(--primary);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .toc ol {
    columns: 1;
  }
}

/* ============================================
   FEATURES DETAIL PAGE
   ============================================ */
.features-detail {
  padding: 4rem 1.5rem;
}

.features-detail-container {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.feature-detail-block:last-child {
  border-bottom: none;
}

.feature-detail-block.reverse {
  direction: rtl;
}

.feature-detail-block.reverse > * {
  direction: ltr;
}

.feature-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  border-radius: var(--radius-full);
  font-size: var(--text-badge);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.feature-badge.gold {
  background: var(--gradient-gold);
  color: #7A5C00;
}

.feature-detail-content h2 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}

.feature-lead {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.feature-detail-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 968px) {
  .feature-detail-block,
  .feature-detail-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }

  .feature-detail-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* More Features Section */
.more-features {
  padding: 6rem 1.5rem;
  background: var(--gray-50);
}

.more-features-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.mini-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.mini-feature {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
}

.mini-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.mini-icon svg {
  width: 100%;
  height: 100%;
}

.mini-feature h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.mini-feature p {
  font-size: var(--text-small);
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .mini-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .mini-features-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   PROVIDERS PAGE
   ============================================ */
.provider-hero {
  padding: 10rem 1.5rem 6rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
}

.provider-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 215, 0, 0.2);
  color: var(--gold);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--font-semibold);
  margin-bottom: 1.5rem;
}

.provider-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.provider-hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 2rem;
}

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

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: var(--font-bold);
  color: var(--gold);
}

.hero-stat-label {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.7);
}

.provider-hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@media (max-width: 968px) {
  .provider-hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .provider-hero-visual {
    order: -1;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Pain Points Section */
.pain-points {
  padding: 6rem 1.5rem;
  background: var(--gray-50);
}

.pain-points-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.pain-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  text-align: center;
}

.pain-icon {
  width: 56px;
  height: 56px;
  background: #FEE2E2;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.pain-icon svg {
  width: 28px;
  height: 28px;
  color: var(--error);
}

.pain-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.pain-card p {
  font-size: var(--text-small);
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

/* Pain Items (alternate style) */
.pain-item {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  text-align: left;
}

.pain-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.pain-item p {
  color: var(--gray-600);
  font-size: var(--text-small);
}

.pain-solution h3 {
  font-size: var(--text-h2);
  color: var(--primary);
}

@media (max-width: 640px) {
  .pain-grid {
    grid-template-columns: 1fr;
  }
}

/* Provider Types Section */
.provider-types {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.provider-types-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.provider-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 3rem 0 2rem;
}

.provider-tab {
  padding: 0.75rem 1.5rem;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all var(--transition-base);
}

.provider-tab:hover {
  background: var(--gray-200);
}

.provider-tab.active {
  background: var(--primary);
  color: var(--white);
}

.provider-tab-content {
  display: none;
}

.provider-tab-content.active {
  display: block;
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
  padding: 2rem 0;
}

.tab-benefits h3 {
  font-size: var(--text-h2);
  margin-bottom: 1.5rem;
}

.tab-benefits ul {
  list-style: none;
}

.tab-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  font-size: 1.1rem;
}

.tab-benefits li svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.tab-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .tab-grid {
    grid-template-columns: 1fr;
  }

  .tab-visual {
    order: -1;
  }
}

/* Solutions Section */
.solutions {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.solutions-container {
  max-width: 1200px;
  margin: 0 auto;
}

.solutions-header {
  text-align: center;
  margin-bottom: 4rem;
}

.solutions-header h2 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.solution-card {
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1.5rem;
}

.solution-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--gradient-hero);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.solution-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.solution-content p {
  color: var(--gray-600);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .solution-card {
    flex-direction: column;
    text-align: center;
  }

  .solution-icon {
    margin: 0 auto;
  }
}

/* Pricing Section */
.pricing {
  padding: 6rem 1.5rem;
  background: var(--gray-50);
}

.pricing-container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
}

.pricing-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--gradient-gold);
  color: #7A5C00;
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: var(--font-bold);
  margin-bottom: 1.5rem;
}

.pricing-amount {
  font-size: 4rem;
  font-weight: var(--font-bold);
  color: var(--gray-900);
  line-height: 1;
}

.pricing-amount span {
  font-size: 1.5rem;
  color: var(--gray-500);
}

.pricing-cap {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin: 0.5rem 0 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex-shrink: 0;
}

/* Provider CTA */
.provider-cta-section {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  text-align: center;
  color: var(--white);
}

.provider-cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.provider-cta-section h2 {
  font-size: var(--text-h2);
  color: var(--white);
  margin-bottom: 1rem;
}

.provider-cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
}

/* Extended Pricing (Providers Page) */
.pricing-header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--white);
  padding: 3rem 2rem;
}

.pricing-header h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pricing-percent {
  font-size: 4rem;
  font-weight: var(--font-bold);
  color: var(--gold);
}

.pricing-detail {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.pricing-tagline {
  font-style: italic;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.pricing-cta {
  margin: 2rem;
  width: calc(100% - 4rem);
}

/* Provider Testimonial */
.provider-testimonial {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.testimonial-container {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-content {
  text-align: center;
}

.testimonial-photo-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  box-shadow: var(--shadow-lg);
}

.testimonial-content blockquote {
  font-size: 1.5rem;
  color: var(--gray-700);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-content cite {
  font-style: normal;
}

.testimonial-content cite strong {
  display: block;
  font-size: 1.125rem;
  color: var(--gray-900);
}

.testimonial-content cite span {
  color: var(--gray-500);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 4rem 1.5rem 6rem;
}

.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gray-700);
}

.contact-method h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-method a {
  color: var(--primary);
}

.response-time {
  padding: 1rem;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  text-align: center;
}

.response-time p {
  font-size: var(--text-small);
  color: var(--gray-600);
  margin: 0;
}

.contact-form-wrapper {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-submit {
  width: 100%;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */
.download-hero {
  padding: 10rem 1.5rem 6rem;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
  min-height: 80vh;
}

.download-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.download-content {
  text-align: center;
}

.download-content h1 {
  font-size: clamp(3rem, 6vw, 4rem);
  margin-bottom: 1rem;
}

.platform-detect {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 2rem;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto 3rem;
}

.store-btn.large {
  padding: 16px 24px;
}

.store-btn.large .store-icon {
  width: 36px;
  height: 36px;
}

.store-btn.large .store-name {
  font-size: 1.25rem;
}

.store-btn.highlighted {
  box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg);
  transform: scale(1.02);
}

.qr-section {
  margin-top: 2rem;
}

.qr-code {
  display: inline-block;
  text-align: center;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  background: var(--white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  box-shadow: var(--shadow-md);
}

.qr-placeholder svg {
  width: 120px;
  height: 120px;
  color: var(--gray-400);
}

.qr-code p {
  font-size: var(--text-small);
  color: var(--gray-500);
}

.download-visual img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

@media (max-width: 968px) {
  .download-hero {
    min-height: auto;
    padding-bottom: 4rem;
  }

  .download-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .download-visual {
    order: -1;
  }

  .download-visual img {
    max-width: 400px;
  }
}

/* Requirements Section */
.requirements {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.requirements-container {
  max-width: 800px;
  margin: 0 auto;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.requirement-card {
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.requirement-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.requirement-icon svg {
  width: 24px;
  height: 24px;
  color: var(--gray-700);
}

.requirement-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.requirement-card p {
  font-size: var(--text-small);
  color: var(--gray-600);
  margin: 0;
}

@media (max-width: 640px) {
  .requirements-grid {
    grid-template-columns: 1fr;
  }
}

/* Download Features Section */
.download-features {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.download-features-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.download-features h2 {
  font-size: var(--text-h2);
  margin-bottom: 2rem;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gray-50);
  border-radius: var(--radius-full);
  font-size: 1rem;
  color: var(--gray-700);
}

.feature-pill svg {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.trust-badge svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.trust-badge span {
  font-size: var(--text-small);
  color: var(--gray-600);
}

/* ============================================
   404 PAGE
   ============================================ */
.error-page {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
}

.error-container {
  text-align: center;
  max-width: 500px;
}

.error-visual {
  position: relative;
  margin-bottom: 2rem;
}

.error-code {
  font-size: 8rem;
  font-weight: var(--font-bold);
  color: var(--gray-200);
  line-height: 1;
}

.error-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  color: var(--primary);
}

.error-icon svg {
  width: 100%;
  height: 100%;
}

.error-container h1 {
  font-size: var(--text-h2);
  margin-bottom: 1rem;
}

.error-container > p {
  color: var(--gray-600);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.error-links p {
  color: var(--gray-500);
  font-size: var(--text-small);
  margin-bottom: 0.75rem;
}

.links-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.links-row a {
  color: var(--primary);
  font-weight: var(--font-medium);
}

/* ============================================
   PASSPORT PAGE
   ============================================ */
.passport-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #F0F7FF 0%, #E8F4FD 100%);
  padding: 8rem 1.5rem 4rem;
}

#passport-container {
  max-width: 480px;
  margin: 0 auto;
}

#loading {
  padding: 4rem;
  text-align: center;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

#loading p {
  color: var(--gray-600);
  font-size: 1.125rem;
}

#error-state {
  padding: 4rem 2rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

#error-state h2 {
  margin-bottom: 1rem;
}

#error-state p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* Passport Card */
.passport-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.passport-header {
  background: var(--gradient-hero);
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.pet-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  background: var(--gray-200);
}

.pet-info h1 {
  color: var(--white);
  margin: 0;
  font-size: 1.75rem;
}

.pet-info .breed,
.pet-info .age {
  color: rgba(255, 255, 255, 0.9);
  margin: 0.25rem 0;
}

.passport-section {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--gray-200);
}

.passport-section:last-of-type {
  border-bottom: none;
}

.passport-section h2 {
  font-size: 1.125rem;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.info-item .label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.info-item .value {
  font-weight: var(--font-semibold);
  color: var(--gray-900);
}

.description {
  margin-top: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.allergies {
  background: #FEF3CD;
  color: #856404;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.vaccination-list {
  list-style: none;
  padding: 0;
}

.vaccination-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.vaccination-list li:last-child {
  border-bottom: none;
}

.vax-name {
  font-weight: var(--font-medium);
}

.vax-date {
  color: var(--gray-500);
  font-size: var(--text-small);
}

.behavior-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.behavior-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
}

.behavior-chip.verified {
  background: var(--gradient-gold);
  color: #7A5C00;
}

.passport-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  background: var(--gray-50);
}

.passport-footer p {
  font-size: var(--text-small);
  color: var(--gray-500);
  margin-bottom: 1rem;
}

.passport-footer a {
  color: var(--primary);
}

/* Demo mode banner */
.demo-banner {
  background: var(--warning);
  color: var(--white);
  text-align: center;
  padding: 0.75rem;
  font-size: var(--text-small);
  font-weight: var(--font-medium);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar,
  .footer,
  .final-cta {
    display: none;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
  }
}
