/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-deep: #03070f;
  --navy: #070e1e;
  --navy-mid: #0e1e3c;
  --navy-light: #1a3060;
  --blue: #2858a8;
  --blue-light: #4a7ab8;
  --silver: #c0d8ee;
  --silver-dim: #8ab8d8;
  --white: #ffffff;
  --text-dim: #6a9ec8;
  --logo-bg: #102060;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: hidden;
}

/* ── FONTE POPPINS PARA TEXTOS SIMPLES ── */
p, 
.agenda-desc, 
.speaker-role, 
.speaker-topic, 
.track-desc, 
.local-details li, 
.form-group label, 
.form-group input, 
.form-group select,
.footer-bottom span,
.success-message p {
  font-family: 'Poppins', sans-serif;
}

/* ── STARS canvas ── */
#stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: linear-gradient(to bottom, rgba(3, 7, 15, .92) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, #1e3a7a, #071238);
  border: 1px solid rgba(74, 122, 184, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-wrap img {
  width: 26px;
  height: 26px;
}

.nav-brand-text {
  line-height: 1.2;
}

.nav-brand-text .brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--silver-dim);
  display: block;
}

.nav-brand-text .brand-sub {
  font-size: 10px;
  letter-spacing: 2px;
  color: #4a6888;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--silver-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: color .2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 4px;
  background: #8B2232;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid #bb2b41;
  transition: background .3s, transform .15s, border-color .3s;
}

.nav-cta:hover {
  background: #c92a46 !important;
  border-color: #e63956 !important;
  color: var(--white);
  transform: translateY(-1px);
}

/* ── SECTIONS shared (Corrige o vazamento das estrelas) ── */
section, footer {
  position: relative;
  z-index: 1; 
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.nebula-left,
.nebula-right {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
}

.nebula-left {
  width: 600px;
  height: 600px;
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(10, 74, 170, .25) 0%, transparent 70%);
}

.nebula-right {
  width: 500px;
  height: 500px;
  right: -150px;
  top: 40%;
  background: radial-gradient(circle, rgba(8, 152, 204, .16) 0%, transparent 70%);
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.0;
  background: linear-gradient(90deg, #7ab0d8 0%, #ffffff 45%, #5a90c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}

.divider {
  width: 200px;
  height: 1px;
  margin: 0 auto 24px;
  background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent);
}

.hero-date.large-date {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--white);
  margin-bottom: 48px;
}

.hero-free-badge {
  display: inline-block;
  margin-bottom: 40px;
  padding: 10px 28px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 14px 36px;
  border-radius: 4px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--blue-light);
  transition: background .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(42, 88, 168, .35);
}

.btn-outline {
  padding: 14px 36px;
  border-radius: 4px;
  background: transparent;
  color: var(--silver);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(74, 122, 184, .4);
  transition: border-color .2s, color .2s, transform .15s;
}

.btn-outline:hover {
  border-color: var(--blue-light);
  color: var(--white);
  transform: translateY(-2px);
}

.scroll-hint {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: .4;
}

.scroll-hint span {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--silver-dim);
}

.scroll-hint .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.15); }
}

