/* ==========================================================================
   CSS MASTER STYLES - KARGA LANDING PAGE
   Estilo: Industrial Precision (Cobalto, Carbón y Rust)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* --- PALETA DE COLORES --- */
  /* Primary - Azul Cobalto */
  --primary-50: #eef3fc;
  --primary-100: #d6e1f6;
  --primary-200: #adc2ed;
  --primary-300: #7d9be1;
  --primary-400: #4d75d2;
  --primary-500: #0047ab;
  --primary-600: #003d97;
  --primary-700: #00327d;
  --primary-800: #002862;
  --primary-900: #001f4d;
  --primary-950: #001435;

  /* Secondary - Gris Carbón */
  --secondary-50: #f1f3f4;
  --secondary-100: #d9dde0;
  --secondary-200: #b3bbc1;
  --secondary-300: #8a96a0;
  --secondary-400: #5e6e7a;
  --secondary-500: #36454f;
  --secondary-600: #2f3b44;
  --secondary-700: #29353c;
  --secondary-800: #1f282d;
  --secondary-900: #161e22;
  --secondary-950: #0d1316;

  /* Tertiary - Rust (Acentación de Marca, NO acciones) */
  --tertiary-50: #fcebe1;
  --tertiary-100: #f6cbb0;
  --tertiary-200: #ec9b73;
  --tertiary-300: #d36a3a;
  --tertiary-400: #a8481a;
  --tertiary-500: #8b2e01;
  --tertiary-600: #762701;
  --tertiary-700: #6b2401;

  /* Neutrales */
  --neutral-50: #faf8ff;
  --neutral-100: #ededf6;
  --neutral-200: #c3c6d5;
  --neutral-300: #aaadbc;
  --neutral-400: #909298;
  --neutral-500: #75777e;
  --neutral-600: #5e6066;
  --neutral-700: #4a4c52;
  --neutral-800: #2e3037;
  --neutral-900: #191b22;
  --neutral-950: #0c0e12;

  /* Semánticos */
  --success-100: #d4f0dd;
  --success-500: #1b7f3a;
  --warning-100: #fbecc6;
  --warning-500: #d89614;
  --danger-100: #ffd7d4;
  --danger-500: #c8302b;

  /* Superficies */
  --background: var(--neutral-50);
  --surface: #ffffff;
  --surface-muted: var(--neutral-100);
  --on-surface: var(--neutral-900);
  --on-surface-variant: var(--secondary-700);
  --outline: var(--neutral-500);
  --outline-variant: var(--neutral-200);

  /* --- FUENTES --- */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* --- ESCALA DE ESPACIADO (Base 4px) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-16: 64px;

  /* --- BORDER RADIUS --- */
  --radius-default: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* --- SHADOWS --- */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-elevated: 0 8px 24px rgba(54, 69, 79, 0.16);
  --shadow-focus: 0 0 0 3px rgba(0, 71, 171, 0.4);

  /* --- TRANSICIONES --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--neutral-100);
}
::-webkit-scrollbar-thumb {
  background: var(--neutral-300);
  border-radius: var(--radius-lg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-500);
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.display-xl {
  font-size: 3rem; /* 48px */
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.headline-lg {
  font-size: 2rem; /* 32px */
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.headline-md {
  font-size: 1.5rem; /* 24px */
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.body-lg {
  font-size: 1.125rem; /* 18px */
  line-height: 1.6;
  font-weight: 400;
  color: var(--on-surface-variant);
}

.body-md {
  font-size: 1rem; /* 16px */
  line-height: 1.5;
  font-weight: 400;
}

.label-caps {
  font-size: 0.75rem; /* 12px */
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   STRUCTURE
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section-padding {
  padding: var(--space-16) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--space-10) 0;
  }
  .display-xl {
    font-size: 2.25rem;
  }
  .headline-lg {
    font-size: 1.75rem;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.8125rem; /* 13px */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  gap: var(--space-2);
}

.btn-primary {
  background-color: var(--primary-500);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-primary:focus {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--secondary-400);
  color: var(--secondary-700);
}

.btn-secondary:hover {
  background-color: rgba(54, 69, 79, 0.05);
  border-color: var(--secondary-600);
  color: var(--secondary-900);
  transform: translateY(-2px);
}

.btn-rust {
  background-color: var(--tertiary-500);
  color: #ffffff;
}

.btn-rust:hover {
  background-color: var(--tertiary-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.btn-rust:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 46, 1, 0.4);
}

/* ==========================================================================
   NAVBAR (GLASSMORPHISM)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background-color: rgba(250, 248, 255, 0.8);
  border-bottom: 1px solid rgba(195, 198, 213, 0.4);
  transition: all var(--transition-normal);
}

.navbar-scrolled {
  background-color: rgba(250, 248, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--primary-500);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--secondary-900);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  position: relative;
  padding: var(--space-2) 0;
}

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

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

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

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

/* Hamburguer menu for mobile */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  position: relative;
}

.menu-btn-bar {
  width: 24px;
  height: 2px;
  background-color: var(--secondary-900);
  position: absolute;
  left: 0;
  transition: all var(--transition-normal);
}

.menu-btn-bar:nth-child(1) { top: 6px; }
.menu-btn-bar:nth-child(2) { top: 11px; }
.menu-btn-bar:nth-child(3) { top: 16px; }

.menu-btn.active .menu-btn-bar:nth-child(1) {
  transform: rotate(45deg);
  top: 11px;
}
.menu-btn.active .menu-btn-bar:nth-child(2) {
  opacity: 0;
}
.menu-btn.active .menu-btn-bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 11px;
}

