/* ============================================
   RAPIDEX FIBRA — DESIGN SYSTEM
============================================ */
:root {
  --blue-950: #050b24;
  --blue-900: #0a1442;
  --blue-800: #0e1c5c;
  --blue-700: #14299b;
  --blue-600: #1a3fd6;
  --blue-500: #2f56f0;
  --blue-100: #e8edff;
  --blue-50: #f4f7ff;

  --yellow-500: #ffc300;
  --yellow-600: #f2a900;

  --text-dark: #101828;
  --text-gray: #5a6376;
  --text-light: #eef1fb;

  --bg-light: #f7f9fd;
  --white: #ffffff;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(10, 20, 66, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 20, 66, 0.1);
  --shadow-lg: 0 20px 50px rgba(10, 20, 66, 0.16);

  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.icon { width: 20px; height: 20px; fill: currentColor; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 63, 214, 0.3);
}
.btn--primary:hover { background: var(--blue-700); box-shadow: 0 12px 26px rgba(26, 63, 214, 0.4); }

.btn--yellow {
  background: var(--yellow-500);
  color: var(--blue-950);
  box-shadow: 0 8px 20px rgba(255, 195, 0, 0.35);
}
.btn--yellow:hover { background: var(--yellow-600); box-shadow: 0 12px 26px rgba(255, 195, 0, 0.45); }

.btn--outline {
  border-color: var(--blue-600);
  color: var(--blue-600);
  background: transparent;
}
.btn--outline:hover { background: var(--blue-600); color: var(--white); }

.btn--outline-dark {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
  background: transparent;
}
.btn--outline-dark:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn--whatsapp:hover { background: #1fb857; box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45); }

.btn--lg { padding: 18px 40px; font-size: 1.1rem; }

/* ===== SECTION HEAD ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.eyebrow--light { background: rgba(255,255,255,0.12); color: var(--yellow-500); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px; }
.section__subtitle { color: var(--text-gray); font-size: 1.05rem; }

/* ============================================
   HEADER
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow var(--transition), padding var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.header__logo img { height: 40px; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__list { display: flex; gap: 32px; }
.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-600);
  transition: width var(--transition);
}
.nav__link:hover::after { width: 100%; }

.header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.header__toggle span {
  width: 24px; height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5,11,36,0.94) 20%, rgba(10,20,66,0.75) 55%, rgba(10,20,66,0.4) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 620px;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__trust { display: flex; gap: 28px; flex-wrap: wrap; }
.hero__trust li {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 600;
  padding-left: 22px;
  position: relative;
  opacity: 0.9;
}
.hero__trust li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--yellow-500);
}

.hero__visual { display: flex; justify-content: center; align-items: center; }
.hero__rocket {
  max-width: 460px;
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(-2deg); }
}

/* ============================================
   PLANOS
============================================ */
.plans { padding: 110px 0 90px; background: var(--bg-light); }

.plans__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.plan-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #eef0f6;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.plan-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.plan-card__icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.plan-card__icon svg { width: 26px; height: 26px; }

.plan-card__name { font-size: 1.15rem; font-weight: 700; color: var(--text-gray); margin-bottom: 10px; }
.plan-card__speed { font-size: 2.4rem; font-weight: 800; color: var(--blue-700); margin-bottom: 18px; }
.plan-card__speed span { font-size: 1.1rem; font-weight: 700; color: var(--text-gray); }

.plan-card__divider { height: 1px; background: #eef0f6; margin-bottom: 18px; }

.plan-card__price { font-size: 1.6rem; font-weight: 800; color: var(--text-dark); margin-bottom: 24px; }
.plan-card__price span:first-child { font-size: 1rem; font-weight: 700; vertical-align: top; margin-right: 2px; }
.plan-card__price span:last-child { font-size: 0.95rem; font-weight: 600; color: var(--text-gray); }

.plan-card__features { margin-bottom: 32px; flex-grow: 1; }
.plan-card__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  font-size: 0.92rem;
  color: var(--text-gray);
}

.check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check-icon svg { width: 12px; height: 12px; }

.plan-card__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.plan-card__cta svg { width: 18px; height: 18px; transition: transform var(--transition); }
.plan-card__cta:hover svg { transform: translateX(3px); }

.plan-card--highlight {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-950));
  border: 2px solid var(--blue-500);
  box-shadow: 0 0 0 5px rgba(47, 86, 240, 0.16), var(--shadow-lg);
  transform: scale(1.04);
  z-index: 1;
}
.plan-card--highlight:hover { transform: scale(1.04) translateY(-8px); }
.plan-card--highlight .plan-card__icon { background: rgba(255,255,255,0.1); color: var(--yellow-500); }
.plan-card--highlight .plan-card__divider { background: rgba(255,255,255,0.14); }
.plan-card--highlight .plan-card__name { color: rgba(255,255,255,0.7); }
.plan-card--highlight .plan-card__speed { color: var(--white); }
.plan-card--highlight .plan-card__speed span { color: rgba(255,255,255,0.7); }
.plan-card--highlight .plan-card__price { color: var(--white); }
.plan-card--highlight .plan-card__price span:last-child { color: rgba(255,255,255,0.7); }
.plan-card--highlight .plan-card__features li { color: rgba(255,255,255,0.85); }
.plan-card--highlight .check-icon { background: var(--yellow-500); color: var(--blue-950); }

.plan-card__badge {
  position: absolute;
  top: -16px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--yellow-500);
  color: var(--blue-950);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border-radius: 100px;
  box-shadow: 0 6px 14px rgba(255,195,0,0.4);
  white-space: nowrap;
}
.plan-card__badge svg { width: 13px; height: 13px; }

