/* ==========================================================
   Missão 2030 - Landing Page
   Tema espacial: azul profundo + ciano + dourado
   ========================================================== */

:root {
  --m30-bg: #040915;
  --m30-bg-2: #081226;
  --m30-card: #0b1730;
  --m30-card-2: #0e1d3d;
  --m30-blue: #2f7bff;
  --m30-cyan: #4cc9f0;
  --m30-gold: #ffd60a;
  --m30-text: #e8eefc;
  --m30-muted: #9fb0d0;
  --m30-border: rgba(120, 170, 255, .18);
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; } /* espaço da barra de rolagem sempre reservado: o topo não se desloca entre abas */

body {
  background: var(--m30-bg);
  color: var(--m30-text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-display {
  font-family: "Exo 2", "Inter", sans-serif;
  font-weight: 800;
}

.text-cyan  { color: var(--m30-cyan) !important; }
.text-gold  { color: var(--m30-gold) !important; }
.text-muted-m30 { color: var(--m30-muted) !important; }

/* ---------- fundo estrelado ---------- */
.stars-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 20%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 80% 50%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 33% 8%, rgba(255,255,255,.6) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 70% 90%, rgba(255,255,255,.45) 50%, transparent 51%);
  background-size: 550px 550px;
  animation: twinkle 9s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .55; } to { opacity: 1; } }

/* ---------- navbar ---------- */
.navbar-m30 {
  background: rgba(4, 9, 21, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--m30-border);
  transition: background .3s;
}
.navbar-m30 .nav-link { color: var(--m30-muted); font-weight: 500; }
.navbar-m30 .nav-link:hover { color: var(--m30-cyan); }
.brand-logo {
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  letter-spacing: .5px;
  font-size: 1.25rem;
  color: #fff;
}
.brand-logo span { color: var(--m30-cyan); text-shadow: 0 0 18px rgba(76, 201, 240, .8); }

/* ---------- botões ---------- */
.btn-m30 {
  background: linear-gradient(135deg, #ffd60a, #ffb703);
  color: #1a1200;
  font-weight: 800;
  border: 0;
  border-radius: 50rem;
  padding: .85rem 2rem;
  box-shadow: 0 6px 26px rgba(255, 214, 10, .35);
  transition: transform .15s, box-shadow .15s;
}
.btn-m30:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 34px rgba(255, 214, 10, .5);
  color: #1a1200;
}
.btn-outline-m30 {
  border: 1px solid rgba(76, 201, 240, .6);
  color: var(--m30-cyan);
  border-radius: 50rem;
  padding: .85rem 2rem;
  font-weight: 600;
}
.btn-outline-m30:hover { background: rgba(76, 201, 240, .12); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(4,9,21,.55) 0%, rgba(4,9,21,.75) 60%, var(--m30-bg) 100%);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.05;
}
.hero h1 .glow {
  background: linear-gradient(90deg, #9bd8ff, #4cc9f0 40%, #2f7bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(76, 201, 240, .55));
}
.hero .lead { color: #cfe0ff; max-width: 640px; }
.hero-badges .badge {
  background: rgba(11, 23, 48, .75);
  border: 1px solid var(--m30-border);
  color: var(--m30-text);
  font-weight: 500;
  font-size: .9rem;
  padding: .6rem 1rem;
  border-radius: 50rem;
}
.hero-badges .badge i { color: var(--m30-gold); }

/* ---------- contador regressivo ---------- */
.countdown-box {
  display: inline-flex;
  gap: .75rem;
}
.countdown-box .unit {
  background: rgba(11, 23, 48, .85);
  border: 1px solid var(--m30-border);
  border-radius: .9rem;
  min-width: 74px;
  padding: .55rem .35rem;
  text-align: center;
}
.countdown-box .num {
  font-family: "Exo 2", sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--m30-gold);
  line-height: 1;
}
.countdown-box .lbl {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--m30-muted);
}

/* ---------- faixa de números ---------- */
.stats-band {
  background: linear-gradient(90deg, rgba(47,123,255,.14), rgba(76,201,240,.10));
  border-top: 1px solid var(--m30-border);
  border-bottom: 1px solid var(--m30-border);
}
.stat-num {
  font-family: "Exo 2", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 24px rgba(76, 201, 240, .45);
}
.stat-lbl { color: var(--m30-muted); font-size: .92rem; }

/* ---------- seções ---------- */
.section { padding: 5.5rem 0; }
.section-tag {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--m30-cyan);
  border: 1px solid rgba(76, 201, 240, .4);
  border-radius: 50rem;
  padding: .35rem 1rem;
  margin-bottom: 1rem;
}
/* Variante de linha unica, para a tag longa do hero (86 caracteres). O corpo
   acompanha a largura da tela para o texto nunca estourar a pilula, e o
   espacamento entre letras cede um pouco. Abaixo de 768px nao ha tamanho
   legivel que caiba: ali a quebra volta de proposito. */
.section-tag.tag-linha-unica {
  white-space: nowrap;
  letter-spacing: .12em;
  font-size: clamp(.52rem, 1.02vw, .8rem);
  max-width: 100%;
}
@media (max-width: 767.98px) {
  .section-tag.tag-linha-unica { white-space: normal; letter-spacing: .16em; font-size: .68rem; }
}
.section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section .section-sub { color: var(--m30-muted); max-width: 720px; margin: .75rem auto 0; }

