* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0c0502;
    --bg-card: #170d06;
    --border: #33200f;
    --fire-1: #ffd25f;
    --fire-2: #ff8a2a;
    --fire-3: #ff3d00;
    --text: #f7f0e8;
    --text-muted: #bfa893;
    --error: #ff6b6b;
    --success: #6bd47a;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    position: relative; /* prende os glows absolutos dentro do corte do body */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Fundo animado ---------- */

#embers {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.glow {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.glow-top {
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 650px;
    background: radial-gradient(ellipse at center, rgba(255, 100, 20, 0.32) 0%, rgba(255, 60, 0, 0.1) 45%, transparent 70%);
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

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

.hero {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 76px 24px 56px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: rgba(255, 138, 42, 0.07);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero-badge strong {
    color: var(--fire-2);
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3.6rem, 17vw, 9rem);
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-shadow: 0 0 60px rgba(255, 100, 20, 0.25);
}

.flame-text {
    display: inline-block;
    background: linear-gradient(90deg, var(--fire-1), var(--fire-2), var(--fire-3), var(--fire-2), var(--fire-1));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flameShift 3s linear infinite, flicker 2.4s ease-in-out infinite;
}

@keyframes flameShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

@keyframes flicker {
    0%, 100% { filter: drop-shadow(0 0 22px rgba(255, 110, 20, 0.55)); }
    20% { filter: drop-shadow(0 0 34px rgba(255, 140, 30, 0.75)); }
    45% { filter: drop-shadow(0 0 18px rgba(255, 80, 0, 0.5)); }
    70% { filter: drop-shadow(0 0 40px rgba(255, 160, 40, 0.8)); }
}

.hero-subtitle {
    margin: 24px auto 0;
    max-width: 480px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.hero-info {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 36px 0;
    flex-wrap: wrap;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 22px;
    min-width: 118px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.info-card.destaque {
    border-color: rgba(255, 138, 42, 0.55);
    box-shadow: 0 0 26px rgba(255, 100, 20, 0.2);
    animation: cardGlow 2.6s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% { box-shadow: 0 0 18px rgba(255, 100, 20, 0.18); }
    50% { box-shadow: 0 0 34px rgba(255, 100, 20, 0.38); }
}

.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.info-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.info-card.destaque .info-value {
    color: var(--fire-2);
    font-size: 1.25rem;
}

.info-extra {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hero-endereco {
    margin: -14px 0 30px;
}

.hero-endereco a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.15s ease;
}

.hero-endereco a:hover {
    color: var(--fire-2);
}

/* Entrada suave dos elementos do hero */
.reveal {
    animation: rise 0.7s ease-out both;
}

.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.3s; }
.reveal:nth-child(5) { animation-delay: 0.4s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Marquee ---------- */

.marquee {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, rgba(255, 61, 0, 0.12), rgba(255, 138, 42, 0.06), rgba(255, 61, 0, 0.12));
    padding: 12px 0;
}

.marquee-track {
    display: flex;
    gap: 36px;
    width: max-content;
    animation: marquee 18s linear infinite;
}

.marquee-track span {
    font-family: 'Anton', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.14em;
    white-space: nowrap;
    color: var(--fire-2);
    opacity: 0.85;
}

.marquee-track em {
    font-style: normal;
    margin-left: 36px;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Botões ---------- */

.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    color: #1a0a00;
    background: linear-gradient(135deg, var(--fire-1) 0%, var(--fire-2) 50%, var(--fire-3) 100%);
    background-size: 160% 160%;
    padding: 16px 36px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 8px 30px rgba(255, 90, 10, 0.35);
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 12px 40px rgba(255, 90, 10, 0.5);
}

.btn:active {
    transform: translateY(0);
}

.btn.pulse {
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 8px 30px rgba(255, 90, 10, 0.35); }
    50% { box-shadow: 0 8px 44px rgba(255, 90, 10, 0.65); }
}

.btn-ghost {
    display: block;
    width: 100%;
    margin-top: 14px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    text-decoration: none;
    padding: 10px;
    transition: color 0.15s ease;
}

.btn-ghost:hover {
    color: var(--fire-2);
}

/* ---------- Seção form / wizard ---------- */

.section-form {
    position: relative;
    z-index: 1;
    padding: 48px 24px 80px;
}

.form-wrap {
    max-width: 540px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 32px 28px 36px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Stepper */

.stepper {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.stepper::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    flex: 1;
}

.step-dot {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: var(--bg);
    border: 2px solid var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step-name {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step.active .step-dot {
    border-color: var(--fire-2);
    color: var(--fire-2);
    box-shadow: 0 0 16px rgba(255, 138, 42, 0.5);
    animation: cardGlow 2.2s ease-in-out infinite;
}

.step.active .step-name {
    color: var(--fire-2);
}

.step.done .step-dot {
    background: linear-gradient(135deg, var(--fire-2), var(--fire-3));
    border-color: transparent;
    color: #1a0a00;
}

/* Painéis do wizard */

.panel {
    display: none;
}

.panel.active {
    display: block;
    animation: panelIn 0.45s ease-out;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateX(28px); }
    to { opacity: 1; transform: translateX(0); }
}

.panel h2 {
    font-family: 'Anton', sans-serif;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.form-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 26px;
}

.form-intro.centro {
    text-align: center;
}

.form-intro strong {
    color: var(--fire-2);
}

/* Campos */

.field {
    margin-bottom: 18px;
}

.field-row {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 12px;
}

.field label,
.field .label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 14px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--fire-2);
    box-shadow: 0 0 0 3px rgba(255, 138, 42, 0.15);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #6d5842;
}

