/* ============================================================
   TATAWEEK · estilo "playa à noite"
   ============================================================ */

:root {
    --night-top: #06031a;
    --night: #0b0620;
    --dusk: #2b0d3a;
    --horizon: #ff4d6d;
    --sunset: #ff8a3d;
    --sand: #e8b67a;
    --sand-dark: #b7824a;
    --fire: #ff6a00;
    --ember: #ffd166;
    --neon-pink: #ff2d95;
    --neon-cyan: #19f0ff;
    --neon-lime: #c6ff3d;
    --text: #fff6ea;
    --muted: rgba(255, 246, 234, 0.72);
    --display: 'Bungee', 'Space Grotesk', system-ui, sans-serif;
    --display-shade: 'Bungee Shade', 'Bungee', system-ui, sans-serif;
    --body: 'Space Grotesk', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--body);
    background: var(--night);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

::selection { background: rgba(255, 45, 149, 0.45); color: #fff; }

a { color: var(--neon-cyan); }

.container { width: min(1100px, 100% - 2rem); margin: 0 auto; }
.center { text-align: center; }

/* ---------- camadas fixas de fundo ---------- */
.layer {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.dust {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    filter: blur(40px);
    opacity: 0.55;
}

.dust span {
    position: absolute;
    width: 60vw;
    height: 30vh;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(232, 182, 122, 0.35), transparent 70%);
    animation: dust-drift 22s linear infinite;
}

.dust span:nth-child(1) { bottom: 0;   left: -30vw; animation-duration: 26s; }
.dust span:nth-child(2) { bottom: 5vh; left: -60vw; animation-duration: 34s; animation-delay: -12s; }
.dust span:nth-child(3) { bottom: 10vh; left: -40vw; animation-duration: 40s; animation-delay: -25s; opacity: 0.6; }
.dust span:nth-child(4) { bottom: -5vh; left: -70vw; animation-duration: 30s; animation-delay: -6s; }

@keyframes dust-drift {
    from { transform: translateX(0); }
    to   { transform: translateX(170vw); }
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    z-index: 2;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, var(--night-top) 0%, var(--night) 35%, var(--dusk) 65%, #7a1f3d 85%, var(--horizon) 100%);
}

.sun {
    position: absolute;
    left: 50%;
    bottom: 24%;
    width: min(60vw, 520px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, #ffd166 0%, #ff8a3d 35%, #ff4d6d 60%, transparent 70%);
    filter: blur(6px);
    opacity: 0.85;
    animation: sun-breathe 9s ease-in-out infinite;
}

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

.mountains {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24%;
    width: 100%;
    height: 28vh;
}

.m-far  { fill: #3a1045; }
.m-near { fill: #1c0828; }

.playa {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    height: 28%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 138, 61, 0.35), transparent 60%),
        linear-gradient(180deg, var(--sand-dark) 0%, #6b4426 60%, #2c1a12 100%);
    border-radius: 50% 50% 0 0 / 30% 30% 0 0;
}

/* o Homem */
.hero-stage {
    position: relative;
    height: clamp(200px, 30vh, 320px);
    width: 100%;
}

.man-wrap {
    position: absolute;
    left: 50%;
    bottom: 0;
    height: 100%;
    aspect-ratio: 2 / 3;
    transform: translateX(-50%);
    z-index: 3;
}

.man {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    animation: man-sway 6s ease-in-out infinite;
    transform-origin: 50% 100%;
}

@keyframes man-sway {
    0%, 100% { transform: rotate(-0.6deg); }
    50%      { transform: rotate(0.6deg); }
}

.man-base path, .man-base line {
    fill: none;
    stroke: #5a3a22;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.man-base path:first-child { fill: rgba(44, 26, 18, 0.6); }

.man-body circle, .man-body line {
    fill: none;
    stroke: #ffb86b;
    stroke-width: 7;
    stroke-linecap: round;
}

.man-neon circle, .man-neon line {
    fill: none;
    stroke: var(--neon-pink);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.9;
    animation: neon-flicker 4s infinite;
}

.fire {
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: -4%;
    width: 220%;
    height: 180%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 4.5rem 1rem 4.5rem;
    width: min(900px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-top, .hero-bottom { width: 100%; }

.kicker {
    font-family: var(--display);
    letter-spacing: 0.22em;
    font-size: clamp(0.65rem, 1.5vw, 0.85rem);
    color: var(--ember);
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.title {
    font-family: var(--display);
    line-height: 0.9;
    font-size: clamp(3.4rem, 14vw, 9rem);
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.title-line.neon {
    color: #fff;
    text-shadow:
        0 0 6px #fff,
        0 0 18px var(--neon-pink),
        0 0 40px var(--neon-pink),
        0 0 90px var(--neon-pink);
    animation: neon-flicker 5s infinite;
}

.title-line.shade {
    font-family: var(--display-shade);
    color: var(--ember);
    letter-spacing: 0.08em;
    text-shadow: 0 0 30px rgba(255, 138, 61, 0.6);
}

@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 54%, 56%, 100% { opacity: 1; }
    20%, 55% { opacity: 0.55; }
    22% { opacity: 0.8; }
}

.tagline {
    margin: 1.2rem auto 0;
    max-width: 560px;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    color: var(--text);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.tagline strong { color: var(--ember); }

/* countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.cd-box {
    min-width: 76px;
    padding: 0.7rem 0.6rem 0.5rem;
    border: 2px solid rgba(255, 209, 102, 0.5);
    border-radius: 12px;
    background: rgba(11, 6, 32, 0.55);
    backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(255, 106, 0, 0.25), inset 0 0 18px rgba(255, 106, 0, 0.08);
}

.cd-box b {
    display: block;
    font-family: var(--display);
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    color: var(--ember);
    line-height: 1;
}

.cd-box span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.cd-label {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.cta-row {
    margin-top: 1.4rem;
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    border-radius: 999px;
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    color: var(--text);
}

.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-fire {
    background: linear-gradient(135deg, var(--fire), var(--neon-pink));
    box-shadow: 0 10px 30px rgba(255, 106, 0, 0.45);
    animation: fire-pulse 2.6s ease-in-out infinite;
}

.btn-fire.big {
    font-size: 1.2rem;
    padding: 1.3rem 2.6rem;
    margin-top: 2rem;
}

@keyframes fire-pulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 106, 0, 0.45); }
    50%      { box-shadow: 0 10px 50px rgba(255, 45, 149, 0.7); }
}

.btn-ghost {
    background: rgba(11, 6, 32, 0.5);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(25, 240, 255, 0.3);
}

.btn-ghost:hover { background: rgba(25, 240, 255, 0.12); }

.scroll-hint {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 246, 234, 0.5);
    border-radius: 14px;
    z-index: 5;
}

.scroll-hint span {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--ember);
    animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%   { transform: translateY(0); opacity: 1; }
    80%  { transform: translateY(16px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* ---------- DESFILE ---------- */
.parade {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, #2c1a12 0%, #1a0f0c 100%);
    border-top: 3px dashed rgba(232, 182, 122, 0.3);
    border-bottom: 3px dashed rgba(232, 182, 122, 0.3);
    padding: 1.2rem 0;
    overflow: hidden;
}

.parade-track {
    display: flex;
    width: max-content;
    animation: parade-scroll 32s linear infinite;
}

.parade:hover .parade-track { animation-play-state: paused; }

.parade-group {
    display: flex;
    align-items: flex-end;
    gap: clamp(2rem, 6vw, 5rem);
    padding-right: clamp(2rem, 6vw, 5rem);
}

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

.car {
    height: clamp(70px, 12vw, 120px);
    width: auto;
    overflow: visible;
    animation: car-bounce 0.9s ease-in-out infinite;
}

.car:nth-child(2) { animation-delay: -0.3s; }
.car:nth-child(3) { animation-delay: -0.6s; }
.car:nth-child(4) { animation-delay: -0.15s; }

@keyframes car-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

.c-body   { fill: #ff8a3d; stroke: #ffd166; stroke-width: 3; }
.c-fin    { fill: var(--neon-pink); }
.c-window { fill: var(--neon-cyan); opacity: 0.9; }
.c-eye    { fill: #fff; }
.c-beak   { fill: var(--ember); }
.c-wheel  { fill: #1a0f0c; stroke: var(--neon-lime); stroke-width: 4; animation: wheel-spin 1s linear infinite; transform-box: fill-box; transform-origin: center; }
.c-flame path { fill: var(--ember); animation: flame-flick 0.25s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: right center; }
.c-lights circle { fill: var(--neon-lime); animation: lights-blink 0.8s steps(2) infinite; }
.c-lights circle:nth-child(odd) { fill: var(--neon-cyan); animation-delay: -0.4s; }

.car-bus  .c-body { fill: #ff4d6d; }
.car-duck .c-body { fill: #ffd166; stroke: #ff8a3d; }
.car-rocket .c-body { fill: #19f0ff; stroke: #fff; }

@keyframes wheel-spin { to { transform: rotate(360deg); } }
@keyframes flame-flick { from { transform: scaleX(0.7); } to { transform: scaleX(1.3); } }
@keyframes lights-blink { from { opacity: 1; } to { opacity: 0.2; } }

/* ---------- SEÇÕES ---------- */
.section {
    position: relative;
    z-index: 2;
    padding: clamp(4rem, 10vw, 7rem) 0;
}

.eyebrow {
    font-family: var(--display);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 0.6rem;
}

.h2 {
    font-family: var(--display);
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1;
    color: var(--ember);
    text-shadow: 0 0 24px rgba(255, 138, 61, 0.35);
}

.h2.giant {
    font-family: var(--display-shade);
    font-size: clamp(3rem, 12vw, 8rem);
    color: var(--fire);
}

.lead {
    margin-top: 1rem;
    max-width: 640px;
    font-size: 1.1rem;
    color: var(--muted);
}

.center .lead { margin-inline: auto; }

/* princípios */
.principles {
    background: linear-gradient(180deg, #1a0f0c 0%, var(--night) 30%);
}

.principle-grid {
    list-style: none;
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.card {
    --accent: hsl(var(--hue) 100% 62%);
    position: relative;
    padding: 1.4rem 1.3rem 1.3rem;
    border-radius: 18px;
    background: rgba(255, 246, 234, 0.04);
    border: 1px solid rgba(255, 246, 234, 0.1);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(.2,.8,.2,1), border-color 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(24px);
}

.card.in {
    opacity: 1;
    transform: translateY(0);
}

.card::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -20%;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    opacity: 0.25;
    transition: opacity 0.3s, transform 0.5s;
}

.card:hover {
    transform: translateY(-6px) rotate(-1deg);
    border-color: var(--accent);
    box-shadow: 0 16px 40px -10px var(--accent);
}

.card:hover::before { opacity: 0.6; transform: scale(1.4); }

.card .num {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.card h3 {
    margin-top: 0.6rem;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.card p {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--muted);
}

/* lema */
.motto {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(255, 45, 149, 0.14), transparent 60%),
        var(--night);
    border-top: 1px solid rgba(255, 246, 234, 0.06);
    border-bottom: 1px solid rgba(255, 246, 234, 0.06);
}

.motto-list {
    list-style: none;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.motto-list li {
    display: flex;
    align-items: baseline;
    gap: 0.6em;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--display);
    font-size: clamp(1.4rem, 5vw, 3.2rem);
    line-height: 1.1;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s, transform 0.5s;
}

.motto-list li.in { opacity: 1; transform: none; }

.motto-a { color: var(--text); text-shadow: 0 0 14px rgba(255, 255, 255, 0.35); }
.motto-b {
    color: var(--ember);
    text-shadow: 0 0 10px rgba(255, 209, 102, 0.5), 0 0 30px rgba(255, 106, 0, 0.4);
}

.motto-list li:nth-child(odd) .motto-b { color: var(--neon-pink); text-shadow: 0 0 10px rgba(255, 45, 149, 0.6), 0 0 30px rgba(255, 45, 149, 0.4); }
.motto-list li:nth-child(3n) .motto-b { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(25, 240, 255, 0.6), 0 0 30px rgba(25, 240, 255, 0.4); }

/* programação */
.schedule {
    background: var(--night);
}

.timeline {
    list-style: none;
    margin-top: 2.5rem;
    position: relative;
    padding-left: 2.2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.65rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink), var(--fire), var(--ember));
}

.day {
    position: relative;
    padding: 0 0 2rem;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.5s, transform 0.5s;
}

.day.in { opacity: 1; transform: none; }

.day::before {
    content: '';
    position: absolute;
    left: -2.2rem;
    top: 0.45rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--night);
    border: 3px solid var(--accent, var(--ember));
    box-shadow: 0 0 14px var(--accent, var(--ember));
}

.day.today::before { animation: today-pulse 1.4s ease-in-out infinite; }

@keyframes today-pulse {
    0%, 100% { box-shadow: 0 0 10px var(--accent); }
    50%      { box-shadow: 0 0 28px var(--accent), 0 0 48px var(--accent); }
}

.day-head {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.day-name {
    font-family: var(--display);
    font-size: 1.2rem;
    color: var(--accent, var(--ember));
}

.day-date {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
}

.day-title {
    margin-top: 0.3rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.day-desc {
    margin-top: 0.3rem;
    color: var(--muted);
    max-width: 620px;
}

.day-tag {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(255, 246, 234, 0.08);
    border: 1px solid rgba(255, 246, 234, 0.15);
}

/* sobrevivência */
.survival {
    background: linear-gradient(180deg, var(--night) 0%, #1a0f0c 100%);
}

.survival-grid {
    list-style: none;
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.survival-grid li {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.3rem 1.1rem;
    border-radius: 16px;
    background: rgba(232, 182, 122, 0.08);
    border: 1px dashed rgba(232, 182, 122, 0.35);
    transition: transform 0.25s, background 0.25s;
}

.survival-grid li:hover { transform: translateY(-4px) rotate(1deg); background: rgba(232, 182, 122, 0.16); }

.survival-grid .emoji { font-size: 2rem; line-height: 1; }
.survival-grid b { font-family: var(--display); font-size: 0.85rem; margin-top: 0.4rem; }
.survival-grid li > span:last-child { font-size: 0.9rem; color: var(--muted); }

/* queima */
.burn {
    background:
        radial-gradient(ellipse at 50% 100%, rgba(255, 106, 0, 0.35), transparent 60%),
        #1a0f0c;
}

/* footer */
.footer {
    position: relative;
    z-index: 2;
    padding: 3rem 0 2.5rem;
    text-align: center;
    background: #0a0604;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer-title {
    font-family: var(--display);
    letter-spacing: 0.3em;
    color: var(--ember);
    margin-bottom: 0.5rem;
}

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

/* overlay da queima */
.burn-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #000;
    display: none;
    cursor: pointer;
}

.burn-overlay.on { display: block; animation: overlay-in 0.4s ease-out; }

@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.burn-overlay canvas { width: 100%; height: 100%; display: block; }

.burn-text {
    position: absolute;
    inset: auto 0 16%;
    text-align: center;
    pointer-events: none;
    padding: 0 1rem;
}

.burn-big {
    font-family: var(--display);
    font-size: clamp(1.6rem, 7vw, 4.5rem);
    color: #fff;
    text-shadow: 0 0 10px #fff, 0 0 30px var(--fire), 0 0 70px var(--fire);
    animation: burn-text-in 1.2s ease-out both 1.5s;
}

.burn-small {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    animation: burn-text-in 1s ease-out both 3s;
}

@keyframes burn-text-in {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to   { opacity: 1; transform: none; }
}

body.shake { animation: shake 0.5s ease-in-out; }

@keyframes shake {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-6px, 4px); }
    40% { transform: translate(6px, -4px); }
    60% { transform: translate(-4px, -6px); }
    80% { transform: translate(4px, 6px); }
}

/* ---------- acessibilidade: menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .card, .day, .motto-list li { opacity: 1; transform: none; }
    .dust { display: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 640px) {
    .hero-content { padding: 3.5rem 1rem 4rem; }
    .hero-stage { height: clamp(170px, 24vh, 240px); }
    .mountains { bottom: 30%; height: 22vh; }
    .playa { height: 34%; }
    .cd-box { min-width: 64px; }
    .btn { font-size: 0.75rem; padding: 0.8rem 1.2rem; }
    .timeline { padding-left: 1.8rem; }
    .day::before { left: -1.8rem; }
}