.bg-deep { background: var(--m30-bg-2); }

/* ---------- cards genéricos ---------- */
.card-m30 {
  background: var(--m30-card);
  border: 1px solid var(--m30-border);
  border-radius: 1.1rem;
  color: var(--m30-text);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  height: 100%;
}
.card-m30:hover {
  transform: translateY(-6px);
  border-color: rgba(76, 201, 240, .55);
  box-shadow: 0 18px 44px rgba(0, 20, 60, .55);
}

/* ---------- encontros ---------- */
.encontro-card { cursor: pointer; position: relative; }
/* A moldura da imagem reserva a propria altura (as fotos sao todas 4:3). Sem
   isso, enquanto o lazy-load nao traz a imagem a div tem altura zero, o card
   encolhe e o numero -- que e absoluto no topo do card -- cai em cima do texto. */
.encontro-card .enc-img { aspect-ratio: 4 / 3; overflow: hidden; }
.encontro-card .enc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.encontro-card:hover img { transform: scale(1.04); }
.encontro-num {
  position: absolute;
  top: .8rem;
  left: .8rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  background: rgba(4, 9, 21, .8);
  border: 1px solid rgba(255, 214, 10, .7);
  color: var(--m30-gold);
  z-index: 2;
}
.encontro-card .card-body { padding: 1rem 1.15rem 1.25rem; }
.encontro-card .tema {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--m30-cyan);
}
.encontro-card .pergunta { color: var(--m30-muted); font-size: .93rem; }
.encontro-card .ver-mais {
  font-size: .8rem;
  color: var(--m30-gold);
  opacity: 0;
  transition: opacity .25s;
}
.encontro-card:hover .ver-mais { opacity: 1; }

/* modal dos encontros */
.modal-m30 .modal-content {
  background: var(--m30-card);
  border: 1px solid var(--m30-border);
  border-radius: 1.2rem;
  color: var(--m30-text);
}
.modal-m30 .btn-close { filter: invert(1); }
.peca-badge {
  background: rgba(255, 214, 10, .12);
  border: 1px solid rgba(255, 214, 10, .4);
  color: var(--m30-gold);
  border-radius: .6rem;
  font-size: .85rem;
  padding: .5rem .9rem;
  display: inline-block;
}

/* ---------- metodologia ---------- */
.step-card {
  background: var(--m30-card);
  border: 1px solid var(--m30-border);
  border-radius: 1rem;
  padding: 1.4rem 1.2rem;
  height: 100%;
  position: relative;
}
.step-card .step-n {
  font-family: "Exo 2", sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  color: rgba(76, 201, 240, .25);
  position: absolute;
  top: .4rem;
  right: .9rem;
  line-height: 1;
}
.step-card i { font-size: 1.6rem; color: var(--m30-cyan); }

/* ---------- vídeos ---------- */
.video-frame {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--m30-border);
  box-shadow: 0 16px 50px rgba(0, 10, 40, .6);
  background: #000;
}
.video-frame video { display: block; width: 100%; height: auto; }
.video-caption { color: var(--m30-muted); font-size: .9rem; }

/* ---------- bônus ---------- */
.bonus-tag {
  position: absolute;
  top: .9rem;
  right: .9rem;
  background: var(--m30-gold);
  color: #1a1200;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .1em;
  border-radius: 50rem;
  padding: .3rem .8rem;
  z-index: 2;
}
.bonus-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .9rem;
  background: rgba(76, 201, 240, .12);
  border: 1px solid rgba(76, 201, 240, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--m30-cyan);
}

