/* Especificação Figma: frame 1920×1080 + camadas de fundo */
:root {
  /* Headline highlight + CTA (Figma: "jogar" #F9AB00, weight 900) */
  --color-accent: #f9ab00;
  /* Rectangle 1 — borda da foto (Figma: 5px solid #C09334) */
  --color-frame-border: #c09334;
  --color-ink: #010911;
  --frame-w: 1920px;
  --frame-h: 1080px;
  /* Figma 488×535 / r106 — escala reduzida */
  --portrait-w: 208px;
  --portrait-radius: calc(106px * 208 / 488);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  background: #fff;
  color: #fff;
}

.hero {
  width: min(100%, var(--frame-w));
  margin-inline: auto;
  aspect-ratio: 1920 / 1080;
  min-height: min(100svh, var(--frame-h));
  background-color: #fff;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%),
    linear-gradient(-90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.52) 99.22%),
    url("./assets/hero-bg.jpg");
  background-position: 0 0, 0 0, center center;
  background-size: auto, auto, cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  width: 100%;
  max-width: var(--frame-w);
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

.hero__copy {
  flex: 1 1 280px;
  max-width: min(711px, 100%);
  width: 100%;
  min-width: 0;
  margin-inline: 0;
  padding-bottom: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  width: 100%;
  margin: 0 0 1rem;
  color: #fff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.5rem, 3.3vw, 4rem); /* 4rem = 64px no layout Figma */
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.hero__title-line {
  display: block;
}

.hero__highlight {
  color: var(--color-accent);
  font-weight: 900;
}

.hero__sub {
  width: 100%;
  max-width: 711px;
  margin: 0 0 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.5rem); /* 1.5rem = 24px (Figma 1:6) */
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  color: #fff;
  text-align: left;
}

.hero__sub strong {
  font-weight: 900;
  color: #fff;
}

.hero__cta {
  align-self: flex-start;
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(447px, 100%);
  height: 81px;
  padding: 0 1rem;
  border-radius: 64px;
  border: 1px solid #fff;
  background: linear-gradient(90deg, #f9ab00 0%, #ac7807 100%);
  font-weight: 400;
  font-size: clamp(1rem, 2.5vw, 2rem); /* 32px no Figma 1:8 */
  text-decoration: none;
  color: var(--color-ink);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.hero__cta strong {
  font-weight: 700;
}

.hero__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.hero__cta-icon {
  display: flex;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.hero__cta-icon svg {
  display: block;
  width: 42px;
  height: 42px;
}

.hero__figure {
  flex: 0 0 auto;
  box-sizing: border-box;
  width: min(var(--portrait-w), 82vw);
  aspect-ratio: 488 / 535;
  overflow: hidden;
  border-radius: var(--portrait-radius);
  border: 5px solid var(--color-frame-border);
  background-color: #d9d9d9;
  background-image: url("./assets/portrait.png");
  background-position: 50% 50%;
  background-size: cover;
  background-repeat: no-repeat;
  line-height: 0;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.45));
}

@media (max-width: 900px) {
  .hero {
    aspect-ratio: unset;
    min-height: 100svh;
  }

  .hero__inner {
    flex-direction: column;
    padding-bottom: 2rem;
  }

  .hero__figure {
    width: min(var(--portrait-w), 78vw);
    background-position: center 20%;
  }

  .hero__copy {
    flex: 1 1 auto;
    align-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .hero__title,
  .hero__sub {
    text-align: center;
  }

  .hero__cta {
    align-self: center;
  }
}
