/* Desvelo — site público.
   Paleta da marca (rendering/theme.py): tinta, superfície, marfim, prata, vinho e rosé. */

@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0b10;
  --ink-2: #101018;
  --surface: #15151d;
  --surface-2: #1c1c27;
  --line: #2a2a37;
  --ivory: #f3eee5;
  --muted: #a8a9b2;
  --wine: #c44f78;
  --rose: #f0a9c0;
  --gold: #f2c66d;

  --r-common: #c9cad3;
  --r-uncommon: #7fd1a8;
  --r-rare: #7aa7ff;
  --r-epic: #b88cff;
  --r-legendary: #f2c66d;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(196, 79, 120, .16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(240, 169, 192, .06), transparent 60%),
    var(--ink);
  color: var(--ivory);
  font: 400 17px/1.6 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
code, kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; }
::selection { background: var(--wine); color: var(--ivory); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ivory); color: var(--ink); border-radius: 999px; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* Textura de papel e barra de progresso */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' 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;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 80; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); background: linear-gradient(90deg, var(--wine), var(--rose), var(--gold)); }

/* Tipografia */
.eyebrow { margin: 0 0 18px; font: 600 12px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--rose); }
.display, .title { font-family: var(--serif); font-weight: 380; font-variation-settings: "opsz" 144, "SOFT" 50; letter-spacing: -.035em; margin: 0; }
.display { font-size: clamp(3.4rem, 8.6vw, 9rem); line-height: .9; }
.title { font-size: clamp(2.4rem, 5.4vw, 5.4rem); line-height: .95; }
.display em, .title em {
  font-style: italic; font-weight: 340;
  background: linear-gradient(100deg, var(--rose) 0%, var(--wine) 45%, var(--rose) 70%, var(--ivory) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s var(--ease-in-out) infinite alternate;
  padding-right: .06em;
}
@keyframes sheen { to { background-position: 100% 0; } }
/* Com as palavras animadas, o gradiente vai em cada palavra: o recorte no <em> some quando ele quebra linha. */
[data-split] em { background: none; animation: none; }
[data-split] em .w > span {
  background: linear-gradient(100deg, var(--rose) 0%, var(--wine) 45%, var(--rose) 70%, var(--ivory) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s var(--ease-in-out) infinite alternate;
  padding-right: .06em;
}
.lede { max-width: 56ch; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.18rem); margin: 24px 0 0; }
.section-head { max-width: var(--max); margin: 0 auto 56px; padding: 0 var(--gutter); }
.section-head--center { text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.center { text-align: center; margin-top: 48px; }

/* Palavras que sobem ao entrar */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transition: transform 1.1s var(--ease); transition-delay: calc(var(--w, 0) * 70ms + 150ms); }
[data-split].is-in .w > span { transform: none; }

[data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* Botões */
.button {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; border: 1px solid transparent;
  background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 15px; letter-spacing: .01em;
  transform: translate(var(--mx), var(--my)); transition: transform .5s var(--ease), background .3s, color .3s, box-shadow .4s;
  box-shadow: 0 10px 40px -12px rgba(240, 169, 192, .55);
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.button::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, var(--rose), var(--wine)); transform: translateY(101%); transition: transform .5s var(--ease); }
.button:hover { color: var(--ivory); box-shadow: 0 16px 50px -10px rgba(196, 79, 120, .8); }
.button:hover::before { transform: none; }
.button--ghost { background: transparent; color: var(--ivory); border-color: rgba(243, 238, 229, .25); box-shadow: none; }
.button--small { padding: 10px 18px; font-size: 13px; }
.button--large { padding: 22px 40px; font-size: 18px; }

/* Navegação */
.nav {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, backdrop-filter .4s, padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(11, 11, 16, .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); padding-block: 12px; border-color: rgba(243, 238, 229, .06); }
.nav.is-hidden { transform: translateY(-100%); }
.nav { transition: transform .5s var(--ease), background .4s, padding .4s var(--ease), border-color .4s; }
.brand { display: flex; align-items: center; gap: 12px; font: 600 22px/1 var(--serif); letter-spacing: -.02em; }
.brand svg, .footer__brand svg { width: 30px; height: 30px; fill: var(--ivory); }
.brand .slit, .footer__brand .slit { fill: var(--wine); filter: drop-shadow(0 0 8px var(--rose)); }
.nav nav { display: flex; gap: 6px; }
.nav nav a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.nav nav a:hover, .nav nav a.is-active { color: var(--ivory); background: rgba(243, 238, 229, .06); }

/* A fresta de luz: o símbolo da marca em escala de cena */
.slit { position: absolute; left: 50%; top: 50%; width: 2px; height: 78%; transform: translate(-50%, -50%) scaleY(var(--open, 0)); pointer-events: none; }
.slit::before { content: ""; position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(180deg, transparent, var(--rose) 18%, #fff 50%, var(--rose) 82%, transparent); box-shadow: 0 0 22px 4px rgba(240, 169, 192, .8), 0 0 80px 20px rgba(196, 79, 120, .45); }
.slit i { position: absolute; left: 50%; top: 50%; width: 46vw; max-width: 720px; height: 120%; transform: translate(-50%, -50%) scaleX(var(--spread, .15)); background: radial-gradient(closest-side, rgba(196, 79, 120, .35), rgba(196, 79, 120, .08) 60%, transparent); filter: blur(10px); }
.slit--wide { height: 92%; }

/* Card com inclinação 3D, brilho holográfico e reflexo */
.card3d {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --hover: 0; --rc: var(--r-common); --foil: 0;
  position: relative; aspect-ratio: 2 / 3; border-radius: 4.6% / 3.1%; overflow: hidden;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
  box-shadow: 0 28px 60px -28px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04);
  background: var(--surface-2);
}
.card3d.is-tilting { transition: transform .12s linear, box-shadow .5s var(--ease); }
.card3d img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.card3d .foil, .card3d .glare { position: absolute; inset: 0; pointer-events: none; }
.card3d .foil {
  opacity: calc(var(--foil) * (.45 + var(--hover) * .55));
  mix-blend-mode: color-dodge;
  background:
    repeating-linear-gradient(115deg, transparent 0 6%, rgba(255, 255, 255, .06) 7% 8%, transparent 9% 14%),
    linear-gradient(115deg, transparent 18%, rgba(240, 169, 192, .55) 32%, rgba(242, 198, 109, .5) 44%, rgba(122, 167, 255, .45) 56%, rgba(184, 140, 255, .5) 68%, transparent 82%);
  background-size: 100% 100%, 250% 250%;
  background-position: center, calc(var(--mx) * 1.2 - 10%) calc(var(--my) * 1.2 - 10%);
  transition: opacity .5s var(--ease);
}
.card3d .glare {
  opacity: calc(var(--hover) * .9);
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .42), rgba(255, 255, 255, .08) 28%, transparent 55%);
  mix-blend-mode: overlay; transition: opacity .5s var(--ease);
}
.card3d[data-rarity="uncommon"] { --rc: var(--r-uncommon); --foil: .25; }
.card3d[data-rarity="rare"] { --rc: var(--r-rare); --foil: .4; }
.card3d[data-rarity="epic"] { --rc: var(--r-epic); --foil: .6; }
.card3d[data-rarity="legendary"] { --rc: var(--r-legendary); --foil: .9; }
.card3d:hover, .card3d.is-tilting { --hover: 1; box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--rc) 70%, transparent), 0 0 0 1px color-mix(in srgb, var(--rc) 35%, transparent); }
.card3d[data-rarity="legendary"]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: calc(.35 + var(--hover) * .5);
  background-image: radial-gradient(1.5px 1.5px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 20%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 80%, #fff, transparent), radial-gradient(1px 1px at 85% 65%, #fff, transparent), radial-gradient(1.2px 1.2px at 60% 45%, #fff, transparent);
  animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .2; } to { opacity: .8; } }