/* ── ABOUT ── */
#sobre {
  padding: 100px 24px 40px;
  background: linear-gradient(to bottom, var(--navy-deep), var(--navy));
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.section-title .accent {
  background: linear-gradient(90deg, #7ab0d8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--blue);
  margin-bottom: 32px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  font-size: 19px;
  line-height: 1.85;
  color: rgba(220, 235, 250, .9);
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--silver);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-card {
  background: rgba(14, 30, 60, .6);
  border: 1px solid rgba(74, 122, 184, .2);
  border-radius: 8px;
  padding: 28px 24px;
  transition: border-color .25s, transform .2s;
}

.stat-card:hover {
  border-color: rgba(74, 122, 184, .5);
  transform: translateY(-3px);
}

.stat-num {
  font-size: 40px;
  font-weight: 900;
  background: linear-gradient(90deg, #7ab0d8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── APOIO E PATROCINADORES ── */
#apoio-patrocinadores {
  padding: 80px 24px;
  background: var(--navy-deep);
}

.logos-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.logo-apoio {
  max-height: 140px;
  max-width: 280px;
  object-fit: contain;
}

.logos-patrocinio-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  background: rgba(14, 30, 60, 0.2); 
  border-radius: 12px;
  padding: 30px 40px;
  border: 1px solid rgba(74, 122, 184, 0.1);
  min-height: 140px;
}

.logo-patrocinador {
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.logo-patrocinador:hover {
  transform: scale(1.05);
}

/* Hierarquia de Tamanhos dos Patrocinadores */
.ouro-img {
  max-height: 120px;
  max-width: 260px;
}

.prata-img {
  max-height: 90px;
  max-width: 200px;
}

.bronze-img {
  max-height: 70px;
  max-width: 150px;
}
/* ── OURO PRETO DIVIDER ── */
.ouro-preto-divider {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--navy), var(--navy-deep));
}

.ouro-preto-divider svg {
  width: 100%;
  height: 100%;
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── PROGRAMAÇÃO ── */
#programacao {
  padding: 100px 24px;
  background: var(--navy-deep);
}

.agenda {
  max-width: 900px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.agenda-item {
  width: 100%;
  display: grid;
  grid-template-columns: 180px 1fr; 
  gap: 0 50px;
  min-height: 120px;
  text-align: left;
  position: relative;
  padding-bottom: 36px;
}

.agenda-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 180px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: rgba(74, 122, 184, .25);
}

.agenda-time {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--white);
  padding-top: 4px;
  text-align: right;
}

.agenda-content {
  padding-left: 32px;
  border-left: 2px solid rgba(74, 122, 184, .3);
  position: relative;
}

.agenda-content::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--navy-deep);
}

.agenda-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 8px;
}

.tag-keynote {
  background: rgba(42, 88, 168, .3);
  color: #7ab0d8;
  border: 1px solid rgba(42, 88, 168, .4);
}

.tag-painel {
  background: rgba(74, 40, 120, .3);
  color: #b090e0;
  border: 1px solid rgba(74, 40, 120, .4);
}

.tag-social {
  background: rgba(20, 100, 60, .25);
  color: #60d098;
  border: 1px solid rgba(20, 100, 60, .4);
}

.agenda-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.agenda-desc {
  font-size: 17px;
  color: rgba(192, 216, 238, .65);
  line-height: 1.6;
  opacity: 0.8;
}

.reveal-scroll .agenda-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal-scroll .agenda-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SPEAKERS ── */
#palestrantes {
  padding: 100px 24px;
  background: linear-gradient(to bottom, var(--navy-deep), var(--navy));
}

.speakers-grid {
  margin-top: 48px;
  display: grid;
  /* Largura mínima do card aumentada para deixá-los mais largos */
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); 
  gap: 40px; /* Mais espaço entre os cards */
}

.speaker-card {
  background: rgba(14, 30, 60, .5);
  border: 1px solid rgba(74, 122, 184, .18);
  border-radius: 12px;
  /* Padding interno aumentado para o card ficar maior verticalmente */
  padding: 56px 40px; 
  text-align: center;
  transition: border-color .25s, transform .2s;
}

.speaker-card:hover {
  border-color: rgba(74, 122, 184, .45);
  transform: translateY(-4px);
}