/* ---------- depoimentos ---------- */
.quote-card {
  background: var(--m30-card);
  border: 1px solid var(--m30-border);
  border-left: 4px solid var(--m30-gold);
  border-radius: 1rem;
  padding: 1.6rem;
  height: 100%;
}
.quote-card .bi-quote { font-size: 2rem; color: var(--m30-gold); }
.quote-card p { color: #d7e2f8; font-size: .98rem; }
.quote-card .who { color: var(--m30-cyan); font-weight: 700; }
.quote-card .role { color: var(--m30-muted); font-size: .85rem; }

/* ---------- para quem é / não é ---------- */
.fit-card {
  border-radius: 1.1rem;
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--m30-border);
}
.fit-yes { background: linear-gradient(160deg, rgba(28, 200, 138, .08), var(--m30-card)); }
.fit-no  { background: linear-gradient(160deg, rgba(255, 90, 90, .07), var(--m30-card)); }
.fit-card li { margin-bottom: .9rem; color: #d7e2f8; }
.fit-yes li i { color: #2fe6a7; }
.fit-no  li i { color: #ff6b6b; }

/* ---------- cronograma ---------- */
.timeline { position: relative; margin-left: 1rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: .4rem;
  bottom: .4rem;
  width: 2px;
  background: linear-gradient(180deg, var(--m30-cyan), rgba(76,201,240,.1));
}
.timeline-item { position: relative; padding: 0 0 1.6rem 1.8rem; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: .35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--m30-bg);
  border: 3px solid var(--m30-cyan);
  box-shadow: 0 0 12px rgba(76, 201, 240, .8);
}
.timeline-item.gold::before { border-color: var(--m30-gold); box-shadow: 0 0 14px rgba(255,214,10,.8); }
.timeline-item .date { color: var(--m30-gold); font-weight: 700; font-family: "Exo 2", sans-serif; }
.timeline-item .desc { color: var(--m30-muted); font-size: .95rem; }

/* ---------- preço ---------- */
.price-card {
  background: linear-gradient(160deg, #0e1d3d, #0b1730 70%);
  border: 1px solid rgba(255, 214, 10, .45);
  border-radius: 1.4rem;
  box-shadow: 0 24px 70px rgba(0, 15, 50, .7), 0 0 40px rgba(255, 214, 10, .08);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -20%;
  width: 60%;
  height: 220%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.05), transparent);
  transform: rotate(18deg);
}
.price-value {
  font-family: "Exo 2", sans-serif;
  font-size: clamp(3.2rem, 8vw, 5rem);
  font-weight: 900;
  color: var(--m30-gold);
  text-shadow: 0 0 34px rgba(255, 214, 10, .4);
  line-height: 1;
}
.price-list li { padding: .45rem 0; color: #d7e2f8; }
.price-list li i { color: #2fe6a7; }

.pizza-note {
  background: rgba(255, 214, 10, .07);
  border: 1px dashed rgba(255, 214, 10, .4);
  border-radius: .9rem;
  color: #ffe98a;
  font-size: .95rem;
}

/* ---------- garantia ---------- */
.guarantee-box {
  background: linear-gradient(160deg, rgba(28, 200, 138, .1), var(--m30-card));
  border: 1px solid rgba(47, 230, 167, .4);
  border-radius: 1.3rem;
}
.guarantee-box .bi-shield-check { font-size: 3.4rem; color: #2fe6a7; }

/* ---------- FAQ ---------- */
.accordion-m30 .accordion-item {
  background: var(--m30-card);
  border: 1px solid var(--m30-border);
  color: var(--m30-text);
  border-radius: .9rem !important;
  margin-bottom: .8rem;
  overflow: hidden;
}
.accordion-m30 .accordion-button {
  background: transparent;
  color: var(--m30-text);
  font-weight: 600;
  box-shadow: none;
}
.accordion-m30 .accordion-button:not(.collapsed) { color: var(--m30-cyan); }
.accordion-m30 .accordion-button::after { filter: invert(.8) sepia(1) saturate(3) hue-rotate(160deg); }
.accordion-m30 .accordion-body { color: var(--m30-muted); }

/* ---------- mentor ---------- */
.mentor-photo {
  border-radius: 1.2rem;
  border: 1px solid var(--m30-border);
  box-shadow: 0 18px 50px rgba(0, 10, 40, .6);
}

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--m30-border);
  background: #030712;
  color: var(--m30-muted);
}
.footer a { color: var(--m30-cyan); text-decoration: none; }

/* ---------- CTA flutuante mobile ---------- */
.cta-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(4, 9, 21, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 214, 10, .35);
  padding: .6rem .9rem;
  display: none;
}
@media (max-width: 767.98px) {
  .cta-sticky { display: flex; align-items: center; gap: .8rem; }
  .cta-sticky .btn-m30 { padding: .6rem 1.2rem; font-size: .95rem; white-space: nowrap; }
}

/* ---------- animação fade-up ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

img { max-width: 100%; }

/* ---------- capa do vídeo do YouTube (facade) ---------- */
/* A capa e o botao ficam no lugar do iframe ate o clique. O iframe do YouTube
   pesa cerca de 1 MB de script; carregar isso em todo visitante, inclusive em
   quem nunca da play, custa tempo de carregamento numa pagina de vendas. */
.yt-facade {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: pointer;
  line-height: 0;
}
.yt-facade img { display: block; width: 100%; height: auto; }
.yt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(76, 201, 240, .92);
  color: #041225;
  font-size: 2.6rem;
  line-height: 84px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
  transition: transform .2s, background .2s;
}
.yt-facade:hover .yt-play,
.yt-facade:focus-visible .yt-play { transform: translate(-50%, -50%) scale(1.09); background: #fff; }
.yt-facade:focus-visible { outline: 2px solid var(--m30-gold); outline-offset: 3px; }
/* height:auto e obrigatorio: o YT.Player cria o iframe com atributo
   height="360", que deixa a altura definida e anula o aspect-ratio. */
.video-frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }

/* ==========================================================
   Hacklab Glina — acréscimos sobre o tema Missão 2030
   ========================================================== */
