/* DevPay — landing pública e páginas legais. Liquid glass nas cores Nexus. */

:root {
    --bg: #08070d;
    --surface: #14111f;
    --line: #302a40;
    --text: #ffffff;
    --muted: #b8b2c9;
    --subtle: #a39bb6;
    --green: #ad8bff;
    --cyan: #c2a6ff;
    --blue: #7852e8;
    --grad: linear-gradient(100deg, var(--green), var(--cyan) 55%, var(--blue));
    --radius: 28px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
    color-scheme: dark;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: rgba(151, 108, 239, 0.35);
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 12px;
}

.wrap {
    width: min(1180px, 100% - 32px);
    margin-inline: auto;
}

/* ───────── fundo: aurora + grade + grão ───────── */
.bg-aurora {
    position: fixed;
    inset: -25vmax;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(34vmax 28vmax at 14% 10%, rgba(151, 108, 239, 0.22), transparent 70%),
        radial-gradient(30vmax 24vmax at 88% 6%, rgba(174, 126, 245, 0.18), transparent 70%),
        radial-gradient(38vmax 30vmax at 72% 92%, rgba(104, 65, 198, 0.2), transparent 70%),
        radial-gradient(26vmax 20vmax at 20% 80%, rgba(151, 108, 239, 0.1), transparent 70%);
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(70% 60% at 50% 20%, #000, transparent);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 999;
    pointer-events: none;
    opacity: 0.05;
    mix-blend-mode: overlay;
    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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────── liquid glass ───────── */
.lg {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    border-radius: var(--radius);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 35px #0002;
    border: 1px solid #ffffff12;
}

/* borda iridescente (verde → ciano → azul) que some no meio, como vidro de verdade */
.lg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        140deg,
        rgba(255, 255, 255, 0.55),
        rgba(151, 108, 239, 0.35) 18%,
        rgba(255, 255, 255, 0.04) 40%,
        rgba(255, 255, 255, 0.04) 62%,
        rgba(174, 126, 245, 0.35) 84%,
        rgba(104, 65, 198, 0.5)
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    display: none;
}

/* reflexo especular que segue o mouse */
.lg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
}

.lg:hover::after {
    opacity: 1;
}

/* ───────── botões pílula ───────── */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border: 0;
    font: 600 15px/1 var(--font);
    cursor: pointer;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.35s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

/* reflexo de cima (o "brilho molhado" das pílulas da referência) */
.btn::before {
    content: '';
    position: absolute;
    left: 10%;
    right: 10%;
    top: 3px;
    height: 45%;
    z-index: -1;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    opacity: 0.55;
    pointer-events: none;
    display: none;
}

/* brilho que atravessa no hover */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.8s var(--ease);
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 -3px 6px rgba(2, 60, 44, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 20px 44px -12px rgba(151, 108, 239, 0.85);
}

.btn-secondary {
    color: #fff;
    background: linear-gradient(180deg, #4fd6ff, var(--cyan) 50%, #1660ff);
    box-shadow:
        inset 0 -3px 6px rgba(4, 30, 80, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.55),
        0 14px 34px -12px rgba(174, 126, 245, 0.65);
}

.btn-glass {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 12px 30px -16px rgba(0, 0, 0, 0.7);
}

.btn-glass:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.4),
        inset 0 0 0 1px rgba(151, 108, 239, 0.45),
        0 16px 36px -16px rgba(151, 108, 239, 0.45);
}

.btn-sm {
    height: 42px;
    padding: 0 20px;
    font-size: 14px;
}

/* botão redondo (o "+" da referência) */
.orb {
    width: 52px;
    height: 52px;
    padding: 0;
    flex: none;
}

/* ───────── tipografia ───────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 500 12px/1 var(--mono);
    text-transform: uppercase;
    color: var(--green);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 1px;
    background: currentColor;
}

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.08;
}

.section-head {
    max-width: 680px;
    margin-bottom: 56px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    margin-top: 18px;
    font-size: clamp(32px, 4.6vw, 52px);
}

.section-head p {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
}

/* ───────── navegação ───────── */
.nav {
    position: fixed;
    top: 16px;
    left: 50%;
    z-index: 50;
    width: min(1180px, 100% - 32px);
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 10px 10px 22px;
    transition: top 0.4s var(--ease), background 0.4s;
}

