:root {
  --bg: #0d0f12;
  --bg-soft: #171b21;
  --card: #1d2229;
  --card-2: #222831;
  --border: rgba(255,255,255,0.08);
  --text: #f4f4f4;
  --text-soft: #a6adb8;
  --orange: #ff7a18;
  --orange-soft: rgba(255,122,24,0.12);
  --blue: #6ea8ff;
  --blue-soft: rgba(110,168,255,0.12);
  --green: #60d394;
  --radius: 28px;
  --shadow: 0 20px 40px rgba(0,0,0,0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255,122,24,0.08), transparent 25%),
    radial-gradient(circle at bottom left, rgba(110,168,255,0.06), transparent 25%),
    linear-gradient(180deg, #0b0d10 0%, #13171d 100%);
  min-height: 100vh;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* ====================================================== */
/* HEADER                                                 */
/* ====================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  background: rgba(13,15,18,0.82);
  border-bottom: 1px solid var(--border);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--orange);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav a {
  color: var(--text-soft);
  font-weight: 500;
  transition: 0.25s;
}

nav a:hover {
  color: var(--orange);
}

/* ====================================================== */
/* HERO                                                   */
/* ====================================================== */

.hero {
  padding: 90px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-badge,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft);
  color: #ffb27a;
  border: 1px solid rgba(255,122,24,0.18);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero p,
.section-header p,
.sobre-box p {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 720px;
}

.hero p {
  margin-bottom: 34px;
}

.hero-botoes {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 15px 26px;
  border-radius: 18px;
  font-size: 0.96rem;
  font-weight: 700;
  transition: 0.25s;
}

.btn-principal {
  background: var(--orange);
  color: #111;
  box-shadow: 0 18px 32px rgba(255,122,24,0.22);
}

.btn-principal:hover {
  transform: translateY(-3px);
  background: #ff8d39;
}

.btn-secundario {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secundario:hover {
  background: rgba(255,255,255,0.08);
}

/* ====================================================== */
/* HERO CARD                                              */
/* ====================================================== */

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,122,24,0.1);
  filter: blur(20px);
}

.mini-card {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 22px;
}

.mini-card p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.mini-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.mini-card span {
  color: var(--text-soft);
}

.azul {
  background: var(--blue-soft);
  border: 1px solid rgba(110,168,255,0.18);
}

.azul p,
.azul h3 {
  color: var(--blue);
}

.laranja {
  background: var(--orange-soft);
  border: 1px solid rgba(255,122,24,0.18);
}

.laranja p,
.laranja h3 {
  color: #ffb27a;
}

.versus {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange);
  color: #111;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin: 0 auto;
  z-index: 1;
}

/* ====================================================== */
/* SEÇÕES                                                 */
/* ====================================================== */

.stats-section,
.comparador-section,
.populares-section,
.vantagens-section,
.categorias-section,
.artigos-section,
.sobre-section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px;
}

.section-header h2,
.sobre-box h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

/* ====================================================== */
/* STATS                                                  */
/* ====================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  text-align: center;
  transition: 0.25s;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,122,24,0.18);
}

.stat-card.destaque {
  background: linear-gradient(
    135deg,
    rgba(255,122,24,0.14),
    rgba(255,255,255,0.03)
  );
}

.stat-icone {
  font-size: 2rem;
  margin-bottom: 14px;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--text-soft);
}

/* ====================================================== */
/* COMPARADOR                                             */
/* ====================================================== */

.comparador-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 26px;
  margin-bottom: 36px;
}

.campo-select label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.campo-select select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 16px;
  border-radius: 16px;
  font-size: 1rem;
}

.campo-select select:focus {
  outline: none;
  border-color: rgba(255,122,24,0.35);
}

#compararBtn {
  align-self: end;
}

.resultado-comparacao {
  min-height: 120px;
}

/* ====================================================== */
/* CARDS POPULARES                                        */
/* ====================================================== */

.cards-populares,
.vantagens-grid,
.categorias-grid,
.artigos-grid {
  display: grid;
  gap: 24px;
}

.cards-populares {
  grid-template-columns: repeat(2, 1fr);
}

.vantagens-grid {
  grid-template-columns: repeat(3, 1fr);
}

.categorias-grid {
  grid-template-columns: repeat(3, 1fr);
}

