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

/* Cormorant Garamond (Google Fonts, SIL OFL), hospedada localmente: só o subconjunto latino */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}

:root {
  --color-bg: #2b2d31;
  --color-card: rgba(24, 25, 28, 0.88);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-text: #ffffff;
  --color-muted: #b9bcc2;
  --color-cta: #25d366;
  --color-cta-hover: #1ebe5a;
  --color-cta-text: #0b2a1f;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

/* Fundo: faixas de logos em movimento (montadas pelo script.js) */
.brand-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;                 /* 60px de faixa + 16px = BRAND_ROW_HEIGHT no script.js */
  overflow: hidden;
  opacity: 0.28;
  pointer-events: none;
}

.brand-wall__row {
  flex-shrink: 0;
  height: 3.75rem;
}

.brand-wall__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: brand-scroll-left linear infinite;
  will-change: transform;
}

.brand-wall__track--right {
  animation-name: brand-scroll-right;
}

.brand-wall__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 8.5rem;
  height: 100%;
  margin-right: 1rem;        /* 136px de logo + 16px = BRAND_CHIP_WIDTH no script.js (margem em vez de gap para o loop fechar exato) */
  padding: 0.75rem 1rem;
}

.brand-wall__chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Logos pretos ficam brancos no fundo chumbo; Mido, Tissot e Victorinox mantêm suas cores */
.brand-wall__chip--mono img {
  filter: brightness(0) invert(1);
}

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

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

/* Vinheta leve no centro para o bloco ganhar destaque */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(43, 45, 49, 0.6) 0%, rgba(43, 45, 49, 0) 65%);
}

.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 34rem;
  margin: 0 auto;
  padding: 2rem 0.75rem;
}

/* Espaço reservado para o caranguejo mascote */
.mascot {
  min-height: 1px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  padding: 2rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  text-align: center;
  background: var(--color-card);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.875rem, 9vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
}

.card__text {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.5rem;
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: 999px;
  font-size: clamp(0.8125rem, 3.8vw, 1rem);  /* encolhe em telas estreitas para caber em uma linha */
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-cta-text);
  background: var(--color-cta);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
  transition: background-color 0.2s, transform 0.2s;
}

.cta:hover {
  background: var(--color-cta-hover);
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

.cta__icon {
  flex-shrink: 0;
}

.card__note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 1rem;
  font-size: 0.75rem;
  text-align: center;
  color: var(--color-muted);
}

.footer p {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(24, 25, 28, 0.85);
}

/* Celulares bem estreitos (ex.: iPhone SE 1ª geração): menos respiro para o botão caber em uma linha */
@media (max-width: 359px) {
  .card {
    padding-inline: 1rem;
  }

  .cta {
    padding-inline: 0.75rem;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