.nav.scrolled {
    top: 10px;
    background: linear-gradient(180deg, rgba(10, 18, 38, 0.72), rgba(10, 18, 38, 0.55));
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.02em;
}

.nav-logo img {
    width: 34px;
    height: 34px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.25s, background 0.25s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
    display: flex;
    gap: 8px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 0;
    color: #fff;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle svg {
    width: 20px;
    height: 20px;
    margin: auto;
}

/* ───────── hero ───────── */
.hero {
    position: relative;
}

.hero-grid {
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
}

.hero h1 {
    margin-top: 22px;
}

.hero-sub {
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 44px;
    padding: 0;
    list-style: none;
}

.hero-proof strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-proof span {
    color: var(--subtle);
    font-size: 13px;
}

/* painel de vidro do hero (o "UI kit" da referência) */
.hero-visual {
    position: relative;
}

.kit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: min-content;
    transition: transform 0.8s var(--ease);
}

.kit-head {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.kit-head b {
    font-size: 18px;
    letter-spacing: -0.02em;
}

.kit-dots {
    display: flex;
    gap: 6px;
}

.kit-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.kit-dots i:first-child {
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

.pill {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 8px 0 18px;
    border-radius: 999px;
    font-size: 14px;
    color: var(--muted);
}

.pill .check {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-left: -10px;
    border-radius: 50%;
    background: var(--grad);
    color: #021710;
}

.pill .check svg {
    width: 16px;
    height: 16px;
}

.pill .end {
    margin-left: auto;
    font: 500 11px var(--mono);
    color: var(--green);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(151, 108, 239, 0.12);
}

.kit-balance small {
    color: var(--muted);
    font-size: 13px;
}

.kit-balance .amount {
    margin: 4px 0 14px;
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.spark {
    width: 100%;
    height: 56px;
}

.kit-code {
    grid-column: 1 / -1;
    margin: 0;
    padding: 16px 18px;
    font: 12.5px/1.75 var(--mono);
    color: var(--muted);
    overflow: hidden;
    white-space: pre;
}

.tk-k {
    color: #ff7ab8;
}
.tk-s {
    color: var(--green);
}
.tk-f {
    color: var(--cyan);
}
.tk-c {
    color: #56637f;
}
.tk-n {
    color: #ffc66d;
}

/* toggle de vidro (da referência) */
.toggle {
    position: relative;
    width: 64px;
    height: 34px;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    flex: none;
}

.toggle::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(180deg, #fff, #dbe4f3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* notificações flutuando em volta do painel */
.float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 12px;
}

.float-chip img {
    width: 40px;
    height: 40px;
}

.float-chip b {
    display: block;
    font-size: 14px;
}

.float-chip span {
    font: 12px var(--mono);
    color: var(--muted);
}

.chip-2 {
    animation-delay: -3s;
}

/* ───────── faixa de meios de pagamento ───────── */
.marquee {
    position: relative;
    padding: 26px 0;
    mask-image: none;
}

.marquee-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    width: min(1100px, calc(100% - 32px));
    margin-inline: auto;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee .pill {
    height: 46px;
    padding: 0 22px;
    color: #fff;
    font-weight: 500;
}

.marquee .pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
}

/* ───────── recursos ───────── */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature {
    transition: transform 0.45s var(--ease);
}

.feature:hover {
    transform: translateY(-6px);
}

.feature .icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 0 0 1px rgba(151, 108, 239, 0.25);
}

.feature .icon svg {
    width: 24px;
    height: 24px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
}

.feature p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 15px;
}

.feature.wide {
    grid-column: span 2;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(104, 65, 198, 0.28), transparent 60%),
        radial-gradient(70% 120% at 0% 100%, rgba(151, 108, 239, 0.22), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
}

