/* Exact Variable Fonts from Ingresso Prime (@fontsource-variable) */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: dark;
  --accent: #c4a5ff;
  --accent-orange: #ffb27a;
  --brand-purple: #7A1BC9;
  --brand-orange: #ff6b00;

  --font-sans: 'Plus Jakarta Sans Variable', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-bricolage: 'Bricolage Grotesque Variable', 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --font-inter: 'Inter Variable', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #0a0a0b;
  color: #ffffff;
  font-family: var(--font-sans);
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: clip;
  background-color: #0a0a0b;
  color: #ffffff;
  font-family: var(--font-inter);
  font-feature-settings: 'ss01', 'cv11';
}

.font-bricolage {
  font-family: var(--font-bricolage);
  font-variation-settings: 'opsz' 96;
}

.font-inter {
  font-family: var(--font-inter);
}

.font-mono {
  font-family: var(--font-mono);
}

details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* ───────── Animações (inspiradas nas transições da BD) ───────── */
:root { --ease-out: cubic-bezier(0.22, 1, 0.36, 1); }

/* Título do hero: letra por letra, com desfoque e subida */
[data-split] .word { display: inline-block; white-space: nowrap; }
.js [data-split] .char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  animation: char-in 0.7s var(--ease-out) forwards;
  animation-delay: calc(var(--i) * 22ms + 150ms);
}
@keyframes char-in { to { opacity: 1; filter: blur(0); transform: none; } }

/* Elementos do hero: sobem 30px e aparecem */
.js [data-appear] {
  opacity: 0;
  transform: translateY(30px);
  animation: appear 0.9s var(--ease-out) forwards;
  animation-delay: var(--d, 0.6s);
}
@keyframes appear { to { opacity: 1; transform: none; } }

/* Foto do hero: leve aproximação na entrada */
.hero-zoom { filter: blur(4px); transform: scale(1.05); animation: hero-zoom 2.4s var(--ease-out) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1.05); } }

/* Blocos ao rolar: entram pelas laterais (60px) ou de baixo */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal='left'] { transform: translateX(-60px); }
.js [data-reveal='right'] { transform: translateX(60px); }
.js [data-reveal='up'] { transform: translateY(40px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Seta de rolagem e linha do leitor de QR */
.scroll-cue svg { animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
.scan-line { animation: scan 2.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 18%; } 50% { top: 81%; } }

@media (prefers-reduced-motion: reduce) {
  .js [data-split] .char, .js [data-appear], .scroll-cue svg, .scan-line { animation: none; opacity: 1; filter: none; transform: none; }
  .hero-zoom { animation: none; }
  .js [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* Cases: item ativo */
[data-case] { cursor: pointer; transition: opacity .3s; outline: none; }
[data-case]:not(.is-active) { opacity: .55; }
[data-case]:hover, [data-case]:focus-visible { opacity: 1; }

/* Cantos arredondados: garante o recorte das luzes (corrige vazamento no Safari) */
.overflow-hidden.rounded-\[2rem\] { clip-path: inset(0 round 2rem); }
.overflow-hidden.rounded-\[1\.75rem\] { clip-path: inset(0 round 1.75rem); }
.overflow-hidden.rounded-2xl { clip-path: inset(0 round 1rem); }

/* Controles deslizantes do simulador */
.sim-range {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, #c4a5ff var(--p, 0%), rgb(255 255 255 / 0.12) var(--p, 0%));
  outline: none;
  cursor: pointer;
}
.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgb(196 165 255 / 0.25), 0 2px 8px rgb(0 0 0 / 0.4);
  transition: box-shadow 0.2s;
}
.sim-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgb(196 165 255 / 0.25), 0 2px 8px rgb(0 0 0 / 0.4);
}
.sim-range::-moz-range-track { background: transparent; }
.sim-range:hover::-webkit-slider-thumb,
.sim-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 8px rgb(196 165 255 / 0.35), 0 2px 8px rgb(0 0 0 / 0.4); }
.sim-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 8px rgb(196 165 255 / 0.35); }

/* ───────── Modo apresentação ───────── */
html.presenting #siteHeader { display: none; }
html.presenting main > section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  scroll-margin-top: 0;
  padding-top: 3rem;
  padding-bottom: 6rem;
}
html.presenting main > section > * { width: 100%; }
html.presenting footer { display: none; }

/* Seções começam no topo exato da tela ao navegar (o menu fica por cima do espaçamento interno) */
main > section { scroll-margin-top: 0 !important; }