@media (max-width: 992px) {
  .nav-links, .nav-actions {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: var(--surface);
    padding: var(--space-6);
    border-bottom: 1px solid var(--outline-variant);
    box-shadow: var(--shadow-elevated);
    gap: var(--space-4);
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  padding-top: 140px; /* space for fixed navbar */
  padding-bottom: var(--space-16);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-10);
  align-items: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background-color: var(--primary-50);
  color: var(--primary-700);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  align-self: flex-start;
  font-weight: 700;
  border: 1px solid var(--primary-100);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-500);
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

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

/* Mobile App Mockup Container */
.phone-mockup-wrapper {
  position: relative;
  width: 320px;
  height: 640px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-elevated);
  background-color: #0c0e12;
  padding: 12px;
  border: 4px solid var(--neutral-800);
  overflow: hidden;
}

.phone-screen {
  background-color: var(--background);
  width: 100%;
  height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Simulated map on screen */
.phone-map {
  flex: 1;
  background-color: #ededf6;
  position: relative;
  background-image: radial-gradient(var(--neutral-400) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* SVG simulated road lines inside mockup screen */
.simulated-road {
  position: absolute;
  stroke: #ffffff;
  stroke-width: 6;
  fill: none;
  stroke-dasharray: 6 4;
}

.simulated-tow-truck {
  position: absolute;
  width: 24px;
  height: 24px;
  background-color: var(--primary-500);
  border-radius: var(--radius-default);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 800;
  box-shadow: 0 0 10px var(--primary-300);
  transform: rotate(-15deg);
  animation: route-follow 10s infinite linear;
}

.phone-screen-ui {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-4);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
}

.phone-ui-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
}

.phone-ui-bar {
  height: 6px;
  background-color: var(--neutral-200);
  border-radius: var(--radius-full);
}

@keyframes route-follow {
  0% { top: 80%; left: 20%; transform: rotate(-15deg); }
  25% { top: 50%; left: 40%; transform: rotate(10deg); }
  50% { top: 30%; left: 50%; transform: rotate(35deg); }
  75% { top: 20%; left: 75%; transform: rotate(0deg); }
  100% { top: 80%; left: 20%; transform: rotate(-15deg); }
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge {
    align-self: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .phone-mockup-wrapper {
    width: 280px;
    height: 560px;
    margin-top: var(--space-10);
  }
}

/* ==========================================================================
   STATS BAR
   ========================================================================== */
.stats-bar {
  background-color: var(--secondary-900);
  color: white;
  padding: var(--space-8) 0;
  border-top: 4px solid var(--primary-500);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-300);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--secondary-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* ==========================================================================
   MARKETPLACE TABS (Doble Propuesta de Valor)
   ========================================================================== */
.tabs-section {
  background-color: var(--surface);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-10) auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.tabs-container {
  display: flex;
  justify-content: center;
  background-color: var(--neutral-100);
  padding: 6px;
  border-radius: var(--radius-xl);
  max-width: 480px;
  margin: 0 auto var(--space-10) auto;
  border: 1px solid var(--neutral-200);
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary-500);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tab-btn.active {
  background-color: var(--surface);
  color: var(--primary-600);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.5s ease forwards;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-card {
  background-color: var(--neutral-50);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-card:hover {
  transform: translateY(-8px);
  background-color: var(--surface);
  box-shadow: var(--shadow-elevated);
  border-color: var(--primary-200);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  background-color: var(--primary-50);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-500);
  font-size: 1.25rem;
  font-weight: 700;
}

.feature-card:hover .feature-icon-wrapper {
  background-color: var(--primary-500);
  color: white;
}

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

/* ==========================================================================
   ESTIMATOR WIDGET SECTION
   ========================================================================== */
.estimator-section {
  background-color: var(--neutral-100);
  position: relative;
  overflow: hidden;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: center;
}

.estimator-card {
  background-color: var(--surface);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary-700);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-select, .form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--neutral-200);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--secondary-900);
  background-color: var(--surface);
  transition: all var(--transition-fast);
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.15);
}

/* Vehicle Selector (Custom Buttons Grid) */
.vehicle-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.vehicle-option {
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
  cursor: pointer;
  background-color: var(--surface);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--secondary-600);
  transition: all var(--transition-fast);
}