/* 1. Hero */
.hero {
  position: relative; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 32px;
  max-width: 1480px; margin: 0 auto; padding: 120px var(--gutter) 80px;
}
/* Ocupa a viewport inteira (não só os 1480px do hero) e some em degradê no rodapé, sem bordas duras */
.hero__glow {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; margin-left: -50vw; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.hero__glow::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1200px; height: 840px; margin: -420px 0 0 -600px;
  background: radial-gradient(closest-side, rgba(196, 79, 120, .2), rgba(196, 79, 120, .13) 25%, rgba(196, 79, 120, .06) 48%, rgba(196, 79, 120, .015) 64%, transparent 72%);
  transform: translate3d(var(--gx, 70vw), var(--gy, 45svh), 0); will-change: transform;
}
.hero__copy { position: relative; z-index: 2; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 56px 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dt { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.stats dd { margin: 0; font: 400 clamp(2rem, 3.4vw, 3rem)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__stage { position: relative; height: min(78svh, 760px); perspective: 1600px; }
.hero__stage .slit { --open: 0; transition: transform 1.4s var(--ease-in-out); }
.hero.is-open .hero__stage .slit { --open: 1; }
.hero.is-open .slit i { --spread: 1; transition: transform 1.8s var(--ease) .5s; }
.fan { position: absolute; inset: 0; transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); transition: transform .6s var(--ease); }
.fan .card3d {
  position: absolute; left: 50%; top: 50%; width: clamp(140px, 13.4vw, 232px);
  translate: calc(-50% + var(--fx, 0px) * var(--fanned, 0)) calc(-50% + var(--fy, 0px) * var(--fanned, 0));
  rotate: calc(var(--fr, 0deg) * var(--fanned, 0));
  scale: calc(.6 + var(--fanned, 0) * .4);
  opacity: var(--fanned, 0);
  transition: translate 1.6s var(--ease), rotate 1.6s var(--ease), scale 1.6s var(--ease), opacity .9s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
  transition-delay: calc(var(--k, 0) * 110ms + 700ms);
  z-index: var(--z, 1);
}
.hero.is-open .fan .card3d { --fanned: 1; }
.fan .card3d .tag { position: absolute; left: 50%; bottom: -34px; translate: -50% 0; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--rc); white-space: nowrap; }
.fan .card3d { overflow: visible; }
.fan .card3d .clip { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.dust { position: absolute; inset: -10%; pointer-events: none; }
.dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 8px var(--rose); opacity: 0; animation: float var(--d, 8s) linear var(--delay, 0s) infinite; }
@keyframes float { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(var(--dx, 20px), -220px) scale(1.1); opacity: 0; } }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; width: 26px; height: 42px; border: 1.5px solid rgba(243, 238, 229, .35); border-radius: 14px; translate: -50% 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--rose); animation: cue 1.8s var(--ease-in-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* 2. Faixas */
.ribbons { position: relative; padding: 70px 0 110px; overflow: hidden; }
.ribbon { position: relative; overflow: hidden; padding: 22px 0; background: var(--ivory); color: var(--ink); transform: rotate(-2.2deg) scale(1.04); box-shadow: 0 30px 80px -40px rgba(196, 79, 120, .8); }
.ribbon--commands { margin-top: -18px; background: linear-gradient(90deg, var(--wine), #9d3b5f); color: var(--ivory); transform: rotate(1.6deg) scale(1.04); z-index: -1; }
.ribbon__track { display: flex; width: max-content; will-change: transform; }
.ribbon__track span { display: inline-flex; align-items: center; gap: 36px; padding-right: 36px; font: 400 clamp(1.8rem, 3.6vw, 3.4rem)/1 var(--serif); letter-spacing: -.02em; white-space: nowrap; }
.ribbon__track span::after { content: "✦"; font-size: .45em; color: var(--wine); }
.ribbon--commands .ribbon__track span { font: 600 clamp(1.1rem, 2vw, 1.6rem)/1 ui-monospace, "SF Mono", Menlo, monospace; }
.ribbon--commands .ribbon__track span::after { color: var(--rose); font-family: var(--serif); }

/* 3. Drop simulado */
.drop { position: relative; height: 460vh; }
.drop__sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 120px); max-width: var(--max); margin: 0 auto; padding: 80px var(--gutter) 40px; }
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; padding: 16px 20px; border-radius: 18px; color: var(--muted); border: 1px solid transparent; transition: background .5s var(--ease), color .5s, border-color .5s, transform .6s var(--ease); counter-increment: s; }
.steps li::before { content: "0" counter(s); grid-row: span 2; align-self: center; font: 400 28px/1 var(--serif); color: var(--line); transition: color .5s; }
.steps li b { font: 500 22px/1.2 var(--serif); color: var(--ivory); opacity: .55; transition: opacity .5s; }
.steps li span { font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .5s .1s; }
.steps li.is-active { background: linear-gradient(100deg, rgba(196, 79, 120, .16), rgba(196, 79, 120, .02)); border-color: rgba(240, 169, 192, .22); color: var(--ivory); transform: translateX(8px); }
.steps li.is-active::before { color: var(--rose); }
.steps li.is-active b { opacity: 1; }
.steps li.is-active span { max-height: 4em; opacity: 1; }
.steps li.is-done b { opacity: .8; }