:root {
  --lv-1: #2fe6a7;   /* iniciante */
  --lv-2: #ffd60a;   /* intermediário */
  --lv-3: #ff6b6b;   /* avançado */
}
.hero-flat {
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(47,123,255,.22), transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(76,201,240,.16), transparent 60%),
    linear-gradient(180deg, var(--m30-bg-2) 0%, var(--m30-bg) 100%);
  min-height: 62vh;
}
.draft-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,107,107,.10); border: 1px dashed rgba(255,107,107,.55); color: #ffb3b3;
  border-radius: .6rem; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .8rem;
}
.lvl {
  display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border-radius: .35rem; padding: .2rem .5rem; border: 1px solid transparent;
}
.lvl-1 { color: var(--lv-1); background: rgba(47,230,167,.10); border-color: rgba(47,230,167,.45); }
.lvl-2 { color: var(--lv-2); background: rgba(255,214,10,.10); border-color: rgba(255,214,10,.45); }
.lvl-3 { color: var(--lv-3); background: rgba(255,107,107,.10); border-color: rgba(255,107,107,.45); }
.lvl-dim { opacity: .3; }
.tag-subj {
  display: inline-block; font-size: .68rem; font-weight: 600; border-radius: .3rem; padding: .18rem .5rem;
  background: rgba(76,201,240,.10); border: 1px solid rgba(76,201,240,.3); color: #9bd8ff; margin: 0 .3rem .3rem 0;
}
.tag-subj.chain { background: rgba(255,214,10,.10); border-color: rgba(255,214,10,.4); color: #ffe98a; }
.perfil-chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--m30-muted); }
.perfil-chip i { color: var(--m30-gold); }
.dif-scale { display: inline-flex; gap: 3px; align-items: center; }
.dif-scale span { width: 14px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.12); }
.dif-scale span.on-1 { background: var(--lv-1); }
.dif-scale span.on-2 { background: var(--lv-2); }
.dif-scale span.on-3 { background: var(--lv-3); }

.desafio-card { cursor: pointer; position: relative; display: flex; flex-direction: column; }
.desafio-card .enc-img {
  aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(47,123,255,.35), rgba(76,201,240,.12) 60%, rgba(255,214,10,.10));
  border-bottom: 1px solid var(--m30-border);
}
.desafio-card .enc-img i { font-size: 3rem; color: var(--m30-cyan); filter: drop-shadow(0 0 18px rgba(76,201,240,.6)); }
.desafio-card .card-body { padding: 1rem 1.15rem 1.25rem; display: flex; flex-direction: column; flex-grow: 1; }
.desafio-card .tema { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--m30-cyan); }
.desafio-card h5 { font-size: 1.08rem; line-height: 1.3; }
.desafio-card .pergunta { color: var(--m30-muted); font-size: .92rem; }
.desafio-card .ver-mais { font-size: .8rem; color: var(--m30-gold); opacity: 0; transition: opacity .25s; margin-top: auto; padding-top: .8rem; }
.desafio-card:hover .ver-mais { opacity: 1; }
.desafio-card .chips-top { position: absolute; top: .8rem; right: .8rem; z-index: 2; text-align: right; }

