/* ───────────────────────────────────── RESET ───────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --pink: #dc3545;
  --pinkHover: #e1115d;
  --dark: #171325;
  --text: #342d45;
  --muted: #756d85;
  --heroBg: #dce9f5;
  --mecBg: #bdd3e7;
  --cream: #f8f4ef;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  display: block;
  max-width: 100%;
}
a {
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary {
  height: 42px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(252, 20, 104, 0.18);
}
.btn-primary:hover {
  background: var(--pinkHover);
  transform: translateY(-2px);
} /* ───────────────────────────────────── HERO ───────────────────────────────────── */
.hero {
  height: 820px; /* 840 -> 924 */
  background: linear-gradient(170deg, #faf6f0 0%, #c4dcf2 100%);
  padding: 100px 180px 131px; /* 120 76 90 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #fc1468, #7460c6, #7ba2d5);
}
.hero-text {
  max-width: 1169px; /* 1063 -> 1169 */
}
.hero-eyebrow {
  font-size: 11px; /* 10 -> 11 */
  font-weight: 242;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #4a7baf;
  margin-bottom: 24px; /* 22 -> 24 */
  position: relative;
}
.hero-eyebrow::after {
  content: "";
  width: 37px; /* 34 -> 37 */
  height: 2px;
  background: var(--pink);
  position: absolute;
  left: 0;
  bottom: -11px; /* 10 -> 11 */
}
.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 64px; /* 58 -> 64 */
  line-height: 62px; /* 56 -> 62 */
  font-style: italic;
  color: #171325;
  margin-bottom: 20px; /* 18 -> 20 */
}
.hero-sub1 {
  font-size: 20px; /* 18 -> 20 */
  line-height: 33px; /* 30 -> 33 */
  color: #1f1b2b;
  margin-bottom: 9px; /* 8 -> 9 */
}
.hero-sub2 {
  font-size: 17px; /* 15 -> 17 */
  line-height: 28px; /* 25 -> 28 */
  color: #645c75;
  margin-bottom: 18px; /* 16 -> 18 */
}
.hero-sub3 {
  font-size: 17px; /* 15 -> 17 */
  line-height: 31px; /* 28 -> 31 */
  color: #8a849a;
  max-width: 517px; /* 470 -> 517 */
  margin-bottom: 31px; /* 28 -> 31 */
} /* TAGS */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px; /* 8 -> 9 */
  margin-bottom: 33px; /* 30 -> 33 */
}
.tags li span {
  padding: 10px 15px; /* 9 14 -> 10 15 */
  border-radius: 999px;
  border: 1px solid rgba(74, 123, 175, 0.18);
  background: rgba(255, 255, 255, 0.4);
  color: #5e718c;
  font-size: 13px; /* 12 -> 13 */
} /* HERO CARDS */
.hero-cards {
  position: relative;
  width: 100%;
  height: 420px;
}
.card-nox,
.card-lumen {
  width: 360px;
  height: 190px;
  border-radius: 18px;
  padding: 30px;
  position: absolute;
  transition: 0.35s;
}
.card-nox {
  top: 26px;
  right: 40px; /* era 360px: em telas de ~1401–1580px (muito comuns em
                  notebooks, ex. 1440px) isso jogava o card 180px+ para
                  fora da coluna, cobrindo o texto do hero */
  background: #4b4658;
  color: #fff;
  box-shadow: 0 20px 30px rgba(107, 80, 145, 0.4);
}
.card-lumen {
  right: 0;
  bottom: 0;
  background: #f7f4ee;
  color: #171325;
  box-shadow: 0 20px 30px hsla(45, 90%, 61%, 0.2);
}
.card-badge {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 9px;
  font-weight: 700;
}
.card-nox .card-badge {
  background: #5d5672;
  color: #e5e1f1;
}
.card-lumen .card-badge {
  background: #f2e5bc;
  color: #9e7d1a;
}
.card-nox h3,
.card-lumen h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 28px;
  margin-bottom: 14px;
}
.card-quote {
  font-size: 14px;
  line-height: 24px;
  font-style: italic;
  padding-left: 12px;
}
.card-nox .card-quote {
  color: rgba(255, 255, 255, 0.781);
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.card-lumen .card-quote {
  color: #726986;
  border-left: 2px solid #e6bd48;
} /* ───────────────────────────────────── MECÂNICAS ───────────────────────────────────── */
.mecanicas {
  background: var(--mecBg);
  padding: 84px 60px;
}
.section-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #05488f;
  text-align: center;
  margin-bottom: 14px;
}
.mecanicas h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 54px;
  line-height: 54px;
  text-align: center;
  margin-bottom: 46px;
}
.cards-grid {
  max-width: 760px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mec-card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 18px;
  min-height: 150px;
  padding: 26px;
  position: relative;
}
.mec-card:nth-child(1) {
  border-top: 3px solid #f75a4c;
}
.mec-card:nth-child(2) {
  border-top: 3px solid #7651b5;
}
.mec-card:nth-child(3) {
  border-top: 3px solid #c18b09;
}
.mec-card:nth-child(4) {
  border-top: 3px solid #4a7baf;
}
.mec-num {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}
.mec-card h3 {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 8px;
}
.mec-card p {
  font-size: 14px;
  line-height: 24px;
  color: #665e78;
} /* ───────────────────────────────────── HISTÓRIA ───────────────────────────────────── */
.historia-section {
  background: #f7f3ee;
  padding: 84px 70px;
}
.historia {
  max-width: 1030px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
}
.historia-text .section-eyebrow {
  text-align: left;
  color: #D32436;
  margin-bottom: 14px;
}
.historia-text h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 48px;
  line-height: 48px;
  color: #171325;
  margin-bottom: 18px;
  max-width: 420px;
}
.historia-text p {
  font-size: 16px;
  line-height: 30px;
  color: #6b617e;
  max-width: 460px;
}
.historia-img {
  width: 390px;
  height: 285px;
  border-radius: 22px;
  background: linear-gradient(135deg, #abc3ea, #7a68bc);
  overflow: hidden;
  position: relative;
  box-shadow: 0 18px 38px rgba(100, 110, 145, 0.14);
}
.historia-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
  font-style: italic;
} /* ───────────────────────────────────── RESPONSIVO ───────────────────────────────────── */
@media (max-width: 1400px) {
  .card-nox {
    top: 20px;
    right: 90px;
  }
  .card-lumen {
    right: 0;
    bottom: 0;
  }
} /* NOTEBOOKS E TELAS MÉDIAS */
@media (max-width: 1300px) {
  .hero {
    padding: 90px 90px 110px;
    gap: 50px;
  }
  .hero h1 {
    font-size: 56px;
    line-height: 56px;
  }
  .hero-sub1 {
    font-size: 19px;
    line-height: 31px;
  }
  .hero-sub2,
  .hero-sub3 {
    font-size: 16px;
  }
  .hero-sub3 {
    max-width: 480px;
  }
  .hero-cards {
    height: 400px;
  }
  .card-nox,
  .card-lumen {
    width: 320px;
    height: 180px;
    padding: 26px;
  }
  .card-nox {
    top: 20px;
    right: 30px;
  }
  .card-lumen {
    right: 0;
    bottom: 0;
  }
} /* TABLET GRANDE */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 70px;
    height: auto;
    padding: 90px 50px;
    text-align: center;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-eyebrow::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .hero-sub3 {
    max-width: 700px;
    margin-inline: auto;
  }
  .tags {
    justify-content: center;
  }
  .hero-cards {
    display: flex;
    flex-direction: row; /* Coloca os itens em linha horizontal */
    justify-content: center; /* Centraliza os cards (opcional, dependendo do seu layout) */
    gap: 20px; /* Adiciona um espaço entre os cards (ajuste o valor como preferir) */
    margin: 0 auto;
  }
  .card-nox,
  .card-lumen {
    position: absolute;
  }
  .card-nox {
    width: 340px;
    top: 0;
    left: 50%;
    transform: translateX(-60%);
  }
  .card-lumen {
    width: 340px;
    bottom: 0;
    left: 50%;
    transform: translateX(-5%);
  }
  .historia {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .historia-text .section-eyebrow {
    text-align: center;
  }
  .historia-text h2,
  .historia-text p {
    max-width: none;
  }
  .historia-img {
    margin: auto;
  }
} /* TABLET */
@media (max-width: 800px) {
  .hero {
    padding: 70px 24px;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 44px;
  }
  .hero-sub1 {
    font-size: 18px;
    line-height: 30px;
  }
  .hero-sub2,
  .hero-sub3 {
    font-size: 15px;
    line-height: 28px;
  }
  .hero-cards {
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .card-nox,
  .card-lumen {
    position: relative;
    width: 100%;
    max-width: 400px;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .historia-img {
    width: 100%;
    height: auto;
    min-height: 260px;
  }
} /* CELULAR */
@media (max-width: 600px) {
  .hero {
    padding: 60px 20px;
  }
  .hero h1 {
    font-size: 38px;
    line-height: 40px;
  }
  .hero-sub1 {
    font-size: 17px;
    line-height: 28px;
  }
  .hero-sub2,
  .hero-sub3 {
    font-size: 14px;
    line-height: 26px;
  } /* --- CORREÇÃO APLICADA NAS TAGS --- */
  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0 0 24px 0; /* O terceiro valor (24px) adiciona margem abaixo das tags */
    list-style: none;
    height: auto; /* Força o container a crescer de acordo com o conteúdo */
  }
  .tags li span {
    display: inline-block; /* Garante que o padding não sobreponha as outras linhas */
    font-size: 12px;
    padding: 8px 12px;
  } /* ---------------------------------- */
  .card-nox,
  .card-lumen {
    padding: 22px;
  }
  .card-nox h3,
  .card-lumen h3 {
    font-size: 20px;
  }
  .mecanicas,
  .historia-section {
    padding: 70px 20px;
  }
  .mecanicas h2,
  .historia-text h2 {
    font-size: 38px;
    line-height: 40px;
  }
} /* CELULARES PEQUENOS */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 32px;
    line-height: 34px;
  }
  .btn-primary {
    width: 100%;
  }
  .card-nox,
  .card-lumen {
    padding: 20px;
  }
  .card-nox h3,
  .card-lumen h3 {
    font-size: 18px;
    line-height: 24px;
  }
  .card-quote {
    font-size: 13px;
    line-height: 22px;
  }
}


