:root {
  /* Fundo escuro */
  --navy: #0d1f3c;
  --navy-card: #162848;
  --navy-3: #1f365e;
  --creme: #f5f3ee;
  --creme-suave: rgba(245, 243, 238, .72);
  --linha-escura: rgba(245, 243, 238, .16);

  /* Fundo claro */
  --branco: #ffffff;
  --texto: #162848;
  --texto-suave: rgba(22, 40, 72, .74);
  --linha-clara: rgba(13, 31, 60, .14);

  /* Destaques */
  --ouro: #c39e53;
  --ouro-claro: #e8c97a;
  --gradiente-1: linear-gradient(160deg, #0d1f3c 0%, #162848 100%);
  --gradiente-2: linear-gradient(120deg, #c39e53 0%, #e8c97a 100%);

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(16px, 5vw, 64px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--texto);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  color: var(--navy);
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

p { margin: 0; }

a:focus-visible {
  outline: 3px solid var(--ouro-claro);
  outline-offset: 3px;
  border-radius: 4px;
}

section {
  padding: clamp(64px, 10vw, 120px) var(--gutter);
}

section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  margin-top: 16px;
  max-width: 54ch;
  color: var(--texto-suave);
  font-size: 1.0625rem;
  margin-left: 0;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color .2s, filter .2s, transform .2s;
}
.btn:active { transform: scale(.98); }

/* CTA no fundo escuro */
.btn-gold {
  background: var(--ouro-claro);
  color: var(--navy);
}
.btn-gold:hover { filter: brightness(1.06); }

.btn-ghost {
  border: 1.5px solid var(--ouro);
  color: var(--creme);
  padding: 14px 26px;
}
.btn-ghost:hover { background: rgba(195, 158, 83, .14); }

/* Topo */
.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px var(--gutter);
  color: var(--creme);
}
.brand {
  display: block;
  width: clamp(96px, 12vw, 132px);
  height: auto;
}
.topbar-cta {
  color: var(--creme);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--ouro);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gradiente-1);
  color: var(--creme);
  padding-top: clamp(130px, 16vw, 170px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero > * { max-width: none; margin: 0; }

.hero-kicker {
  color: var(--ouro);
  font-weight: 500;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--creme);
  font-size: clamp(3.6rem, 9.5vw, 7.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: .9;
}

.hero-sub {
  margin-top: 22px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  line-height: 1.3;
  max-width: 28ch;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  margin: 40px 0;
  padding: 26px 0;
  border-top: 1px solid var(--linha-escura);
  border-bottom: 1px solid var(--linha-escura);
}
.facts dt {
  color: var(--ouro);
  font-size: .85rem;
  font-weight: 600;
}
.facts dd {
  margin: 2px 0 0;
  font-weight: 500;
  line-height: 1.4;
}
.facts dd span { color: var(--creme-suave); font-weight: 400; font-size: .9rem; }

.hero-note {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--creme-suave);
  font-size: .92rem;
}
.hero-note strong { color: var(--ouro-claro); }

/* Vídeo de fundo: cobre o hero inteiro, atrás do texto */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
}
.hero-photo video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Azul semitransparente por cima do vídeo: mais forte atrás do texto */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 31, 60, .9) 0%, rgba(13, 31, 60, .75) 45%, rgba(13, 31, 60, .45) 100%),
    linear-gradient(180deg, rgba(13, 31, 60, .5) 0%, rgba(13, 31, 60, 0) 20%);
}

/* História */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.story > * { margin: 0; max-width: none; }
.story-body { max-width: 52ch; color: var(--texto-suave); font-size: 1.0625rem; }
.story-body p + p { margin-top: 18px; }
.story-body .story-quote {
  color: var(--navy);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 1.2;
  padding-left: 22px;
  border-left: 3px solid var(--ouro);
  margin-top: 30px;
}

/* Países */
.countries { background: var(--branco); }
.country-list {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 56px;
  border-top: 2px solid var(--navy);
}
.country {
  position: relative;
  padding: 28px 0 8px;
}
.country-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 22px;
  background: var(--creme);
}
/* Divisória no meio do espaço entre as colunas, sem roubar largura das fotos */
.country + .country::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--linha-clara);
}
.country h3 {
  font-size: clamp(2.3rem, 3.8vw, 3rem);
  font-weight: 600;
}
.country-what {
  margin: 6px 0 14px;
  font-weight: 600;
  color: var(--ouro);
}
.country p:last-child { color: var(--texto-suave); }

/* Final */
.final {
  background: var(--gradiente-1);
  color: var(--creme);
  text-align: center;
}
.final h2 { margin: 0 auto; color: var(--creme); }
.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 3vw, 32px);
  margin-top: 28px;
}
.countdown div {
  min-width: 76px;
  padding: 14px 10px 10px;
  border-radius: 16px;
  background: var(--navy-card);
  border: 1px solid rgba(195, 158, 83, .3);
}
.countdown span {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1;
  background: var(--gradiente-2);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown small { color: var(--creme-suave); font-size: .8rem; }
.final-text {
  max-width: 46ch;
  margin: 32px auto 28px;
  font-size: 1.0625rem;
}
.share {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--linha-escura);
  max-width: 560px;
}
.share p { color: var(--creme-suave); margin-bottom: 20px; }

.footer {
  padding: 40px var(--gutter) 100px;
  text-align: center;
  color: var(--texto-suave);
  font-size: .88rem;
}
.footer-logo {
  display: block;
  width: 110px;
  height: auto;
  margin: 0 auto 12px;
}

/* CTA fixo no celular */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  padding: 16px;
  border-radius: 999px;
  background: var(--ouro-claro);
  color: var(--navy);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(13, 31, 60, .35);
  transform: translateY(140%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: none; }

/* Responsivo */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo::after {
    background: rgba(13, 31, 60, .78);
  }
  .story { grid-template-columns: 1fr; }
  .country-list { grid-template-columns: 1fr; }
  .country { padding: 24px 0; }
  .country + .country::before { display: none; }
  .country + .country { border-top: 1px solid var(--linha-clara); }
  .sticky-cta { display: block; }
  .footer { padding-bottom: 110px; }
}

@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .hero .btn { display: block; text-align: center; }
  .countdown div { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
}

.section-head h2 { max-width: 24ch; }
