/* ======================================================
   VARIÁVEIS GLOBAIS (PALETA DE CORES)
====================================================== */

:root {
  --primary: #E53935;
  --primary-dark: #C62828;
  --primary-light: #FFCDD2;

  --dark: #1e1e1e;
  --light: #ffffff;
  --gray: #f4f4f4;
}


/* ======================================================
   RESET + BASE
====================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  color: var(--dark);
  background: var(--light);
}

.container {
  width: 90%;
  margin: auto;
}


/* ======================================================
   BRAND (LOGO + NOME)
====================================================== */

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link {
  text-decoration: none;
  cursor: pointer;
}

.logo {
  max-height: 48px;
  width: auto;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e0e0e0;
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.7);
}

.brand-link:hover .brand-name {
  opacity: 0.9;
}


/* ======================================================
   HEADER
====================================================== */

.header {
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}


/* ======================================================
   MENU DESKTOP
====================================================== */

.nav a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  margin-left: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #fff;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
  transform: scale(1.08);
}

.nav a:hover::after {
  width: 100%;
  background-color: var(--primary);
}

.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  width: 100%;
  background-color: var(--primary);
}


/* ======================================================
   MENU HAMBURGUER (BOTÃO)
====================================================== */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}


/* ======================================================
   MENU MOBILE / TABLET
====================================================== */

.nav-mobile {
  position: absolute;
  top: 70px;
  right: 20px;

  min-width: 220px;
  padding: 12px 0;

  background: rgba(20, 20, 20, 0.96);
  border-radius: 14px;
  backdrop-filter: blur(8px);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.05);

  display: flex;
  flex-direction: column;
  gap: 4px;

  opacity: 0;
  transform: scale(0.95) translateY(-6px);
  transform-origin: top right;
  pointer-events: none;

  transition: all 0.25s ease;
  z-index: 100;
}

.nav-mobile a {
  padding: 12px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  border-radius: 10px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav-mobile a:hover {
  background: rgba(229, 57, 53, 0.15);
  color: var(--primary);
}

.nav-mobile.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}


/* ======================================================
   HERO / BANNER
====================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  background: url("../assets/banner.png") center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: center;
  transition: opacity 0.4s ease;
}

.hero-centered {
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  margin-bottom: 20px;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.75);
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 0.75);
}

.hero.fade-out {
  opacity: 0.35;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

/* ===== Hero Reveal ===== */
.reveal-hero {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s ease;
}

.reveal-hero.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-hero.delay {
  transition-delay: 0.15s;
}

.reveal-hero.delay-2 {
  transition-delay: 0.3s;
}



/* ======================================================
   BOTÕES
====================================================== */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn.primary {
  background-color: var(--primary);
  color: #fff;
}

.btn.primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 25px rgba(229, 57, 53, 0.35);
}

.btn.outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}

.btn.outline:hover {
  background-color: #fff;
  color: var(--primary);
  transform: translateY(-4px) scale(1.03);
}


/* ======================================================
   SECTIONS / FEATURES
====================================================== */

.features {
  padding: 100px 0;
  background: var(--gray);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
  color: #555;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

/* Uso em Como funciona */
.reveal-mask {
  position: relative;
  overflow: hidden;
}

.reveal-mask>* {
  position: relative;
  z-index: 2;
}

.reveal-mask::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gray);
  transform: translateX(0);
  transition: transform 0.9s ease;
  z-index: 1;
}

.reveal-mask {
  opacity: 1;
}

.reveal-mask.active::after {
  transform: translateX(100%);
}

.reveal-mask.delay::after {
  transition-delay: 0.15s;
}



/* ======================================================
   Why APP - Por que usar
====================================================== */
.why-app {
  padding: 70px 0;
  background: #fff;
}

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

.why-text h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.why-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 32px;
}

.why-points {
  display: grid;
  gap: 18px;
}

.why-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.45s ease;
}

.why-item.active {
  opacity: 1;
  transform: translateY(0);
}

.why-item:nth-child(1) {
  transition-delay: 0.05s;
}

.why-item:nth-child(2) {
  transition-delay: 0.1s;
}

.why-item:nth-child(3) {
  transition-delay: 0.15s;
}

.why-item:nth-child(4) {
  transition-delay: 0.2s;
}

.why-item:nth-child(5) {
  transition-delay: 0.25s;
}

.why-image {
  display: flex;
  justify-content: center;
}

.why-image img {
  max-height: 500px;
  aspect-ratio: 283 / 600;
  width: auto;

  filter:
    drop-shadow(0 25px 45px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 40px rgba(229, 57, 53, 0.35));
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal.active.reveal-left,
.reveal.active.reveal-right {
  transform: translateX(0);
}


/* ======================================================
   CTA / SOCIAL / FOOTER
====================================================== */

.cta-primary {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(135deg,
      var(--primary-dark),
      #7a0000);
  color: #fff;
}


.cta-primary h2 {
  font-size: 2.2rem;
  margin-bottom: 32px;
}

.cta-social {
  padding: 120px 0;
  background: linear-gradient(135deg,
      #fafafa,
      #f3f3f3);
  text-align: center;
}

.cta-social h3 {
  font-size: 1.9rem;
  margin-bottom: 12px;
  color: #222;
}

.cta-social-sub {
  max-width: 520px;
  margin: 0 auto 40px;
  color: #555;
  font-size: 1rem;
}

.reveal-cta {
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: all 0.6s ease;
}

.reveal-cta.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.social-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;

  width: 120px;
  padding: 18px 12px;

  border-radius: 14px;
  text-decoration: none;
  background: #fff;
  color: #333;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
}

.social i {
  font-size: 28px;
}

.social span {
  font-size: 0.85rem;
  font-weight: 600;
}

.social:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.social:hover i {
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
    60% { transform: translateY(2px); }
    100% { transform: translateY(0); }
}


.social.instagram i {
  color: #e1306c;
}

.social.tiktok i {
  color: #000;
}

.social.youtube i {
  color: #ff0000;
}

.social.facebook i {
  color: #1877f2;
}

.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

.delay-4 {
  transition-delay: 0.4s;
}



.footer {
  padding: 30px;
  text-align: center;
  background: var(--dark);
  color: #fff;
}


/* ======================================================
   RESPONSIVO (MOBILE / TABLET)
====================================================== */

@media (max-width: 900px) {
  .hero {
    padding-top: 100px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why-image img {
    max-height: 420px;
  }

  .why-item {
    justify-content: center;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header {
    position: fixed;
    background: transparent;
  }

  .brand-name {
    display: none;
  }

  .btn:hover {
    transform: none;
    box-shadow: none;
  }

  .app-preview-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .app-preview-image img {
    max-height: 420px;
  }
}