.vehicle-option.active {
  border-color: var(--primary-500);
  background-color: var(--primary-50);
  color: var(--primary-700);
}

/* Results box inside estimator */
.estimator-result {
  background-color: var(--secondary-900);
  color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.price-display {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-300);
}

.price-disclaimer {
  font-size: 0.75rem;
  color: var(--neutral-400);
}

/* Route visualization mock map */
.estimator-map-wrapper {
  height: 400px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--neutral-300);
  background-color: #e3e6ed;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.grid-map-bg {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(#b3bbc1 1px, transparent 1px),
    linear-gradient(rgba(179, 187, 193, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(179, 187, 193, 0.1) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
}

/* Animated line on estimator map */
.route-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 80%;
  height: 8px;
  background-color: var(--neutral-400);
  border-radius: var(--radius-full);
}

.route-progress-line {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 0;
  height: 8px;
  background-color: var(--primary-500);
  border-radius: var(--radius-full);
  transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: var(--surface);
  border: 3px solid var(--primary-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8125rem;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transform: translate(-50%, -50%);
  top: 54%;
}

.map-marker.marker-a { left: 10%; }
.map-marker.marker-b { left: 90%; border-color: var(--tertiary-500); }

@media (max-width: 992px) {
  .estimator-grid {
    grid-template-columns: 1fr;
  }
  .estimator-map-wrapper {
    height: 300px;
  }
}

/* ==========================================================================
   TRUST & KYC SECTION
   ========================================================================== */
.trust-section {
  background-color: var(--surface);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.trust-image {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.security-badge-shield {
  width: 240px;
  height: 240px;
  background-color: var(--primary-900);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  padding: var(--space-6);
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.security-badge-shield::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 2px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
}

.trust-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.trust-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.trust-step-item {
  display: flex;
  gap: var(--space-4);
}

.step-num {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--primary-500);
  background-color: var(--primary-50);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .trust-row {
    flex-direction: column;
  }
}

/* ==========================================================================
   DOWNLOAD APP CTA SECTION (DARK CONTRAST)
   ========================================================================== */
.download-section {
  background-color: var(--secondary-950);
  color: white;
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--primary-500);
}

.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--primary-600) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.05;
}

.download-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  position: relative;
  z-index: 10;
}

.download-wrapper h2 {
  color: white;
}

.download-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

.download-badge-btn {
  display: flex;
  align-items: center;
  background-color: #000000;
  color: white;
  border: 1px solid var(--neutral-700);
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  gap: var(--space-3);
  text-align: left;
}

.download-badge-btn:hover {
  border-color: var(--primary-400);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 71, 171, 0.3);
}

.download-badge-btn svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.badge-text-top {
  font-size: 0.6875rem;
  text-transform: uppercase;
  color: var(--neutral-400);
  display: block;
}

.badge-text-main {
  font-size: 1rem;
  font-weight: 700;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--surface);
  border-top: 1px solid var(--outline-variant);
  padding: var(--space-10) 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
  gap: var(--space-6);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-brand-text {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
  max-width: 280px;
}

.footer-nav {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-surface-variant);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--neutral-500);
}

.footer-socials {
  display: flex;
  gap: var(--space-4);
}

.social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--neutral-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-700);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary-500);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-nav {
    flex-direction: column;
    gap: var(--space-3);
  }
  .footer-bottom {
    flex-direction: column-reverse;
    text-align: center;
  }
}

/* ==========================================================================
   GLOBAL KEYFRAMES & UTILS
   ========================================================================== */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 71, 171, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 71, 171, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 71, 171, 0);
  }
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-900) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   ADDED TABLET MOCKUP & PREMIUM ANIMATIONS
   ========================================================================== */

/* Tablet screen and mockup styles (Landscape style, 1376x768) */
.tablet-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px; /* desktop size */
  background-color: #161e22; /* Sleek charcoal frame */
  padding: 12px 12px 12px 18px; /* thicker left padding for camera */
  border-radius: 20px;
  box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  aspect-ratio: 1376 / 768;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.tablet-screen {
  background-color: var(--background);
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.tablet-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-normal);
}

/* Subtle zoom effect on hover */
.tablet-mockup-wrapper:hover .tablet-screen-img {
  transform: scale(1.02);
}

.tablet-camera {
  position: absolute;
  top: 50%;
  left: 6px;
  width: 6px;
  height: 6px;
  background-color: #29353c;
  border-radius: 50%;
  transform: translateY(-50%);
}

/* Floating animation for mockups */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

#tablet-mockup-security {
  animation-delay: 2s; /* Staggered floating animation */
}

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

/* Fade-in & rise animation for elements on load */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Responsive adjustments for tablet mockups */
@media (max-width: 992px) {
  .tablet-mockup-wrapper {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .tablet-mockup-wrapper {
    max-width: 100%;
    margin-top: var(--space-6);
    margin-bottom: var(--space-6);
  }
}

