/* ============================================================
   ACADEMIA TECHBIZ — Trilhas de Conhecimento
   Paleta: #8790BC (roxo) · #F0EDE7 (claro) · #1E1D2B (escuro)
   ============================================================ */

:root {
  --roxo: #8790BC;
  --roxo-claro: #A9B0D4;
  --roxo-escuro: #6B72A0;
  --claro: #F0EDE7;
  --escuro: #1E1D2B;
  --painel-escuro: #26253A;
  --painel-escuro-2: #302F49;
  --linha-clara: rgba(240, 237, 231, 0.14);
  --texto-claro: #F0EDE7;
  --texto-claro-muted: rgba(240, 237, 231, 0.62);
  --texto-escuro: #1E1D2B;
  --texto-escuro-muted: rgba(30, 29, 43, 0.6);
  --sombra: 0 20px 50px rgba(30, 29, 43, 0.35);
  --radius: 18px;
  --ff-display: "Chakra Petch", "Inter", sans-serif;
  --ff-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--claro);
  color: var(--texto-escuro);
  font-family: var(--ff-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-family: var(--ff-display);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--roxo);
  font-weight: 600;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------- Hex pattern helpers ---------------- */

.hex-bg-dark {
  background-color: var(--escuro);
  background-image:
    linear-gradient(rgba(30,29,43,0.86), rgba(30,29,43,0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 0 60 0 90 0 120 30 120 74 90 104 60 104 30 104 0 74 0 30Z' fill='none' stroke='%238790BC' stroke-opacity='0.16' stroke-width='1'/%3E%3Cpath d='M0 52 30 52M120 52 90 52' stroke='%238790BC' stroke-opacity='0.16' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 100% 100%, 120px 104px;
}

.hex-bg-light {
  background-color: var(--claro);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cpath d='M30 0 60 0 90 0 120 30 120 74 90 104 60 104 30 104 0 74 0 30Z' fill='none' stroke='%231E1D2B' stroke-opacity='0.06' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 120px 104px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: rgba(30, 29, 43, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linha-clara);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--texto-claro);
}

.brand img { height: 30px; width: auto; }

.brand-word {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.brand-word span { display: block; font-size: 0.62rem; letter-spacing: 0.24em; color: var(--roxo-claro); text-transform: uppercase; }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--roxo);
  color: var(--texto-claro);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta:hover { background: var(--roxo); transform: translateY(-1px); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  color: var(--texto-claro);
  padding: 110px 0 130px;
  overflow: hidden;
}

.hero .container { position: relative; z-index: 2; }

.hero-hex-cluster {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-hex-cluster svg { position: absolute; opacity: 0.5; }
.hero-hex-cluster .h1 { top: -60px; right: -80px; width: 420px; animation: float 14s ease-in-out infinite; }
.hero-hex-cluster .h2 { bottom: -120px; left: -100px; width: 380px; animation: float 18s ease-in-out infinite reverse; }
.hero-hex-cluster .h3 { top: 40%; right: 18%; width: 140px; opacity: 0.25; animation: float 10s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(4deg); }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 780px;
  margin: 18px 0 22px;
}
.hero-title em { font-style: normal; color: var(--roxo-claro); }

.hero-sub {
  max-width: 560px;
  font-size: 1.08rem;
  color: var(--texto-claro-muted);
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
}
.hero-stats .stat-num {
  font-family: var(--ff-display);
  font-size: 2.1rem;
  color: var(--texto-claro);
}
.hero-stats .stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texto-claro-muted);
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--texto-claro-muted);
  z-index: 2;
}
.scroll-cue .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--roxo-claro); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ---------------- Section shell ---------------- */

.section { padding: 90px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 8px; }
.section-desc { max-width: 480px; color: var(--texto-escuro-muted); font-size: 0.98rem; }

/* ---------------- Carousel (trilhas) ---------------- */

.carousel-wrap { position: relative; }

.carousel-controls { display: flex; gap: 10px; }
.car-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(30,29,43,0.18);
  background: var(--claro);
  color: var(--escuro);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
.car-btn:hover { background: var(--escuro); color: var(--texto-claro); border-color: var(--escuro); }
.car-btn:disabled { opacity: 0.3; cursor: default; }
.car-btn:disabled:hover { background: var(--claro); color: var(--escuro); }

.trilhas-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
  margin: 0 -6px;
  scrollbar-width: none;
}
.trilhas-track::-webkit-scrollbar { display: none; }

.trilha-card {
  scroll-snap-align: start;
  flex: 0 0 300px;
  background: var(--escuro);
  color: var(--texto-claro);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease;
  text-align: left;
}
.trilha-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='78' viewBox='0 0 90 78'%3E%3Cpath d='M22 0 45 0 68 0 90 22 90 56 68 78 45 78 22 78 0 56 0 22Z' fill='none' stroke='%238790BC' stroke-opacity='0.2' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 90px 78px;
  opacity: 0.7;
}
.trilha-card > * { position: relative; z-index: 1; }
.trilha-card:hover { transform: translateY(-4px); }
.trilha-card.is-active { border-color: var(--roxo); background: var(--painel-escuro); }

.trilha-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(135,144,188,0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--roxo-claro);
  margin-bottom: 18px;
}
.trilha-icon svg { width: 26px; height: 26px; }

.trilha-group-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--roxo-claro);
  margin-bottom: 6px;
}

.trilha-card h3 { font-size: 1.18rem; margin-bottom: 10px; line-height: 1.25; }
.trilha-cert { font-size: 0.85rem; color: var(--texto-claro-muted); margin-bottom: 18px; min-height: 42px; }

