/* =========================================================================
   BRAOL — Design System (tema claro, glassmorphism e elementos 3D em CSS)
   ========================================================================= */

:root {
    --bg: #f5f7fc;
    --surface: #ffffff;
    --ink: #0b1430;
    --ink-2: #26324f;
    --muted: #64708a;
    --line: #e6e9f3;
    --p1: #4f46e5;
    --p2: #7c3aed;
    --c1: #06b6d4;
    --ok: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #06b6d4 100%);
    --grad-soft: linear-gradient(135deg, rgba(79, 70, 229, .10), rgba(6, 182, 212, .10));
    --radius: 22px;
    --radius-sm: 14px;
    --shadow-xs: 0 1px 2px rgba(11, 20, 48, .05);
    --shadow-sm: 0 4px 14px -6px rgba(11, 20, 48, .12);
    --shadow: 0 30px 60px -30px rgba(79, 70, 229, .35), 0 12px 24px -16px rgba(11, 20, 48, .18);
    --shadow-lg: 0 50px 100px -40px rgba(79, 70, 229, .45), 0 20px 40px -20px rgba(11, 20, 48, .2);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color: #4f46e5;
    --bs-link-hover-color: #3730a3;
    --bs-body-font-family: var(--font);
}

* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink-2);
    overflow-x: hidden;
    letter-spacing: -.005em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    color: var(--ink);
    font-weight: 800;
    letter-spacing: -.025em;
}

a { color: var(--p1); text-decoration: none; }
a:hover { color: #3730a3; }

::selection { background: rgba(79, 70, 229, .18); }

.text-muted { color: var(--muted) !important; }
.text-gradient {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.text-primary { color: var(--p1) !important; }
.bg-primary { background-color: var(--p1) !important; }

/* ---------- Botões ---------- */
.btn {
    border-radius: 999px;
    font-weight: 700;
    padding: .7rem 1.4rem;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1.05rem; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary, .btn-success {
    background: var(--grad);
    background-size: 160% 160%;
    border: 0;
    color: #fff;
    box-shadow: 0 14px 30px -12px rgba(79, 70, 229, .7);
}
.btn-primary:hover, .btn-primary:focus, .btn-success:hover, .btn-success:focus {
    background-position: 100% 0;
    color: #fff;
    box-shadow: 0 20px 40px -14px rgba(79, 70, 229, .8);
}
.btn-outline-primary {
    border: 1.5px solid rgba(79, 70, 229, .35);
    color: var(--p1);
    background: rgba(255, 255, 255, .7);
}
.btn-outline-primary:hover { background: var(--p1); border-color: var(--p1); color: #fff; }
.btn-light-glass {
    background: rgba(255, 255, 255, .75);
    border: 1px solid rgba(255, 255, 255, .9);
    color: var(--ink);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}
.btn-light-glass:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-outline-secondary { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Formulários ---------- */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line);
    padding: .8rem 1rem;
    background-color: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.form-control-sm, .form-select-sm { padding: .5rem .8rem; border-radius: 10px; }
.form-control:focus, .form-select:focus {
    border-color: rgba(79, 70, 229, .55);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.form-label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.form-check-input:checked { background-color: var(--p1); border-color: var(--p1); }

/* ---------- Cards / Tabelas genéricos ---------- */
.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    background: var(--surface);
}
.card.border-0 { border: 1px solid var(--line) !important; }
.card-header { border-radius: var(--radius) var(--radius) 0 0 !important; }
.rounded-4 { border-radius: var(--radius) !important; }

.table { --bs-table-hover-bg: rgba(79, 70, 229, .035); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .9rem 1rem; border-color: var(--line); }
.table-light, .table thead th {
    --bs-table-bg: #f8f9fd;
    color: var(--muted);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
}
.badge { border-radius: 999px; padding: .45em .8em; font-weight: 700; letter-spacing: .01em; }
.alert { border-radius: var(--radius-sm); border: 0; }

/* ---------- Navbar glass ---------- */
.nav-glass {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1030;
    padding: 18px 0;
    transition: padding .3s ease, background .3s ease, box-shadow .3s ease;
}
.nav-glass.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 10px 30px -18px rgba(11, 20, 48, .3);
}
.nav-glass .navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -.04em; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 12px;
    background: var(--grad);
    display: grid; place-items: center;
    color: #fff; font-size: 1.1rem;
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .8), inset 0 1px 0 rgba(255, 255, 255, .4);
    transform: perspective(200px) rotateX(10deg) rotateY(-10deg);
}
.nav-glass .nav-link { color: var(--ink-2); font-weight: 600; padding: .5rem .95rem !important; border-radius: 999px; font-size: .95rem; }
.nav-glass .nav-link:hover, .nav-glass .nav-link.active { color: var(--p1); background: rgba(79, 70, 229, .07); }
.nav-glass .navbar-toggler { border: 0; box-shadow: none; }
@media (max-width: 991.98px) {
    .nav-glass .navbar-collapse {
        background: rgba(255, 255, 255, .97);
        border-radius: var(--radius);
        margin-top: 12px;
        padding: 16px;
        box-shadow: var(--shadow);
    }
    .nav-glass { background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px); }
}