.filtro-btn {
  border: 1px solid var(--m30-border); background: rgba(11,23,48,.6); color: var(--m30-muted);
  border-radius: 50rem; padding: .45rem 1.05rem; font-size: .85rem; font-weight: 600; transition: all .2s;
}
.filtro-btn:hover { color: #fff; border-color: rgba(76,201,240,.5); }
.filtro-btn.active { background: rgba(76,201,240,.14); color: var(--m30-cyan); border-color: rgba(76,201,240,.6); }

.modal-m30 h6.bloco { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--m30-cyan); margin: 1.4rem 0 .5rem; font-weight: 800; }
.modal-m30 .modal-body p, .modal-m30 .modal-body li { color: #d7e2f8; font-size: .96rem; }
.modal-m30 .modal-body ul { padding-left: 1.2rem; }
.modal-m30 .modal-body li { margin-bottom: .35rem; }
.modal-m30 .meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;
  padding: 1rem 1.1rem; background: rgba(4,9,21,.55); border: 1px solid var(--m30-border); border-radius: .9rem;
}
.modal-m30 .meta-grid .k { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--m30-muted); margin-bottom: .35rem; }
.entrega-tier { border: 1px solid var(--m30-border); border-left: 3px solid var(--lv-1); border-radius: .7rem; padding: .8rem 1rem; margin-bottom: .6rem; background: rgba(4,9,21,.4); }
.entrega-tier .t { font-weight: 700; color: #fff; font-size: .9rem; }
.entrega-tier.t2 { border-left-color: var(--lv-2); }
.entrega-tier.t3 { border-left-color: var(--lv-3); }
.modal-m30 a { color: var(--m30-cyan); }
.ref-hack { background: rgba(255,214,10,.06); border: 1px dashed rgba(255,214,10,.35); border-radius: .8rem; padding: .9rem 1rem; }
.ref-hack .t { color: var(--m30-gold); font-weight: 700; font-size: .85rem; }

/* ---------- card horizontal (formato NASA Space Apps) ---------- */
.desafio-h { flex-direction: row; align-items: stretch; }
.desafio-h .dh-img { flex: 0 0 320px; background: #040915; display: flex; align-items: stretch; }
.desafio-h .dh-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.desafio-h:hover .dh-img img { transform: scale(1.03); }
.desafio-h .dh-body { padding: 1.4rem 1.6rem 1.3rem; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.desafio-h .dh-title { font-size: 1.45rem; color: var(--m30-gold); margin-bottom: .9rem; line-height: 1.25; }
.desafio-h .dh-meta { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 1rem; }
.desafio-h .dh-col { padding: 0 1.2rem 0 0; margin-right: 1.2rem; border-right: 1px solid var(--m30-border); }
.desafio-h .dh-col:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.desafio-h .dh-col-tags { flex: 1 1 260px; }
.desafio-h .dh-k { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: .4rem; }
.desafio-h .lvl { display: block; width: max-content; margin-bottom: .3rem; }
.desafio-h .dh-resumo { color: #d7e2f8; font-size: 1rem; line-height: 1.6; margin-bottom: .4rem; }
.desafio-h .ver-mais { margin-top: auto; }
@media (max-width: 767.98px) {
  .desafio-h { flex-direction: column; }
  .desafio-h .dh-img { flex-basis: auto; aspect-ratio: 4 / 3; }
  .desafio-h .dh-col { border-right: 0; margin-right: 0; padding-right: 0; margin-bottom: .8rem; flex: 1 1 100%; }
}
.desafio-h .dh-num { top: 1rem; left: 1rem; width: 2.6rem; height: 2.6rem; font-size: 1.1rem; box-shadow: 0 4px 14px rgba(0,0,0,.5); }

/* ---------- marca maior no topo ---------- */
.brand-logo { font-size: 1.35rem; }

/* ---------- switch sol / lua ---------- */
.theme-switch { position: relative; width: 66px; height: 34px; border-radius: 50rem; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(90deg, #ffd60a, #ffb703); transition: background .3s; }
html[data-theme="dark"] .theme-switch { background: linear-gradient(90deg, #1b2a4a, #0b1730); box-shadow: inset 0 0 0 1px rgba(120,170,255,.35); }
.theme-switch .knob { position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #b8860b; transition: transform .3s, color .3s;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); }
html[data-theme="dark"] .theme-switch .knob { transform: translateX(32px); color: #1b2a4a; }
.theme-switch .knob .bi-sun-fill { display: inline; }
.theme-switch .knob .bi-moon-stars-fill { display: none; }
html[data-theme="dark"] .theme-switch .knob .bi-sun-fill { display: none; }
html[data-theme="dark"] .theme-switch .knob .bi-moon-stars-fill { display: inline; }
.theme-switch .bg-icon { position: absolute; top: 50%; transform: translateY(-50%); font-size: .85rem; opacity: .8; }
.theme-switch .bg-icon.moon { right: 9px; color: #7a5a00; }
.theme-switch .bg-icon.sun { left: 9px; color: #9bd8ff; }
html[data-theme="light"] .theme-switch .bg-icon.sun { display: none; }
html[data-theme="dark"] .theme-switch .bg-icon.moon { display: none; }
.theme-switch:focus-visible { outline: 2px solid var(--m30-cyan); outline-offset: 3px; }

/* ---------- modo claro ---------- */
html[data-theme="light"] {
  --m30-bg: #f4f6fb;
  --m30-bg-2: #eef2f9;
  --m30-card: #ffffff;
  --m30-card-2: #f4f6fb;
  --m30-cyan: #0b6fa8;
  --m30-text: #101828;
  --m30-muted: #5b6b85;
  --m30-border: rgba(16, 24, 40, .12);
}
html[data-theme="light"] .stars-layer { display: none; }
html[data-theme="light"] .navbar-m30 { background: rgba(255,255,255,.9); border-bottom: 1px solid rgba(0,0,0,.08); }
html[data-theme="light"] .brand-logo { color: #101828; }
html[data-theme="light"] .brand-logo span { text-shadow: none; }
html[data-theme="light"] .card-m30:hover { box-shadow: 0 18px 44px rgba(16, 24, 40, .12); }
html[data-theme="light"] .desafio-h .dh-k { color: #101828; }
html[data-theme="light"] .desafio-h .dh-title { color: #8a5a00; }
html[data-theme="light"] .desafio-h .dh-resumo { color: #344054; }
html[data-theme="light"] .desafio-h .dh-img { background: #eef2f9; }
html[data-theme="light"] .encontro-num { background: #fff; color: #8a5a00; border-color: #d9a400; }
html[data-theme="light"] .tag-subj { background: rgba(11,111,168,.08); border-color: rgba(11,111,168,.3); color: #0b6fa8; }
html[data-theme="light"] .lvl-1 { color: #0d8a5f; background: rgba(13,138,95,.08); border-color: rgba(13,138,95,.4); }
html[data-theme="light"] .lvl-2 { color: #8a5a00; background: rgba(217,164,0,.10); border-color: rgba(217,164,0,.5); }
html[data-theme="light"] .lvl-3 { color: #b42318; background: rgba(180,35,24,.08); border-color: rgba(180,35,24,.4); }
html[data-theme="light"] .filtro-btn { background: #fff; }
html[data-theme="light"] .filtro-btn.active { background: rgba(11,111,168,.10); }
html[data-theme="light"] .desafio-h .ver-mais { color: #8a5a00; }
html[data-theme="light"] .modal-m30 .btn-close { filter: none; }
html[data-theme="light"] .modal-m30 .modal-body p, html[data-theme="light"] .modal-m30 .modal-body li { color: #344054; }
html[data-theme="light"] .modal-m30 .meta-grid { background: #f4f6fb; }
html[data-theme="light"] .modal-m30 .text-white, html[data-theme="light"] .entrega-tier .t { color: #101828 !important; }
html[data-theme="light"] .entrega-tier { background: #f4f6fb; }
html[data-theme="light"] .ref-hack { background: rgba(217,164,0,.08); }
html[data-theme="light"] .ref-hack .t { color: #8a5a00; }
html[data-theme="light"] .btn-outline-m30 { color: #0b6fa8; border-color: rgba(11,111,168,.6); }
html[data-theme="light"] .btn-outline-m30:hover { background: rgba(11,111,168,.1); color: #101828; }

/* ---------- fonte maior (mesmo padrão do hackathons.html) ---------- */
html { font-size: 18px; }
.desafio-h .dh-title { font-size: 1.6rem; }
.desafio-h .dh-resumo { font-size: 1.05rem; line-height: 1.65; }
.desafio-h .dh-k { font-size: .78rem; }
.tag-subj { font-size: .78rem; }
.lvl { font-size: .74rem; }
.perfil-chip { font-size: .85rem; }
.filtro-btn { font-size: .95rem; }

/* ---------- detalhe embaixo do card ---------- */
.desafio-h .ver-mais { opacity: 1; font-size: .95rem; font-weight: 600; margin-top: .6rem; }
.desafio-h .ver-mais .fechar { display: none; }
.desafio-h.open .ver-mais .abrir { display: none; }
.desafio-h.open .ver-mais .fechar { display: inline; }
.dh-detalhe { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--m30-border); cursor: auto; }
.dh-detalhe h6.bloco { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--m30-cyan); margin: 1.3rem 0 .5rem; font-weight: 800; }
.dh-detalhe p, .dh-detalhe li { color: #d7e2f8; font-size: 1.02rem; line-height: 1.6; }
.dh-detalhe ul { padding-left: 1.2rem; }
.dh-detalhe li { margin-bottom: .35rem; }
.dh-detalhe .meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding: 1rem 1.1rem; background: rgba(4,9,21,.55); border: 1px solid var(--m30-border); border-radius: .9rem; }
.dh-detalhe .meta-grid .k { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--m30-muted); margin-bottom: .35rem; }
.dh-detalhe .entrega-tier { font-size: 1rem; }
.dh-detalhe .entrega-tier .t { font-size: 1rem; }
html[data-theme="light"] .dh-detalhe p, html[data-theme="light"] .dh-detalhe li { color: #344054; }
html[data-theme="light"] .dh-detalhe .meta-grid { background: #f4f6fb; }
html[data-theme="light"] .dh-detalhe .text-white { color: #101828 !important; }
html[data-theme="light"] .dh-detalhe .entrega-tier .t { color: #101828; }
/* card aberto: a imagem fica no topo, sem esticar até o fim do detalhe */
.desafio-h.open .dh-img { align-self: flex-start; aspect-ratio: 4 / 3; }
.desafio-h.open .dh-img img { height: 100%; }

/* ---------- mais largura em telas grandes (igual ao hackathons.html) ---------- */
@media (min-width: 1400px) { .container { max-width: 1440px; } }

/* ---------- imagem do card: sempre inteira e do mesmo tamanho ---------- */
.desafio-h .dh-img, .desafio-h.open .dh-img { flex: 0 0 320px; align-self: flex-start; aspect-ratio: 4 / 3; background: transparent; display: block; }
.desafio-h .dh-img img, .desafio-h.open .dh-img img { width: 100%; height: 100%; object-fit: contain; display: block; transform: none; }
.desafio-h:hover .dh-img img { transform: none; }
@media (max-width: 767.98px) { .desafio-h .dh-img, .desafio-h.open .dh-img { flex-basis: auto; width: 100%; } }

/* subtítulo em duas linhas */
#desafios .section-sub { max-width: 1000px; }

/* subtítulo do card (desafios v4) */
.desafio-h .dh-sub { color: var(--m30-cyan); font-weight: 600; font-size: 1.05rem; margin: -.4rem 0 .9rem; }

/* clique só na imagem e no "Ver o desafio completo" */
.desafio-card { cursor: default; }
.desafio-h .dh-img, .desafio-h .ver-mais { cursor: pointer; }
.desafio-h .ver-mais:hover { text-decoration: underline; }

/* ---------- títulos das seções do detalhe como etiquetas ---------- */
.dh-detalhe h6.bloco {
  display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800;
  color: #1a1200; background: linear-gradient(135deg, #ffe47a, #ffb703);
  border: 0; border-radius: 50rem; padding: .38rem 1rem; margin: 1.5rem 0 .7rem;
  box-shadow: 0 4px 14px rgba(255, 214, 10, .18);
}
html[data-theme="light"] .dh-detalhe h6.bloco { color: #1a1200; background: linear-gradient(135deg, #ffd60a, #f2b84b); box-shadow: none; }

/* ---------- switch + botão expandir, empilhados à direita ---------- */
.nav-tools { display: flex; flex-direction: row; align-items: center; gap: .8rem; }
.btn-expandir { padding: .3rem .9rem; font-size: .8rem; white-space: nowrap; }
/* telas estreitas: o botão Expandir fica só com o ícone */
@media (max-width: 991.98px) {
  .btn-expandir { padding: .3rem .6rem; }
  .btn-expandir span { display: none; }
  .btn-expandir i { margin-right: 0 !important; }
}
.navbar-m30 .container { align-items: center; }

/* filtro selecionado bem mais visível */
.filtro-btn.active {
  background: linear-gradient(135deg, #ffd60a, #ffb703);
  color: #1a1200;
  border-color: #ffd60a;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(255, 214, 10, .35);
}
.filtro-btn.active .bi-circle-fill { color: #1a1200 !important; }
html[data-theme="light"] .filtro-btn.active { box-shadow: 0 4px 14px rgba(255, 214, 10, .35); }

/* ---------- abas Desafios / Distribuição ---------- */
.abas { display: inline-flex; background: rgba(11,23,48,.7); border: 1px solid var(--m30-border); border-radius: 50rem; padding: .25rem; gap: .25rem; margin-left: 1.2rem; }
.aba-btn { border: 0; background: transparent; color: var(--m30-muted); font-weight: 700; font-size: .9rem; border-radius: 50rem; padding: .4rem 1.1rem; }
.aba-btn.active { background: linear-gradient(135deg, #ffd60a, #ffb703); color: #1a1200; }
html[data-theme="light"] .abas { background: #fff; }
.navbar-m30 .container { flex-wrap: nowrap; }
.navbar-m30 .navbar-brand { margin-right: 0; }
.navbar-m30 .abas { margin-right: auto; }
.table-dist { --bs-table-bg: transparent; --bs-table-color: var(--m30-text); --bs-table-border-color: var(--m30-border); font-size: .98rem; }
.table-dist th { color: var(--m30-cyan); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; padding: 1rem .9rem; white-space: nowrap; }
.table-dist td { padding: .9rem .9rem; vertical-align: middle; }
.table-dist td:nth-child(2) { color: #fff; }
.dist-lista { padding-left: 1.1rem; margin: 0; }
.dist-lista li { margin-bottom: .55rem; color: #d7e2f8; }
html[data-theme="light"] .dist-lista li { color: #344054; }
html[data-theme="light"] .table-dist td:nth-child(2) { color: #101828; }
@media (max-width: 767.98px) { .abas { margin-left: .5rem; } .aba-btn { padding: .35rem .7rem; font-size: .8rem; } }

/* bolinha dos filtros centralizada verticalmente */
.filtro-btn { display: inline-flex; align-items: center; gap: .4rem; }
.filtro-btn .bi-circle-fill { display: inline-block; line-height: 1; vertical-align: middle; position: relative; top: 0; margin-right: 0 !important; }
.table-dist .lina-col i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--lv-1); color: #fff; font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 3px 10px rgba(47, 230, 167, .35);
}

/* regra comum a todos os times */
.regra-times { display: flex; gap: .9rem; align-items: flex-start; background: rgba(255,214,10,.07); border: 1px solid rgba(255,214,10,.35); border-radius: 1rem; padding: 1rem 1.2rem; color: #ffe98a; font-size: .95rem; line-height: 1.55; }
.regra-times i { font-size: 1.5rem; color: var(--m30-gold); flex-shrink: 0; }
.regra-times strong { color: #fff; }
html[data-theme="light"] .regra-times { background: rgba(217,164,0,.08); color: #5a4300; }
html[data-theme="light"] .regra-times strong { color: #101828; }

/* tags de solução (dourado claro) ao lado dos perfis */
.tag-subj.tag-sol { background: rgba(255,214,10,.10); border-color: rgba(255,214,10,.4); color: #ffe98a; }
html[data-theme="light"] .tag-subj.tag-sol { background: rgba(217,164,0,.10); border-color: rgba(217,164,0,.5); color: #7a5a00; }

/* destaques no resumo, problema e missão */
.dh-resumo .hl, .dh-detalhe .hl { color: #ffe98a; font-weight: 700; }
html[data-theme="light"] .dh-resumo .hl, html[data-theme="light"] .dh-detalhe .hl { color: #8a5a00; }

/* caixa do cenário (como funcionam as cotas) */
.cenario-box { background: var(--m30-card); border: 1px solid var(--m30-border); border-left: 4px solid var(--m30-cyan); border-radius: 1rem; padding: 1.2rem 1.4rem; }
.cenario-box .cenario-t { font-family: "Exo 2", sans-serif; font-weight: 800; color: var(--m30-cyan); font-size: 1.05rem; margin-bottom: .6rem; }
.cenario-box p { color: #d7e2f8; font-size: 1rem; line-height: 1.6; margin-bottom: .5rem; }
.cenario-box strong { color: #ffe98a; }
html[data-theme="light"] .cenario-box p { color: #344054; }
html[data-theme="light"] .cenario-box strong { color: #8a5a00; }

/* ---------- FAQ ---------- */
.filtros-linha { position: relative; padding-right: 7rem; padding-left: 7rem; }
.filtro-faq { position: absolute; right: 0; top: 0; }
@media (max-width: 767.98px) { .filtros-linha { padding: 0; } .filtro-faq { position: static; } }
.faq-item + .faq-item { margin-top: 1rem; }
.faq-item { background: var(--m30-card); border: 1px solid var(--m30-border); border-left: 4px solid var(--m30-cyan); border-radius: 1rem; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: transparent; border: 0; text-align: left;
  padding: 1rem 1.3rem; font-family: "Exo 2", sans-serif; font-weight: 800; font-size: 1.1rem; color: var(--m30-cyan); cursor: pointer; }
.faq-q .faq-seta { color: var(--m30-gold); transition: transform .25s; font-size: 1rem; }
.faq-item.open .faq-q .faq-seta { transform: rotate(180deg); }
.faq-a { padding: 0 1.3rem 1.1rem; }
.faq-a p { color: #d7e2f8; font-size: 1rem; line-height: 1.6; margin-bottom: .5rem; }
.faq-a strong { color: #ffe98a; }
html[data-theme="light"] .faq-a p { color: #344054; }
html[data-theme="light"] .faq-a strong { color: #8a5a00; }

/* ---------- gráficos da aba Distribuição ---------- */
:root {
  --gr-bc-1: #9ad8ff; --gr-bc-2: #3d8bff; --gr-bc-3: #1d5fd6; --gr-bc-0: #5a6785;   /* blockchain: central, opcional, conceitual, não */
  --gr-lv-1: var(--lv-1); --gr-lv-2: var(--lv-2); --gr-lv-3: var(--lv-3);            /* níveis: mesmas cores das etiquetas */
  --gr-track: rgba(120, 170, 255, .14);
}
html[data-theme="light"] {
  --gr-bc-1: #0a4d78; --gr-bc-2: #2f7bff; --gr-bc-3: #7fb4f2; --gr-bc-0: #8b97ad;
  --gr-lv-1: #0d8a5f; --gr-lv-2: #d9a400; --gr-lv-3: #b42318;
  --gr-track: rgba(16, 24, 40, .08);
}
.grafico-card { position: relative; height: 100%; }
.grafico-card:hover { transform: none; box-shadow: none; border-color: var(--m30-border); }
.grafico-titulo { color: var(--m30-cyan); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: .25rem; }
.grafico-sub { color: var(--m30-muted); font-size: .92rem; margin-bottom: 1rem; }
.donut-wrap { display: flex; align-items: flex-start; gap: 1.25rem; flex-wrap: wrap; } /* donut no topo: mesma posição nos dois cards */
.donut-svg { width: 168px; height: 168px; flex: 0 0 auto; overflow: visible; }
.donut-svg path { cursor: pointer; transition: opacity .2s, transform .2s; transform-origin: 50% 50%; }
.donut-svg.has-hover path:not(.hover) { opacity: .35; }
.donut-svg path.hover { transform: scale(1.04); }
.donut-centro-n { font-family: "Exo 2", "Inter", sans-serif; font-weight: 800; font-size: 2.1rem; fill: var(--m30-text); }
.donut-centro-t { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; fill: var(--m30-muted); }
.legenda { list-style: none; margin: 0; padding: 0; flex: 1 1 140px; min-width: 140px; }
.legenda li { display: flex; align-items: baseline; gap: .55rem; padding: .3rem .4rem; border-radius: .5rem; cursor: pointer; line-height: 1.3; }
.legenda li:hover, .legenda li.hover { background: var(--gr-track); }
.legenda .ponto { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; transform: translateY(1px); }
.legenda .rot { flex: 1 1 auto; font-size: .95rem; }
.legenda .rot small { display: block; color: var(--m30-muted); font-size: .8rem; }
.legenda .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.graf-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--m30-card-2); border: 1px solid var(--m30-border); color: var(--m30-text); border-radius: .6rem; padding: .5rem .7rem; font-size: .85rem; line-height: 1.35; max-width: 260px; box-shadow: 0 10px 30px rgba(0, 10, 40, .35); opacity: 0; transition: opacity .15s; }
.graf-tip.on { opacity: 1; }
.graf-tip b { display: block; }
.graf-tip span { color: var(--m30-muted); }
/* indicador da Lina */
.stat-n { font-family: "Exo 2", "Inter", sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--m30-gold); }
.stat-n small { font-size: 1.1rem; color: var(--m30-muted); font-weight: 600; margin-left: .3rem; }
.stat-t { color: var(--m30-text); font-size: 1rem; margin: .35rem 0 1rem; }
.meter { height: 10px; border-radius: 4px; background: var(--gr-track); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 4px; background: var(--m30-gold); }
.meter-rot { display: flex; justify-content: space-between; color: var(--m30-muted); font-size: .8rem; margin-top: .4rem; }
html[data-theme="light"] .stat-n { color: #8a5a00; }
html[data-theme="light"] .meter > span { background: #d9a400; }
/* barras de perfis */
.barras { display: grid; grid-template-columns: minmax(96px, max-content) 1fr 2ch; gap: .45rem .8rem; align-items: center; }
.barras .b-rot { font-size: .92rem; white-space: nowrap; }
.barras .b-tr { height: 10px; border-radius: 4px; background: var(--gr-track); position: relative; cursor: pointer; }
.barras .b-tr > span { position: absolute; left: 0; top: 0; height: 100%; border-radius: 0 4px 4px 0; background: var(--m30-cyan); transition: opacity .2s; }
.barras .b-val { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.barras.has-hover .b-tr:not(.hover) > span { opacity: .35; }
@media (max-width: 575.98px) { .donut-wrap { justify-content: center; } .barras { grid-template-columns: minmax(80px, max-content) 1fr 2ch; } .barras .b-rot { font-size: .85rem; white-space: normal; } }