.field.invalid input,
.field.invalid textarea {
    border-color: var(--error);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.field-error {
    display: none;
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 5px;
}

.field.invalid .field-error {
    display: block;
}

.radio-group {
    display: flex;
    gap: 10px;
}

.radio {
    flex: 1;
    cursor: pointer;
}

.radio input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio span {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    font-weight: 600;
    transition: all 0.15s ease;
}

.radio input:checked + span {
    border-color: var(--fire-2);
    background: rgba(255, 138, 42, 0.12);
    color: var(--fire-2);
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
    animation: none;
}

.form-alert {
    margin-top: 14px;
    text-align: center;
    color: var(--error);
    font-size: 0.9rem;
}

/* Resumo (etapa 2) */

.resumo {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px 18px;
    margin-bottom: 22px;
}

.resumo-linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.resumo-linha:last-child {
    border-bottom: none;
}

.resumo-linha span {
    color: var(--text-muted);
}

.resumo-linha strong {
    text-align: right;
}

.resumo-linha.total strong {
    color: var(--fire-2);
    font-size: 1.25rem;
}

/* PIX (etapa 2) */

.pix-box {
    text-align: center;
    animation: rise 0.5s ease-out;
}

.pix-instrucao {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 18px;
}

.pix-qr-wrap {
    display: inline-block;
    background: #fff;
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 0 34px rgba(255, 100, 20, 0.3);
}

.pix-qr-wrap img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

.pix-copia {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}

.pix-copia input {
    flex: 1;
    min-width: 0;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 1rem; /* mínimo 16px: evita o zoom automático do iOS ao tocar no campo */
    color: var(--text-muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    outline: none;
}

.btn-copiar {
    padding: 12px 20px;
    font-size: 0.9rem;
    border-radius: 10px;
    white-space: nowrap;
}

.pix-aguardando {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fire-1);
}

.pix-pulso {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fire-2);
    animation: pulso 1.2s ease-in-out infinite;
}

@keyframes pulso {
    0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 138, 42, 0.6); }
    50% { transform: scale(1.25); opacity: 0.8; box-shadow: 0 0 0 8px rgba(255, 138, 42, 0); }
}

.pix-expira {
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Ticket (etapa 3) */

.ticket-confete {
    text-align: center;
    font-size: 3.4rem;
    animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bounceIn {
    from { opacity: 0; transform: scale(0.3); }
    to { opacity: 1; transform: scale(1); }
}

.ticket-titulo {
    text-align: center;
    color: var(--fire-2);
    margin-top: 6px;
}

.ticket {
    max-width: 400px;
    margin: 0 auto;
    background: linear-gradient(160deg, #1e1108 0%, #170d06 100%);
    border: 1px solid rgba(255, 138, 42, 0.4);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(255, 100, 20, 0.22);
    animation: rise 0.6s ease-out 0.15s both;
}

.ticket-topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(90deg, var(--fire-3), var(--fire-2), var(--fire-1));
    background-size: 200% 100%;
    animation: flameShift 4s linear infinite;
}

.ticket-evento {
    font-family: 'Anton', sans-serif;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: #1a0a00;
}

.ticket-tag {
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    letter-spacing: 0.06em;
}

.ticket-corpo {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ticket-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ticket-info-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.ticket-nome {
    font-weight: 700;
    font-size: 1.15rem;
}

.ticket-codigo {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--fire-1);
    letter-spacing: 0.12em;
}

.ticket-serrilha {
    position: relative;
    height: 1px;
    margin: 0 10px;
    border-top: 2px dashed rgba(255, 168, 92, 0.35);
}

.ticket-serrilha::before,
.ticket-serrilha::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg);
}

.ticket-serrilha::before { left: -21px; }
.ticket-serrilha::after { right: -21px; }

.ticket-rodape {
    text-align: center;
    padding: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Botão da música */

.btn-musica {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 138, 42, 0.5);
    background: linear-gradient(135deg, #241408, #170d06);
    font-size: 1.35rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(255, 90, 10, 0.35);
    animation: btnPulse 2s ease-in-out infinite;
    transition: transform 0.15s ease;
}

.btn-musica:hover {
    transform: scale(1.08);
}

.btn-musica .disco {
    display: block;
}

.btn-musica.tocando {
    animation: none;
    border-color: var(--fire-2);
}

.btn-musica.tocando .disco {
    animation: gira 3s linear infinite;
}

@keyframes gira {
    to { transform: rotate(360deg); }
}

.hidden {
    display: none !important;
}

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

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 24px 40px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

.footer strong {
    color: var(--fire-2);
}

.footer-insta {
    display: inline-block;
    margin-top: 12px;
    padding: 9px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 138, 42, 0.45);
    background: rgba(255, 138, 42, 0.08);
    color: var(--fire-2);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.15s ease;
}

.footer-insta:hover {
    background: rgba(255, 138, 42, 0.18);
}

.footer-small {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.7;
}

.footer-small a {
    color: inherit;
    text-decoration: none;
}

.footer-small a:hover {
    color: var(--fire-2);
}

/* ---------- Mobile ---------- */

@media (max-width: 480px) {
    .hero {
        padding-top: 52px;
    }

    .hero-info {
        gap: 8px;
    }

    .info-card {
        padding: 12px 14px;
        min-width: 100px;
    }

    .form-wrap {
        padding: 26px 18px 30px;
    }

    .field-row {
        grid-template-columns: 88px 1fr;
    }

    .step-name {
        font-size: 0.66rem;
    }

    /* Ingresso centralizado no mobile */
    .ticket-corpo {
        text-align: center;
        align-items: center;
    }

    .ticket-info {
        align-items: center;
    }

    .ticket-info-row {
        flex-direction: column;
        justify-content: center;
        gap: 18px;
    }

    .ticket-topo {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    #embers {
        display: none;
    }
}