/* ───────── seção devs ───────── */
.dev-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}

.dev-list {
    display: grid;
    gap: 14px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.dev-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--muted);
}

.dev-list li b {
    color: #fff;
    font-weight: 600;
}

.dev-list svg {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    color: var(--green);
}

.code-card {
    padding: 10px;
    border-radius: 30px;
}

.code-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
}

.code-tab {
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--subtle);
    font: 500 13px var(--mono);
    cursor: pointer;
    transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}

.code-tab[aria-selected='true'] {
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 var(--green);
}

.copy-btn {
    margin-left: auto;
    height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font: 500 12px var(--mono);
    cursor: pointer;
}

.copy-btn:hover {
    color: #fff;
}

.code-panel {
    margin: 6px 0 0;
    padding: 24px;
    min-height: 330px;
    border-radius: 22px;
    background: rgba(3, 8, 20, 0.7);
    font: 13.5px/1.8 var(--mono);
    color: var(--muted);
    overflow-x: auto;
    white-space: pre;
}

.code-panel[hidden] {
    display: none;
}

/* ───────── como funciona ───────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    counter-reset: step;
}

.step {
    padding: 30px;
}

.step::marker {
    content: none;
}

.step .num {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 20px;
    border-radius: 50%;
    font: 600 15px var(--mono);
    color: #021710;
    background: linear-gradient(180deg, #3ff0bf, var(--green));
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.6),
        0 10px 24px -10px var(--green);
}

.step h3 {
    font-size: 20px;
    font-weight: 600;
}

.step p {
    margin: 10px 0 0;
    color: var(--muted);
}

/* ───────── taxas ───────── */
.fees {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.fee {
    padding: 34px 30px;
}

.fee .method {
    font: 500 12px var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--subtle);
}

