/* =========================================================================
   THE PURPLE DOG — efeitos visuais
   Paleta e tipografia: Brandbook 2024 (identidade_visual.pdf)
   ========================================================================= */

:root {
    --black-dog: #0a0a0a;
    --white-dog: #f9f9f8;
    --purple: #b705ff;
    --violeta: #691eb4;
    --azul: #3d48d6;
    --error: #ff5c7a; /* cor funcional de erro de formulário (fora da paleta institucional) */

    --glass-bg: rgba(249, 249, 248, .04);
    --glass-border: rgba(249, 249, 248, .09);
    --radius: 1.75rem;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --font-display: "Anek Tamil", system-ui, sans-serif;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

html { background: var(--black-dog); }
html, body { overflow-x: clip; }
body { font-family: var(--font-body); }
::selection { background: var(--purple); color: var(--black-dog); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; border-radius: .5rem; }

.skip-link {
    position: fixed; left: 1rem; top: -4rem; z-index: 100;
    background: var(--purple); color: var(--black-dog); padding: .75rem 1.25rem;
    border-radius: 999px; font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Tipografia ---------- */
.display-xl, .display-lg, .display-md, .wordmark, .logo-v__word, .btn,
.marquee__item, .menu-mobile__link, .footer-giant, .step__n, .about-col__n {
    font-family: var(--font-display);
    font-weight: 800;
    text-transform: uppercase;
    font-stretch: 125%;
    font-variation-settings: "wdth" 125;
}
.display-xl { font-size: clamp(2.6rem, 6.6vw, 6.4rem); line-height: .86; letter-spacing: -.01em; }
.display-xl .line { display: block; }
.display-lg { font-size: clamp(2.4rem, 5.6vw, 5.25rem); line-height: .9; letter-spacing: -.005em; }
.display-md { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; }
.subtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-variation-settings: "wdth" 112;
    line-height: 1.05;
    font-size: 1.35rem;
}

.text-gradient {
    background: linear-gradient(100deg, var(--purple) 0%, #d77bff 25%, var(--azul) 50%, var(--purple) 75%, var(--violeta) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    animation: gradient-pan 8s linear infinite;
}
.text-outline { color: transparent; -webkit-text-stroke: 1.5px var(--white-dog); }
.neon { text-shadow: 0 0 18px rgba(183, 5, 255, .55), 0 0 48px rgba(183, 5, 255, .35); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(249, 249, 248, .75);
    padding: .5rem 1rem; border: 1px solid var(--glass-border); border-radius: 999px;
    background: var(--glass-bg); backdrop-filter: blur(10px);
}
.eyebrow .dot {
    width: .5rem; height: .5rem; border-radius: 50%; background: var(--purple);
    box-shadow: 0 0 0 0 rgba(183, 5, 255, .7); animation: pulse 2s infinite;
}

/* ---------- Mesh gradient animado (Brandbook pág. 12) ---------- */
.mesh { position: absolute; inset: 0; overflow: hidden; filter: blur(70px) saturate(1.2); pointer-events: none; }
.mesh i { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
.mesh i:nth-child(1) { width: 55vmax; height: 40vmax; left: -10%; top: 5%;  background: radial-gradient(circle, var(--purple) 0%, transparent 65%); animation: blob-a 22s var(--ease-out) infinite alternate; }
.mesh i:nth-child(2) { width: 50vmax; height: 45vmax; right: -15%; top: -10%; background: radial-gradient(circle, var(--violeta) 0%, transparent 65%); animation: blob-b 26s ease-in-out infinite alternate; }
.mesh i:nth-child(3) { width: 45vmax; height: 40vmax; left: -5%; bottom: -25%; background: radial-gradient(circle, var(--azul) 0%, transparent 65%); animation: blob-c 30s ease-in-out infinite alternate; }
.mesh i:nth-child(4) { width: 35vmax; height: 30vmax; right: 5%; bottom: -10%; background: radial-gradient(circle, var(--purple) 0%, transparent 60%); opacity: .7; animation: blob-d 24s ease-in-out infinite alternate; }
.mesh::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 30%, var(--black-dog) 85%); }
.mesh--soft { opacity: .45; }

.hero-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(249, 249, 248, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249, 249, 248, .05) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%);
}
.spotlight {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(183, 5, 255, .18), transparent 60%);
}
[data-spotlight]:hover .spotlight { opacity: 1; }

.grain {
    position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 1.2s steps(6) infinite;
}

