/* ===================================
   TOKENS DE DESIGN
   =================================== */
:root {
  --bg-base:         #112550;
  --bg-card:         #1a2d5a;
  --bg-section:      #1e3265;
  --accent:          #e94560;
  --accent-hover:    #d63050;
  --btn-secondary:   #1e3a72;
  --border:          #2e4a80;
  --text-primary:    #f1f5f9;
  --text-secondary:  #94a3b8;
  --text-muted:      #64748b;
  --font:            'DM Sans', sans-serif;
  --weight-regular:  400;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-width: 1100px;
}

/* ===================================
   RESET
   =================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Marca d'água: padrão de cartinhas espalhadas */
  background-image:
    url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='8' y='12' width='36' height='48' rx='6' fill='none' stroke='rgba(255,255,255,0.055)' stroke-width='1.5' transform='rotate(-12 26 36)'/%3E%3Crect x='10' y='14' width='36' height='48' rx='6' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1' transform='rotate(-6 28 38)'/%3E%3Crect x='115' y='8' width='30' height='40' rx='5' fill='none' stroke='rgba(233,69,96,0.07)' stroke-width='1.5' transform='rotate(10 130 28)'/%3E%3Crect x='118' y='11' width='30' height='40' rx='5' fill='none' stroke='rgba(233,69,96,0.04)' stroke-width='1' transform='rotate(16 133 31)'/%3E%3Crect x='60' y='130' width='34' height='44' rx='6' fill='none' stroke='rgba(255,255,255,0.045)' stroke-width='1.5' transform='rotate(-8 77 152)'/%3E%3Crect x='62' y='132' width='34' height='44' rx='6' fill='none' stroke='rgba(255,255,255,0.025)' stroke-width='1' transform='rotate(-2 79 154)'/%3E%3Ccircle cx='160' cy='155' r='18' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1.5'/%3E%3Ccircle cx='160' cy='155' r='18' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1' stroke-dasharray='4 4'/%3E%3Cline x1='142' y1='155' x2='178' y2='155' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cline x1='160' y1='137' x2='160' y2='173' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Crect x='3' y='115' width='22' height='30' rx='4' fill='none' stroke='rgba(255,255,255,0.035)' stroke-width='1.2' transform='rotate(18 14 130)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }

