/* ═══════════════════════════════════════════════════════════════
   App Figurinhas da Copa 2026 — Landing
   Stack: HTML/CSS puro, mobile-first, sem framework
   ═══════════════════════════════════════════════════════════════ */

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Tokens ───────────────────────────────────────────── */
:root {
  /* Cores — mesma paleta do app */
  --color-primary:        #3B82F6;
  --color-primary-deep:   #2563EB;
  --color-secondary:      #EA580C;
  --color-bg:             #FAFAF8;
  --color-bg-soft:        #F4F4F0;
  --color-card:           #FFFFFF;
  --color-ink:            #0F172A;
  --color-ink-soft:       #475569;
  --color-ink-mute:       #94A3B8;
  --color-border:         #E8E6E1;
  --color-border-soft:    #F1EFEA;

  /* Tipografia */
  --font-display:   'Fraunces', Georgia, serif;
  --font-body:      'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w:          1180px;
  --gutter:         clamp(20px, 5vw, 48px);
  --radius:         18px;
  --radius-sm:      10px;

  /* Easing */
  --ease-out-q:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ─── Base ─────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.18);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-ink);
}

.brand__year {
  font-style: italic;
  color: var(--color-secondary);
}

.header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  background: var(--color-ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.2s var(--ease-out-q), background 0.2s var(--ease-out-q);
}
.header__cta:hover { background: var(--color-primary); transform: translateY(-1px); }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  overflow: hidden;
}

/* atmosfera de fundo: gradiente sutil + grão */
.hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(closest-side, rgba(234, 88, 12, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 80px;
  }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-bottom: 24px;
  font-variation-settings: 'opsz' 144;
}

.hero__title em {
  font-style: italic;
  font-weight: 600;
  color: var(--color-secondary);
}

.hero__subtitle {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.55;
  color: var(--color-ink-soft);
  margin-bottom: 36px;
  max-width: 540px;
}

/* ─── Store buttons ─────────────────────────────────────── */
.store-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.store-buttons--center {
  justify-content: center;
  margin-top: 32px;
}

.store-button {
  display: inline-block;
  transition: transform 0.25s var(--ease-out-q);
}
.store-button:hover { transform: translateY(-2px); }
.store-button img {
  height: 56px;
  width: auto;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 22px;
  border: 1.5px dashed var(--color-border);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-mute);
  letter-spacing: 0.02em;
}

/* ─── Hero visual: telefones empilhados ─────────────────── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.phones {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 580px;
}

.phone {
  position: absolute;
  border-radius: 32px;
  overflow: hidden;
  background: var(--color-card);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.12),
    0 40px 80px rgba(15, 23, 42, 0.10);
  transition: transform 0.5s var(--ease-out-q);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone--front {
  width: 60%;
  aspect-ratio: 9/19.5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  z-index: 3;
}

.phone--back {
  width: 56%;
  aspect-ratio: 9/19.5;
  left: 8%;
  top: 12%;
  transform: rotate(-9deg);
  z-index: 1;
  opacity: 0.92;
}

.phone--side {
  width: 56%;
  aspect-ratio: 9/19.5;
  right: 4%;
  bottom: 8%;
  transform: rotate(7deg);
  z-index: 2;
  opacity: 0.96;
}

/* slight float animation on hover */
.hero__visual:hover .phone--front { transform: translate(-50%, -52%) rotate(-2deg); }
.hero__visual:hover .phone--back  { transform: rotate(-10deg) translateY(-4px); }
.hero__visual:hover .phone--side  { transform: rotate(8deg) translateY(-4px); }

@media (max-width: 640px) {
  .hero__visual { min-height: 420px; }
  .phones { height: 460px; max-width: 380px; }
}

/* ═══════════════════════════════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════════════════════════════ */
.features {
  padding: clamp(64px, 8vw, 120px) 0;
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 760px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px;
  }
}

.feature {
  position: relative;
}

.feature__number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  font-style: italic;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 18px;
  font-variation-settings: 'opsz' 144;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-bottom: 14px;
}

.feature__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  max-width: 340px;
}

/* ═══════════════════════════════════════════════════════════════
   DIFF / Modo Troca
   ═══════════════════════════════════════════════════════════════ */
.diff {
  padding: clamp(72px, 10vw, 140px) 0;
  position: relative;
  overflow: hidden;
}

.diff::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -20%;
  width: 50%;
  height: 80%;
  transform: translateY(-50%);
  background: radial-gradient(closest-side, rgba(59, 130, 246, 0.07), transparent 70%);
  pointer-events: none;
}

.diff__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 880px) {
  .diff__inner {
    grid-template-columns: 1fr 1.1fr;
    gap: 88px;
  }
}

.diff__visual {
  display: flex;
  justify-content: center;
}

.phone--solo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9/19.5;
  position: relative;
  transform: rotate(-3deg);
}

.diff__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 20px;
}

.diff__desc {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-ink-soft);
  margin-bottom: 28px;
  max-width: 520px;
}

.diff__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.diff__list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: var(--color-ink);
  font-weight: 500;
}

.diff__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 16px;
  height: 2px;
  background: var(--color-secondary);
}

/* ═══════════════════════════════════════════════════════════════
   CTA Final
   ═══════════════════════════════════════════════════════════════ */
.cta {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
  background:
    radial-gradient(closest-side at 50% 100%, rgba(59, 130, 246, 0.10), transparent 70%),
    var(--color-bg);
  border-top: 1px solid var(--color-border-soft);
  text-align: center;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--color-ink);
  margin-bottom: 16px;
}

.cta__sub {
  font-size: 17px;
  color: var(--color-ink-soft);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--color-ink);
  color: #CBD5E1;
  padding: 72px 0 40px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 760px) {
  .footer__inner {
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
  }
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.footer__brand img { border-radius: 7px; }

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #94A3B8;
  margin-bottom: 16px;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col a {
  font-size: 15px;
  color: #E2E8F0;
  transition: color 0.2s var(--ease-out-q);
}
.footer__col a:hover { color: #fff; text-decoration: underline; }

.footer__legal {
  grid-column: 1 / -1;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  line-height: 1.65;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   Animations on load
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 0.9s var(--ease-out-q) backwards; }
  .hero__copy .eyebrow      { animation-delay: 0.05s; }
  .hero__copy .hero__title  { animation-delay: 0.15s; }
  .hero__copy .hero__subtitle { animation-delay: 0.25s; }
  .hero__copy .store-buttons { animation-delay: 0.35s; }

  .hero__visual { animation: rise 1s var(--ease-out-q) 0.4s backwards; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
