/* Pervian Rankup: landing page e loja (mine.pervian.tech). Cores da marca Pervian.
   Mobile first: os estilos base valem para celular e os min-width acrescentam o layout de telas maiores. */
:root {
  --navy-950: #060B1A;
  --navy-900: #0A1128;
  --navy-800: #0F1D3D;
  --navy-700: #16294F;
  --teal-300: #7FE9F2;
  --teal-400: #2FD3E1;
  --teal-500: #00A8B5;
  --teal-600: #00808B;
  --silver: #E2E8F0;
  --muted: #94A3B8;
  --grass: #6CC24A;
  --gold: #F2C94C;
  --danger: #F87171;
  --line: rgba(226, 232, 240, 0.09);
  --line-strong: rgba(226, 232, 240, 0.16);
  --card: rgba(15, 29, 61, 0.55);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 64px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: dark;
}
@media (min-width: 768px) {
  :root { --header-h: 72px; --gutter: max(28px, env(safe-area-inset-left), env(safe-area-inset-right)); }
}

@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.lock { overflow: hidden; }
body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 80% -8%, rgba(0, 168, 181, 0.16), transparent 62%),
    radial-gradient(700px 420px at -20% 28%, rgba(47, 211, 225, 0.07), transparent 60%),
    var(--navy-950);
  color: var(--silver);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
main { flex: 1; }
a { color: var(--teal-400); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { max-width: 100%; display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* estrelas de fundo */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 68% 12%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 84% 44%, rgba(47,211,225,.6), transparent),
    radial-gradient(1px 1px at 32% 68%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 52% 38%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 18% 86%, rgba(47,211,225,.45), transparent),
    radial-gradient(1px 1px at 92% 82%, rgba(255,255,255,.35), transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .55; } }

/* ============ topo ============ */
.top { position: sticky; top: 0; z-index: 50; view-transition-name: header; }
.top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in oklab, var(--navy-950) 62%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease-out), border-color .35s var(--ease-out);
}
.top.scrolled::before, html.menu-open .top::before {
  background: color-mix(in oklab, var(--navy-950) 90%, transparent);
  border-bottom-color: var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 6px; height: var(--header-h); }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--silver); font-family: var(--font-display); font-weight: 700; letter-spacing: 2px; line-height: 1.2;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; transition: transform .5s var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.brand small { display: block; font-size: 10px; letter-spacing: 4px; color: var(--teal-400); font-weight: 600; }

/* navegação: sem JS fica em linha; com JS vira menu de tela cheia no celular */
.nav { display: flex; gap: 2px; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 15px;
  white-space: nowrap; transition: color .2s, background .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--silver); background: rgba(226, 232, 240, .06); text-decoration: none; }
.nav-extra { display: none; }

/* com JS, no celular: pop-up pequeno no canto, abaixo do botão, com o resto da página desfocado */
.js .nav {
  position: fixed; top: calc(var(--header-h) - 2px); right: var(--gutter); z-index: 49;
  width: min(290px, calc(100vw - 2 * var(--gutter)));
  flex-direction: column; gap: 2px; overflow: visible; padding: 8px;
  background: color-mix(in oklab, var(--navy-900) 94%, transparent);
  border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(47, 211, 225, .06), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform-origin: calc(100% - 22px) -8px;
  visibility: hidden; opacity: 0; transform: translateY(-6px) scale(.92);
  transition: opacity .25s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.js .nav.open {
  visibility: visible; opacity: 1; transform: none;
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-spring);
}
.js .nav a, .js .nav-extra {
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.js .nav.open a, .js .nav.open .nav-extra { opacity: 1; transform: none; transition-delay: calc(var(--i) * 40ms + 60ms); }
.js .nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 48px;
  font-size: 16px; font-weight: 600; color: var(--silver); padding: 10px 14px; border-radius: 12px;
}
.js .nav a::after { content: "→"; font-size: 16px; color: var(--muted); transition: transform .3s var(--ease-out), color .3s; }
.js .nav a:hover::after, .js .nav a[aria-current="page"]::after { color: var(--teal-400); transform: translateX(3px); }
.js .nav a[aria-current="page"] { color: var(--teal-400); background: rgba(47, 211, 225, .08); }
.js .nav-extra { display: grid; gap: 8px; margin: 6px 0 0; padding: 12px 6px 4px; border-top: 1px solid var(--line); }
.nav-extra > span { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding-left: 2px; }
.nav-extra .ip { justify-content: space-between; width: 100%; font-size: 15px; min-height: 44px; padding-left: 12px; }
.menu-scrim {
  position: fixed; inset: 0; z-index: 45; opacity: 0; pointer-events: none;
  background: rgba(2, 5, 14, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: opacity .35s var(--ease-out);
}
html.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }

.cart-link {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 12px; color: var(--silver); transition: background .2s;
}
.cart-link:hover { background: rgba(226, 232, 240, .06); text-decoration: none; }
.cart-link svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--teal-400); color: var(--navy-950); font-size: 11px; font-weight: 700; line-height: 1;
  display: none; align-items: center; justify-content: center;
}
.cart-count.on { display: inline-flex; }
.cart-count.bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 30% { transform: scale(1.45); } }

.menu-btn { display: none; }
.js .menu-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; position: relative;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(226, 232, 240, .03); cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--silver);
  transition: transform .45s var(--ease-out), top .45s var(--ease-out);
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

@media (min-width: 860px) {
  .top .wrap { gap: 12px; }
  .brand { margin-right: 0; }
  .nav, .js .nav {
    position: static; flex-direction: row; gap: 4px; margin-left: auto; padding: 0; overflow: visible;
    width: auto; background: none; border: 0; box-shadow: none; transform: none;
    visibility: visible; opacity: 1; transition: none;
  }
  .js .nav a { min-height: 0; }
  .menu-scrim { display: none; }
  .js .nav a, .js .nav-extra { opacity: 1; transform: none; transition: color .2s, background .2s; }
  .js .nav a {
    display: block; font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0;
    color: var(--muted); padding: 9px 14px; border-radius: 10px; border: 0;
  }
  .js .nav a::after { content: none; }
  .js .nav a:hover, .js .nav a[aria-current="page"] { color: var(--silver); background: rgba(226, 232, 240, .07); }
  .js .nav-extra { display: none; }
  .js .menu-btn { display: none; }
}