.phone { position: relative; width: min(420px, 36vw); aspect-ratio: 9 / 18.5; border-radius: 52px; padding: 12px; background: linear-gradient(160deg, #2b2b38, #0d0d13 45%, #20202b); box-shadow: 0 60px 120px -40px rgba(196, 79, 120, .55), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .04); transform: rotate(var(--phone-r, -3deg)) translateY(var(--phone-y, 0)); transition: transform .8s var(--ease); }
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 100px; height: 26px; margin-left: -50px; border-radius: 20px; background: #000; }
.phone__bar { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 50px 18px 14px; border-radius: 40px 40px 0 0; background: rgba(21, 21, 29, .95); border-bottom: 1px solid var(--line); }
.phone__bar b { display: block; font-size: 15px; }
.phone__bar small { color: var(--muted); font-size: 12px; }
.phone__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--ink) url("../img/desvelo-mark.svg") center / cover; box-shadow: 0 0 0 2px rgba(240, 169, 192, .3); }
.chat { height: calc(100% - 103px); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 14px; border-radius: 0 0 40px 40px; overflow: hidden;
  background: radial-gradient(400px 300px at 80% 10%, rgba(196, 79, 120, .18), transparent), linear-gradient(180deg, #121219, #0e0e15); }
.bubble { align-self: flex-start; max-width: 84%; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); font-size: 14px; line-height: 1.4; opacity: 0; transform: translateY(14px) scale(.96); transform-origin: 0 100%; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bubble--me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: linear-gradient(135deg, var(--wine), #a33f64); font-family: ui-monospace, Menlo, monospace; transform-origin: 100% 100%; }
.bubble.is-on { opacity: 1; transform: none; }
.bubble span { color: var(--muted); font-size: 13px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .6s var(--ease); }
.trio.is-on { opacity: 1; transform: none; }
.flip { position: relative; aspect-ratio: 2 / 3; perspective: 700px; }
.flip__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); transform: rotateY(180deg); }
.flip.is-revealed .flip__inner { transform: rotateY(0); }
.flip__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 8px; overflow: hidden; }
.flip__face img { width: 100%; height: 100%; object-fit: cover; }
.flip__back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 50%, rgba(240, 169, 192, .4), transparent 55%), linear-gradient(160deg, #2a1420, #0b0b10); display: grid; place-items: center; border: 1px solid rgba(240, 169, 192, .25); }
.flip__back::before { content: ""; width: 2px; height: 60%; background: linear-gradient(180deg, transparent, var(--rose), transparent); box-shadow: 0 0 12px var(--rose); }
.flip { transition: transform .6s var(--ease), filter .6s, opacity .6s; }
.trio.is-chosen .flip:not(.is-picked) { filter: grayscale(1) brightness(.45); transform: scale(.94); }
.flip.is-picked { transform: translateY(-6px) scale(1.04); z-index: 1; }
.flip.is-picked .flip__face { box-shadow: 0 0 0 2px var(--rc, var(--rose)), 0 12px 30px -6px var(--rc, var(--rose)); }
.flip .rar { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(11, 11, 16, .78); font: 700 8px/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--rc); }