.scroll-progress {
    position: fixed; left: 0; top: 0; z-index: 70; height: 3px; width: 100%;
    background: linear-gradient(90deg, var(--azul), var(--violeta), var(--purple));
    transform-origin: 0 50%; transform: scaleX(var(--p, 0));
    box-shadow: 0 0 12px var(--purple);
}

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 60;
    transition: background .4s, border-color .4s, transform .5s var(--ease-out), backdrop-filter .4s;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    background: rgba(10, 10, 10, .62);
    backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-color: var(--glass-border);
}
.site-header.is-hidden { transform: translateY(-100%); }
.nav-link {
    position: relative; padding: .5rem 1rem; font-size: .92rem; font-weight: 500;
    color: rgba(249, 249, 248, .8); transition: color .25s;
}
.nav-link::after {
    content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px;
    background: var(--purple); box-shadow: 0 0 10px var(--purple);
    transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease-out);
}
.nav-link:hover, .nav-link.is-active { color: var(--white-dog); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); transform-origin: left; }

.menu-toggle {
    width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-content: center; gap: 5px;
    border: 1px solid var(--glass-border); background: var(--glass-bg); position: relative; z-index: 70;
}
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--white-dog); transition: transform .35s var(--ease-out), opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-mobile {
    position: fixed; inset: 0; z-index: 55; background: var(--black-dog);
    display: flex; flex-direction: column; justify-content: center;
    clip-path: circle(0 at calc(100% - 2.5rem) 2.5rem); visibility: hidden;
    transition: clip-path .7s var(--ease-out), visibility 0s .7s;
}
.menu-open .menu-mobile { clip-path: circle(150% at calc(100% - 2.5rem) 2.5rem); visibility: visible; transition: clip-path .8s var(--ease-out); }
.menu-open { overflow: hidden; }
.menu-mobile__link {
    font-size: clamp(2.4rem, 11vw, 4rem); line-height: 1; color: var(--white-dog);
    opacity: 0; transform: translateY(30px); transition: opacity .5s, transform .6s var(--ease-out), color .2s;
}
.menu-mobile__link:hover { color: var(--purple); }
.menu-open .menu-mobile__link { opacity: 1; transform: none; transition-delay: calc(.15s + var(--i) * .06s); }

/* ---------- Logos (clear space = X/4, Brandbook pág. 8) ---------- */
.logo-h { --h: 2.6rem; display: inline-flex; align-items: center; gap: calc(var(--h) * 1.42 / 4); }
.logo-h__symbol { height: var(--h); width: auto; }
.wordmark { display: block; font-size: calc(var(--h) * .36); line-height: .86; color: var(--white-dog); }
.logo-v { --w: 9rem; display: inline-flex; flex-direction: column; align-items: center; gap: calc(var(--w) / 4 * .5); }
.logo-v__symbol { width: var(--w); height: auto; }
.logo-v__word { display: flex; flex-direction: column; align-items: center; line-height: .86; color: var(--white-dog); }
.logo-v__word b { font-size: calc(var(--w) * .3); font-weight: 800; }
.logo-v__word small { font-size: calc(var(--w) * .175); font-weight: 800; }

.logo-c { --s: 10rem; position: relative; display: inline-grid; place-items: center; width: var(--s); height: var(--s); }
.logo-c__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.logo-c__ring text { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 1px; fill: var(--white-dog); font-variation-settings: "wdth" 125; }
.logo-c__ring.is-spinning { animation: spin 22s linear infinite; }
.logo-c__symbol { width: 58%; }
.logo-c__symbol svg { width: 100%; height: auto; }
.badge-sm { --s: 8.5rem; }
.badge-lg { --s: 12rem; }

