/* ============ Base ============ */
:root {
  --ink: #17130F;
  --cream: #F6F3EC;
  --purple: #6C3DF4;
  --blue: #2F6BFF;
  --mint: #14E5AE;
  --grad: linear-gradient(115deg, #6C3DF4 0%, #2F6BFF 100%);
  --mono: 'IBM Plex Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
}

a { color: #4A2BD8; text-decoration: none; transition: color .15s ease, background .15s ease; }
a:hover { color: #0EA57C; }
::selection { background: var(--purple); color: #fff; }

img { max-width: 100%; }

.container { max-width: 1160px; margin: 0 auto; }

/* Barra de progresso do scroll (animada via GSAP) */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 100;
  pointer-events: none;
}

/* Lenis (smooth scroll) — recomendações oficiais */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

.h2 {
  margin: 0;
  font-weight: 900;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* Two-column split used by several sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

/* ============ Buttons & badges ============ */
.btn {
  display: inline-block;
  font-weight: 800;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.btn--header {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ink);
  padding: 10px 18px;
}
.btn--header:hover { background: var(--purple); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--mint); color: var(--ink); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--cream:hover { background: var(--mint); color: var(--ink); }
.btn--ghost {
  border: 2px solid rgba(246, 243, 236, 0.7);
  color: var(--cream);
  font-weight: 700;
  padding: 13px 26px;
}
.btn--ghost:hover { background: rgba(246, 243, 236, 0.15); color: #fff; }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--ink); color: #fff; }

.badge {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border-radius: 999px;
}
.badge--mint { background: var(--mint); color: var(--ink); transform: rotate(-2deg); }
.badge--cream { background: var(--cream); color: var(--ink); transform: rotate(1.5deg); }
.badge--outline { border: 2px solid rgba(246, 243, 236, 0.6); padding: 6px 16px; }

.tag {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 7px 14px;
}
.tag--purple { background: var(--purple); color: #fff; transform: rotate(-2deg); }
.tag--ink { background: var(--ink); color: var(--mint); transform: rotate(-2deg); margin-top: 0; }

/* ============ Header ============ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 32px;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}
.site-header__logos { display: flex; align-items: center; gap: 14px; }
.site-header__lidera { height: 34px; }
.site-header__plus { font-weight: 900; font-size: 16px; opacity: 0.5; }
.site-header__hacktown { height: 44px; }

/* ============ Hero ============ */
.hero {
  background: var(--grad);
  color: var(--cream);
  padding: 88px 32px 76px;
  position: relative;
  overflow: hidden;
}
.hero__circle { position: absolute; border-radius: 50%; }
.hero__circle--mint {
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  background: rgba(20, 229, 174, 0.25);
}
.hero__circle--cream {
  left: -80px; bottom: -120px;
  width: 300px; height: 300px;
  background: rgba(244, 242, 237, 0.1);
}
.hero__inner { display: flex; flex-direction: column; gap: 32px; position: relative; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(52px, 8.5vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__hack { position: relative; display: inline-block; white-space: nowrap; }
.hero__hack-base { opacity: 0.4; }
.hero__hack-sticker {
  position: absolute;
  left: 6%; top: 12%;
  transform: rotate(-7deg);
  background: var(--mint);
  color: var(--ink);
  font-size: 0.62em;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 0.08em 0.35em;
  box-shadow: 0 10px 34px rgba(10, 10, 10, 0.35);
}
.hero__lead {
  margin: 0;
  max-width: 640px;
  font-size: 19px;
  line-height: 1.55;
  color: rgba(246, 243, 236, 0.9);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Ticker ============ */
.ticker {
  background: var(--ink);
  color: var(--cream);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.ticker span {
  flex-shrink: 0;
  animation: ticker-scroll 60s linear infinite;
}
@keyframes ticker-scroll {
  to { transform: translateX(-100%); }
}
/* Quando o GSAP assume o ticker (reage à velocidade do scroll), desliga o CSS */
.ticker.gsap-ticker span { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ticker span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ Stats ============ */
.stats { background: var(--mint); color: var(--ink); padding: 0 32px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__cell { padding: 32px 24px; border-left: 2px solid var(--ink); }
.stats__cell--last { border-right: 2px solid var(--ink); }
.stats__num { font-weight: 900; font-size: 44px; }
.stats__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; }

/* ============ About ============ */
.about { padding: 96px 32px; }
.about__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(23, 19, 15, 0.85);
}
.about__body p { margin: 0; }

/* ============ Lineup ============ */
.lineup { background: var(--ink); color: var(--cream); padding: 88px 32px; }
.lineup__inner { display: flex; flex-direction: column; gap: 28px; }
.lineup__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.lineup__chip {
  background: linear-gradient(100deg, #6C3DF4, #2F6BFF);
  padding: 0 0.18em;
  display: inline-block;
  transform: rotate(-1.5deg);
}
.lineup__note {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(246, 243, 236, 0.5);
}
.lineup__tabs { display: flex; gap: 8px; flex-wrap: wrap; }

.day-tab {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid rgba(246, 243, 236, 0.35);
  background: transparent;
  color: rgba(246, 243, 236, 0.75);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.day-tab:hover { border-color: rgba(246, 243, 236, 0.7); color: var(--cream); }
.day-tab.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-text);
}

.day-panel { display: flex; flex-direction: column; gap: 10px; }
.day-panel[hidden] { display: none; }

.talk {
  background: var(--cream);
  color: var(--ink);
  border: none;
  font-family: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 96px 1.1fr 1.6fr 160px;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.talk:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.talk, .talk-modal__backdrop, .talk-modal__close { user-select: none; -webkit-user-select: none; }
.talk:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--accent);
}
.talk__time {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-text);
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}
.talk__name { font-weight: 800; font-size: 17px; }
.talk__theme { font-size: 15px; line-height: 1.4; color: rgba(23, 19, 15, 0.75); }
.talk__org {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(23, 19, 15, 0.5);
  text-align: right;
}

/* Badges de trilha + classificação */
.talk__badges {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.trilha {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(23, 19, 15, 0.25);
  color: rgba(23, 19, 15, 0.6);
  white-space: nowrap;
}
.rating {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}
.rating--l { background: #0AA84F; }
.rating--10 { background: #0F7DC2; }
.rating--12 { background: #E8B90F; color: var(--ink); }
.rating--14 { background: #E67824; }
.rating--16 { background: #D6221F; }
.rating--18 { background: #17130F; }

/* ============ Partners ============ */
.partners { padding: 88px 32px; background: var(--cream); }
.partners__inner { display: flex; flex-direction: column; gap: 24px; }
.partners__lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(23, 19, 15, 0.75);
}
.partners__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.partners__slot {
  border: 2px dashed rgba(23, 19, 15, 0.3);
  border-radius: 12px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(23, 19, 15, 0.45);
  background: #fff;
}
.partners__slot--filled {
  border: 2px solid var(--ink);
}
.partners__slot--filled img {
  max-height: 72%;
  max-width: 80%;
  object-fit: contain;
}

/* ============ Merch (Veste e Vai) ============ */
.merch { background: var(--mint); color: var(--ink); padding: 88px 32px; overflow: hidden; }
.merch__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.merch__content { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.merch__lead {
  margin: 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(23, 19, 15, 0.85);
}
.merch__note {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(23, 19, 15, 0.55);
}
.merch__card {
  display: block;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 18px 18px 14px;
  max-width: 400px;
  justify-self: center;
  transform: rotate(2deg);
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.merch__card:hover {
  transform: rotate(0deg) translate(-2px, -2px);
  box-shadow: 12px 12px 0 var(--ink);
}
.merch__shirt { width: 100%; height: auto; display: block; border-radius: 8px; }
.merch__brand {
  display: flex;
  justify-content: center;
  padding-top: 12px;
}
.merch__brand img { height: 26px; }

/* ============ HackTown ============ */
.hacktown { background: var(--blue); color: var(--cream); padding: 88px 32px; }
.hacktown__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(246, 243, 236, 0.92);
}
.hacktown__body p { margin: 0; }
.hacktown__quote { font-weight: 700; font-style: italic; }
.hacktown__link {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mint);
}
.hacktown__link:hover { color: #fff; }

/* ============ Map ============ */
.map { padding: 88px 32px; background: var(--cream); }
.map__info { display: flex; flex-direction: column; gap: 16px; }
.map__info p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(23, 19, 15, 0.8);
}
.map__link { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.map__iframe {
  width: 100%;
  height: 340px;
  border: 2px solid var(--ink);
  border-radius: 12px;
}

/* ============ Photos ============ */
.photos { padding: 0 32px 88px; background: var(--cream); }
.photos__inner { display: flex; flex-direction: column; gap: 24px; }
.photos__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.photo {
  margin: 0;
  height: 300px;
  min-width: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.photo--1 { transform: rotate(-1deg); }
.photo--2 { transform: rotate(1.2deg); }
.photo--3 { transform: rotate(-0.8deg); }
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(246, 243, 236, 0.9);
  background: rgba(23, 19, 15, 0.55);
  padding: 4px 8px;
  border-radius: 6px;
}

/* ============ FAQ ============ */
.faq { padding: 0 32px 96px; background: var(--cream); }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
}
.faq__q {
  cursor: pointer;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq__icon { color: var(--purple); font-weight: 900; }
.faq__a {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(23, 19, 15, 0.75);
}
.faq__a[hidden] { display: none; }

/* ============ Modal de detalhes da palestra ============ */
body.modal-open { overflow: hidden; }

.talk-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.talk-modal[hidden] { display: none; }
.talk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 19, 15, 0.75);
}
.talk-modal__card {
  position: relative;
  z-index: 1;
  background: var(--cream);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 16px;
  width: min(960px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-columns: clamp(300px, 42%, 440px) 1fr;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--accent, var(--purple));
}
.talk-modal--nocard .talk-modal__card { grid-template-columns: 1fr; }
.talk-modal--nocard .talk-modal__media { display: none; }
.talk-modal__media {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.talk-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* card 4:5 inteiro, sem corte lateral */
  display: block;
}
.talk-modal__body {
  padding: 28px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.talk-modal__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.talk-modal__rating:empty { display: none; }
.talk-modal__trilhas { display: flex; flex-wrap: wrap; gap: 6px; }
.talk-modal__trilhas:empty { display: none; }
.talk-modal__day {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: var(--accent, var(--purple));
  color: var(--accent-text, #fff);
  padding: 6px 12px;
  border-radius: 999px;
}
.talk-modal__type {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 2px solid rgba(23, 19, 15, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
}
.talk-modal__title {
  margin: 0;
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.talk-modal__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(23, 19, 15, 0.8);
}
.talk-modal__speakers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px dashed rgba(23, 19, 15, 0.25);
  padding-top: 16px;
}
.talk-modal__speaker { display: flex; gap: 14px; align-items: flex-start; }
.talk-modal__speaker img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}
.talk-modal__spk-name { font-weight: 800; font-size: 16px; }
.talk-modal__spk-cargo {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin: 2px 0 6px;
}
.talk-modal__spk-bio {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(23, 19, 15, 0.75);
}
.talk-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.talk-modal__close:hover { background: var(--purple); }

@media (max-width: 720px) {
  .talk-modal { padding: 12px; }
  .talk-modal__card {
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  .talk-modal__media img { height: auto; max-height: none; }
  .talk-modal__body { padding: 20px; overflow: visible; max-height: none; }
  .talk-modal__title { font-size: 22px; }
}

/* ============ Footer ============ */
.footer { background: var(--grad); color: var(--cream); padding: 72px 32px; }
.footer__inner { display: flex; flex-direction: column; gap: 36px; }
.footer__motto {
  font-weight: 900;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.02em;
}
.footer__hack {
  background: var(--mint);
  color: var(--ink);
  padding: 0 0.2em;
  transform: rotate(-2deg);
  display: inline-block;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__brand { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer__lidera { height: 28px; filter: brightness(0) invert(1); }
.footer__x { font-weight: 900; font-size: 16px; opacity: 0.7; }
.footer__hacktown { height: 40px; }
.footer__label {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(246, 243, 236, 0.6);
}
.footer__links {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
}
.footer__links a { color: var(--cream); }
.footer__links a:hover { color: var(--mint); }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }

  .hero { padding: 64px 20px 56px; }
  .about, .lineup, .partners, .merch, .hacktown, .map { padding-left: 20px; padding-right: 20px; }
  .about { padding-top: 64px; padding-bottom: 64px; }
  .lineup, .partners, .merch, .hacktown, .map { padding-top: 64px; padding-bottom: 64px; }
  .merch__inner { grid-template-columns: 1fr; gap: 36px; }
  .merch__card { justify-self: start; max-width: 340px; }
  .photos { padding: 0 20px 64px; }
  .faq { padding: 0 20px 72px; }
  .footer { padding: 56px 20px; }
  .site-header { padding: 14px 20px; }
  .stats { padding: 0 20px; }

  .h2 { font-size: 36px; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__cell--last { border-right: none; }
  .stats__cell:nth-child(n+3) { border-top: 2px solid var(--ink); }
  .stats__cell { padding: 24px 18px; }
  .stats__num { font-size: 36px; }

  .talk {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "time name"
      "theme theme"
      "org org";
    gap: 10px 14px;
    padding: 18px 20px;
  }
  .talk__time { grid-area: time; }
  .talk__name { grid-area: name; }
  .talk__theme { grid-area: theme; }
  .talk__org { grid-area: org; text-align: left; }

  .photos__grid { grid-template-columns: 1fr; }
  .photo { height: 240px; }

  .map__iframe { height: 280px; }
}

@media (max-width: 560px) {
  .site-header__hacktown { height: 36px; }
  .site-header__lidera { height: 28px; }
  .hero__ctas .btn { width: 100%; text-align: center; }
  .footer__row { flex-direction: column; align-items: flex-start; }
}