/* ============ botões e chip do IP ============ */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px var(--font-sans); cursor: pointer; white-space: nowrap;
  color: var(--navy-950); background: linear-gradient(180deg, var(--teal-400), var(--teal-500));
  box-shadow: 0 10px 30px -12px rgba(47, 211, 225, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .35s var(--ease-spring), box-shadow .35s var(--ease-out), background .2s, border-color .2s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 16px 36px -12px rgba(47, 211, 225, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn.ghost { background: rgba(226, 232, 240, .03); color: var(--silver); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost::after { content: none; }
.btn.ghost:hover { border-color: rgba(47, 211, 225, .55); background: rgba(47, 211, 225, .06); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.done { background: linear-gradient(180deg, #8BDB6A, var(--grass)); }

.ip {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px;
  padding: 8px 8px 8px 16px; border-radius: 12px;
  background: rgba(6, 11, 26, .75); border: 1px solid rgba(47, 211, 225, .35);
  font-family: var(--font-pixel); font-size: 18px; color: var(--silver);
  transition: border-color .25s, box-shadow .25s, transform .35s var(--ease-spring);
}
.ip:hover { border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(47, 211, 225, .12), 0 12px 32px -14px rgba(47, 211, 225, .6); }
.ip:active { transform: scale(.98); }
.ip .tag {
  font: 600 12px var(--font-sans); color: var(--navy-950); background: var(--teal-400);
  padding: 6px 10px; border-radius: 8px; transition: background .25s;
}
.ip-label { font: 700 11px var(--font-sans); letter-spacing: 1.5px; color: var(--muted); }
.ip.copied .tag { background: var(--grass); animation: bump .45s var(--ease-spring); }

/* ============ hero ============ */
.hero { position: relative; padding: 28px 0 8px; overflow-x: clip; }
.hero-glow {
  position: absolute; inset: -10% 0 auto; height: 120%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 40% at 70% 45%, rgba(0, 168, 181, .16), transparent 70%);
  animation: glow 8s ease-in-out infinite alternate;
}
@keyframes glow { to { opacity: .6; transform: scale(1.06); } }
.hero .wrap { display: grid; gap: 8px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(47, 211, 225, .07); border: 1px solid rgba(47, 211, 225, .2);
  font-size: 12px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal-400);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 4px rgba(148, 163, 184, .15); flex: none; }
.status-dot.off { background: var(--danger); box-shadow: 0 0 0 4px rgba(248, 113, 113, .18); }
.eyebrow.offline { color: var(--danger); background: rgba(248, 113, 113, .07); border-color: rgba(248, 113, 113, .25); }
.status-dot.on { background: var(--grass); box-shadow: 0 0 0 4px rgba(108, 194, 74, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(108, 194, 74, .05); } }
h1 {
  font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: -1.5px;
  font-size: clamp(40px, 11.5vw, 88px); margin: 18px 0 16px;
}
h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
h1 .line > span { display: inline-block; animation: line-up 1s var(--ease-out) both; }
h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes line-up { from { transform: translateY(105%); } }
h1 .grad {
  background: linear-gradient(100deg, var(--silver) 0%, var(--teal-400) 45%, var(--teal-300) 60%, var(--teal-400) 75%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: line-up 1s .12s var(--ease-out) both, shine 6s 1.2s ease-in-out infinite;
}
@keyframes shine { 50% { background-position: 100% 0; } }
.lead { font-size: clamp(16px, 4.2vw, 19px); color: var(--muted); max-width: 540px; margin: 0 0 26px; }
.hero-actions { display: grid; gap: 10px; }
.hero-actions .ip { justify-content: space-between; }
.ip-lg { font-size: 19px; }
.meta {
  display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0 0; padding: 16px 0;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(15, 29, 61, .35);
}
.meta div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; border-left: 1px solid var(--line-strong); }
.meta div:first-child { border-left: 0; }
.meta dt { font-size: 12px; color: var(--muted); order: 2; }
.meta dd { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 6vw, 28px); line-height: 1.2; font-variant-numeric: tabular-nums; }
.meta dd.offline { color: var(--danger); }
.hero-art { position: relative; width: min(100%, 380px); margin: 12px auto 0; }
.hero-art img {
  position: relative; width: 100%; height: auto;
  animation: float 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 168, 181, .28));
  transform: translate3d(0, 0, 0);
}
.hero-art img { transition: transform 1s var(--ease-out); will-change: transform; }
@keyframes float { 50% { translate: 0 -14px; } }
.particles { position: absolute; inset: 10% 0 0; pointer-events: none; }
.particles i {
  position: absolute; left: var(--x); bottom: 18%; width: 6px; height: 6px; border-radius: 1px;
  background: var(--teal-400); box-shadow: 0 0 10px var(--teal-400); opacity: 0;
  animation: rise var(--t) var(--d) linear infinite;
}
.particles i:nth-child(even) { width: 4px; height: 4px; background: var(--teal-300); }
@keyframes rise {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  15% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-260px) rotate(180deg); }
}

.scroll-cue { display: none; }

/* entrada da hero (CSS puro, roda mesmo sem JS) */
.enter { animation: enter .9s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }
@keyframes enter { from { opacity: 0; transform: translateY(22px); } }

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 40px; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-actions { justify-content: flex-start; }
  .hero-art { width: 100%; margin: 0; }
  .scroll-cue {
    display: block; position: absolute; left: 50%; bottom: 22px; translate: -50% 0;
    width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px;
    animation: enter .9s 1.2s var(--ease-out) both;
  }
  .scroll-cue span {
    position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
    background: var(--teal-400); animation: cue 1.8s var(--ease-in-out) infinite;
  }
  @keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
}

/* ============ revelação ao rolar ============ */
.rv [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.rv [data-reveal].in { opacity: 1; transform: none; }

/* ============ seções ============ */
section { padding: 48px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kicker {
  display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal-400);
}
h2 { font-family: var(--font-display); font-size: clamp(30px, 7.5vw, 44px); line-height: 1.1; margin: 0; letter-spacing: -.8px; }
.sub { color: var(--muted); margin: 8px 0 0; }

.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, rgba(22, 41, 79, .45), rgba(15, 29, 61, .35));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: border-color .35s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.rv .card[data-reveal] { transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), border-color .35s var(--ease-out), box-shadow .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms), calc(var(--i, 0) * 80ms), 0s, 0s; }
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 211, 225, .12), transparent 60%);
  transition: opacity .4s;
}
@media (hover: hover) {
  .card:hover { border-color: rgba(47, 211, 225, .35); box-shadow: 0 20px 50px -30px rgba(0, 168, 181, .6); }
  .card:hover::after { opacity: 1; }
  .feature:hover, .step:hover { transform: translateY(-4px); }
}
.card h3 { font-family: var(--font-display); font-size: 19px; line-height: 1.3; margin: 14px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--teal-400);
  background: linear-gradient(145deg, rgba(47, 211, 225, .16), rgba(47, 211, 225, .04));
  border: 1px solid rgba(47, 211, 225, .25);
  transition: transform .5s var(--ease-spring);
}
.icon svg { width: 24px; height: 24px; }
.feature:hover .icon { transform: rotate(-6deg) scale(1.08); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; grid-template-columns: 1fr; }
.step { padding-top: 22px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: var(--font-pixel); font-size: 20px; color: var(--navy-950);
  background: linear-gradient(180deg, var(--teal-400), var(--teal-500));
  box-shadow: 0 8px 24px -10px rgba(47, 211, 225, .8);
}
code, kbd {
  font-family: var(--font-pixel); font-size: .95em; background: rgba(6, 11, 26, .8);
  border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--silver);
  overflow-wrap: anywhere;
}

.banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 18px; padding: 28px 22px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(0, 168, 181, .2), rgba(15, 29, 61, .7));
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--angle), rgba(47, 211, 225, .15), var(--teal-400), rgba(47, 211, 225, .15) 30%, rgba(47, 211, 225, .15));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.banner h3 { font-family: var(--font-display); font-size: clamp(22px, 6vw, 28px); margin: 0 0 4px; }
.banner p { margin: 0; color: var(--muted); }
.banner .btn { width: 100%; }

@media (min-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .banner { display: flex; align-items: center; justify-content: space-between; padding: 32px; }
  .banner .btn { width: auto; }
}
@media (min-width: 900px) {
  section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .step { padding: 26px; }
  .steps { position: relative; }
  .banner { padding: 40px 44px; }
}

/* ============ centralização no celular ============ */
.hero-copy { text-align: center; }
.hero-copy .lead { margin-inline: auto; }
.hero-actions .ip { justify-content: center; }
.section-head { justify-content: center; text-align: center; }
.section-head .sub { max-width: 520px; margin-inline: auto; }
.feature, .step { text-align: center; }
.feature .icon, .step::before { margin-inline: auto; }
.banner { text-align: center; }
@media (min-width: 600px) {
  .feature, .step { text-align: left; }
  .feature .icon, .step::before { margin-inline: 0; }
  .banner { text-align: left; }
}
@media (min-width: 960px) {
  .hero-copy { text-align: left; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-actions .ip { justify-content: flex-start; }
}

/* ============ loja ============ */
.page-head { padding-top: 28px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(242, 201, 76, .07); border: 1px solid rgba(242, 201, 76, .28); color: #f6dd8f; font-size: 13px; line-height: 1.5;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice p { margin: 0; }
.shop-head .btn { display: none; }

.tabs-wrap {
  position: sticky; top: var(--header-h); z-index: 10; margin: 0 calc(-1 * var(--gutter)) 18px; padding: 10px var(--gutter);
  background: linear-gradient(var(--navy-950) 70%, transparent);
}
.tabs {
  position: relative; display: flex; gap: 4px; padding: 4px; width: max-content; max-width: 100%;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  background: rgba(15, 29, 61, .6); border: 1px solid var(--line); border-radius: 999px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-ind {
  position: absolute; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; z-index: 0;
  background: linear-gradient(180deg, var(--teal-400), var(--teal-500)); box-shadow: 0 6px 20px -8px rgba(47, 211, 225, .8);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out);
}
.tab {
  position: relative; z-index: 1; flex: none; scroll-snap-align: center;
  min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 0; background: transparent;
  color: var(--muted); font: 600 14px var(--font-sans); cursor: pointer; transition: color .3s;
}
.tab:hover { color: var(--silver); }
.tab[aria-selected="true"] { color: var(--navy-950); }
.tabs:not(.ready) .tab[aria-selected="true"] { background: var(--teal-400); }

.products { display: grid; gap: 12px; grid-template-columns: 1fr; }
.product {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; overflow: hidden;
  animation: enter .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.product-top { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.product .rank { font-family: var(--font-pixel); font-size: 20px; line-height: 1.15; color: var(--c); display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.product .period { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.product-name { flex: 1; min-width: 0; }
.product .price { font-family: var(--font-display); font-size: 21px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.product ul { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; flex: 1; display: grid; gap: 5px; }
.product li { display: flex; gap: 8px; align-items: flex-start; }
.product li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--c); stroke-width: 2.4; }
.product .btn { width: 100%; min-height: 44px; padding: 10px 16px; font-size: 14px; }
.product.featured { border-color: color-mix(in oklab, var(--c) 55%, transparent); box-shadow: 0 24px 60px -34px var(--c); }
.product .ribbon {
  padding: 3px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-950);
  font: 800 10px var(--font-sans); letter-spacing: 1px; line-height: 1.2;
}
.tabs { margin-inline: auto; }
@media (min-width: 768px) {
  .tabs { margin-inline: 0; }
  .product { padding: 20px; gap: 14px; }
  .product .rank { font-size: 22px; }
  .product .price { font-size: 24px; }
  .product ul { font-size: 14px; }
}
@media (hover: hover) { .product:hover { transform: translateY(-4px); } }

.cart {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  max-height: min(88vh, 680px); max-height: min(88dvh, 680px);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(0, 168, 181, .12), transparent 70%),
    var(--navy-900);
  border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .8);
  display: flex; flex-direction: column; outline: none;
  transform: translateY(100%); visibility: hidden;
  transition: transform .5s var(--ease-out), visibility 0s linear .5s;
}
.cart.open { transform: none; visibility: visible; transition: transform .55s var(--ease-out); }
.cart::before { content: ""; width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 10px auto 0; flex: none; }
.cart header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px 14px 20px; }
.cart header h2 { font-size: 21px; letter-spacing: -.3px; }
.cart-sub { font-size: 13px; color: var(--muted); }
.close-btn { border: 1px solid var(--line); background: rgba(226, 232, 240, .04); }
.cart .items { flex: 1; overflow: auto; padding: 4px 16px 8px; overscroll-behavior: contain; min-height: 96px; display: grid; gap: 8px; align-content: start; }
.cart .item {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px;
  padding: 10px 10px 10px 10px; border-radius: 14px;
  background: rgba(15, 29, 61, .6); border: 1px solid var(--line);
  animation: enter .45s var(--ease-out) both;
}
.cart .item.out { animation: leave .3s var(--ease-in-out) forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(24px); } }
.item-icon svg { width: 20px; height: 20px; }
.item-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: color-mix(in oklab, var(--c) 16%, transparent); border: 1px solid color-mix(in oklab, var(--c) 40%, transparent);
  color: var(--c); font: 700 15px var(--font-pixel);
}
.item-info { min-width: 0; }
.item-info strong { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-info span { font-size: 13px; color: var(--muted); }
.item-side { display: grid; justify-items: end; gap: 6px; }
.item-side .price { font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.stepper button {
  width: 32px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--silver); cursor: pointer;
  transition: background .2s, color .2s;
}
.stepper button:hover { background: rgba(47, 211, 225, .1); color: var(--teal-400); }
.stepper button[data-remove]:hover { background: rgba(248, 113, 113, .12); color: var(--danger); }
.stepper svg { width: 15px; height: 15px; stroke-width: 2.2; }
.stepper output { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px 0 12px; color: var(--muted); }
.cart-empty .item-icon { --c: var(--teal-400); width: 56px; height: 56px; border-radius: 16px; }
.cart-empty .item-icon svg { width: 26px; height: 26px; }
.cart-empty p { margin: 0; }
.cart-empty .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.cart footer {
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px;
  background: rgba(6, 11, 26, .35);
}
.cart .total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--muted); }
.cart .total strong { font-family: var(--font-display); font-size: 24px; color: var(--silver); }
.nick-field { font-size: 13px; color: var(--muted); display: grid; gap: 6px; }
.nick-input {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--navy-950); transition: border-color .2s, box-shadow .2s;
}
.nick-input:focus-within { border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(47, 211, 225, .15); }
.nick-input img { width: 28px; height: 28px; border-radius: 6px; image-rendering: pixelated; animation: pop .4s var(--ease-spring); }
.nick-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--silver); font: 16px var(--font-sans); padding: 12px 0; }
.nick-input.shake { animation: shake .4s; border-color: var(--danger); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.cart-note { margin: 0; text-align: center; font-size: 12px; color: var(--muted); }
.scrim {
  position: fixed; inset: 0; background: rgba(2, 5, 14, .55); z-index: 55; opacity: 0; pointer-events: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .4s var(--ease-out);
}
.scrim.on { opacity: 1; pointer-events: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  background: none; border: 0; border-radius: 12px; color: var(--muted); cursor: pointer; transition: color .2s, background .2s, transform .3s var(--ease-spring);
}
.icon-btn:hover { color: var(--silver); background: rgba(226, 232, 240, .08); transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; }

dialog {
  border: 1px solid rgba(47, 211, 225, .35); border-radius: 20px; background: var(--navy-900); color: var(--silver);
  padding: 28px; width: min(440px, calc(100% - 32px));
}
dialog[open] { animation: pop .5s var(--ease-spring); }
dialog::backdrop { background: rgba(2, 5, 14, .65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog[open]::backdrop { animation: fade .4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
@keyframes fade { from { opacity: 0; } }
dialog { text-align: center; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9); }
.dialog-icon {
  width: 52px; height: 52px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 16px;
  color: var(--teal-400); background: rgba(47, 211, 225, .12); border: 1px solid rgba(47, 211, 225, .3);
}
.dialog-icon svg { width: 26px; height: 26px; }
dialog h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 8px; }
dialog p { color: var(--muted); margin: 0 0 20px; }
dialog .btn { width: 100%; }

@media (min-width: 560px) {
  .products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 768px) {
  .page-head { padding-top: 56px; }
  .shop-head { justify-content: space-between; text-align: left; }
  .shop-head .sub { margin-inline: 0; }
  .shop-head .btn { display: inline-flex; }
  .cart {
    left: auto; top: 0; width: 420px; max-height: none; border-radius: 24px 0 0 24px; border: 1px solid var(--line-strong); border-right: 0;
    transform: translateX(100%);
  }
  .cart::before { content: none; }
  .cart header { padding: 22px 20px 16px 24px; }
  .cart .items { padding: 4px 20px 12px; }
  .cart footer { padding: 18px 24px 24px; }
}
@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(4, 1fr); }
}

