* ===========================
   RESET BÁSICO
=========================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050814;
  color: #f5f7ff;
  line-height: 1.6;
}

/* ===========================
   VARIÁVEIS
=========================== */
:root {
  --bg: #050814;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --card-border: rgba(148, 163, 184, 0.18);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --accent-strong: #0ea5e9;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
  --border-soft: 1px solid rgba(148, 163, 184, 0.25);
}

/* ===========================
   LAYOUT
=========================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 8, 20, 0.95), rgba(5, 8, 20, 0.7), transparent);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

/* LOGO */
.logo {
  text-decoration: none;
  display: inline-flex;
  flex-direction: column;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-main {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-highlight {
  font-size: 1.05rem;
  color: var(--accent);
}

/* NAV */
.nav {
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--text-muted);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-list a:hover {
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-main);
}

.nav-list a.active {
  background: var(--accent-soft);
  color: var(--accent);
}

/* BOTÃO MENU MOBILE */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--text-main);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   HERO
=========================== */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-small {
  padding-top: 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-inner-small {
  grid-template-columns: minmax(0, 1fr);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(56, 189, 248, 0.35);
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero h1 span {
  display: block;
  font-weight: 500;
  color: var(--text-main);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

/* Ações hero */
.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* Meta */
.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  font-size: 0.8rem;
}

.hero-meta .meta-label {
  display: block;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
}

.hero-meta .meta-text {
  display: block;
  color: var(--text-muted);
}

/* Card lateral */
.hero-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 65%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.22), transparent 60%),
              var(--card-bg);
  border-radius: var(--radius-xl);
  padding: 1.7rem 1.6rem;
  border: var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  margin-bottom: 0.9rem;
}

.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.hero-card p {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 0.7rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.8rem 0 1rem;
  list-style: none;
}

.tag-list li {
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.hero-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.hero-links a {
  color: var(--accent);
  text-decoration: none;
}

.hero-links a:hover {
  text-decoration: underline;
}

/* ===========================
   BOTÕES
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0b1120;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.95);
}

/* ===========================
   SEÇÕES
=========================== */
.section {
  padding: 3.2rem 0;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), transparent 60%),
              #020617;
}

.section-cta {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(56, 189, 248, 0.02));
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.section-header {
  text-align: center;
  margin-bottom: 2.3rem;
}

.section-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* GRIDS */
.grid-3 {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
}

/* CARDS */
.card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: var(--border-soft);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.65);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.card-horizontal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.card-links a {
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--accent);
}

/* PAINEL DE INFO */
.info-panel {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.2rem;
  border: var(--border-soft);
}

.info-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.info-panel ul {
  list-style: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.info-panel li + li {
  margin-top: 0.3rem;
}

/* LISTA COM CHECK */
.list-check {
  list-style: none;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.list-check li {
  position: relative;
  padding-left: 1.3rem;
}

.list-check li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

/* CTA */
.section-cta .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.section-cta p {
  color: var(--text-main);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cta-form input {
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* AVISO / NOTICE */
.notice {
  background: rgba(15, 23, 42, 0.9);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
}

.notice h2 {
  margin-bottom: 0.4rem;
}

.notice p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* PUBLICAÇÕES */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.pub-item h3 {
  font-size: 0.95rem;
}

.pub-item a {
  text-decoration: none;
  color: var(--accent);
}

.pub-item a:hover {
  text-decoration: underline;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.6rem 0 1.8rem;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617 55%);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-small {
  margin-top: 0.3rem;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* ===========================
   RESPONSIVIDADE
=========================== */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .section-cta .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-horizontal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .header-inner {
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: absolute;
    right: 0;
    top: 110%;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(15, 23, 42, 0.98);
    padding: 0.7rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    min-width: 180px;
    transform-origin: top right;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.13s ease-out, transform 0.13s ease-out;
  }

  .nav-list.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .hero {
    padding-top: 3.3rem;
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}