/* 4. Recursos */
.features { padding: 160px 0 120px; }
.bento { --x: 50%; --y: 50%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 26px; background: linear-gradient(180deg, var(--surface), var(--ink-2)); border: 1px solid var(--line); overflow: hidden; isolation: isolate; transition: border-color .4s, transform .6s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; background: radial-gradient(420px circle at var(--tx, 50%) var(--ty, 50%), rgba(196, 79, 120, .28), transparent 60%); transition: opacity .4s; }
.bento:hover .tile::before { opacity: 1; }
.tile:hover { border-color: rgba(240, 169, 192, .35); transform: translateY(-4px); }
.tile--wide { grid-column: span 2; }
.tile--tall { grid-row: span 2; }
.tile__num { font: 400 15px/1 var(--serif); font-style: italic; color: var(--rose); }
.tile h3 { margin: auto 0 10px; padding-top: 34px; font: 450 clamp(1.5rem, 2.2vw, 2.1rem)/1.05 var(--serif); letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; max-width: 42ch; }
.tile code { align-self: flex-start; margin-top: 20px; padding: 6px 12px; border-radius: 999px; background: rgba(240, 169, 192, .08); color: var(--rose); font-size: 13px; border: 1px solid rgba(240, 169, 192, .16); }
.tile--tall h3 { font-size: clamp(2rem, 3vw, 2.8rem); }