/* ---------- Estrutura de seções ---------- */
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 70px 0; }
.page-offset { padding-top: 120px; padding-bottom: 60px; min-height: 70vh; }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem .45rem .5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    border: 1px solid rgba(79, 70, 229, .15);
    color: var(--p1);
    font-weight: 700; font-size: .82rem;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(10px);
}
.eyebrow .dot {
    background: var(--grad); color: #fff; border-radius: 999px;
    padding: .15rem .55rem; font-size: .72rem;
}
.display-hero {
    font-size: clamp(2.5rem, 5.6vw, 4.6rem);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -.045em;
}
.section-title { font-size: clamp(2rem, 3.8vw, 3.1rem); line-height: 1.1; letter-spacing: -.04em; }
.lead-lg { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.7; }

/* Fundos com blobs */
.mesh-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.mesh-bg .blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; animation: blobMove 18s ease-in-out infinite alternate; }
.blob.b1 { width: 520px; height: 520px; background: #c7d2fe; top: -160px; left: -120px; }
.blob.b2 { width: 460px; height: 460px; background: #a5f3fc; top: 80px; right: -140px; animation-delay: -6s; }
.blob.b3 { width: 380px; height: 380px; background: #e9d5ff; bottom: -160px; left: 35%; animation-delay: -12s; }
@keyframes blobMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.12); }
}
.grid-lines {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(79, 70, 229, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 70, 229, .06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.z-1 { position: relative; z-index: 1; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 160px 0 90px; overflow: hidden; }
.hero-trust { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars span {
    width: 40px; height: 40px; border-radius: 50%;
    border: 3px solid #fff; margin-left: -10px;
    display: grid; place-items: center;
    color: #fff; font-weight: 800; font-size: .8rem;
    box-shadow: var(--shadow-sm);
}
.avatars span:first-child { margin-left: 0; }
.stars { color: #f59e0b; letter-spacing: 2px; }

/* ---------- Cena 3D: pilha de servidores isométrica ---------- */
.scene {
    position: relative;
    height: 560px;
    perspective: 1600px;
    perspective-origin: 50% 40%;
}
.scene-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .25s ease-out; }
.stack {
    position: absolute; left: 50%; top: 52%;
    width: 280px; height: 280px;
    margin: -140px 0 0 -140px;
    transform-style: preserve-3d;
    transform: rotateX(58deg) rotateZ(45deg);
    animation: stackFloat 7s ease-in-out infinite;
}
@keyframes stackFloat {
    0%, 100% { transform: rotateX(58deg) rotateZ(45deg) translateZ(0); }
    50% { transform: rotateX(58deg) rotateZ(45deg) translateZ(22px); }
}
.platform {
    position: absolute; inset: -70px;
    border-radius: 40px;
    background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, .28), rgba(6, 182, 212, .12) 55%, transparent 72%);
    transform: translateZ(-40px);
}
.platform::after {
    content: ''; position: absolute; inset: 60px;
    border-radius: 32px;
    border: 2px dashed rgba(79, 70, 229, .25);
    animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.slab {
    position: absolute; inset: 0;
    border-radius: 20px;
    transform-style: preserve-3d;
    background: linear-gradient(135deg, #ffffff 0%, #eef0ff 60%, #e0e7ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9);
}
.slab.s1 { transform: translateZ(0); }
.slab.s2 { transform: translateZ(78px); }
.slab.s3 { transform: translateZ(156px); }
.slab .face-front, .slab .face-side { position: absolute; }
.slab .face-front {
    left: 14px; right: 14px; bottom: 0; height: 52px;
    transform-origin: bottom; transform: rotateX(90deg);
    background: linear-gradient(180deg, #c7cdfb 0%, #a9b1f5 100%);
    border-radius: 0 0 14px 14px;
    display: flex; align-items: center; gap: 10px; padding: 0 18px;
}
.slab .face-side {
    top: 14px; bottom: 14px; right: 0; width: 52px;
    transform-origin: right; transform: rotateY(-90deg);
    background: linear-gradient(90deg, #8f99ef 0%, #7a84e8 100%);
    border-radius: 0 14px 14px 0;
}
.slab .vent { flex: 1; height: 6px; border-radius: 6px; background: repeating-linear-gradient(90deg, rgba(79, 70, 229, .35) 0 8px, transparent 8px 14px); }
.led { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px 2px rgba(16, 185, 129, .8); animation: blink 2.2s infinite; }
.led.b { background: #06b6d4; box-shadow: 0 0 10px 2px rgba(6, 182, 212, .8); animation-delay: .6s; }
.led.v { background: #8b5cf6; box-shadow: 0 0 10px 2px rgba(139, 92, 246, .8); animation-delay: 1.1s; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.slab .top-chip {
    position: absolute; inset: 40px;
    border-radius: 16px;
    background: var(--grad);
    opacity: .92;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35);
    display: grid; place-items: center;
    color: #fff; font-size: 3rem;
}
.slab .top-chip i { transform: rotateZ(-45deg); text-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.slab .top-lines { position: absolute; inset: 26px; border-radius: 14px; border: 2px solid rgba(79, 70, 229, .12); }

/* Cartões flutuantes de vidro */
.float-card {
    position: absolute;
    z-index: 5;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 12px;
    animation: floatY 6s ease-in-out infinite;
    min-width: 200px;
}
.float-card .ic {
    width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    color: #fff; font-size: 1.15rem; flex-shrink: 0;
}
.float-card small { color: var(--muted); display: block; font-size: .75rem; font-weight: 600; }
.float-card strong { color: var(--ink); font-size: .98rem; }
.fc-1 { top: 6%; left: 0; }
.fc-2 { top: 40%; right: -2%; animation-delay: -2s; }
.fc-3 { bottom: 6%; left: 8%; animation-delay: -4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.ic-ok { background: linear-gradient(135deg, #34d399, #059669); }
.ic-p { background: linear-gradient(135deg, #818cf8, #4f46e5); }
.ic-c { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.ic-v { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.ic-w { background: linear-gradient(135deg, #fbbf24, #d97706); }
.ic-r { background: linear-gradient(135deg, #fb7185, #e11d48); }

/* Esferas 3D */
.orb {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #c7d2fe 22%, #6366f1 62%, #3730a3 100%);
    box-shadow: inset -10px -14px 30px rgba(30, 27, 75, .35), 0 30px 50px -20px rgba(79, 70, 229, .6);
    animation: floatY 8s ease-in-out infinite;
    z-index: 2;
}
.orb.cyan { background: radial-gradient(circle at 32% 28%, #ffffff 0%, #a5f3fc 24%, #06b6d4 62%, #0e7490 100%); box-shadow: inset -10px -14px 30px rgba(8, 51, 68, .35), 0 30px 50px -20px rgba(6, 182, 212, .6); }
.orb.violet { background: radial-gradient(circle at 32% 28%, #ffffff 0%, #e9d5ff 24%, #a855f7 62%, #6b21a8 100%); box-shadow: inset -10px -14px 30px rgba(59, 7, 100, .35), 0 30px 50px -20px rgba(168, 85, 247, .6); }
.ring3d {
    position: absolute; border-radius: 50%;
    border: 14px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
    transform: rotateX(70deg);
    box-shadow: 0 30px 40px -20px rgba(79, 70, 229, .5);
    animation: ringSpin 12s linear infinite;
    opacity: .9;
}
@keyframes ringSpin { to { transform: rotateX(70deg) rotateZ(360deg); } }

/* ---------- Faixa de tecnologias ---------- */
.logo-strip { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .6); overflow: hidden; }
.marquee { display: flex; gap: 70px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.15rem; color: #94a0b8; white-space: nowrap; letter-spacing: -.02em; }
.marquee span i { font-size: 1.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Estatísticas ---------- */
.stat-tile {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; height: 100%; box-shadow: var(--shadow-sm);
    position: relative; overflow: hidden;
}
.stat-tile::after { content: ''; position: absolute; width: 140px; height: 140px; right: -50px; top: -50px; border-radius: 50%; background: var(--grad-soft); }
.stat-tile .num { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.stat-tile .lbl { color: var(--muted); font-weight: 600; margin-top: .5rem; }

/* ---------- Recursos (bento) ---------- */
.feature-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
    transform-style: preserve-3d;
}
.feature-card:hover { box-shadow: var(--shadow); border-color: rgba(79, 70, 229, .25); }
.feature-card .icon3d {
    width: 60px; height: 60px; border-radius: 18px;
    display: grid; place-items: center; color: #fff; font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 16px 26px -12px rgba(79, 70, 229, .7), inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -4px 0 rgba(0, 0, 0, .12);
    transform: translateZ(30px);
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.feature-card p { color: var(--muted); margin-bottom: 0; line-height: 1.65; }
.feature-card.big { background: linear-gradient(160deg, #ffffff 0%, #f1f0ff 100%); }
.mini-terminal {
    margin-top: 22px; background: #0b1430; border-radius: 16px; padding: 18px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; color: #c7d2fe;
    box-shadow: 0 30px 50px -25px rgba(11, 20, 48, .7);
}
.mini-terminal .dots { display: flex; gap: 6px; margin-bottom: 12px; }
.mini-terminal .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mini-terminal .ok { color: #34d399; }
.mini-terminal .cy { color: #67e8f9; }

/* ---------- Planos ---------- */
.billing-toggle {
    display: inline-flex; padding: 6px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    position: relative;
}
.billing-toggle button {
    border: 0; background: transparent; padding: .6rem 1.4rem; border-radius: 999px;
    font-weight: 700; color: var(--muted); position: relative; z-index: 1; transition: color .25s;
}
.billing-toggle button.active { color: #fff; }
.billing-toggle .pill {
    position: absolute; top: 6px; bottom: 6px; left: 6px; border-radius: 999px;
    background: var(--grad); transition: all .3s cubic-bezier(.4, 1.4, .6, 1);
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .7);
}
.save-chip { background: #dcfce7; color: #047857; font-weight: 800; font-size: .72rem; padding: .2rem .55rem; border-radius: 999px; margin-left: .35rem; }
.billing-toggle button.active .save-chip { background: rgba(255, 255, 255, .25); color: #fff; }

.price-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 36px 30px;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .35s ease, box-shadow .35s ease;
    transform-style: preserve-3d;
}
.price-card:hover { box-shadow: var(--shadow-lg); }
.price-card.featured {
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
    border: 2px solid transparent;
    box-shadow: var(--shadow-lg);
}
@media (min-width: 992px) { .price-card.featured { transform: scale(1.04); } }
.price-card .ribbon {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #fff; font-weight: 800; font-size: .75rem;
    padding: .45rem 1rem; border-radius: 999px; white-space: nowrap;
    box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .8);
}
.price-card .plan-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; margin-bottom: 18px; box-shadow: 0 14px 24px -12px rgba(79, 70, 229, .7), inset 0 2px 0 rgba(255,255,255,.35); }
.price-card .plan-name { font-size: 1.35rem; margin-bottom: .3rem; }
.price-card .price { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.05em; line-height: 1; }
.price-card .price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.price-card .price-note { color: var(--muted); font-size: .85rem; min-height: 1.3rem; }
.price-card ul { list-style: none; padding: 0; margin: 26px 0 30px; flex-grow: 1; }
.price-card li { display: flex; gap: .7rem; align-items: flex-start; padding: .45rem 0; color: var(--ink-2); font-weight: 500; }
.price-card li i { color: var(--ok); font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.price-card li.bonus-item {
    background: linear-gradient(135deg, rgba(79, 70, 229, .09), rgba(6, 182, 212, .10));
    border: 1px solid rgba(79, 70, 229, .22);
    border-radius: 14px;
    padding: .75rem .9rem;
    margin-bottom: .65rem;
    color: var(--ink);
    font-weight: 600;
}
.price-card li.bonus-item i { color: var(--p1); font-size: 1.2rem; margin-top: 2px; }
.bonus-badge {
    display: inline-block;
    background: var(--grad);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    padding: .18rem .55rem;
    border-radius: 999px;
    margin-right: .35rem;
    vertical-align: middle;
}
.plans-footnote {
    max-width: 820px;
    margin: 1.75rem auto 0;
    font-size: .82rem;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
}

/* ---------- Passos ---------- */
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; height: 100%; position: relative; text-align: center; }
.step-num {
    width: 70px; height: 70px; margin: -70px auto 20px;
    border-radius: 22px; background: var(--grad); color: #fff;
    font-size: 1.6rem; font-weight: 800; display: grid; place-items: center;
    box-shadow: 0 20px 30px -14px rgba(79, 70, 229, .8), inset 0 2px 0 rgba(255,255,255,.35), inset 0 -5px 0 rgba(0,0,0,.15);
    transform: perspective(300px) rotateX(14deg);
}
.steps-line { position: absolute; top: 34px; left: 16%; right: 16%; height: 2px; background: repeating-linear-gradient(90deg, rgba(79,70,229,.35) 0 10px, transparent 10px 20px); }

/* ---------- Cubo 3D ---------- */
.cube-wrap { height: 420px; perspective: 1200px; display: grid; place-items: center; position: relative; }
.cube { width: 200px; height: 200px; position: relative; transform-style: preserve-3d; animation: cubeSpin 18s linear infinite; }
.cube .face {
    position: absolute; inset: 0; border-radius: 28px;
    display: grid; place-items: center; text-align: center;
    color: #fff; font-weight: 800; font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, .45);
    box-shadow: inset 0 0 40px rgba(255, 255, 255, .18);
    backdrop-filter: blur(2px);
}
.cube .face i { font-size: 3rem; display: block; margin-bottom: 6px; }
.cube .f1 { background: linear-gradient(135deg, rgba(99,102,241,.92), rgba(79,70,229,.92)); transform: translateZ(100px); }
.cube .f2 { background: linear-gradient(135deg, rgba(34,211,238,.92), rgba(8,145,178,.92)); transform: rotateY(180deg) translateZ(100px); }
.cube .f3 { background: linear-gradient(135deg, rgba(192,132,252,.92), rgba(124,58,237,.92)); transform: rotateY(90deg) translateZ(100px); }
.cube .f4 { background: linear-gradient(135deg, rgba(52,211,153,.92), rgba(5,150,105,.92)); transform: rotateY(-90deg) translateZ(100px); }
.cube .f5 { background: linear-gradient(135deg, rgba(251,191,36,.92), rgba(217,119,6,.92)); transform: rotateX(90deg) translateZ(100px); }
.cube .f6 { background: linear-gradient(135deg, rgba(251,113,133,.92), rgba(225,29,72,.92)); transform: rotateX(-90deg) translateZ(100px); }
@keyframes cubeSpin {
    0% { transform: rotateX(-22deg) rotateY(0deg); }
    100% { transform: rotateX(-22deg) rotateY(360deg); }
}
.cube-shadow { position: absolute; bottom: 40px; width: 240px; height: 40px; border-radius: 50%; background: radial-gradient(rgba(79,70,229,.35), transparent 70%); filter: blur(6px); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: .9rem; padding: .7rem 0; align-items: flex-start; }
.check-list .ck { width: 30px; height: 30px; border-radius: 10px; background: var(--grad-soft); color: var(--p1); display: grid; place-items: center; flex-shrink: 0; font-size: 1rem; }
.check-list strong { color: var(--ink); display: block; }
.check-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Depoimentos ---------- */
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; position: relative; transition: transform .3s, box-shadow .3s; }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.testimonial .quote { position: absolute; top: 18px; right: 24px; font-size: 3.4rem; line-height: 1; color: rgba(79, 70, 229, .12); }
.testimonial p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; }
.person { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.person .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.person strong { color: var(--ink); display: block; }
.person small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 1px solid var(--line); border-radius: 18px !important; margin-bottom: 14px; overflow: hidden; background: #fff; }
.faq .accordion-button { font-weight: 700; color: var(--ink); padding: 1.3rem 1.5rem; background: #fff; box-shadow: none; font-size: 1.02rem; }
.faq .accordion-button:not(.collapsed) { color: var(--p1); background: #fafaff; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { color: var(--muted); padding: 0 1.5rem 1.4rem; line-height: 1.7; background: #fafaff; }

/* ---------- CTA ---------- */
.cta-box {
    position: relative; overflow: hidden;
    border-radius: 36px; padding: 80px 60px;
    background: var(--grad);
    color: #fff;
    box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .85); }
.cta-box .grid-lines { background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); }
.cta-box .btn-white { background: #fff; color: var(--p1); border: 0; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4); }
.cta-box .btn-white:hover { color: var(--p2); }
.cta-box .btn-ghost { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; background: rgba(255, 255, 255, .08); }
.cta-box .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
@media (max-width: 767.98px) { .cta-box { padding: 50px 26px; border-radius: 26px; } }

/* ---------- Page hero (páginas internas) ---------- */
.page-hero { position: relative; padding: 170px 0 80px; overflow: hidden; text-align: center; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.045em; line-height: 1.08; }
.breadcrumb-pill { display: inline-flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Linhas de recurso alternadas */
.feature-row { padding: 60px 0; }
.visual-card {
    background: linear-gradient(160deg, #fff 0%, #f1f0ff 100%);
    border: 1px solid var(--line); border-radius: 30px; min-height: 340px;
    position: relative; overflow: hidden; box-shadow: var(--shadow);
    display: grid; place-items: center; transform-style: preserve-3d;
}
.visual-card .big-icon {
    width: 130px; height: 130px; border-radius: 36px; display: grid; place-items: center;
    color: #fff; font-size: 3.6rem;
    box-shadow: 0 40px 60px -25px rgba(79, 70, 229, .8), inset 0 3px 0 rgba(255,255,255,.35), inset 0 -8px 0 rgba(0,0,0,.15);
    transform: perspective(600px) rotateX(18deg) rotateY(-18deg) translateZ(40px);
    animation: floatY 6s ease-in-out infinite;
}

/* Comparativo */
.compare-table { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.compare-table th, .compare-table td { text-align: center; vertical-align: middle; }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; color: var(--ink); }
.compare-table .hl { background: rgba(79, 70, 229, .045); }

/* Contato */
.contact-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; align-items: flex-start; height: 100%; transition: transform .3s, box-shadow .3s; }
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-tile .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff; font-size: 1.3rem; flex-shrink: 0; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: 40px; box-shadow: var(--shadow); }
@media (max-width: 575.98px) { .form-card { padding: 26px; } }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Valores / sobre */
.value-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; height: 100%; }
.value-card .icon3d { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 1.4rem; margin-bottom: 18px; box-shadow: 0 14px 24px -12px rgba(79,70,229,.7), inset 0 2px 0 rgba(255,255,255,.35); }

/* Texto legal */
.legal { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 50px; box-shadow: var(--shadow-sm); }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.8; }
@media (max-width: 575.98px) { .legal { padding: 26px; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b1430; color: #a7b0c8; padding: 90px 0 30px; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(rgba(79,70,229,.35), transparent 65%); top: -300px; right: -200px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1.1rem; letter-spacing: 0; }
.site-footer a { color: #a7b0c8; display: inline-block; padding: .3rem 0; transition: color .2s, transform .2s; }
.site-footer a:hover { color: #fff; transform: translateX(3px); }
.site-footer .navbar-brand { color: #fff; }
.site-footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 60px; padding-top: 26px; font-size: .88rem; }
.social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.06); display: inline-grid !important; place-items: center; margin-right: 8px; color: #fff; font-size: 1.1rem; }
.social a:hover { background: var(--p1); transform: translateY(-3px) !important; }
.pay-badges span { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.06); border-radius: 10px; padding: .45rem .8rem; margin: 0 .4rem .4rem 0; color: #dfe4f2; font-size: .82rem; font-weight: 600; }

/* ---------- Flash flutuante ---------- */
.flash-stack { position: fixed; top: 96px; right: 20px; z-index: 1090; width: min(420px, calc(100vw - 40px)); }
.flash-stack .alert { box-shadow: var(--shadow); backdrop-filter: blur(10px); font-weight: 600; animation: slideIn .4s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

/* ---------- Auth split ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form-side { display: flex; flex-direction: column; justify-content: center; padding: 50px clamp(24px, 6vw, 90px); background: #fff; position: relative; }
.auth-visual {
    position: relative; overflow: hidden;
    background: linear-gradient(150deg, #eef2ff 0%, #f5f3ff 45%, #ecfeff 100%);
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 60px;
}
.auth-visual .scene { height: 440px; width: 100%; }
.auth-visual h2 { font-size: 2rem; text-align: center; max-width: 440px; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-visual { display: none; } }

/* ---------- Área do cliente / admin (componentes reaproveitados) ---------- */
.stat-card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); background: #fff; position: relative; overflow: hidden; }
.stat-card::after { content: ''; position: absolute; width: 110px; height: 110px; right: -40px; top: -40px; border-radius: 50%; background: var(--grad-soft); }
.plan-card { border-radius: var(--radius); }
.pix-code-box { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .85rem; word-break: break-all; }
.dash-hero {
    border-radius: 28px; padding: 34px; margin-bottom: 28px; color: #fff;
    background: var(--grad); position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.dash-hero h1, .dash-hero .h4 { color: #fff; }
.dash-hero small, .dash-hero p { color: rgba(255,255,255,.85) !important; }
.dash-hero .orb { opacity: .9; }

.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 270px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line);
    padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .nav-link { color: var(--ink-2); border-radius: 12px; margin-bottom: 4px; font-weight: 600; display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; }
.admin-sidebar .nav-link i { font-size: 1.1rem; color: var(--muted); }
.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active { background: var(--grad-soft); color: var(--p1); }
.admin-sidebar .nav-link:hover i, .admin-sidebar .nav-link.active i { color: var(--p1); }
.admin-sidebar .section-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #9aa4bc; font-weight: 700; margin: 20px 10px 8px; }
.admin-main { flex: 1; min-width: 0; }
.admin-topbar { background: rgba(255,255,255,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); padding: 14px 28px; position: sticky; top: 0; z-index: 20; }
@media (max-width: 991.98px) {
    .admin-sidebar { position: fixed; left: -290px; z-index: 1050; transition: left .3s; box-shadow: var(--shadow-lg); }
    .admin-sidebar.open { left: 0; }
}