.trilha-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: var(--roxo-claro);
  border-top: 1px solid var(--linha-clara);
  padding-top: 14px;
}

/* ---------------- Jornada (cursos dentro da trilha) ---------------- */

.jornada {
  margin-top: 26px;
  background: var(--escuro);
  border-radius: 24px;
  padding: 40px clamp(20px, 4vw, 48px) 48px;
  color: var(--texto-claro);
  display: none;
}
.jornada.is-open { display: block; }

.jornada-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.jornada-head h3 { font-size: 1.5rem; }
.jornada-head .trilha-cert { color: var(--roxo-claro); margin-bottom: 0; min-height: 0; }

.jornada-obs {
  margin-top: 14px;
  padding: 12px 16px;
  border: 1px dashed rgba(240,237,231,0.28);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--texto-claro-muted);
}

.path-track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding: 34px 4px 10px;
  scrollbar-width: thin;
}

.path-node {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 148px;
  text-align: center;
  position: relative;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

.path-node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: calc(50% + 34px);
  width: calc(148px - 34px);
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(135,144,188,0.5) 0 6px, transparent 6px 12px);
}

.hex {
  width: 62px; height: 62px;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  background: var(--painel-escuro-2);
  border: 1.5px solid rgba(135,144,188,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--roxo-claro);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hex svg { width: 24px; height: 24px; }
.path-node.has-content .hex { background: var(--roxo); color: var(--escuro); border-color: var(--roxo); }
.path-node.is-cert .hex { background: transparent; border-color: var(--roxo-claro); color: var(--roxo-claro); }
.path-node:hover .hex { transform: translateY(-3px) scale(1.05); }

.path-node span.node-label {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--texto-claro);
}
.path-node .node-status {
  margin-top: 4px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texto-claro-muted);
}
.path-node.has-content .node-status { color: var(--roxo-claro); }

/* ---------------- Modal curso ---------------- */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 14, 22, 0.72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
}
.modal-overlay.is-open { display: flex; }

.modal-card {
  background: var(--claro);
  color: var(--texto-escuro);
  border-radius: 22px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--sombra);
}

.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(30,29,43,0.08);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}
.modal-close:hover { background: rgba(30,29,43,0.16); }

.modal-cover {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 22px 22px 0 0;
  overflow: hidden;
  position: relative;
  background: var(--escuro);
}
.modal-cover img { width: 100%; height: 100%; object-fit: cover; }
.modal-cover .cover-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--roxo-claro);
}
.modal-cover .cover-fallback svg { width: 64px; height: 64px; opacity: 0.5; }

.modal-body { padding: 30px 34px 38px; }
.modal-eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.modal-body h2 { font-size: 1.7rem; margin: 10px 0 16px; line-height: 1.2; }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(135,144,188,0.14);
  color: var(--roxo-escuro);
}
.badge.is-empty {
  background: transparent;
  border: 1px dashed rgba(30,29,43,0.28);
  color: var(--texto-escuro-muted);
  font-weight: 500;
}

.modal-desc { font-size: 0.96rem; color: var(--texto-escuro-muted); margin-bottom: 26px; }

.plano-title { font-size: 1.02rem; margin-bottom: 14px; }

.modulo {
  border: 1px solid rgba(30,29,43,0.12);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.modulo-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: rgba(240,237,231,0.6);
  border: none;
  font-family: var(--ff-display);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
}
.modulo-head svg { width: 16px; height: 16px; transition: transform 0.2s ease; flex-shrink: 0; }
.modulo.is-open .modulo-head svg { transform: rotate(180deg); }
.modulo-body { display: none; padding: 14px 20px 18px; }
.modulo.is-open .modulo-body { display: block; }
.modulo-body ul { margin: 0; padding-left: 18px; }
.modulo-body li { margin-bottom: 6px; font-size: 0.92rem; }

.plano-vazio {
  border: 1px dashed rgba(30,29,43,0.25);
  border-radius: 14px;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--texto-escuro-muted);
}

.modal-cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--escuro);
  color: var(--texto-claro);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.modal-cta:hover { background: var(--roxo-escuro); }
.modal-cta svg { width: 17px; height: 17px; flex-shrink: 0; }

/* Tamanho padrão para todos os ícones inline sem classe específica */
.car-btn svg { width: 18px; height: 18px; }
.modal-close svg { width: 16px; height: 16px; }

/* ---------------- Footer / contato ---------------- */

.contato {
  color: var(--texto-claro);
  padding: 90px 0 60px;
  position: relative;
}
.contato .container { position: relative; z-index: 1; }
.contato h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 620px; margin-bottom: 20px; }
.contato p { color: var(--texto-claro-muted); max-width: 520px; margin-bottom: 32px; }

.contato-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 16px;
  border: 1px dashed rgba(135,144,188,0.5);
  font-family: var(--ff-display);
  font-size: 1.1rem;
  color: var(--roxo-claro);
  text-decoration: none;
}
.contato-note { margin-top: 14px; font-size: 0.78rem; color: var(--texto-claro-muted); }

.footer-bottom {
  border-top: 1px solid var(--linha-clara);
  margin-top: 60px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: var(--texto-claro-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .site-header { padding: 14px 20px; }
  .hero { padding: 90px 0 100px; }
  .section { padding: 64px 0; }
  .trilha-card { flex-basis: 260px; }
  .modal-body { padding: 24px 20px 30px; }
}