.artigos-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-popular,
.vantagem-card,
.categoria-card,
.artigo-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  transition: 0.25s;
}

.card-popular:hover,
.vantagem-card:hover,
.categoria-card:hover,
.artigo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,122,24,0.18);
}

.card-popular img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.card-popular-conteudo {
  padding: 24px;
}

.card-popular-conteudo h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card-popular-conteudo p {
  color: var(--text-soft);
}

/* ====================================================== */
/* VANTAGENS                                              */
/* ====================================================== */

.vantagem-card {
  padding: 28px;
}

.vantagem-card .icone {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.vantagem-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.vantagem-card p {
  color: var(--text-soft);
}

.destaque-card {
  background: linear-gradient(
    135deg,
    rgba(255,122,24,0.14),
    rgba(255,255,255,0.03)
  );
}

/* ====================================================== */
/* CATEGORIAS                                             */
/* ====================================================== */

.categoria-card {
  padding: 30px;
  text-align: center;
}

.categoria-card span {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 18px;
}

.categoria-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.categoria-card p {
  color: var(--text-soft);
}

/* ====================================================== */
/* ARTIGOS                                                */
/* ====================================================== */

.artigo-card {
  padding: 30px;
}

.artigo-tag {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #ffb27a;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.artigo-card h3 {
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 16px;
}

.artigo-card p {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.artigo-card a {
  color: var(--orange);
  font-weight: 700;
}

.destaque-artigo {
  background: linear-gradient(
    135deg,
    rgba(255,122,24,0.14),
    rgba(255,255,255,0.03)
  );
}

/* ====================================================== */
/* SOBRE                                                  */
/* ====================================================== */

.sobre-box {
  max-width: 860px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 44px;
}

.sobre-box p + p {
  margin-top: 18px;
}

/* ====================================================== */
/* FOOTER                                                 */
/* ====================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}

.footer-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-box p,
.footer-links a {
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a:hover {
  color: var(--orange);
}

/* ====================================================== */
/* RESPONSIVO                                             */
/* ====================================================== */

@media (max-width: 1000px) {
  .hero-grid,
  .stats-grid,
  .vantagens-grid,
  .categorias-grid,
  .artigos-grid,
  .cards-populares {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparador-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  nav {
    display: none;
  }

  .hero-grid,
  .stats-grid,
  .vantagens-grid,
  .categorias-grid,
  .artigos-grid,
  .cards-populares,
  .footer-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 70px;
  }

  .hero-card {
    order: -1;
  }

  .footer-box {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero-card,
  .comparador-box,
  .sobre-box,
  .stat-card,
  .vantagem-card,
  .categoria-card,
  .artigo-card {
    padding: 22px;
    border-radius: 24px;
  }

  .btn {
    width: 100%;
  }

  .hero-botoes {
    flex-direction: column;
  }
}

/* ===================================================== */
/* COMPARADOR ATÉ 5 MOTOS                                */
/* ===================================================== */

.comparador-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}

.campo-select {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.campo-select label {
  color: #d0d0d0;
  font-size: 0.95rem;
  font-weight: 600;
}

.campo-select select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #121212;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: 0.25s;
}

.campo-select select:focus {
  border-color: #ff7a18;
  box-shadow: 0 0 0 4px rgba(255,122,24,0.15);
}

#compararBtn {
  height: 52px;
  white-space: nowrap;
}

.resultado-comparacao {
  margin-top: 34px;
  overflow-x: auto;
  border-radius: 22px;
}

.tabela-comparacao {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #111;
  overflow: hidden;
  border-radius: 22px;
}

.tabela-comparacao thead th {
  background: #181818;
  color: #fff;
  padding: 18px 14px;
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tabela-comparacao tbody td {
  padding: 16px 14px;
  text-align: center;
  color: #e8e8e8;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: 0.2s;
}

.tabela-comparacao tbody tr:hover td {
  background: rgba(255,255,255,0.03);
}

.tabela-comparacao td:first-child,
.tabela-comparacao th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #151515;
  text-align: left;
  font-weight: 700;
  color: #bdbdbd;
  min-width: 180px;
}

.melhor {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #9effb5 !important;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}

.pior {
  opacity: 0.75;
}

@media (max-width: 900px) {
  .comparador-box {
    grid-template-columns: 1fr;
  }

  #compararBtn {
    width: 100%;
  }
}

.comentarios-comparacao {
  margin-top: 28px;
  display: grid;
  gap: 16px;
}

.comentarios-comparacao h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.comentario-moto {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 18px 20px;
}

.comentario-moto h4 {
  color: #ff8a1f;
  margin-bottom: 8px;
  font-size: 1rem;
}

.comentario-moto p {
  color: #d4d4d4;
  line-height: 1.6;
}

/* ====================================================== */
/* RANKING DAS MOTOS MAIS COMPARADAS                      */
/* ====================================================== */

.ranking-section {
  padding: 100px 0;
  background:
    radial-gradient(circle at top, rgba(255, 122, 26, 0.12), transparent 45%),
    linear-gradient(180deg, #090b12 0%, #111522 100%);
}

.ranking-box {
  max-width: 1100px;
  margin: 0 auto;
}

.ranking-lista {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
}

.ranking-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 28px;

  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;

  overflow: hidden;
}

.ranking-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  width: 5px;
  height: 64%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff8a2a, #ff5e00);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.ranking-item:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 138, 42, 0.4);
  background: rgba(255, 138, 42, 0.07);
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 138, 42, 0.08);
}