/* ============ regras ============ */
.rules { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; counter-reset: rule; max-width: 860px; }
.rule { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 20px; }
.rule::before {
  counter-increment: rule; content: counter(rule, decimal-leading-zero);
  font-family: var(--font-pixel); font-size: 22px; line-height: 1.2; color: var(--teal-400);
}
.rule h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: 18px; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; }
@media (hover: hover) { .rule:hover { transform: translateX(4px); } }
@media (min-width: 768px) {
  .rule { grid-template-columns: 56px 1fr; padding: 22px 26px; }
  .rule::before { font-size: 26px; }
}

/* ============ rodapé ============ */
.foot { border-top: 1px solid var(--line); padding: 36px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 14px; margin-top: 32px; }
.foot .wrap { display: grid; gap: 24px; text-align: center; }
.foot .brand { justify-content: center; margin: 0; }
.foot-brand p { margin: 12px auto 0; max-width: 320px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
.foot-links a { color: var(--silver); padding: 6px 0; }
.foot-bottom { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
@media (min-width: 768px) {
  .foot .wrap { grid-template-columns: 1fr auto; align-items: start; text-align: left; }
  .foot .brand { justify-content: flex-start; }
  .foot-brand p { margin-inline: 0; }
  .foot-links { gap: 28px; padding-top: 6px; }
  .foot-bottom { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
}

/* notificação padrão (toast): sucesso, erro e informação */
.toast {
  --tone: var(--teal-400);
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 80;
  width: max-content; max-width: min(420px, calc(100% - 32px));
  display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--tone) 14%, transparent), transparent 60%),
    color-mix(in oklab, var(--navy-900) 96%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid color-mix(in oklab, var(--tone) 35%, transparent); border-radius: 14px;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .04);
  color: var(--silver); font-size: 14px; font-weight: 500; line-height: 1.4;
  opacity: 0; transform: translate(-50%, 24px) scale(.96); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .5s var(--ease-spring);
}
.toast[data-type="success"] { --tone: var(--grass); }
.toast[data-type="error"] { --tone: var(--danger); }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast-icon {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px;
  color: var(--tone); background: color-mix(in oklab, var(--tone) 16%, transparent);
}
.toast-icon svg { width: 17px; height: 17px; stroke-width: 2.4; }
.toast.on .toast-icon { animation: bump .5s .1s var(--ease-spring); }
@media (max-width: 767px) {
  .toast { bottom: auto; top: calc(var(--header-h) + 10px); transform: translate(-50%, -16px) scale(.96); }
}

/* ============ transição entre páginas (navegadores com View Transitions) ============ */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .25s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: .45s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .rv [data-reveal] { opacity: 1; transform: none; }
  .particles { display: none; }
  @view-transition { navigation: none; }
}