.fee .value {
    margin: 16px 0 6px;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.fee .detail {
    color: var(--muted);
    font-size: 14px;
}

.fee .release {
    display: inline-flex;
    margin-top: 22px;
    padding: 7px 14px;
    border-radius: 999px;
    font: 500 12px var(--mono);
    color: var(--green);
    background: rgba(151, 108, 239, 0.12);
    box-shadow: inset 0 0 0 1px rgba(151, 108, 239, 0.28);
}

.fee.featured {
    background:
        radial-gradient(100% 80% at 50% 0%, rgba(151, 108, 239, 0.3), transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.fees-note {
    margin: 22px 0 0;
    color: var(--subtle);
    font-size: 13px;
    text-align: center;
}

/* ───────── FAQ ───────── */
.faq {
    display: grid;
    gap: 12px;
    max-width: 820px;
    margin-inline: auto;
}

.faq details {
    border-radius: 24px;
    padding: 0 26px;
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary .plus {
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3);
    transition: transform 0.4s var(--ease), background 0.4s;
}

.faq summary .plus::before,
.faq summary .plus::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: translate(-50%, -50%);
}

.faq summary .plus::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq details[open] .plus {
    transform: rotate(45deg);
    background: var(--green);
}

.faq details[open] .plus::before,
.faq details[open] .plus::after {
    background: #021710;
}

.faq details p {
    margin: 0;
    padding: 0 0 24px;
    color: var(--muted);
}

/* ───────── CTA final ───────── */
.cta {
    padding: 70px 40px;
    text-align: center;
    overflow: hidden;
}

.cta h2 {
    max-width: 760px;
    margin: 18px auto 0;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
}

.cta p {
    max-width: 560px;
    margin: 18px auto 0;
    color: var(--muted);
}

.cta .hero-ctas {
    justify-content: center;
}

/* ───────── rodapé ───────── */
.footer {
    padding: 70px 0 40px;
    margin-top: 110px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 40px;
}

.footer p {
    max-width: 320px;
    margin: 16px 0 0;
    color: var(--subtle);
    font-size: 14px;
}

.footer h3, .footer h4 {
    margin: 0 0 16px;
    font: 500 12px var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--subtle);
}

.footer ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer ul a {
    color: var(--muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer ul a:hover {
    color: var(--green);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--subtle);
    font: 12px var(--mono);
}

/* ───────── páginas legais ───────── */
.legal {
    padding: 150px 0 40px;
}

.legal-head {
    max-width: 820px;
    margin: 0 auto 40px;
}

.legal-head h1 {
    margin-top: 18px;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
}

.legal-head .meta {
    margin-top: 16px;
    color: var(--subtle);
    font: 13px var(--mono);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: start;
}

.toc {
    position: sticky;
    top: 110px;
    padding: 22px;
    border-radius: 24px;
}

.toc b {
    display: block;
    margin-bottom: 12px;
    font: 500 11px var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--subtle);
}

.toc ol {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.toc a {
    display: block;
    padding: 7px 10px;
    border-radius: 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.toc a:hover,
.toc a.active {
    color: #fff;
    background: rgba(151, 108, 239, 0.12);
}

.legal-doc {
    padding: clamp(24px, 4vw, 48px);
    border-radius: 32px;
}

.legal-doc section + section {
    margin-top: 40px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-doc h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.legal-doc h2 span {
    margin-right: 10px;
    font: 500 14px var(--mono);
    color: var(--green);
}

.legal-doc h3 {
    margin: 24px 0 0;
    font-size: 16px;
    font-weight: 600;
}

.legal-doc p,
.legal-doc li {
    color: var(--muted);
    font-size: 15.5px;
}

.legal-doc p {
    margin: 14px 0 0;
}

.legal-doc ul,
.legal-doc ol {
    margin: 14px 0 0;
    padding-left: 22px;
}

.legal-doc li + li {
    margin-top: 8px;
}

.legal-doc strong {
    color: #fff;
    font-weight: 600;
}

.legal-doc a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.callout {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: rgba(151, 108, 239, 0.08);
    box-shadow: inset 0 0 0 1px rgba(151, 108, 239, 0.25);
    color: var(--muted);
    font-size: 15px;
}

.table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.legal-doc table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 14px;
}

.legal-doc th,
.legal-doc td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: top;
    color: var(--muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-doc th {
    color: #fff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
}

.legal-doc tr:last-child td {
    border-bottom: 0;
}

.legal-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

/* ───────── animações ───────── */
.reveal {
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@keyframes aurora {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(4vmax, -3vmax, 0) rotate(8deg);
    }
    100% {
        transform: translate3d(-3vmax, 3vmax, 0) rotate(-6deg);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

@keyframes toggle {
    0%,
    40% {
        transform: translateX(0);
    }
    50%,
    90% {
        transform: translateX(-30px);
    }
    100% {
        transform: translateX(0);
    }
}

/* ───────── responsivo ───────── */
@media (max-width: 1024px) {
    .hero-grid,
    .dev-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 520px;
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
    }

    .features,
    .fees,
    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .toc {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: grid;
    }

    .nav.open {
        flex-wrap: wrap;
        border-radius: 28px;
        background: linear-gradient(180deg, rgba(10, 18, 38, 0.92), rgba(10, 18, 38, 0.82));
    }

    .nav.open .nav-links,
    .nav.open .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 6px 4px 8px;
    }

    .nav.open .nav-actions .btn {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 130px;
    }

    .features,
    .fees,
    .steps {
        grid-template-columns: 1fr;
    }

    .feature.wide {
        grid-column: auto;
    }

    .kit {
        inset: 0 0 auto;
        padding: 18px;
        transform: none;
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 640px;
    }

    .float-chip {
        display: none;
    }

    .hero-ctas .btn {
        flex: 1 1 100%;
    }

    .cta {
        padding: 50px 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* itens de grade não podem crescer pelo conteúdo (blocos <pre> longos estouravam no celular) */
.hero-grid > *,
.dev-grid > *,
.kit > *,
.legal-layout > * {
    min-width: 0;
}

.btn-glass::before {
    opacity: 0.18;
}

@media (max-width: 640px) {
    .code-tabs {
        flex-wrap: wrap;
    }

    .code-tab {
        padding: 0 12px;
    }
}

.cookie-notice{position:fixed;left:12px;right:12px;bottom:12px;z-index:60;max-width:680px;margin:0 auto;display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px 16px;border-radius:16px;border:1px solid #3b4b72;color:#eef3ff;font-size:14px}
.cookie-notice[hidden]{display:none}
.cookie-notice p{margin:0;flex:1 1 280px}
.cookie-notice a{text-decoration:underline}
.cookie-notice .btn{min-height:44px}

/* Identidade DevPay: tipografia editorial, preto profundo e luz violeta. */
.nav { max-width:1180px; border-radius:18px; background:rgba(15,12,23,.88); border-color:#ffffff12; box-shadow:0 12px 50px #0003; }
.bg-grid { opacity:.13; }
.bg-aurora { opacity:.6; }
.hero { padding:162px 0 80px; overflow:hidden; }
.hero-grid { display:flex; flex-direction:column; gap:56px; }
.hero-grid > div:first-child { max-width:930px; text-align:center; }
.hero h1 { font-size:clamp(42px,6.2vw,82px); line-height:1.09; letter-spacing:-.065em; font-weight:650; text-wrap: balance; }
.hero-sub { max-width:680px; margin:25px auto 0; font-size:17px; line-height:1.85; }
.hero-ctas { justify-content:center; margin-top:30px; }
.hero-note { margin-top:18px; color:var(--subtle); font-size:12px; }
.eyebrow { font-size:11px; letter-spacing:.13em; }
.btn { border-radius:11px; font-weight:600; transition:transform 180ms cubic-bezier(.2,0,0,1),background 180ms,box-shadow 180ms; }
.btn-primary { background:linear-gradient(110deg,#7542d5,#8b53e9); color:#fff; border-color:#b58bf65c; box-shadow:0 6px 24px #7841d52b; }
.btn-primary:hover { background: #7343c7; color: #fff; }
.btn::after,.lg::after { display:none; }
.hero-visual { width:min(930px,100%); min-height:0; padding:0 28px; }
.kit { position:relative; inset:auto; transform:none; padding:25px; border-radius:20px; background:linear-gradient(145deg,#1c1728,#100e18 70%); border:1px solid #9a7bca3d; box-shadow:0 35px 100px #0009,0 0 90px #7d43d517; gap:18px; }
.hero-visual:hover .kit { transform:none; }
.kit-head { padding-bottom:16px; border-bottom:1px solid #ffffff0d; }
.kit-balance { background:linear-gradient(140deg,#45315e70,#221a31); border:1px solid #b08ad82b; border-radius:14px; }
.kit-code { background:#0c0a12; border:1px solid #ffffff0b; border-radius:14px; }
.kit-nav { display:flex;gap:8px;align-items:center;color:var(--subtle);font-size:11px; }
.kit-nav span { padding:5px 10px;border-radius:6px;background:#b38dff14;color:#d3baff; }
.kit-stats,.kit-bottom { display:grid;grid-template-columns:repeat(3,1fr);gap:12px;grid-column:1/-1; }
.kit-stat { padding:16px; background:#ffffff03;border:1px solid #ffffff0c;border-radius:12px; }
.kit-stat small { display:block;color:var(--muted);font-size:10px; }
.kit-stat strong { display:block;margin-top:6px;font-size:18px; }
.kit-transactions { grid-column:1/-1; }
.visual-caption { margin:16px 0 0;text-align:center;font-size:11px;color:var(--subtle); }
.float-chip { border-radius:12px;background:#20172e;box-shadow:0 12px 35px #0005;animation-duration:8s; }
.chip-1 { left:-20px;top:29%; }.chip-2 { right:-15px;bottom:14%;top:auto; }
.section { padding:88px 0; }
.section-head h2 { letter-spacing:-.045em;font-weight:600;line-height:1.17; }
.feature,.step,.price,.code-card { border-radius:18px;background:linear-gradient(145deg,#191420,#100d16);border-color:#ffffff12; }
.feature { padding:29px; }.feature h3 { letter-spacing:-.025em; }
.feature .icon { border-radius:12px;background:#a777f41c;color:#c5a2ff; }
.feature p { line-height:1.8; }
.cta { background:radial-gradient(ellipse at 50% 0%,#60339542,transparent 70%),#130e1c;border-color:#9d6fe433;border-radius:24px; }
.footer { background:#08070d;border-top:1px solid #ffffff0c; }
.cookie-notice { background:#171020;border-color:#a981dc40; }.cookie-notice a { color:#d2b6ff; }
@media(max-width:700px){.hero{padding-top:140px}.hero-visual{padding:0}.kit{padding:16px}.kit-stats,.kit-bottom{grid-template-columns:1fr}.kit-stat{padding:12px}.hero-ctas{gap:10px}.hero-ctas .btn{flex:0 1 auto;width:auto}.float-chip{display:none}.section{padding:64px 0}.hero-sub{font-size:15px}.kit-balance .amount{font-size:32px}}

.hero-visual { margin:0; }.kit-head b { display:flex;align-items:center;gap:10px; }.kit-head b img { width:24px;height:24px; }.mock-label { margin-left:8px;color:var(--subtle);font-size:10px;font-weight:400; }.kit-nav { grid-column:1/-1;justify-content:space-between; }.kit-balance { grid-column:1/-1;padding:24px; }.kit-balance .spark { height:100px; }.kit-stat b { display:block;font-size:18px;margin:5px 0; }.kit-stat span { display:block;font-size:10px;color:var(--subtle); }.kit-bottom { display:flex;justify-content:space-between;color:var(--subtle);font-size:11px;padding:8px 0 0; }.kit-bottom i { display:inline-block;width:3px;height:3px;margin:0 8px;border-radius:50%;background:#ac89f1; }
.bg-aurora { animation:aurora 4s ease-in-out 1 alternate; }.float-chip { animation:float 4s ease-in-out 1; }.toggle::after { animation:none; }.marquee { overflow:visible; }.marquee-track { animation:none; }.marquee-track [aria-hidden=true] { display:none; }
.reveal { opacity:1;transform:none; }.motion-ready .reveal:not(.in) { opacity:0;transform:translateY(18px); }.reveal { transition-duration:450ms;transition-delay:calc(var(--d,0)*60ms); }
.skip-link { position:fixed;top:8px;left:12px;transform:translateY(-150%);z-index:999;padding:10px 18px;border-radius:8px;background:#fff;color:#241238; }.skip-link:focus { transform:none; }
@media(prefers-reduced-motion:reduce){.motion-ready .reveal:not(.in){opacity:1;transform:none}.bg-aurora,.float-chip{animation:none}}
@media(max-width:640px){.kit-nav{flex-wrap:wrap}.kit-bottom{flex-direction:column;gap:8px}.hero h1{font-size:43px}.hero-ctas .btn{width:100%}}

.hero-visual{max-width:930px}.float-chip{width:max-content;max-width:260px}.float-chip .check{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#a987f225;color:#c7a8ff}.float-chip .check svg{width:17px;height:17px}.chip-1{right:auto}.chip-2{left:auto}.nav.open {
    background: #14101d;
}

.nav.scrolled{background:#120e1bf5}.kit-balance .amount{font-variant-numeric:tabular-nums}

/* A apresentação se desdobra conforme a rolagem, sem bloquear a navegação. */
.scroll-progress{position:fixed;left:0;top:0;width:100%;height:3px;z-index:100;transform:scaleX(var(--page-progress,0));transform-origin:left;background:linear-gradient(90deg,#7140c5,#cfb3ff);pointer-events:none}
.product-stage{width:100%;position:relative;min-height:calc(100vh + 360px)}
.hero{overflow:clip}
.product-stage .hero-visual{position:sticky;top:115px;perspective:1600px;margin-inline:auto}
.product-stage .kit,.product-stage .hero-visual:hover .kit{transform:rotateX(var(--demo-tilt,0deg)) scale(var(--demo-scale,1));transform-origin:center top;transition:none;will-change:transform}
.product-stage .kit{box-shadow:0 40px 100px #0008,0 0 80px #8154c518}
.hero h1{transform:translateY(var(--title-shift,0px));text-wrap:balance}
@media(max-width:700px),(prefers-reduced-motion:reduce){.product-stage{min-height:0}.product-stage .hero-visual{position:relative;top:auto;perspective:none}.product-stage .kit,.product-stage .hero-visual:hover .kit{transform:none;will-change:auto}.hero h1{transform:none}.scroll-progress{display:none}}

/* Formas originais e transições de profundidade inspiradas na referência de movimento. */
.hero{isolation:isolate}.hero-grid{position:relative;z-index:1}
.hero-ribbons{position:absolute;inset:0 0 auto;height:950px;pointer-events:none;z-index:-1;opacity:var(--ribbon-opacity,1);transform:translateY(var(--ribbon-shift,0px));will-change:transform,opacity}
.hero-ribbons svg{width:100%;height:100%;overflow:visible}.ribbon-left{transform:rotate(var(--ribbon-turn,0deg));transform-origin:0% 40%}.ribbon-right{transform:rotate(calc(var(--ribbon-turn,0deg)*-1));transform-origin:100% 40%}
.scroll-scene .section-head{transform:translateY(calc((1 - var(--scene-enter,1))*45px));opacity:calc(.3 + var(--scene-enter,1)*.7)}
.scroll-scene .feature{transform:perspective(1200px) translateY(calc((1 - var(--card-enter,1))*65px)) rotateX(calc((1 - var(--card-enter,1))*7deg));opacity:calc(.15 + var(--card-enter,1)*.85);transition:box-shadow 180ms,border-color 180ms;transform-origin:center bottom}
.scroll-scene .feature:hover{border-color:#b28bd66b;box-shadow:0 16px 45px #6b339a18}
.scroll-scene .code-card{transform:perspective(1200px) rotateY(calc((1 - var(--scene-enter,1))*-12deg)) translateX(calc((1 - var(--scene-enter,1))*36px));transform-origin:right center}
.section{position:relative}.section::after{content:'';position:absolute;left:50%;bottom:0;width:min(85%,1060px);height:1px;transform:translateX(-50%) scaleX(var(--scene-enter,1));background:linear-gradient(90deg,transparent,#9d76d33b,transparent);pointer-events:none}
@media(max-width:700px){.hero-ribbons{height:800px;opacity:.24}.scroll-scene .feature{transform:translateY(calc((1 - var(--card-enter,1))*24px))}.scroll-scene .code-card{transform:none}}
@media(prefers-reduced-motion:reduce){.hero-ribbons{transform:none;opacity:.25;will-change:auto}.ribbon-left,.ribbon-right,.scroll-scene .section-head,.scroll-scene .feature,.scroll-scene .code-card{transform:none;opacity:1}}

/* Ênfase visual das formas, com o conteúdo sempre à frente. */
.hero-ribbons{filter:drop-shadow(0 0 28px #9c58ed55);height:1080px}
.hero-ribbons::before{content:'';position:absolute;inset:6% 8% 12%;background:radial-gradient(ellipse at 50% 25%,#8a35e32a,transparent 62%);pointer-events:none}
.hero h1 .grad{background-image:linear-gradient(100deg,#e2ceff,#b581ff 50%,#9353f4);filter:drop-shadow(0 0 22px #a65cff38)}
.product-stage .kit{border-color:#b184ed77;box-shadow:0 45px 120px #000a,0 0 110px #873bd82b,inset 0 1px #ebd5ff24}
@media(max-width:700px){.hero-ribbons{opacity:.42;filter:drop-shadow(0 0 14px #9c58ed33)}}
@media(prefers-reduced-motion:reduce){.hero-ribbons{opacity:.35;filter:none}.hero h1 .grad{filter:none}}
