:root {
  --bg:#0b0b12;
  --text:#f5f7ff;
  --muted:#c9cbd3;
  --brand:#ff7a00;
  --brand2:#ff9500;
  --stroke:#242636;
  --panel:#121324;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #0a0b13 0%, #0e1020 60%, #0b0b12 100%);
  color: var(--text);
  line-height: 1.6;
}

/* Container */
.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* HEADER */
.header {
  background: rgba(10, 11, 19, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 64px; /* Tamanho visual equivalente ao das outras páginas */
  width: auto;
  max-width: 100%;
  transition: transform .3s ease, opacity .3s ease;
}

/* Pequeno efeito sutil ao passar o mouse */
.logo-link:hover .logo-img {
  opacity: 0.9;
  transform: scale(1.02);
}

/* Ajuste responsivo */
@media (max-width: 768px) {
  .logo-img {
    height: 56px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: opacity .3s ease;
}

.brand:hover { opacity: .85; }

.brand img {
  border-radius: 8px;
}

/* Hero */
.hero {
  margin-top: 40px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 10px;
}

.hero p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1rem;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0 80px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .3);
  border-color: var(--brand);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  transition: transform .4s ease;
}

.card:hover img {
  transform: scale(1.05);
}

.card h2 {
  font-size: 1.1rem;
  margin: 12px 16px 6px;
  color: var(--brand2);
}

.card p {
  font-size: .95rem;
  color: var(--muted);
  margin: 0 16px 16px;
}

/* Links globais */
a {
  color: var(--brand);
  text-decoration: none;
  transition: color .3s ease, opacity .3s ease;
}

a:hover {
  color: var(--brand2);
}

a:visited {
  color: var(--brand2);
}

/* Footer */
.footer {
  border-top: 1px solid var(--stroke);
  text-align: center;
  padding: 30px 0 60px;
  color: #aeb3c4;
  background: rgba(15, 15, 25, 0.5);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: color .3s ease;
}

.footer-links a:hover {
  color: var(--brand2);
}

/* Acessibilidade */
a:focus-visible {
  outline: 2px solid var(--brand2);
  outline-offset: 2px;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero p { font-size: .95rem; }
  .card h2 { font-size: 1rem; }
  .footer-links { gap: 14px; }
}