/* ==========================================================================
   VIVA SOBRE RODAS v2.0 - LANDING PAGE STYLESHEET
   Design System & Layout Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Color Palette */
  --primary-blue: #0084a8;
  --primary-blue-dark: #006b88;
  --primary-blue-light: #00a2cc;
  --primary-gradient: linear-gradient(135deg, #0084a8 0%, #005a74 100%);
  
  --deep-navy: #0e3a53;
  --deep-navy-dark: #072233;
  --ocean-blue: #027796;
  
  --accent-green: #2e7d32;
  --accent-green-light: #4caf50;
  --accent-coral: #ef5350;
  
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-light: rgba(226, 232, 240, 0.8);
  
  /* Elevation & Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 12px 24px -4px rgba(14, 58, 83, 0.08), 0 4px 8px -2px rgba(14, 58, 83, 0.04);
  --shadow-card: 0 20px 35px -8px rgba(14, 58, 83, 0.12), 0 8px 16px -4px rgba(14, 58, 83, 0.06);
  --shadow-card-hover: 0 25px 50px -12px rgba(0, 132, 168, 0.22);
  --shadow-phone: 0 30px 60px -15px rgba(0, 30, 60, 0.35);

  /* Transitions & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 9999px;
  
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s var(--ease-smooth);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-normal);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

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

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

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.4s ease;
}

.site-header.scrolled {
  position: fixed;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s var(--ease-spring);
}

.brand-wrapper:hover .brand-logo {
  transform: scale(1.08) rotate(-3deg);
}

.brand-version {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-blue);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: #007799;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px rgba(0, 119, 153, 0.35);
  transition: all 0.3s var(--ease-spring);
}

.btn-pill-primary:hover {
  background: #008eb6;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 153, 0.45);
  color: #ffffff;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #1e293b;
  border-radius: 2px;
  transition: 0.3s ease;
}

/* ==========================================================================
   HERO SECTION (Scenic Bridge & Floating 3D Phones)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 720px;
  padding-top: 130px;
  padding-bottom: 90px;
  background: #024b66;
  overflow: hidden;
}

.hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.92;
  filter: saturate(1.1) brightness(0.95);
  z-index: 1;
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg, 
    rgba(2, 60, 85, 0.25) 0%, 
    rgba(2, 75, 102, 0.5) 50%, 
    #024b66 95%,
    #00455d 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-content {
  color: #ffffff;
  padding-top: 30px;
}

.hero-badge-group {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  animation: fadeInDown 0.8s ease backwards;
}

.hero-app-badge {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.4s var(--ease-spring);
}

.hero-badge-group:hover .hero-app-badge {
  transform: scale(1.06) rotate(-2deg);
}

.hero-app-version {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: -0.5px;
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  letter-spacing: -1px;
  margin-bottom: 24px;
  animation: fadeInUp 0.9s ease 0.15s backwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  max-width: 520px;
  margin-bottom: 32px;
  animation: fadeInUp 0.9s ease 0.3s backwards;
}

/* 3D Floating Mockups Area */
.hero-mockups {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}

.phone-mockup-wrapper {
  position: absolute;
  transition: transform 0.4s ease-out, filter 0.4s ease;
}

/* Front Phone (Map App Interface) */
.phone-mockup-front {
  width: 280px;
  right: 15px;
  bottom: 0px;
  z-index: 10;
  transform: rotate(-7deg) translateY(0px);
  filter: drop-shadow(-15px 25px 35px rgba(0, 25, 45, 0.55));
  animation: floatFront 6s ease-in-out infinite;
}

.phone-mockup-front img {
  width: 100%;
  border-radius: 36px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

/* Back Phone (Splash Screen) */
.phone-mockup-back {
  width: 250px;
  left: 25px;
  top: 15px;
  z-index: 6;
  transform: rotate(8deg) translateY(0px);
  filter: drop-shadow(-10px 20px 30px rgba(0, 20, 40, 0.5));
  animation: floatBack 7s ease-in-out infinite 0.5s;
}

.phone-mockup-back img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Floating Animations */
@keyframes floatFront {
  0%, 100% {
    transform: rotate(-7deg) translateY(0px);
  }
  50% {
    transform: rotate(-5deg) translateY(-14px);
  }
}

@keyframes floatBack {
  0%, 100% {
    transform: rotate(8deg) translateY(0px);
  }
  50% {
    transform: rotate(10deg) translateY(12px);
  }
}

/* ==========================================================================
   FEATURE CARDS SECTION (Bento Floating Cards)
   ========================================================================== */
.features-section {
  position: relative;
  z-index: 20;
  margin-top: -65px;
  padding-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all 0.4s var(--ease-spring);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0084a8, #4caf50);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-spring);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.12);
}

.feature-icon-wrapper img,
.feature-icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-description {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.5;
}

/* ==========================================================================
   DOWNLOAD / CTA SECTION ("Baixe Agora")
   ========================================================================== */
.download-section {
  padding: 45px 0 70px 0;
  text-align: center;
  background: var(--bg-page);
}

.download-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.store-badges-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge-btn {
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transition: all 0.3s var(--ease-spring);
}

.store-badge-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.store-badge-btn img {
  height: 52px;
  width: auto;
}

/* ==========================================================================
   FOOTER SECTION (Deep Blue & Wave Details)
   ========================================================================== */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, #007799 0%, #005c77 40%, #00455a 100%);
  color: #ffffff;
  padding: 60px 0 40px 0;
  overflow: hidden;
}

.footer-wave-decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-sitemap {
  display: flex;
  flex-direction: column;
}

.footer-sitemap-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 36px;
  row-gap: 8px;
  width: fit-content;
}

.footer-link {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-social-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.social-icons-list {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #007799;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease-spring);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.1);
  background: #ffffff;
  color: #004b66;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.footer-brand-handle {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.footer-bottom-copyright {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .hero-badge-group {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto 30px auto;
  }

  .hero-mockups {
    height: 420px;
  }

  .phone-mockup-front {
    width: 240px;
    right: 50%;
    transform: translateX(45%) rotate(-5deg);
  }

  .phone-mockup-back {
    width: 210px;
    left: 50%;
    transform: translateX(-120%) rotate(6deg);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

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

  .hero-section {
    min-height: 600px;
    padding-top: 110px;
    padding-bottom: 70px;
  }

  .features-section {
    margin-top: -40px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 12px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-links-grid {
    margin: 0 auto;
  }
}