/* ---------- Botões ---------- */
.btn {
    --bx: 0px; --by: 0px;
    position: relative; isolation: isolate; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
    font-size: .95rem; letter-spacing: .02em; line-height: 1;
    padding: 1rem 1.6rem; border-radius: 999px; cursor: pointer;
    transform: translate(var(--bx), var(--by));
    transition: transform .35s var(--ease-out), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn-lg { padding: 1.2rem 2rem; font-size: 1rem; }
.btn-sm { padding: .7rem 1.1rem; font-size: .8rem; }
.btn-primary { background: var(--purple); color: var(--black-dog); box-shadow: 0 0 0 0 rgba(183, 5, 255, .0), 0 10px 40px -10px rgba(183, 5, 255, .7); }
.btn-primary:hover { box-shadow: 0 0 0 6px rgba(183, 5, 255, .18), 0 0 50px rgba(183, 5, 255, .65); }
.btn-primary::before, .btn-dark::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-primary:hover::before, .btn-dark:hover::before { transform: translateX(120%); }
.btn-ghost { border: 1px solid rgba(249, 249, 248, .22); color: var(--white-dog); background: rgba(249, 249, 248, .03); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); box-shadow: inset 0 0 20px rgba(183, 5, 255, .2); }
.btn-dark { background: var(--black-dog); color: var(--white-dog); }
.btn-dark:hover { box-shadow: 0 20px 50px -15px rgba(10, 10, 10, .8); }
.btn svg { transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Hero ---------- */
.hero-dog { position: relative; width: min(30rem, 82vw); }
.hero-dog__svg { position: relative; width: 100%; height: auto; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 60px rgba(183, 5, 255, .35)); }
.hero-dog__glow {
    position: absolute; inset: 5% 10%; border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 5, 255, .65), rgba(61, 72, 214, .3) 45%, transparent 70%);
    filter: blur(40px); animation: glow 5s ease-in-out infinite;
}
.hero-dog__badge { position: absolute; right: -6%; bottom: -14%; }
.hero-dog__badge .logo-c { background: rgba(10, 10, 10, .55); border-radius: 50%; border: 1px solid var(--glass-border); backdrop-filter: blur(10px); }

.float-shape { position: absolute; pointer-events: none; animation: drift 14s ease-in-out infinite alternate; filter: drop-shadow(0 0 25px currentColor); }
.float-shape:nth-of-type(2n) { animation-duration: 18s; animation-direction: alternate-reverse; }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(249, 249, 248, .35); border-radius: 20px; z-index: 10; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--purple); animation: cue 1.8s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee-band { position: relative; z-index: 5; background: var(--purple); color: var(--black-dog); transform: rotate(-2deg); margin: 2rem -2rem; box-shadow: 0 0 80px rgba(183, 5, 255, .45); }
.marquee { overflow: hidden; padding: 1.4rem 0; }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee-band:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-size: clamp(1.8rem, 4vw, 3.25rem); line-height: 1; white-space: nowrap; }
.marquee__sep { width: 2.75rem; height: auto; color: var(--black-dog); flex-shrink: 0; }

/* ---------- Sobre ---------- */
.about-col { border-top: 1px solid rgba(249, 249, 248, .14); padding-top: 1.5rem; }
.about-col__n { display: block; font-size: .9rem; color: var(--purple); margin-bottom: 1rem; }
.about-col p { color: rgba(249, 249, 248, .68); line-height: 1.7; margin-top: .9rem; font-size: .95rem; }

/* ---------- Cards glass ---------- */
.card-glass {
    --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
    position: relative; overflow: hidden; isolation: isolate;
    padding: 2rem; border-radius: var(--radius);
    background: linear-gradient(160deg, rgba(249, 249, 248, .06), rgba(249, 249, 248, .015));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .5s var(--ease-out), border-color .3s, box-shadow .4s;
}
.card-glass::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(183, 5, 255, .22), transparent 55%);
}
.card-glass::after { /* borda neon que segue o cursor */
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
    background: radial-gradient(260px circle at var(--mx) var(--my), var(--purple), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card-glass:hover { box-shadow: 0 30px 80px -30px rgba(183, 5, 255, .45); }
.card-glass:hover::before, .card-glass:hover::after { opacity: 1; }
.card-glass__icon {
    width: 3.4rem; height: 3.4rem; border-radius: 1rem; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--purple), var(--azul)); color: var(--white-dog);
    box-shadow: 0 10px 30px -8px rgba(183, 5, 255, .8);
}
.card-glass__icon svg { width: 1.5rem; height: 1.5rem; }
.chip { font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .35rem .75rem; border-radius: 999px; border: 1px solid rgba(249, 249, 248, .14); color: rgba(249, 249, 248, .75); }

/* ---------- Manifesto ---------- */
.manifesto {
    font-family: var(--font-display); font-weight: 700; font-variation-settings: "wdth" 115;
    font-size: clamp(1.9rem, 4.6vw, 4.2rem); line-height: 1.08; letter-spacing: -.01em;
}
.manifesto .w { color: rgba(249, 249, 248, .14); transition: color .35s, text-shadow .35s; }
.manifesto .w.is-on { color: var(--white-dog); }
.manifesto .w.is-on.hl { color: var(--purple); text-shadow: 0 0 30px rgba(183, 5, 255, .6); }

