:root {
  --bg: #0b0710;
  --bg2: #110b19;
  --card: rgba(255, 255, 255, .035);
  --card-hi: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --text: #f4eff9;
  --mute: #a597b6;
  --lilac: #b79cff;
  --violet: #7c3aed;
  --wine: #c0304b;
  --gold: #f2b84b;
  --green: #3ddc84;
  --r: 18px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--lilac); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: "Cascadia Code", Consolas, ui-monospace, monospace;
  font-size: .9em;
  background: rgba(183, 156, 255, .12);
  border-radius: 6px;
  padding: .1em .4em;
}
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -.025em; font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.mute { color: var(--mute); }
.small { font-size: .92rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 7, 16, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); font-size: 1.08rem; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 8px; }
.nav .links { display: flex; gap: 24px; margin-left: auto; }
.nav .links a { color: var(--mute); font-size: .95rem; font-weight: 500; }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  border-radius: 12px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line); background: var(--card);
  padding: 8px 14px; font-size: .92rem; cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .2s;
}
.btn:hover { text-decoration: none; background: var(--card-hi); border-color: rgba(255,255,255,.16); transform: translateY(-1px); }
.btn-lg { padding: 13px 22px; border-radius: 14px; font-size: 1rem; }
.btn-lg span { display: flex; flex-direction: column; line-height: 1.25; text-align: left; }
.btn-lg small { font-weight: 500; font-size: .78rem; opacity: .75; }
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9 55%, #a21caf);
  box-shadow: 0 10px 30px -8px rgba(139, 92, 246, .65), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover { background: linear-gradient(135deg, #9d74fa, #7c3aed 55%, #b62bc4); box-shadow: 0 14px 38px -8px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { background: rgba(255,255,255,.04); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.g1 { width: 560px; height: 560px; background: rgba(124, 58, 237, .35); top: -180px; right: 4%; }
.g2 { width: 420px; height: 420px; background: rgba(192, 48, 75, .22); bottom: -160px; left: -120px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--mute);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 132, .15); }
h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.035em;
  margin: 20px 0 18px;
}
.grad {
  background: linear-gradient(100deg, #c4b0ff 0%, #a78bfa 30%, #f0abfc 65%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.16rem; color: #cfc4dc; max-width: 560px; margin-bottom: 30px; }
.hint { color: var(--mute); font-size: .88rem; margin-top: 10px; max-width: 560px; }

.term {
  margin-top: 26px; max-width: 600px;
  border-radius: 14px; overflow: hidden;
  background: #0d1526; border: 1px solid rgba(110, 150, 255, .18);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.8);
}
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 14px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.06); }
.term-title { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #9fb3d9; }
.term pre { margin: 0; padding: 14px 16px; overflow-x: auto; }
.term code { background: none; padding: 0; color: #e3ecff; font-size: .88rem; white-space: pre-wrap; word-break: break-all; }
.copy {
  font: inherit; font-size: .8rem; font-weight: 600; color: #dfe8ff; cursor: pointer;
  background: rgba(110, 150, 255, .16); border: 1px solid rgba(110, 150, 255, .28);
  border-radius: 8px; padding: 5px 12px; transition: background .15s;
}
.copy:hover { background: rgba(110, 150, 255, .28); }
.copy.ok { background: rgba(61, 220, 132, .2); border-color: rgba(61, 220, 132, .4); color: #b7f5d0; }

.hero-art { position: relative; justify-self: center; width: min(460px, 100%); }
.halo {
  position: absolute; inset: 10% 6% 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .55), rgba(162, 28, 175, .18) 55%, transparent 70%);
  filter: blur(30px);
}
.hero-img {
  position: relative; width: 100%; height: auto;
  mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 62%, transparent 100%);
  animation: flutua 6s ease-in-out infinite;
}
.bubble {
  position: absolute; padding: 8px 14px; border-radius: 12px; font-size: .85rem; font-weight: 600;
  background: rgba(20, 13, 30, .82); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.7);
  animation: flutua 5s ease-in-out infinite;
}
.bubble b { color: #fff; background: var(--wine); border-radius: 5px; padding: 1px 6px; font-size: .75rem; letter-spacing: .04em; }
.b1 { top: 16%; left: -4%; animation-delay: -1.5s; }
.b2 { bottom: 20%; right: -2%; animation-delay: -3s; }
@keyframes flutua { 50% { transform: translateY(-10px); } }

/* strip */
.strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.015); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-in div { padding: 22px 18px; display: flex; flex-direction: column; text-align: center; }
.strip-in div + div { border-left: 1px solid var(--line); }
.strip b { font-size: 1.12rem; }
.strip span { color: var(--mute); font-size: .88rem; }

