:root {
  --ink: #0b1230;
  --muted: #525c80;
  --night: #060b1f;
  --night-2: #0c1540;
  --blue: #1d5bff;
  --blue-dark: #0e3cc4;
  --sky: #7fb0ff;
  --mist: #f3f6ff;
  --line: #dfe6fa;
  --radius: 22px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.6 "Segoe UI Variable Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
section { padding: clamp(64px, 9vw, 112px) 0; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: #fff; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* botões */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6bff, var(--blue-dark));
  box-shadow: 0 10px 26px rgb(29 91 255 / .32);
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgb(29 91 255 / .42); }
.button:active { transform: translateY(0); }
.button.ghost { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .28); box-shadow: none; }
.button.ghost:hover { background: rgb(255 255 255 / .14); }
.button.outline { background: #fff; border-color: var(--line); box-shadow: none; color: var(--ink); }
.button.outline:hover { border-color: var(--blue); }
.button.small { min-height: 40px; padding: 8px 18px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* topo */
.top { position: fixed; inset: 0 0 auto; z-index: 20; padding-top: env(safe-area-inset-top); transition: background-color .3s, box-shadow .3s; }
.top.scrolled, .top.open { background: rgb(6 11 31 / .9); box-shadow: 0 8px 30px rgb(0 0 0 / .3); backdrop-filter: blur(14px); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand img { display: block; width: 130px; }
.top nav { display: flex; align-items: center; flex-wrap: wrap; gap: 26px; }
.top nav a:not(.button) { color: #d5deff; font-size: .95rem; text-decoration: none; transition: color .2s; }
.top nav a:not(.button):hover { color: #fff; }
.top nav a.button { color: #fff; }
.menu-button { display: none; }

/* abertura */
.hero { position: relative; overflow: hidden; padding-top: 140px; background: radial-gradient(120% 90% at 75% 10%, var(--night-2), var(--night) 70%); color: #fff; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(127 176 255 / .08) 1px, transparent 1px), linear-gradient(90deg, rgb(127 176 255 / .08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent);
  pointer-events: none;
}
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: drift 14s ease-in-out infinite alternate; }
.glow.one { width: 420px; height: 420px; right: -80px; top: 40px; background: #1d5bff; }
.glow.two { width: 320px; height: 320px; left: -140px; bottom: -80px; background: #4a27d9; animation-delay: -7s; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.hero .eyebrow, .auth .eyebrow, .final .eyebrow { color: var(--sky); }
.lead { max-width: 34em; color: #c3cdf2; font-size: 1.15rem; }
.shine { background: linear-gradient(100deg, #7fb0ff 20%, #fff 40%, #7fb0ff 60%, #4d83ff 80%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: #aebbe8; font-size: .93rem; }
.checks li::before { content: "✓"; margin-right: 8px; color: #5fe0a8; font-weight: 800; }
.hero-text > * { animation: rise .8s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }

/* celular de demonstração */
.stage { position: relative; min-height: 560px; display: grid; place-items: center; }
.phone {
  width: min(310px, 100%);
  padding: 20px 14px 18px;
  border: 8px solid #1a2350;
  border-radius: 44px;
  background: #f4f6fb;
  color: var(--ink);
  box-shadow: 0 40px 90px rgb(0 0 0 / .55), 0 0 0 1px rgb(127 176 255 / .3);
  animation: float 7s ease-in-out infinite, appear 1s var(--ease) .2s backwards;
}
.phone-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.phone-top img { border-radius: 8px; }
.phone-top strong { flex: 1; }
.phone-top span { padding: 3px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: .72rem; font-weight: 600; }
.totp { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; line-height: 1.3; }
.totp b, .totp small, .totp em { display: block; }
.totp b { font-size: .88rem; }
.totp small { color: var(--muted); font-size: .72rem; }
.totp em { color: #0a35b8; font-size: 1.65rem; font-style: normal; font-weight: 800; letter-spacing: .05em; font-variant-numeric: tabular-nums; transition: opacity .25s, transform .25s; }
.totp em.changing { opacity: 0; transform: translateY(6px); }
.totp svg { width: 34px; height: 34px; transform: rotate(-90deg); }
.totp circle { fill: none; stroke: var(--line); stroke-width: 3.5; }
.totp circle.arc { stroke: var(--blue); stroke-dasharray: 100; stroke-dashoffset: 30; transition: stroke-dashoffset .5s linear; }
.phone-add { width: 70%; margin: 18px auto 0; padding: 10px; border-radius: 999px; background: var(--blue); color: #fff; font-size: .85rem; font-weight: 700; text-align: center; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgb(255 255 255 / .16); border-radius: 18px; background: rgb(16 27 74 / .82); box-shadow: 0 18px 40px rgb(0 0 0 / .4); backdrop-filter: blur(10px); line-height: 1.3; animation: float 6s ease-in-out infinite, appear .9s var(--ease) backwards; }
.float small { display: block; color: #aebbe8; font-size: .72rem; }
.float b { font-size: .95rem; font-variant-numeric: tabular-nums; }
.float i { width: 12px; height: 12px; border-radius: 50%; background: #5fe0a8; box-shadow: 0 0 0 6px rgb(95 224 168 / .18); animation: pulse 2.4s ease-in-out infinite; }
.card-a { left: -34px; bottom: 34px; animation-delay: -2s, .6s; }
.card-a b { font-family: ui-monospace, Consolas, monospace; }
.card-b { right: -26px; top: 6px; animation-delay: -4s, .8s; }
.stage-note { position: absolute; bottom: -6px; margin: 0; color: #7e8bbd; font-size: .74rem; }

/* blocos */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.pain { text-align: center; }
.pain article { padding: 28px; border-radius: var(--radius); background: var(--mist); text-align: left; }
.pain s { display: block; margin-bottom: 14px; color: #a2294a; font-size: 1.12rem; font-weight: 700; text-decoration-thickness: 2px; }
.pain p, .feature p, .step p { margin: 0; color: var(--muted); }

.features { background: var(--mist); }
.feature { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.feature svg { width: 52px; height: 52px; margin-bottom: 18px; padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #2f6bff, var(--blue-dark)); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.feature:hover svg { transform: rotate(-8deg) scale(1.08); }

.generator-grid, .auth-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; }
.generator p { color: var(--muted); }
.panel { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 30px 70px rgb(20 50 140 / .14); }
#password { display: block; min-height: 86px; padding: 18px; border-radius: 16px; background: var(--night); color: #fff; font: 600 1.35rem/1.45 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.meter span { display: block; width: 0; height: 100%; border-radius: 8px; transition: width .4s var(--ease), background-color .4s; }
.meter span.s1 { width: 30%; background: #d9822b; }
.meter span.s2 { width: 60%; background: #2f6bff; }
.meter span.s3 { width: 100%; background: #16a36f; }
.panel .strength { margin: 0; font-size: .9rem; }
.panel input[type="range"] { width: 100%; accent-color: var(--blue); }
.switch { display: flex; align-items: center; gap: 10px; }
.switch input { width: 20px; height: 20px; accent-color: var(--blue); }

.auth { background: linear-gradient(150deg, var(--night), #0f1c5c); color: #fff; }
.auth p { color: #c3cdf2; }
.steps-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps-list li { padding: 20px 24px; border: 1px solid rgb(255 255 255 / .12); border-radius: 18px; background: rgb(255 255 255 / .05); }
.steps-list li:hover { border-color: var(--sky); background: rgb(127 176 255 / .12); }
.steps-list b, .steps-list span { display: block; }
.steps-list span { color: #aebbe8; font-size: .95rem; }

.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 40px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { position: relative; padding-top: 66px; counter-increment: flow; }
.flow li::before { content: counter(flow); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--night); color: #fff; font-weight: 800; }
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: 58px; right: -10px; height: 2px; background: linear-gradient(90deg, var(--blue), var(--line)); transform-origin: left; transition: transform 1s var(--ease) .3s; }
.flow li.waiting::after { transform: scaleX(0); }
.flow p { color: var(--muted); font-size: .96rem; }
.honest { margin: 40px 0 0; padding: 22px 26px; border-left: 5px solid var(--blue); border-radius: 0 16px 16px 0; background: var(--mist); }

.download { background: var(--mist); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 30px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.tabs button { min-height: 44px; padding: 8px 22px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .25s, color .25s; }
.tabs button[aria-selected="true"] { background: var(--night); color: #fff; }
.platform { margin-bottom: 30px; }
.tabbed .platform { margin: 0; animation: rise .45s var(--ease) both; }
.tabbed .platform-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; padding: clamp(22px, 3.5vw, 34px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card h4, .card p { margin: 0; }
.card p, .card ol { color: var(--muted); }
.card ol { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.address { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; max-width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--mist); }
.address code { font-size: .86rem; overflow-wrap: anywhere; }
.address button { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 700; cursor: pointer; }
.download .legal { margin: 24px 0 0; color: var(--muted); font-size: .86rem; }

.start { text-align: center; }
.step { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); text-align: left; }
.step span { display: block; margin-bottom: 10px; background: linear-gradient(135deg, #2f6bff, #4a27d9); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 3.4rem; font-weight: 900; line-height: 1; }

.faq { padding-top: 20px; }
.faq h2 { text-align: center; margin-bottom: 36px; }
details { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .25s, box-shadow .25s; }
details[open] { border-color: var(--blue); box-shadow: 0 14px 34px rgb(29 91 255 / .1); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
details[open] p { animation: rise .35s var(--ease) both; }

.final { background: radial-gradient(90% 120% at 50% 0%, #14267a, var(--night) 70%); color: #fff; text-align: center; }
.final img { margin-bottom: 20px; border-radius: 18px; animation: float 6s ease-in-out infinite; }
.final p { color: #c3cdf2; }
.final .actions { justify-content: center; margin-top: 26px; }

.lost { display: grid; place-items: center; min-height: 100vh; }

footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid rgb(255 255 255 / .08); color: #aebbe8; font-size: .94rem; }
footer a { color: #d5deff; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }
footer .legal { margin: 0; color: #7e8bbd; font-size: .82rem; }

/* aparecer ao rolar: só os elementos que o script marcou como fora da tela */
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .25s, background-color .25s, box-shadow .25s; }
.reveal.waiting { opacity: 0; transform: translateY(28px); }
.three > .reveal:nth-child(3n + 2), .flow > :nth-child(2) { transition-delay: .1s; }
.three > .reveal:nth-child(3n), .flow > :nth-child(3) { transition-delay: .2s; }
.flow > :nth-child(4) { transition-delay: .3s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes appear { from { opacity: 0; scale: .92; } }
@keyframes float { 50% { translate: 0 -12px; } }
@keyframes drift { to { translate: -60px 50px; scale: 1.15; } }
@keyframes shine { to { background-position: -220% 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgb(95 224 168 / .04); } }

@media (max-width: 940px) {
  .hero-grid, .generator-grid, .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .three, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li::after { display: none; }
  .menu-button:not([hidden]) { display: grid; gap: 5px; place-content: center; width: 46px; height: 46px; border: 1px solid rgb(255 255 255 / .25); border-radius: 12px; background: none; cursor: pointer; }
  .menu-button span:not(.sr) { width: 20px; height: 2px; background: #fff; transition: transform .3s var(--ease), opacity .2s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-button:not([hidden]) ~ nav { display: none; }
  .menu-button:not([hidden]) ~ nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 6px 0 20px; animation: rise .3s var(--ease) both; }
  .menu-button:not([hidden]) ~ nav.open a { padding: 10px 4px; }
  .menu-button:not([hidden]) ~ nav.open a.button { margin-top: 8px; padding: 10px; }
  .bar { flex-wrap: wrap; }
  /* sem JavaScript o menu fica sempre visível */
  .menu-button[hidden] ~ nav { gap: 12px; padding-bottom: 10px; }
  .top:has(.menu-button[hidden]) { position: absolute; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .three, .two, .flow { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 118px; }
  .actions .button { flex: 1 1 100%; }
  .stores .button { flex: 1; }
  .stage { min-height: 540px; }
  .card-a { left: 0; bottom: 16px; }
  .card-b { right: 0; top: 0; }
  .tabs { display: flex; border-radius: 18px; }
  .tabs button { flex: 1; padding: 8px 10px; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal.waiting { opacity: 1; transform: none; }
  .flow li.waiting::after { transform: none; }
}