/* ---------- Método ---------- */
.steps-wrap { position: relative; }
.steps { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 2rem; } }
.steps__line { display: none; }
@media (min-width: 1024px) {
    .steps__line { display: block; position: absolute; left: 1.75rem; right: 1.75rem; top: 1.75rem; height: 2px; background: rgba(249, 249, 248, .1); }
    .steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--azul), var(--purple)); box-shadow: 0 0 14px var(--purple); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }
}
.step { position: relative; }
.step__n {
    position: relative; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%;
    background: var(--black-dog); border: 2px solid rgba(249, 249, 248, .2); font-size: 1rem;
    transition: border-color .4s, box-shadow .4s, color .4s;
}
.step.is-active .step__n { border-color: var(--purple); color: var(--purple); box-shadow: 0 0 0 6px rgba(183, 5, 255, .12), 0 0 30px rgba(183, 5, 255, .6); }

/* ---------- CTA roxo (aplicação fundo roxo, Brandbook pág. 7) ---------- */
.cta-purple { background: var(--purple); color: var(--black-dog); }
.cta-dog { animation: float 7s ease-in-out infinite; }

/* ---------- FAQ ---------- */
.faq { border-radius: 1.25rem; border: 1px solid var(--glass-border); background: var(--glass-bg); transition: border-color .3s, background .3s; }
.faq[open] { border-color: rgba(183, 5, 255, .45); background: rgba(183, 5, 255, .05); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
    padding: 1.5rem 1.75rem; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; font-variation-settings: "wdth" 110;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex-shrink: 0; width: 1.25rem; height: 1.25rem; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--purple); transition: transform .35s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i::after { transform: rotate(0); }
.faq__body { padding: 0 1.75rem 1.5rem; color: rgba(249, 249, 248, .7); line-height: 1.7; animation: fade-down .45s var(--ease-out); }