/* sections */
.sec { padding: 110px 0 40px; position: relative; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head p { color: var(--mute); margin-top: 14px; font-size: 1.05rem; }
.eyebrow { display: inline-block; color: var(--lilac); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(183, 156, 255, .3); transform: translateY(-2px); }
.card.big { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; background: radial-gradient(circle at 80% 0%, rgba(124, 58, 237, .22), transparent 55%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.card.wide { grid-column: span 2; }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--mute); font-size: .95rem; }
.ico {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem;
  border-radius: 12px; background: rgba(183, 156, 255, .1); border: 1px solid rgba(183, 156, 255, .18);
}
.big h3 { font-size: 1.5rem; }
.mock { margin-top: auto; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.mock-row, .mock-tabs {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.3); border: 1px solid var(--line); font-size: .9rem;
}
.mock-row .mute { font-size: .85rem; }
.live, .stop { font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: #fff; border-radius: 6px; padding: 2px 8px; }
.live { background: var(--wine); }
.live.sm { font-size: .68rem; padding: 1px 6px; vertical-align: 1px; }
.stop { margin-left: auto; background: #e0384f; }
.mock-tabs span { padding: 4px 12px; border-radius: 8px; color: var(--mute); }
.mock-tabs .on { background: rgba(183, 156, 255, .16); color: var(--text); }

.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.steps li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 22px 24px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
}
.steps .n {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  font-weight: 800; background: linear-gradient(135deg, #8b5cf6, #a21caf); box-shadow: 0 8px 20px -8px rgba(139, 92, 246, .8);
}
.steps p { color: var(--mute); margin-top: 4px; }

/* cha-chan */
.chachan { overflow: hidden; padding-bottom: 0; }
.chachan::before {
  content: ""; position: absolute; inset: 60px 0 0;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(124, 58, 237, .16), transparent 70%), radial-gradient(ellipse 40% 40% at 80% 70%, rgba(192, 48, 75, .1), transparent 70%);
  pointer-events: none;
}
.cc-in { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.cc-media { position: relative; display: grid; place-items: center; }
.cc-media::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .45), rgba(162, 28, 175, .15) 60%, transparent 72%);
  filter: blur(20px);
}
.cc-media img { position: relative; width: min(360px, 100%); height: auto; filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)); animation: flutua 6s ease-in-out infinite; }
.cc-text p { color: #cfc4dc; margin-top: 16px; font-size: 1.05rem; }
.cc-text h2 { margin-bottom: 4px; }
.cc-text .small { font-size: .95rem; color: var(--mute); }
.stickers { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 2px; margin-top: 64px; }
.stickers img { height: 120px; width: auto; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.stickers img:hover { transform: translateY(-8px) rotate(-4deg) scale(1.08); }
.trilha { position: relative; height: 110px; margin-top: 10px; border-bottom: 1px solid var(--line); }
.andando {
  position: absolute; bottom: 0; left: 0;
  width: 99px; height: 124px;
  background: url(assets/andando.webp) 0 0 / 594px 124px no-repeat;
  animation: passo .667s steps(6) infinite, caminha 30s linear infinite;
}
@keyframes passo { to { background-position: -594px 0; } }
@keyframes caminha {
  from { transform: translateX(-120px); }
  to { transform: translateX(calc(100vw + 20px)); }
}

/* faq */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: rgba(183, 156, 255, .28); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--lilac); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--mute); }

/* final */
.final { position: relative; padding: 100px 0 90px; overflow: hidden; }
.g3 { width: 700px; height: 400px; background: rgba(124, 58, 237, .25); left: 50%; top: 40%; transform: translate(-50%, -50%); }
.final-in {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 40px;
  padding: 40px 48px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .18), rgba(192, 48, 75, .1));
  border: 1px solid rgba(183, 156, 255, .2);
}
.final-in img { width: 240px; height: auto; margin: -70px 0 -40px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.final-in p { color: #cfc4dc; margin: 10px 0 24px; font-size: 1.1rem; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--mute); font-size: .9rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-in > span:first-child { display: flex; align-items: center; gap: 8px; }
.foot .links { display: flex; gap: 20px; }
.foot .links a { color: var(--mute); }
.foot .links a:hover { color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 12px 18px; border-radius: 12px; background: #1b1226; border: 1px solid rgba(183, 156, 255, .3);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); font-size: .92rem; transition: opacity .25s, transform .25s; z-index: 100;
  max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-in, .cc-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(300px, 70%); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .nav .links { display: none; }
  .nav-in .btn-sm { margin-left: auto; }
  .final-in { flex-direction: column; text-align: center; }
  .final-in .cta { justify-content: center; }
  .final-in img { margin: -90px 0 0; width: 200px; }
}
@media (max-width: 640px) {
  .strip-in { grid-template-columns: 1fr 1fr; }
  .strip-in div:nth-child(3) { border-left: 0; }
  .strip-in div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .card.big, .card.wide { grid-column: auto; }
  .b1 { left: -10%; } .b2 { right: -10%; }
  .stickers img { height: 84px; }
  .btn-lg { width: 100%; }
  .sec { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