/* ================================================================
   INTERAÇÕES (jogo)
   ================================================================ */
.mec-card h3 { transition: transform .35s var(--ease-spring); }
.mec-card:hover h3 { transform: translateX(6px); }

.tags li span {
  display: inline-block;
  cursor: default;
  transition: transform .3s var(--ease-spring), box-shadow .3s ease;
}
.tags li span:hover {
  transform: translateY(-4px) rotate(-3deg);
  box-shadow: 0 10px 20px rgba(23, 19, 37, .12);
}

.historia-img img { transition: transform 1.1s var(--ease-out); }
.historia-img:hover img { transform: scale(1.09); }

/* Cards NOX / LUMEN flutuam de leve (translate ≠ transform do parallax) */
.card-nox   { animation: slFloat 6s ease-in-out infinite; }
.card-lumen { animation: slFloat 7s ease-in-out infinite reverse; }
.card-nox, .card-lumen { transition: box-shadow .4s ease, filter .4s ease; }
.card-nox:hover, .card-lumen:hover { filter: brightness(1.06); box-shadow: 0 26px 46px -14px rgba(23, 19, 37, .32); }

@media (prefers-reduced-motion: reduce) {
  .card-nox, .card-lumen { animation: none; }
}


/* o h1-h4 global (base.css) forçava texto escuro sobre o fundo escuro do NOX: 1.44:1 */
.card-nox h3, .card-lumen h3 { color: inherit; }