.speaker-avatar {
  /* Tamanho do círculo para as fotos aumentado consideravelmente */
  width: 160px; 
  height: 160px; 
  border-radius: 50%;
  margin: 0 auto 28px;
  background: var(--navy-mid);
  border: 2px solid rgba(74, 122, 184, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px; /* Ícone interno maior */
  color: var(--silver-dim);
  overflow: hidden;
}

.speaker-name {
  font-size: 24px; /* Fonte aumentada */
  font-weight: 700;
  margin-bottom: 8px;
}

.speaker-role {
  font-size: 16px; /* Fonte aumentada */
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.speaker-topic {
  font-size: 17px; /* Fonte aumentada */
  color: rgba(192, 216, 238, .7);
  line-height: 1.5;
  font-style: italic;
}

/* ── TRILHAS ── */
#trilhas {
  padding: 100px 24px;
  background: var(--navy-deep);
}

.tracks-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.track-card {
  background: rgba(14, 30, 60, .5);
  border: 1px solid rgba(74, 122, 184, .18);
  border-radius: 10px;
  padding: 36px 28px;
  transition: border-color .25s, transform .2s;
}

.track-card:hover {
  border-color: rgba(74, 122, 184, .45);
  transform: translateY(-4px);
}

.track-icon {
  font-size: 36px;
  margin-bottom: 18px;
  display: block;
}

.track-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.track-desc {
  font-size: 14px;
  color: rgba(192, 216, 238, .7);
  line-height: 1.65;
}

/* ── LOCAL ── */
#local {
  padding: 100px 24px;
  background: linear-gradient(to bottom, var(--navy), var(--navy-deep));
}

.local-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}

.large-white-text {
  font-size: 22px !important;
  color: #ffffff !important;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 16px;
}

.local-info strong {
  color: var(--silver);
}

.local-details {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px; 
}

.local-details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px; 
  color: rgba(192, 216, 238, .75);
}

.local-details li .icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.white-text {
  color: #ffffff !important;
  font-size: 18px !important;
}

.map-container {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(74, 122, 184, .25);
  background: rgba(14, 30, 60, .6);
  aspect-ratio: 4/3;
  width: 100%;
}

/* ── INSCRIÇÃO FORMULÁRIO COMPLETO ── */
#inscricao {
  padding: 120px 24px;
  background: radial-gradient(ellipse at center, #0e2050 0%, var(--navy-deep) 70%);
  text-align: center;
}

#inscricao .section-title {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 20px;
}

.elegant-copy {
  font-size: 20px !important;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.9) !important;
  max-width: 750px !important;
  margin: 0 auto;
}

.registration-form {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.big-form {
  max-width: 950px !important; 
  padding: 40px;
  background: rgba(14, 30, 60, 0.4);
  border-radius: 20px;
  border: 1px solid rgba(74, 122, 184, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 15px;
  color: var(--silver-dim);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.form-group input,
.form-group select {
  font-size: 17px;
  padding: 18px;
  background: rgba(14, 30, 60, .8);
  border: 1px solid rgba(74, 122, 184, .3);
  border-radius: 4px;
  color: var(--white);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.form-group select option {
  background: var(--navy);
  color: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--blue-light);
}

.form-submit {
  width: 100%;
  padding: 18px;
  font-size: 16px;
  margin-bottom: 16px;
}

/* ── ESTADOS E ANIMAÇÕES DO FORMULÁRIO ── */
.btn-success {
  background: #28a745 !important;
  border-color: #218838 !important;
  color: #ffffff !important;
  transform: none !important; 
}

.form-animating-out {
  animation: slideUpFadeOut 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFadeOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-40px); display: none; }
}

.success-animating-in {
  display: block !important;
  animation: fadeInSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER SÓLIDO TOTALMENTE PRETO ── */
footer {
  padding: 60px 48px 36px;
  background: #000000 !important;
  border-top: none !important;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--silver-dim);
}

.footer-brand .brand-sub {
  font-size: 11px;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 13px;
  max-width: 260px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul a {
  text-decoration: none;
  font-size: 14px;
  transition: opacity .2s;
}

.footer-links ul a:hover {
  opacity: 0.7;
}

.footer-bottom {
  max-width: 1080px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 1px;
  flex-wrap: wrap;
  gap: 8px;
}

/* Força todas as cores de texto do footer para o branco */
.footer-brand .brand-sub,
.footer-brand p,
.footer-links h4,
.footer-links ul a,
.footer-bottom,
.footer-bottom span {
  color: #ffffff !important;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    display: none;
  }

  .about-grid,
  .local-grid,
  .apoio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .agenda-item {
    grid-template-columns: 80px 1fr;
  }
  
  .agenda-item:not(:last-child)::after {
    left: 80px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}