/* 5. Escada de raridades */
.ladder { position: relative; height: 340vh; }
.ladder__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; overflow: hidden; }
.ladder__sticky .section-head { margin-bottom: 20px; }
.ladder__stage { position: relative; flex: 1; min-height: 420px; }
.ladder__stage .slit { --open: 1; }
.ladder__stage .slit i { --spread: calc(.25 + var(--p, 0) * .9); }
.ladder__cards { position: absolute; inset: 0; }
.ladder__cards .rung {
  position: absolute; left: 50%; top: 50%; width: clamp(125px, 12vw, 205px);
  --t: clamp(0, calc((var(--p, 0) - var(--k) * .085) * 3.8), 1);
  translate: calc(-50% + (var(--k) - 2) * var(--t) * var(--spread, clamp(170px, 16.5vw, 280px))) calc(-50% + (1 - var(--t)) * 46vh + (var(--k) - 2) * (var(--k) - 2) * var(--t) * 8px);
  rotate: calc((var(--k) - 2) * var(--t) * 5deg);
  opacity: var(--t);
  z-index: calc(10 - (var(--k) - 2) * (var(--k) - 2));
}
.rung__label { position: absolute; left: 0; right: 0; top: calc(100% + 18px); text-align: center; }
.rung__label b { display: block; font: 500 clamp(1rem, 1.4vw, 1.3rem)/1.1 var(--serif); color: var(--rc); }
.rung__label small { color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* 6. Galeria */
.gallery { padding: 160px 0 80px; max-width: 1480px; margin: 0 auto; }
.toolbar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 var(--gutter) 14px; padding: 12px; border-radius: 22px; background: rgba(21, 21, 29, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); }
.search { flex: 1 1 260px; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { width: 100%; padding: 13px 48px 13px 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink); outline: none; transition: border-color .3s, box-shadow .3s; }
.search input:focus { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(240, 169, 192, .12); }
.search kbd { position: absolute; right: 12px; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.rarity-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.rarity-filter button, .chips button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); transition: color .3s, border-color .3s, background .3s; }
.rarity-filter button i { width: 9px; height: 9px; border-radius: 50%; background: var(--rc); box-shadow: 0 0 10px var(--rc); }
.rarity-filter button[aria-pressed="true"] { color: var(--ivory); border-color: var(--rc); background: color-mix(in srgb, var(--rc) 14%, transparent); }
.sort select { appearance: none; padding: 12px 38px 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a8a9b2' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") right 14px center no-repeat; cursor: pointer; }
.chips { display: flex; gap: 8px; margin: 0 var(--gutter); padding: 6px 0 14px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; }
.chips button[aria-pressed="true"] { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.chips button small { opacity: .6; font-weight: 500; }
.result { margin: 8px var(--gutter) 22px; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 28px 20px; padding: 0 var(--gutter); }
.item { cursor: pointer; opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease) forwards; animation-delay: calc(var(--n, 0) * 22ms); background: none; border: 0; padding: 0; text-align: left; }
@keyframes rise { to { opacity: 1; transform: none; } }
.item .card3d img { opacity: 0; transition: opacity .6s var(--ease); }
.item .card3d img.is-loaded { opacity: 1; }
.item figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.item figcaption b { display: block; font: 500 17px/1.2 var(--serif); }
.item figcaption span { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.item figcaption em { flex: none; font-style: normal; font-size: 12px; color: var(--rc); font-variant-numeric: tabular-nums; }
.more { text-align: center; margin-top: 56px; }
.more [hidden] { display: none; }
.empty { grid-column: 1 / -1; padding: 80px 0; text-align: center; color: var(--muted); font: italic 400 22px/1.4 var(--serif); }

/* 7. Álbuns */
.albums { position: relative; height: var(--albums-h, 400vh); }
.albums__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.albums__head { margin-bottom: 40px; width: 100%; }
.albums__track { display: flex; gap: 28px; padding: 0 var(--gutter); width: max-content; transform: translate3d(var(--ax, 0px), 0, 0); will-change: transform; }
.album { position: relative; flex: none; width: clamp(320px, 44vw, 720px); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transform: rotate(var(--ar, 0deg)); }
.album img { position: absolute; inset: -4% -12%; width: 124%; height: 108%; max-width: none; object-fit: cover; transform: translate3d(var(--parallax, 0px), 0, 0) scale(1.02); }
.album::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 11, 16, .85)); }
.album figcaption { position: absolute; left: 24px; right: 24px; bottom: 20px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.album figcaption b { font: 450 clamp(1.4rem, 2.4vw, 2.2rem)/1 var(--serif); letter-spacing: -.02em; }
.album figcaption span { color: var(--rose); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }

/* 8. VIP */
.vip { padding: 180px 0 140px; position: relative; }
.vip::before { content: ""; position: absolute; inset: 10% 0 auto; height: 70%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(242, 198, 109, .12), transparent); }
.tiers { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; perspective: 1200px; }
.tier { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; padding: 34px 30px 38px; border-radius: 28px; background: linear-gradient(180deg, var(--surface), var(--ink-2)); border: 1px solid var(--line); transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease), border-color .4s; overflow: hidden; }
.tier.is-tilting { transition: transform .12s linear, border-color .4s; }
.tier::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--mx) var(--my), rgba(242, 198, 109, .16), transparent 50%); opacity: 0; transition: opacity .4s; }
.tier:hover::after { opacity: 1; }
.tier:hover { border-color: rgba(242, 198, 109, .4); }
.tier__level { position: absolute; right: 22px; top: 6px; font: italic 300 120px/1 var(--serif); color: rgba(242, 198, 109, .12); }
.tier h3 { margin: 0; font: 450 32px/1 var(--serif); }
.tier__req { margin: 8px 0 26px; color: var(--gold); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.tier ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tier li { display: flex; gap: 12px; align-items: baseline; color: var(--ivory); }
.tier li::before { content: "✦"; color: var(--gold); font-size: 12px; }
.tier--max { background: linear-gradient(180deg, rgba(242, 198, 109, .1), var(--ink-2) 60%); border-color: rgba(242, 198, 109, .35); }

/* 9. Primeiros passos */
.start { padding: 120px 0; }
.moves { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.moves li { padding: 34px 26px 10px 0; border-right: 1px solid var(--line); }
.moves li + li { padding-left: 26px; }
.moves li:last-child { border-right: 0; }
.moves span { display: block; font: 300 clamp(3rem, 5vw, 5rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(240, 169, 192, .5); }
.moves h3 { margin: 22px 0 10px; font: 450 24px/1.1 var(--serif); }
.moves p { margin: 0; color: var(--muted); font-size: 15px; }
.moves code { color: var(--rose); }
.moves b { color: var(--ivory); }

/* 10. Final */
.finale { position: relative; min-height: 90svh; display: grid; place-items: center; align-content: center; gap: 56px; text-align: center; padding: 120px var(--gutter); overflow: hidden; }
.display--finale { font-size: clamp(3rem, 7.4vw, 8rem); max-width: 14ch; }
.slit--horizon { position: relative; left: auto; top: auto; width: min(80vw, 1100px); height: 2px; transform: scaleX(calc(.2 + var(--p, 0) * 1.6)); transition: transform .3s linear; }
.slit--horizon::before { background: linear-gradient(90deg, transparent, var(--rose) 20%, #fff 50%, var(--rose) 80%, transparent); }
.slit--horizon i { width: 100%; max-width: none; height: 380px; transform: translate(-50%, -50%); }

.footer { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 56px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p { margin: 0; font: italic 400 16px/1.3 var(--serif); color: var(--ivory); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-end; }
.footer nav a:hover { color: var(--rose); }
.footer__note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; opacity: .8; }

/* Visualizador */
.lightbox { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 12, .72); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); color: var(--ivory); display: grid; grid-template-columns: 90px 1fr 90px; align-items: center; opacity: 0; transition: opacity .4s var(--ease), display .4s allow-discrete, overlay .4s allow-discrete; }
.lightbox[open] { opacity: 1; }
@starting-style { .lightbox[open] { opacity: 0; } }
.lightbox::backdrop { background: transparent; }
.lightbox:not([open]) { display: none; }
.lightbox__body { margin: 0; display: grid; grid-template-columns: auto minmax(0, 340px); align-items: center; justify-content: center; gap: clamp(24px, 4vw, 64px); }
.card3d--large { width: min(46svh, 80vw); }
.lightbox__body figcaption .eyebrow { margin-bottom: 14px; }
.lightbox__body figcaption h3 { margin: 0; font: 400 clamp(2.4rem, 4vw, 3.6rem)/1 var(--serif); letter-spacing: -.03em; }
.lightbox__body figcaption p { margin: 10px 0 0; color: var(--muted); }
.lightbox__body figcaption dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 28px 0 0; font-size: 14px; }
.lightbox__body figcaption dt { color: var(--muted); }
.lightbox__body figcaption dd { margin: 0; }
.lightbox__body figcaption .rar { color: var(--rc); font-weight: 700; }
.lightbox__body figcaption code { display: inline-block; margin-top: 26px; padding: 8px 14px; border-radius: 12px; background: rgba(240, 169, 192, .08); color: var(--rose); border: 1px solid rgba(240, 169, 192, .16); }
.lightbox__close, .lightbox__nav { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(243, 238, 229, .2); background: rgba(21, 21, 29, .6); cursor: pointer; font-size: 26px; line-height: 1; justify-self: center; transition: background .3s, border-color .3s, transform .4s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--wine); border-color: var(--wine); transform: scale(1.06); }
.lightbox__close { position: absolute; right: 24px; top: 24px; }

.noscript { position: fixed; bottom: 16px; left: 16px; right: 16px; padding: 14px; border-radius: 14px; background: var(--surface); z-index: 100; }

/* Arte dentro dos blocos de recursos */
.tile__art { position: absolute; pointer-events: none; z-index: -1; }
.tile--art h3 { max-width: 11ch; }
.tile--art p { max-width: 27ch; }
.tile__art--trio { right: 2%; top: 50%; width: 42%; height: 88%; translate: 0 -50%; }
.tile__art--trio .card3d { position: absolute; top: 50%; left: 50%; width: 38%; translate: calc(-50% + var(--ox)) -50%; rotate: var(--or); transition: translate .8s var(--ease), rotate .8s var(--ease); }
.tile:hover .tile__art--trio .card3d { translate: calc(-50% + var(--ox) * 1.35) calc(-50% - 10px); rotate: calc(var(--or) * 1.5); }
.tile__art--market { left: 50%; top: 18%; width: 74%; height: 50%; translate: -50% 0; }
.tile__art--market .card3d { position: absolute; left: 50%; top: 0; width: 52%; translate: calc(-50% + var(--ox)) var(--oy); rotate: var(--or); transition: translate .8s var(--ease), rotate .8s var(--ease); }
.tile:hover .tile__art--market .card3d { translate: calc(-50% + var(--ox) * 1.4) calc(var(--oy) - 8px); }
.tile__art--market .price { position: absolute; z-index: 3; left: 62%; top: -4%; padding: 5px 10px; border-radius: 999px; background: var(--ink); border: 1px solid rgba(242, 198, 109, .4); color: var(--gold); font: 700 12px/1 var(--sans); white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(0,0,0,.8); }
.tile--tall { justify-content: flex-end; }
.tile--tall h3 { margin-top: 0; }
.tile__art--album { inset: 0 0 0 38%; }
.tile__art--album img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transform: scale(1.04); transition: transform 1.2s var(--ease), opacity .6s; mask-image: linear-gradient(90deg, transparent, #000 45%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); }
.tile:hover .tile__art--album img { transform: scale(1.1); opacity: .9; }

/* Final com cards em órbita */
.finale { isolation: isolate; }
.orbit { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.orbit .card3d { position: absolute; width: clamp(90px, 9vw, 160px); left: var(--ox); top: var(--oy); rotate: var(--or); opacity: .55; filter: saturate(.9) blur(var(--blur, 0px));
  translate: 0 calc((var(--p, .5) - .5) * var(--depth) * -260px); animation: bob var(--bob, 7s) ease-in-out infinite alternate; }
@keyframes bob { to { margin-top: -18px; } }
.ladder__cards .rung--legendary .card3d { box-shadow: 0 0 0 1px rgba(242, 198, 109, .4), 0 30px 90px -20px rgba(242, 198, 109, calc(var(--t) * .6)); }

/* Telas menores */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--tall { grid-row: span 1; }
  .moves { grid-template-columns: repeat(2, 1fr); }
  .moves li:nth-child(2) { border-right: 0; }
  .moves li:nth-child(3) { padding-left: 0; }
}
@media (max-width: 900px) {
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero__stage { height: 62svh; order: -1; margin-top: -10px; }
  .fan .card3d { width: clamp(110px, 30vw, 180px); }
  .fan .card3d .tag { display: none; }
  .toolbar { position: static; }
  .ladder__cards { --spread: 17vw; }
  .ladder__cards .rung { width: 25vw; }
  .rung__label small { display: none; }
  .rung__label b { font-size: 11px; letter-spacing: .02em; }
  .tile__art--trio { display: none; }
  .tile--art h3, .tile--art p { max-width: none; }
  .drop { height: 520vh; }
  .drop__sticky { grid-template-columns: 1fr; align-content: center; gap: 24px; padding-top: 70px; }
  .drop__copy .title { font-size: 2.2rem; }
  .steps { margin-top: 18px; }
  .steps li { padding: 10px 14px; grid-template-columns: 40px 1fr; }
  .steps li:not(.is-active) { position: absolute; visibility: hidden; }
  .phone { width: min(300px, 70vw); justify-self: center; }
  .tiers { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 56px 1fr 56px; }
  .lightbox__body { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lightbox__body figcaption dl { justify-content: center; }
  .card3d--large { width: min(40svh, 64vw); }
  .footer { grid-template-columns: 1fr; }
  .footer nav { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--wide { grid-column: span 1; }
  .moves { grid-template-columns: 1fr; }
  .moves li, .moves li + li { padding: 26px 0 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .toolbar { top: 58px; }
  .sort { width: 100%; }
  .sort select { width: 100%; }
  .stats { gap: 12px 28px; }
}

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