/* =========================================================
   LP 2 – Vortex (PC Gamer)
   Desktop baseado no frame de 1920px, mobile no de 390px
   ========================================================= */

:root {
  --laranja: #f58912;
  --laranja-hover: #ff9a2b;
  --bg: #121212;
  --card: #212121;
  --texto: #cdcdcd;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: #fff; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Botão ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 348px;
  height: 56px;
  padding: 0 28px;
  background: var(--laranja);
  color: #2b1a05;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 0 22px rgba(245, 137, 18, .35);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--laranja-hover); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245, 137, 18, .5); }
.btn--sm { min-width: 0; height: 58px; padding: 0 24px; font-size: 14px; box-shadow: none; }
.btn--block { width: 100%; min-width: 0; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.logo svg { width: 34px; height: 30px; fill: var(--laranja); }
.logo span { font-weight: 800; font-size: 26px; letter-spacing: 3px; }

/* =========================================================
   TOPO
   ========================================================= */
.topbar { background: #000; position: sticky; top: 0; z-index: 50; }
main { position: relative; }
.hero + .feature { z-index: 1; }
.topbar__inner {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 24px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: max(560px, 38.23vw);
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: -5.83vw;
  height: 46.77vw;
  background: image-set(url("assets/hero.webp") type("image/webp"), url("assets/hero.png") type("image/png")) center top / 100% auto no-repeat;
  pointer-events: none;
}
.hero .container { z-index: 2; }
.hero__content { max-width: min(640px, 36vw); padding: 60px 0; }
.hero h1 { font-size: clamp(38px, 2.81vw, 54px); line-height: 1.22; font-weight: 700; letter-spacing: -.5px; margin-bottom: 26px; }
.hero p { font-size: clamp(16px, .94vw, 18px); margin-bottom: clamp(40px, 3.75vw, 72px); }

/* =========================================================
   SEÇÕES DE RECURSO
   ========================================================= */
.feature { position: relative; display: flex; align-items: center; }
.feature h2 { font-size: 38px; line-height: 1.3; font-weight: 700; margin-bottom: 24px; }
.feature p { font-size: 17px; line-height: 1.6; }
.feature__text { max-width: 640px; }
.feature__text--right { margin-left: calc(50% + 60px); max-width: 590px; }

.feature--cpu {
  min-height: 654px;
  background: image-set(url("assets/processador.webp") type("image/webp"), url("assets/processador.jpg") type("image/jpeg")) left center / cover no-repeat, #000;
}
.feature--ram { min-height: 506px; background: var(--bg); }
.feature__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature__media img { width: 100%; max-width: 629px; }
.feature--ssd {
  min-height: 468px;
  background: image-set(url("assets/armazenamento.webp") type("image/webp"), url("assets/armazenamento.jpg") type("image/jpeg")) left center / cover no-repeat, #000;
}

.gaming {
  height: 958px;
  background: image-set(url("assets/gaming.webp") type("image/webp"), url("assets/gaming.jpg") type("image/jpeg")) center / cover no-repeat, #000;
}

/* =========================================================
   GRÁFICO + ÁUDIO
   ========================================================= */
.duo { padding: 100px 0 120px; }
.duo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 72px;
}
.duo__item { padding-right: 80px; }
.duo__item + .duo__item { border-left: 1px solid rgba(255, 255, 255, .7); padding: 0 0 0 112px; }
.duo h2 { font-size: 34px; line-height: 1.3; font-weight: 700; margin-bottom: 18px; max-width: 520px; }
.duo__spec { display: flex; align-items: center; gap: 44px; }
.duo__spec svg { width: 64px; height: 56px; flex: none; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.duo__spec p { font-size: 17px; line-height: 1.55; }

/* =========================================================
   ESPECIFICAÇÕES
   ========================================================= */
.specs { padding: 0 0 130px; }
.specs__title { font-size: 34px; font-weight: 700; margin-bottom: 72px; }
.specs__grid {
  display: grid;
  grid-template-columns: repeat(3, 335px);
  grid-template-areas: "a b c" "d e c";
  gap: 30px;
  margin-bottom: 72px;
}
.spec {
  min-height: 256px;
  background: var(--card);
  border-radius: 8px;
  padding: 58px 40px 40px;
  transition: transform .25s ease, background-color .25s ease;
}
.spec:hover { transform: translateY(-4px); background: #262626; }
.spec svg { height: 36px; width: auto; margin-bottom: 26px; }
.spec h3 { font-size: 17px; font-weight: 700; text-transform: uppercase; color: #e6e6e6; margin-bottom: 4px; }
.spec p { font-size: 17px; line-height: 1.55; }
.spec--tall p { margin-top: 26px; }

/* =========================================================
   OFERTA
   ========================================================= */
.oferta { background: #000; padding: 40px 0; }
.oferta__grid { display: grid; grid-template-columns: 1fr 496px 1fr; align-items: center; gap: 30px; }
.oferta__texto p { font-size: 17px; line-height: 1.6; margin-bottom: 26px; max-width: 400px; }
.oferta__texto strong { color: #fff; }
.garantia { display: flex; align-items: center; gap: 22px; color: #fff; font-weight: 700; font-size: 17px; text-transform: uppercase; margin-top: 46px; }
.garantia svg { width: 32px; height: 32px; }
.oferta__pc { justify-self: center; }
.oferta__pc img { width: 100%; max-width: 496px; }
.oferta__preco { max-width: 350px; }
.oferta__preco small { display: block; font-size: 17px; }
.oferta__preco strong { display: block; font-size: 76px; line-height: 1.15; font-weight: 800; color: #d9d9d9; letter-spacing: -1px; margin: 6px 0 4px; }
.oferta__preco .btn { margin: 26px 0 16px; }
.selos { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 10px; }
.selos li { display: flex; align-items: center; gap: 6px; font-size: 11.5px; line-height: 1.2; color: #bdbdbd; }
.selos svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #5fd38d; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding: 130px 0 170px; }
.faq__container { max-width: 1002px; }
.faq h2 { font-size: 38px; font-weight: 700; text-align: center; margin-bottom: 70px; }
.faq__lista { display: grid; gap: 12px; }
.faq__item { background: var(--card); border-radius: 6px; overflow: hidden; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 16px 24px;
  font-size: 18px;
  color: #dcdcdc;
  transition: background-color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#fff, #fff) center / 16px 3.5px no-repeat,
    linear-gradient(#fff, #fff) center / 3.5px 16px no-repeat;
  transition: transform .3s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { background: #262626; }
.faq__resposta { padding: 0 24px 22px; }
.faq__resposta p { font-size: 16px; line-height: 1.6; color: #b5b5b5; }

/* =========================================================
   RODAPÉ
   ========================================================= */
.footer { background: #000; text-align: center; padding: 70px 24px 74px; font-size: 14px; color: #d0d0d0; }
.logo--footer { margin-bottom: 16px; }

/* =========================================================
   ANIMAÇÃO
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .spec, .faq__item summary::after { transition: none; }
}

/* =========================================================
   TELAS MÉDIAS
   ========================================================= */
@media (max-width: 1280px) {
  .feature__text--right { margin-left: 50%; }
  .duo__item + .duo__item { padding-left: 60px; }
  .specs__grid { grid-template-columns: repeat(3, 1fr); }
  .oferta__grid { grid-template-columns: 1fr 380px 1fr; }
  .oferta__preco strong { font-size: 58px; }
}

/* =========================================================
   MOBILE (frame de 390px)
   ========================================================= */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .container { padding: 0 24px; }

  .btn { width: 100%; min-width: 0; height: 56px; font-size: 15px; }

  /* Topo */
  .topbar { position: static; }
  .topbar__inner { height: 114px; justify-content: center; padding: 0 24px; }
  .topbar .btn--sm { display: none; }
  .logo svg { width: 40px; height: 35px; }
  .logo span { font-size: 30px; }

  /* Hero */
  .hero { min-height: 0; display: block; text-align: center; padding-top: 172vw; }
  .hero__content { max-width: none; }
  .hero::before {
    top: 0; height: 355vw; left: 0; right: 0;
    background-image: image-set(url("assets/m-hero.webp") type("image/webp"), url("assets/m-hero.png") type("image/png"));
    background-size: 100% auto;
  }
  .hero__content { padding: 0 0 96px; margin: 0 auto; }
  .hero h1 { font-size: 36px; line-height: 1.25; margin-bottom: 24px; }
  .hero p { font-size: 15px; color: #cfcfcf; max-width: 280px; margin: 0 auto 36px; }

  /* Recursos */
  .feature { display: block; text-align: center; min-height: 0; }
  .feature h2 { font-size: 34px; line-height: 1.32; margin-bottom: 26px; }
  .feature p { font-size: 17px; line-height: 1.55; }
  .feature__text--right { margin: 0 auto; }
  .feature--cpu {
    padding: 104vw 0 92px;
    background: image-set(url("assets/m-processador.webp") type("image/webp"), url("assets/m-processador.jpg") type("image/jpeg")) center top / 100% auto no-repeat, #000;
  }
  .feature--ram { padding: 72px 0 86px; }
  .feature__grid { display: flex; flex-direction: column-reverse; gap: 56px; }
  .feature__media img { margin: 0 auto; max-width: 342px; }
  .feature--ssd {
    padding: 78vw 0 88px;
    background: image-set(url("assets/m-armazenamento.webp") type("image/webp"), url("assets/m-armazenamento.jpg") type("image/jpeg")) center top / 100% auto no-repeat, #000;
  }
  .gaming {
    height: auto;
    aspect-ratio: 390 / 482;
    background-image: image-set(url("assets/m-gaming.webp") type("image/webp"), url("assets/m-gaming.jpg") type("image/jpeg"));
  }

  /* Gráfico + áudio */
  .duo { padding: 72px 0 150px; }
  .duo__grid { grid-template-columns: 1fr; margin-bottom: 44px; }
  .duo__item, .duo__item + .duo__item { padding: 0; border: 0; }
  .duo__item + .duo__item { border-top: 1px solid rgba(255,255,255,.75); margin-top: 40px; padding-top: 52px; }
  .duo h2 { font-size: 34px; line-height: 1.33; margin-bottom: 26px; }
  .duo__spec { gap: 44px; }
  .duo__spec svg { width: 64px; height: 56px; }

  /* Especificações */
  .specs { padding-bottom: 92px; }
  .specs__title { font-size: 34px; text-align: center; margin-bottom: 34px; }
  .specs__grid {
    grid-template-columns: 1fr;
    grid-template-areas: "a" "b" "d" "e" "c";
    margin-bottom: 0;
  }
  .spec { min-height: 256px; padding: 56px 40px 40px; }
  .specs .btn { display: none; }

  /* Oferta */
  .oferta { padding: 76px 0 86px; text-align: center; }
  .oferta__grid { grid-template-columns: 1fr; gap: 24px; }
  .oferta__texto p { margin: 0 auto 26px; }
  .garantia { justify-content: center; margin-top: 30px; }
  .oferta__pc img { max-width: 343px; }
  .oferta__preco { text-align: left; max-width: none; }
  .oferta__preco strong { font-size: 58px; }
  .selos li { font-size: 10.5px; }

  /* FAQ */
  .faq { padding: 92px 0 66px; }
  .faq h2 { font-size: 34px; line-height: 1.33; margin-bottom: 52px; }
  .faq__item summary { min-height: 74px; padding: 18px 24px; font-size: 17px; line-height: 1.5; }

  /* Rodapé */
  .footer { padding: 66px 24px 60px; }
}

@media (max-width: 360px) {
  .hero h1, .feature h2, .duo h2, .specs__title, .faq h2 { font-size: 30px; }
  .oferta__preco strong { font-size: 48px; }
  .selos { flex-wrap: wrap; justify-content: center; }
}
