/* =========================================================
   1. TOKENS / VARIÁVEIS
========================================================= */
:root {
  --bg-dark: #081120;
  --bg-dark-soft: #0d1730;
  --bg-light: #f6f9ff;

  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);

  --text-light: #eff6ff;
  --text-muted: #c8d4ef;
  --text-dark: #172033;
  --text-soft-dark: #51607f;

  --primary: #20c7ff;
  --primary-strong: #6f7cff;

  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;

  --container: 1180px;
}

/* =========================================================
   2. RESET / BASE
========================================================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

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

button {
  font: inherit;
}

/* =========================================================
   3. LAYOUT GLOBAL
========================================================= */
.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-light {
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.98), rgba(240, 245, 255, 0.98));
  color: var(--text-dark);
}

.section-dark {
  background: linear-gradient(180deg, rgba(8, 17, 32, 0.88), rgba(13, 23, 48, 0.9));
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.48;
  pointer-events: none;
}

/* =========================================================
   4. TIPOGRAFIA
========================================================= */
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow.small {
  font-size: 0.72rem;
}

.hero-copy h1,
.section-heading h2,
.cta-box h2,
.location-grid h2 {
  margin: 0;
  font-family: 'Orbitron', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
  max-width: 12ch;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: 1rem;
}

.hero-text,
.section-heading p,
.countdown-note,
.feature-card p,
.topic-card p,
.stat-card span,
.note-box,
.cta-box p,
.location-grid p,
.site-footer p,
.site-footer li,
.schedule-list p {
  color: var(--text-muted);
  line-height: 1.7;
}

.section-light .section-heading p,
.section-light .feature-card p,
.section-light .note-box,
.section-light .location-grid p,
.section-light .site-footer p,
.section-light .site-footer li,
.section-light .schedule-list p {
  color: var(--text-soft-dark);
}

.feature-card h3,
.topic-card h3,
.site-footer h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

/* =========================================================
   5. COMPONENTES REUTILIZÁVEIS
========================================================= */

/* ---------- Cards base ---------- */
.meta-card,
.glass-card,
.countdown-card,
.feature-card,
.stat-card,
.topic-card,
.schedule-column,
.note-box,
.cta-box,
.map-frame,
.sponsor-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.meta-card,
.glass-card,
.countdown-card,
.stat-card,
.topic-card,
.schedule-column,
.cta-box {
  background: rgba(255, 255, 255, 0.06);
}

.feature-card,
.note-box,
.map-frame,
.sponsor-card {
  background: #fff;
  border-color: rgba(10, 22, 54, 0.08);
  box-shadow: 0 18px 50px rgba(13, 31, 71, 0.09);
}

.countdown-card,
.glass-card,
.feature-card,
.stat-card,
.topic-card,
.schedule-column,
.note-box,
.cta-box,
.map-frame {
  padding: 1.5rem;
}

.meta-card {
  padding: 1rem;
}

.meta-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(32, 199, 255, 0.14);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  box-shadow: 0 14px 30px rgba(32, 199, 255, 0.25);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
}

.section-light .btn-secondary {
  border-color: rgba(8, 17, 32, 0.18);
  color: var(--text-dark);
}

.btn.large {
  min-width: 220px;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Grids reutilizáveis ---------- */
.hero-grid,
.location-grid,
.footer-grid,
.cta-box,
.feature-grid,
.stats-grid,
.topics-grid,
.sponsors-grid,
.gallery-grid,
.schedule-layout {
  display: grid;
  gap: 1.25rem;
}

.hero-grid,
.location-grid,
.footer-grid,
.cta-box {
  gap: 2rem;
}

.feature-grid,
.stats-grid,
.topics-grid,
.sponsors-grid {
  grid-template-columns: repeat(3, 1fr);
}

.gallery-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* =========================================================
   6. HEADER / NAVEGAÇÃO
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(8, 17, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
}

.brand img,
.footer-logo {
  width: 54px;
  aspect-ratio: 1;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  position: relative;
  padding: 0.35rem 0;
  color: #f4f8ff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

.site-nav a.btn-inscricao {
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(32, 199, 255, 0.22);
}

.site-nav a.btn-inscricao:hover {
  color: white;
  transform: translateY(-1px);
}

.site-nav a.btn-inscricao::after {
  display: none;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
}

/* =========================================================
   7. HERO
========================================================= */
.hero {
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: start;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

/* =========================================================
   8. COUNTDOWN
========================================================= */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 1rem 0.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.countdown span {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.countdown small {
  display: block;
  margin-top: 0.45rem;
  color: var(--text-muted);
  line-height: 1;
}

.emphasis-card {
  margin-top: 1rem;
}

/* =========================================================
   9. FEATURES / STATS / TOPICS
========================================================= */
.stats-section {
  padding: 3rem 0;
  display: flex;
  align-items: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 1.35rem;
}

/* =========================================================
   10. PROGRAMAÇÃO
========================================================= */
.schedule-layout {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.schedule-title {
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.schedule-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: rgba(32, 199, 255, 0.14);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.schedule-list strong {
  display: block;
  margin-bottom: 0.2rem;
}

/* =========================================================
   11. APOIO / PATROCÍNIO
========================================================= */
.support-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.support-badges span {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(111, 124, 255, 0.08);
  color: var(--primary-strong);
  font-weight: 700;
}

.sponsor-card {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* =========================================================
   12. LOCALIZAÇÃO
========================================================= */
.location-grid {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
}

.map-frame {
  padding: 0;
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

/* =========================================================
   13. GALERIA
========================================================= */
.gallery-placeholder {
  min-height: 180px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* =========================================================
   14. FOOTER
========================================================= */
.site-footer {
  padding: 3rem 0;
  background: #050b17;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

/* =========================================================
   15. RESPONSIVIDADE
========================================================= */
@media (max-width: 1024px) {
  .hero-grid,
  .location-grid,
  .footer-grid,
  .feature-grid,
  .stats-grid,
  .topics-grid,
  .gallery-grid,
  .sponsors-grid,
  .schedule-layout,
  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

  .hero-grid > *:first-child,
  .location-grid > *:first-child,
  .footer-grid > *:first-child,
  .section-heading {
    grid-column: 1 / -1;
  }

  .schedule-layout,
  .topics-grid,
  .gallery-grid,
  .sponsors-grid,
  .feature-grid,
  .stats-grid,
  .footer-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: rgba(8, 17, 32, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .site-nav a.btn-inscricao {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .hero-grid,
  .hero-meta,
  .countdown,
  .feature-grid,
  .stats-grid,
  .topics-grid,
  .sponsors-grid,
  .gallery-grid,
  .location-grid,
  .footer-grid,
  .schedule-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .schedule-list li {
    grid-template-columns: 1fr;
  }

  .cta-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn.large {
    width: 100%;
  }
}