/* ───────── Navegação lateral por pontos ───────── */
.section-dots {
  position: fixed;
  right: 22px;
  top: 50%;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(-50%);
}
@media (hover: none) { .section-dot::before { display: none; } }
html.presenting .section-dots { display: none !important; }
.section-dot {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.3);
  transition: height 0.5s var(--ease-out), background 0.4s;
  cursor: pointer;
}
.section-dot::after { content: ''; position: absolute; inset: -8px; }
.section-dot:hover { background: rgb(255 255 255 / 0.7); }
.section-dot.is-active { height: 26px; background: linear-gradient(to bottom, #7A1BC9, #ff6b00); }
.section-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translate(6px, -50%);
  white-space: nowrap;
  font-size: 12px;
  color: rgb(255 255 255 / 0.85);
  background: rgb(10 10 11 / 0.7);
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(8px);
}
.section-dot:hover::before { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 1023px) {
  .section-dots { right: 8px; gap: 9px; }
  .section-dot { width: 5px; height: 5px; background: rgb(255 255 255 / 0.45); }
  .section-dot.is-active { height: 22px; background: linear-gradient(to bottom, #7A1BC9, #ff6b00); }
}

/* Transições suaves dos efeitos de rolagem */
main > section > .mx-auto { will-change: transform, opacity; transform-origin: 50% 0; }

/* ───────── Modal de contato ───────── */
.contact-modal::backdrop {
  background: rgb(5 5 8 / 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}
.contact-modal[open] { animation: modal-in 0.45s var(--ease-out); }
.contact-modal[open]::backdrop { animation: backdrop-in 0.35s ease-out; }
.contact-modal.is-closing { animation: modal-out 0.25s ease-in forwards; }
.contact-modal.is-closing::backdrop { animation: backdrop-out 0.25s ease-in forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes modal-out { to { opacity: 0; transform: translateY(12px) scale(0.97); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { to { opacity: 0; } }
html.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .contact-modal[open], .contact-modal[open]::backdrop, .contact-modal.is-closing, .contact-modal.is-closing::backdrop { animation: none; }
}

/* ───────── Formulário de contato ───────── */
.contact-modal > div { max-height: calc(100svh - 2rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.contact-modal > div::-webkit-scrollbar { display: none; }
.lead-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .lead-grid { grid-template-columns: 1fr 1fr; } .lead-full { grid-column: 1 / -1; } }
.lead-field { display: grid; gap: 6px; min-width: 0; }
.lead-field > span { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: rgb(255 255 255 / 0.7); }
.lead-field input, .lead-field select, .lead-field textarea {
  width: 100%; min-width: 0; border-radius: 14px; border: 0;
  background: rgb(255 255 255 / 0.05); color: #fff; font: inherit; font-size: 15px;
  padding: 12px 14px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: box-shadow 0.2s, background 0.2s; color-scheme: dark; outline: none;
}
.lead-field textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.lead-field input::placeholder, .lead-field textarea::placeholder { color: rgb(255 255 255 / 0.32); }
.lead-field select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.lead-field select:invalid { color: rgb(255 255 255 / 0.32); }
.lead-field select option { background: #141418; color: #fff; }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1.5px #c4a5ff; }
.lead-field.is-invalid input, .lead-field.is-invalid select, .lead-field.is-invalid textarea { box-shadow: inset 0 0 0 1.5px #ff6b00; }
.lead-error { margin-top: 12px; font-size: 13px; color: #ffb27a; }
.lead-submit { margin-top: 18px; display: inline-flex; width: 100%; height: 52px; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; background: #fff; color: #000; font-weight: 600; font-size: 15px; transition: background 0.2s, transform 0.2s; }
.lead-submit:hover { background: rgb(255 255 255 / 0.9); }
.lead-submit:active { transform: scale(0.99); }
.lead-submit[disabled] { opacity: 0.6; cursor: progress; }
.lead-success { display: grid; justify-items: center; text-align: center; padding: 28px 0 8px; }
.lead-success[hidden] { display: none; }
.lead-success-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: rgb(122 27 201 / 0.25); color: #c4a5ff; box-shadow: inset 0 0 0 1px rgb(196 165 255 / 0.3); }
.lead-success-icon svg { width: 28px; height: 28px; }
.lead-success h4 { font-size: 1.5rem; line-height: 1.2; }
.lead-email-again { text-underline-offset: 4px; }
.lead-email-again:hover { text-decoration: underline; }

/* Logo do menu flutuante */
#siteHeader a[href="#topo"] { display: inline-flex; align-items: center; }
#siteHeader a[href="#topo"] img { height: 22px; width: auto; transform: translateY(2px); }
@media (min-width: 640px) { #siteHeader a[href="#topo"] img { height: 26px; } }

/* FAQ: lista de tipos de ingresso */
.faq-tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-tags li { font-size: 13.5px; line-height: 1.2; color: rgb(255 255 255 / 0.75); padding: 7px 12px; border-radius: 999px;
  background: rgb(196 165 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(196 165 255 / 0.2); }

/* Modal: sem anel de foco ao abrir; anel discreto só na navegação por teclado */
.contact-modal > div:focus { outline: none; }
.contact-modal [data-close-modal]:focus { outline: none; }
.contact-modal [data-close-modal]:focus-visible { outline: 2px solid #c4a5ff; outline-offset: 2px; }