/* Blobs decorativos fixos (como os círculos do app) */
body::before {
  content: '';
  position: fixed;
  top: -120px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,69,96,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  bottom: -80px;
  right: -80px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,100,220,0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ===================================
   UTILITÁRIOS
   =================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section { padding: var(--space-xl) 0; }
.section-label {
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}
.section-title {
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

/* ===================================
   BOTÕES
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: var(--weight-bold);
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.btn:hover  { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn-primary   { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--btn-secondary); color: var(--text-primary); border: 1px solid var(--border); }
.btn-group     { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }

@media (min-width: 768px) {
  .hero__content .btn-group { justify-content: flex-start; }
}
.btn-icon      { width: 18px; height: 18px; flex-shrink: 0; }

/* ===================================
   NAVBAR
   =================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 27, 53, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: var(--weight-bold);
  font-size: 1rem;
}
.navbar__icon { width: 32px; height: 32px; border-radius: var(--radius-sm); }
.navbar__cta  { padding: 8px 16px; font-size: 0.82rem; }

/* ===================================
   FOOTER
   =================================== */
.footer { border-top: 1px solid var(--border); padding: var(--space-md) 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.footer__link { transition: color 0.15s; }
.footer__link:hover { color: var(--text-secondary); }

/* ===================================
   HERO
   =================================== */
.hero {
  background: linear-gradient(160deg, var(--bg-base) 0%, #16347a 60%, var(--bg-section) 100%);
  position: relative;
  overflow: hidden;
}

/* Sticker decorativo hero — canto superior direito */
.hero::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 24px;
  border: 2px solid rgba(233,69,96,0.08);
  transform: rotate(18deg);
  pointer-events: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero__badge {
  display: inline-block;
  background: rgba(233,69,96,0.15);
  color: #ff7a93;
  border: 1px solid rgba(233,69,96,0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
}

/* Headline com "CHEGA!" em destaque */
.hero__headline {
  margin-bottom: var(--space-md);
  line-height: 1.05;
}
.hero__headline-chega {
  display: block;
  font-size: 4rem;
  font-weight: var(--weight-extrabold);
  color: var(--accent);
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 0 0 40px rgba(233,69,96,0.35);
}
.hero__headline-rest {
  display: block;
  font-size: 1.8rem;
  font-weight: var(--weight-bold);
  color: rgba(255,255,255,0.88);
  letter-spacing: -0.3px;
  margin-top: 6px;
}

.hero__sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  line-height: 1.7;
}

/* App Mockup */
.app-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  width: 300px;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.app-card__label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-weight: var(--weight-semibold);
}
.progress-bar {
  background: var(--bg-section);
  height: 8px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  overflow: hidden;
}
.progress-bar__fill {
  background: linear-gradient(90deg, var(--accent) 0%, #ff6b84 100%);
  height: 100%;
  border-radius: var(--radius-full);
}
.sticker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-bottom: var(--space-sm);
}
.sticker { height: 28px; border-radius: 5px; }
.sticker--owned   { background: var(--accent); }
.sticker--dupe    { background: #fbbf24; }
.sticker--missing { background: rgba(255,255,255,0.05); border: 1px solid var(--border); }
.sticker-legend { display: flex; gap: var(--space-sm); flex-wrap: wrap; margin-top: var(--space-xs); }
.legend-item {
  font-size: 0.65rem;
  font-weight: var(--weight-semibold);
  padding: 3px 10px;
  border-radius: 5px;
}
.legend-item--owned   { background: var(--accent); color: #fff; }
.legend-item--dupe    { background: #fbbf24; color: #1a1a2e; }
.legend-item--missing { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border); }

/* Desktop hero: 2 colunas */
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    align-items: center;
  }
  .hero__content { flex: 1; max-width: 520px; }
  .hero__mockup  { flex: 0 0 auto; }
  .hero__sub     { max-width: 420px; }
  .hero__headline-chega { font-size: 5rem; }
  .hero__headline-rest  { font-size: 2.2rem; }
  .app-card { width: 340px; }
}

@media (min-width: 1024px) {
  .hero__headline-chega { font-size: 5.8rem; }
  .hero__headline-rest  { font-size: 2.6rem; }
}

/* ===================================
   COMO FUNCIONA
   =================================== */
.steps {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.steps__list { display: flex; flex-direction: column; gap: var(--space-md); }
.step-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  border: 1px solid var(--border);
}
.step-card__icon {
  font-size: 1.6rem;
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-card__title { font-size: 0.95rem; font-weight: var(--weight-bold); margin-bottom: 4px; }
.step-card__desc  { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

@media (min-width: 768px) {
  .steps__list { flex-direction: row; }
  .step-card { flex: 1; flex-direction: column; align-items: center; text-align: center; }
}

/* ===================================
   FEATURES
   =================================== */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 480px) {
  .features__grid { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  border: 1px solid var(--border);
}
.feature-card__icon  { font-size: 1.8rem; display: block; margin-bottom: var(--space-sm); }
.feature-card__title { font-size: 0.9rem; font-weight: var(--weight-bold); margin-bottom: 4px; }
.feature-card__desc  { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }

@media (min-width: 1100px) {
  .features__grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===================================
   CTA DOWNLOAD
   =================================== */
.cta-download {
  background: linear-gradient(180deg, var(--bg-section) 0%, var(--bg-base) 100%);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-download__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
}
.cta-download__title { font-size: 1.8rem; font-weight: var(--weight-extrabold); }
.cta-download__sub   { color: var(--text-secondary); font-size: 0.9rem; margin-top: calc(-1 * var(--space-md)); }

/* Colunas de plataforma: botão + QR alinhados verticalmente */
.platform-group {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  flex-wrap: wrap;
}
.platform-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}
.platform-col__btn {
  width: 100%;
  justify-content: center;
  min-width: 160px;
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}
.qr-card__img   { width: 140px; height: 140px; border-radius: var(--radius-sm); background: #fff; padding: 4px; }
.qr-card__label { font-size: 0.75rem; font-weight: var(--weight-semibold); color: var(--text-secondary); }

/* ===================================
   ANIMAÇÕES
   =================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__content, .hero__mockup, .step-card, .feature-card {
    animation: fadeUp 0.5s ease both;
  }
  .hero__mockup              { animation-delay: 0.15s; }
  .step-card:nth-child(2)    { animation-delay: 0.1s; }
  .step-card:nth-child(3)    { animation-delay: 0.2s; }
  .feature-card:nth-child(2) { animation-delay: 0.1s; }
  .feature-card:nth-child(3) { animation-delay: 0.2s; }
  .feature-card:nth-child(4) { animation-delay: 0.3s; }
}