/* ---------- Formulário ---------- */
.form-glass {
    position: relative; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 2rem;
    background: linear-gradient(160deg, rgba(10, 10, 10, .72), rgba(10, 10, 10, .5));
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 40px 120px -40px rgba(183, 5, 255, .5);
}
.field { position: relative; }
.field input, .field select, .field textarea {
    width: 100%; padding: 1.55rem 1.1rem .6rem; border-radius: 1rem;
    background: rgba(249, 249, 248, .04); border: 1px solid rgba(249, 249, 248, .12);
    color: var(--white-dog); font-size: 1rem; outline: none; resize: vertical; appearance: none;
    transition: border-color .25s, box-shadow .25s, background .25s;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23b705ff' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.5rem; }
.field select option { background: var(--black-dog); color: var(--white-dog); }
.field label {
    position: absolute; left: 1.1rem; top: 1.1rem; font-size: 1rem; color: rgba(249, 249, 248, .5);
    pointer-events: none; transform-origin: 0 0; transition: transform .25s var(--ease-out), color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); background: rgba(183, 5, 255, .06); box-shadow: 0 0 0 4px rgba(183, 5, 255, .15), 0 0 24px rgba(183, 5, 255, .25); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { transform: translateY(-.6rem) scale(.75); color: var(--purple); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field .field-error { display: block; margin-top: .4rem; font-size: .78rem; color: var(--error); }

.consent { display: flex; gap: .8rem; align-items: flex-start; font-size: .85rem; color: rgba(249, 249, 248, .7); line-height: 1.5; cursor: pointer; }
.consent input { flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin-top: .15rem; accent-color: var(--purple); }
.consent a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.consent.is-invalid span { color: var(--error); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status.is-ok { color: var(--white-dog); }
.form-status.is-ok::before { content: "✓ "; color: var(--purple); font-weight: 800; }
.form-status.is-error { color: var(--error); }
.btn.is-loading [data-label]::after { content: ""; display: inline-block; width: .9em; height: .9em; margin-left: .6em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.contact-line { display: flex; flex-direction: column; font-size: 1.15rem; font-weight: 600; transition: color .2s; }
.contact-line span { font-size: .72rem; text-transform: uppercase; letter-spacing: .16em; color: var(--purple); font-weight: 700; }
.contact-line:hover { color: var(--purple); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--glass-border); background: linear-gradient(180deg, var(--black-dog), #0d0614); }
.footer-giant {
    white-space: nowrap; pointer-events: none; text-align: center; overflow: hidden;
    font-size: 9.6vw; line-height: .78; margin-bottom: -1.2vw; color: transparent; -webkit-text-stroke: 1px rgba(183, 5, 255, .3);
}
.footer-title { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--purple); margin-bottom: 1.25rem; }
.footer-link { color: rgba(249, 249, 248, .7); transition: color .2s; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; }
.footer-link:hover { color: var(--purple); }
.logo-footer { --w: 8rem; }
.social { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--glass-border); font-size: .8rem; font-weight: 700; transition: background .25s, color .25s, box-shadow .25s; }
.social:hover { background: var(--purple); color: var(--black-dog); box-shadow: 0 0 25px rgba(183, 5, 255, .6); }

/* ---------- Modais ---------- */
.modal { padding: 0; border: 0; background: transparent; color: var(--white-dog); max-width: min(42rem, calc(100vw - 2rem)); width: 100%; }
.modal::backdrop { background: rgba(10, 10, 10, .7); backdrop-filter: blur(8px); }
.modal[open] { animation: modal-in .5s var(--ease-out); }
.modal__box {
    position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 1.75rem; max-height: 85vh; overflow: auto;
    background: linear-gradient(160deg, #160a22, var(--black-dog)); border: 1px solid rgba(183, 5, 255, .35);
    box-shadow: 0 0 80px -20px rgba(183, 5, 255, .6);
}
.modal__close { position: absolute; right: 1rem; top: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.5rem; line-height: 1; border: 1px solid var(--glass-border); transition: background .2s, color .2s; }
.modal__close:hover { background: var(--purple); color: var(--black-dog); }
.modal__body { margin-top: 1.25rem; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 2rem; }

/* ---------- Conteúdo legal ---------- */
.legal { color: rgba(249, 249, 248, .78); line-height: 1.75; }
.legal h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-variation-settings: "wdth" 120; font-size: 1.5rem; color: var(--white-dog); margin: 3rem 0 1rem; scroll-margin-top: 7rem; }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white-dog); margin: 1.75rem 0 .5rem; }
.legal p { margin: .85rem 0; }
.legal ul, .legal ol { margin: .85rem 0; padding-left: 1.25rem; }
.legal ul li { list-style: none; position: relative; margin: .5rem 0; }
.legal ul li::before { content: ""; position: absolute; left: -1.1rem; top: .7em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--purple); }
.legal ol li { list-style: decimal; margin: .5rem 0; }
.legal a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--white-dog); }
.legal table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.legal th, .legal td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--glass-border); vertical-align: top; }
.legal th { color: var(--purple); font-weight: 700; }
.legal-note { padding: 1rem 1.25rem; border-left: 3px solid var(--purple); background: rgba(183, 5, 255, .07); border-radius: 0 .75rem .75rem 0; font-size: .9rem; }
.legal-hero { position: relative; overflow: hidden; padding: 10rem 0 5rem; }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; border-left: 2px solid rgba(249, 249, 248, .1); font-size: .88rem; color: rgba(249, 249, 248, .6); transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.is-active { color: var(--white-dog); border-color: var(--purple); }
.table-scroll { overflow-x: auto; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 80; max-width: 40rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1rem 1.25rem; border-radius: 1.25rem;
    background: rgba(10, 10, 10, .85); border: 1px solid var(--glass-border); backdrop-filter: blur(16px);
    font-size: .85rem; color: rgba(249, 249, 248, .8); animation: fade-up .6s var(--ease-out);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 18rem; }
.cookie-bar a { color: var(--purple); text-decoration: underline; }

/* ---------- Reveal on scroll (só com JS ativo) ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ---------- Keyframes ---------- */
@keyframes gradient-pan { to { background-position: -220% 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(183, 5, 255, .7); } 70% { box-shadow: 0 0 0 10px rgba(183, 5, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(183, 5, 255, 0); } }
@keyframes blob-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(18vw, 10vh) scale(1.2); } 100% { transform: translate(30vw, -5vh) scale(.9); } }
@keyframes blob-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-20vw, 15vh) scale(.85); } 100% { transform: translate(-8vw, 30vh) scale(1.15); } }
@keyframes blob-c { 0% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(25vw, -15vh) scale(.9); } 100% { transform: translate(10vw, -30vh) scale(1.2); } }
@keyframes blob-d { 0% { transform: translate(0, 0); } 100% { transform: translate(-30vw, -20vh) scale(1.3); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-7%, 8%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(-2%, -4%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes drift { 0% { transform: translate(0, 0) rotate(0); } 100% { transform: translate(30px, -40px) rotate(25deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(30px) scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; filter: none; }
    .grain { display: none; }
}