/* ============================================
   DIFERENCIAIS
============================================ */
.features { padding: 90px 0; background: var(--white); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card img { width: 108px; height: 108px; object-fit: contain; margin: 0 auto 20px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-dark); }
.feature-card p { font-size: 0.92rem; color: var(--text-gray); }

/* ============================================
   SHOWCASE / STREAMING & GAMES
============================================ */
.showcase {
  padding: 90px 0 100px;
  background: linear-gradient(180deg, var(--blue-950) 0%, #0a0f2b 50%, var(--blue-950) 100%);
  position: relative;
  overflow: hidden;
}
.showcase::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(47,86,240,0.28), transparent 70%);
  top: -280px; left: -200px;
  border-radius: 50%;
  pointer-events: none;
}
.showcase::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,195,0,0.12), transparent 70%);
  bottom: -220px; right: -120px;
  border-radius: 50%;
  pointer-events: none;
}
.showcase .section__head { margin-bottom: 44px; position: relative; z-index: 1; }
.showcase__title { color: var(--white); }
.showcase__subtitle { color: rgba(255,255,255,0.65); }

.showcase__viewport {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}

.showcase__track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.showcase__track:hover { animation-play-state: paused; }

.showcase__group { display: flex; gap: 20px; padding-right: 20px; }
.showcase__track img {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  transition: transform var(--transition), box-shadow var(--transition);
}
.showcase__track img:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   SUPORTE
============================================ */
.support { padding: 90px 0; background: var(--blue-50); }
.support__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.support__text .section__subtitle { margin-bottom: 32px; }
.support__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.support__actions .btn--outline-dark { border-color: var(--blue-600); color: var(--blue-600); }
.support__actions .btn--outline-dark:hover { background: var(--blue-600); color: var(--white); }
.support__image {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.support__image img { width: 100%; max-width: 260px; margin: 0 auto; }

/* ============================================
   COBERTURA
============================================ */
.coverage {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-950));
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.coverage::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(47,86,240,0.35), transparent 70%);
  top: -200px; right: -150px;
  border-radius: 50%;
}
.coverage__inner { position: relative; text-align: center; max-width: 640px; margin: 0 auto; }
.coverage__title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.coverage__subtitle { color: var(--text-light); opacity: 0.85; margin-bottom: 32px; font-size: 1.05rem; }

/* ============================================
   CTA FINAL
============================================ */
.cta-final { background: var(--blue-600); padding: 80px 0; }
.cta-final__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.cta-final__inner h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; color: var(--white); margin-bottom: 32px; line-height: 1.25; }

/* ============================================
   FOOTER
============================================ */
.footer { background: var(--blue-950); color: var(--text-light); padding: 70px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__logo { height: 34px; margin-bottom: 16px; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 280px; }

.footer__col h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 18px; color: var(--white); }
.footer__col p, .footer__col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--yellow-500); }

.footer__bottom { padding: 24px 0; text-align: center; }
.footer__bottom p { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.footer__bottom p + p { margin-top: 6px; }

/* ============================================
   WHATSAPP FLUTUANTE
============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float .icon { width: 30px; height: 30px; position: relative; z-index: 1; }
.whatsapp-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* ============================================
   INSTALAR APP (PWA)
============================================ */
.install-btn {
  position: fixed;
  bottom: 96px; right: 24px;
  display: none;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--white);
  color: var(--blue-700);
  border: 1px solid #e2e6f2;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 998;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.install-btn.show { display: inline-flex; opacity: 1; transform: translateY(0); }
.install-btn:hover { background: var(--blue-100); }
.install-btn .icon { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .install-btn { bottom: 90px; right: 16px; padding: 10px 14px; font-size: 0.8rem; }
  .install-btn span { display: none; }
  .install-btn .icon { width: 20px; height: 20px; }
  .install-btn.show { display: flex; width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; border-radius: 50%; }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .plans__grid { grid-template-columns: repeat(2, 1fr); }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .plan-card--highlight { transform: scale(1); grid-column: span 1; }
  .plan-card--highlight:hover { transform: translateY(-8px); }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__visual { display: none; }
  .support__inner { grid-template-columns: 1fr; }
  .support__image { order: -1; }
  .support__image img { max-width: 220px; }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 24px 36px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; }
  .nav__list { flex-direction: column; gap: 18px; width: 100%; }
  .nav__cta { width: 100%; text-align: center; }
  .header__toggle { display: flex; }

  .header__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__toggle.open span:nth-child(2) { opacity: 0; }
  .header__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding-top: 76px; }
  .hero__inner { justify-items: center; }
  .hero__content { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero__title, .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__buttons { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__buttons .btn { width: 100%; }
  .hero__trust { flex-direction: column; align-items: center; gap: 12px; }

  .plans__grid { grid-template-columns: 1fr; }
  .plan-card { align-items: center; text-align: center; }
  .plan-card__icon { margin-left: auto; margin-right: auto; }
  .plan-card__divider { width: 100%; }
  .plan-card__features { width: 100%; }
  .plan-card__features li { justify-content: center; }
  .features__grid { grid-template-columns: 1fr; }

  .support__inner { text-align: center; }
  .support__text { display: flex; flex-direction: column; align-items: center; }
  .support__actions { justify-content: center; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer__logo { margin: 0 auto 16px; }
  .footer__brand p { margin: 0 auto; }
  .footer__col a, .footer__col p { text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .plan-card { padding: 28px 22px; }
  .showcase__track img { width: 118px; height: 168px; }
}