.ranking-item:hover::before {
  opacity: 1;
}

/* ====================================================== */
/* POSIÇÃO (#1, #2...)                                    */
/* ====================================================== */

.ranking-posicao {
  min-width: 82px;
  height: 82px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 22px;

  background: linear-gradient(135deg, #ff8a2a, #ff5e00);
  color: #fff;

  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;

  box-shadow:
    0 10px 24px rgba(255, 102, 0, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Top 3 com destaque especial */

.ranking-item:nth-child(1) .ranking-posicao {
  background: linear-gradient(135deg, #ffd86b, #ffb400);
  color: #1a1200;
  box-shadow:
    0 12px 30px rgba(255, 196, 0, 0.4);
}

.ranking-item:nth-child(2) .ranking-posicao {
  background: linear-gradient(135deg, #d8dde8, #9ea7b8);
  color: #111827;
}

.ranking-item:nth-child(3) .ranking-posicao {
  background: linear-gradient(135deg, #d99a6c, #9b5d33);
  color: #fff;
}

/* ====================================================== */
/* INFORMAÇÕES DA MOTO                                    */
/* ====================================================== */

.ranking-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.ranking-info strong {
  font-size: 1.28rem;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ranking-info span {
  color: rgba(255,255,255,0.65);
  font-size: 0.96rem;
  font-weight: 500;
}

/* ====================================================== */
/* TOTAL DE COMPARAÇÕES                                   */
/* ====================================================== */

.ranking-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;

  min-width: 130px;

  font-size: 1.8rem;
  font-weight: 800;
  color: #ff8a2a;
  letter-spacing: -0.03em;
}

.ranking-total small {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}

/* ====================================================== */
/* MEDALHAS NO TOP 3                                      */
/* ====================================================== */

.ranking-item:nth-child(1)::after,
.ranking-item:nth-child(2)::after,
.ranking-item:nth-child(3)::after {
  position: absolute;
  right: 2px;
  top: 18px;
  font-size: 1.35rem;
  opacity: 0.9;
}

.ranking-item:nth-child(1)::after {
  content: "🥇";
}

.ranking-item:nth-child(2)::after {
  content: "🥈";
}

.ranking-item:nth-child(3)::after {
  content: "🥉";
}

/* ====================================================== */
/* RESPONSIVIDADE                                         */
/* ====================================================== */

@media (max-width: 768px) {
  .ranking-section {
    padding: 72px 0;
  }

  .ranking-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    gap: 18px;
  }

  .ranking-posicao {
    width: 68px;
    height: 68px;
    min-width: 68px;
    font-size: 1.3rem;
  }

  .ranking-info strong {
    font-size: 1.08rem;
  }

  .ranking-total {
    align-items: flex-start;
    min-width: auto;
    font-size: 1.5rem;
  }

  .ranking-item:nth-child(1)::after,
  .ranking-item:nth-child(2)::after,
  .ranking-item:nth-child(3)::after {
    top: 16px;
    right: 16px;
  }
}

