:root {
    --bg: #0a0a12;
    --bg-2: #12121e;
    --texto: #fff;
    --texto-50: rgba(255,255,255,.55);
    --gold: #d4af37;
    --gold-2: #a58344;
    --accent-1: #7c5cff;
    --accent-2: #ff7ac2;
    --grad-principal: linear-gradient(135deg, #d4af37, #ff7ac2 55%, #7c5cff);
    --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--texto);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}
h1,h2,h3,h4,.brand-font { font-family: 'Space Grotesk', sans-serif; }

/* ============ CANVAS 3D ============ */
#bg3d {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .85;
}

/* ============ NAV ============ */
.site-nav {
    background: rgba(10,10,18,.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    z-index: 1050;
}
.site-nav .navbar-brand { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; }
.brand-badge {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--grad-principal);
    border-radius: 12px;
    font-weight: 800;
    color: #0a0a12;
    box-shadow: 0 0 24px rgba(124,92,255,.45);
}
.brand-badge-img { padding: 3px; }
.brand-badge-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; background: #fff; }
.site-nav .nav-link {
    color: rgba(255,255,255,.8);
    font-weight: 500;
    padding: 8px 14px !important;
}
.site-nav .nav-link.active, .site-nav .nav-link:hover { color: var(--gold); }

/* ============ BOTÕES ============ */
.btn-grad {
    background: var(--grad-principal);
    background-size: 180% 180%;
    color: #0a0a12;
    border: none;
    transition: background-position .5s ease, transform .25s ease, box-shadow .25s ease;
    animation: gradShift 6s ease infinite;
}
.btn-grad:hover { color: #0a0a12; transform: translateY(-3px); box-shadow: 0 14px 34px rgba(124,92,255,.35); }
@keyframes gradShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.btn-3d { position: relative; }
.btn-3d:active { transform: translateY(-1px) scale(.98); }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    padding-top: 120px;
    padding-bottom: 80px;
}
.hero-title { letter-spacing: -1px; }
.grad-text {
    background: var(--grad-principal);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradShift 6s ease infinite;
    background-size: 180% 180%;
}

.pill-etiqueta {
    display: inline-flex; align-items: center;
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.05);
}
.glow-soft { box-shadow: 0 0 32px rgba(124,92,255,.25); }

.hero-stats .stat-num { display:block; font-size: 1.6rem; font-weight: 800; font-family:'Space Grotesk',sans-serif; }
.hero-stats .stat-label { font-size: .8rem; color: var(--texto-50); text-transform: uppercase; letter-spacing: 1px; }

.orb-float {
    width: 340px; height: 340px;
    border-radius: 50%;
    margin: 0 auto;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), transparent 40%),
        conic-gradient(from 0deg, #d4af37, #7c5cff, #ff7ac2, #d4af37);
    -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
    mask: radial-gradient(circle, transparent 55%, #000 56%);
    animation: orbSpin 14s linear infinite, floatY 5s ease-in-out infinite;
    filter: drop-shadow(0 0 60px rgba(124,92,255,.45));
}
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.scroll-hint {
    position: absolute;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    color: var(--texto-50);
    animation: scrollPulse 2s ease infinite;
    z-index: 2;
}
@keyframes scrollPulse { 0%,100% { opacity:.4; transform:translateX(-50%) translateY(0);} 50% { opacity:1; transform:translateX(-50%) translateY(6px);} }

/* ============ SEÇÕES ============ */
.solucoes, .diferenciais, .produtos, .garantias, .cta-final {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 70px;
}
.section-title { letter-spacing: -.5px; }

/* ============ CAROUSEL ============ */
.carousel-viewport { overflow: hidden; padding: 10px 0; }
.carousel-track {
    display: flex;
    transition: transform .7s cubic-bezier(.22,.72,.24,1);
}
.carousel-track.centrado { justify-content: center; }
.carousel-item-card { flex: 0 0 100%; min-width: 100%; padding: 0 12px; }
@media (min-width: 768px) {
    .carousel-item-card { flex: 0 0 50%; min-width: 50%; }
}
@media (min-width: 1200px) {
    .carousel-item-card { flex: 0 0 33.333%; min-width: 33.333%; }
}

.proj-card {
    background: linear-gradient(160deg, #16162a, #0e0e1c);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.proj-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px color-mix(in srgb, var(--accent), transparent 60%);
    border-color: var(--accent);
}
.proj-img-wrap { position: relative; height: 220px; overflow: hidden; }
.proj-img-wrap img { width:100%; height:100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-img-wrap img { transform: scale(1.08); }
.proj-tipo {
    position: absolute; top: 14px; left: 14px;
    background: rgba(10,10,18,.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,.2);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    letter-spacing: .8px; text-transform: uppercase;
    color: var(--accent);
}
.proj-body { padding: 24px; }
.proj-tags .badge {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
    font-weight: 500;
}

.carousel-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(255,255,255,.05);
    color: #fff;
    transition: all .25s ease;
}
.carousel-btn:hover { background: var(--grad-principal); color: #0a0a12; border-color: transparent; transform: scale(1.08); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.25);
    transition: all .3s ease;
    padding: 0;
}
.carousel-dot.active { width: 30px; border-radius: 999px; background: var(--gold); }

/* ============ DIFERENCIAIS ============ */
.diff-card {
    background: linear-gradient(160deg, #16162a, #0e0e1c);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    height: 100%;
    transition: transform .35s ease, border-color .35s ease;
}
.diff-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.diff-card i { font-size: 1.9rem; color: var(--gold); margin-bottom: 14px; display:inline-block; }
.diff-card h5 { margin-bottom: 8px; }

/* ============ PRODUTOS ============ */
.page-hero {
    min-height: 45vh;
    position: relative;
    padding-top: 130px;
    padding-bottom: 40px;
}
.prod-card {
    position: relative;
    background: linear-gradient(160deg, #17172c, #0e0e1c);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .4s ease, box-shadow .4s ease;
}
.prod-card:hover { transform: translateY(-8px); box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 44px color-mix(in srgb, var(--accent), transparent 70%); }
.prod-destaque { border: 2px solid var(--gold); box-shadow: 0 0 44px rgba(212,175,55,.15); }
.badge-destaque {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    background: var(--gold);
    color: #0a0a12;
    font-weight: 800; font-size: .72rem;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: .5px;
}
.prod-img-wrap { height: 200px; }
.prod-img-wrap img { width:100%; height:100%; object-fit: cover; }
.prod-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.prod-preco { display:flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.preco-atual {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.9rem; font-weight: 800;
    background: var(--grad-principal);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.preco-antigo { color: var(--texto-50); text-decoration: line-through; font-size: .95rem; }
.prod-recursos li { padding: 4px 0; font-size: .9rem; color: rgba(255,255,255,.8); }

/* ============ GARANTIAS ============ */
.mini-badge {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--radius);
    padding: 18px;
    color: rgba(255,255,255,.85);
    font-weight: 600;
}

/* ============ CTA ============ */
.cta-box {
    background: linear-gradient(160deg, rgba(124,92,255,.14), rgba(124,92,255,.04)), #12121e;
    border: 1px solid rgba(124,92,255,.3);
    border-radius: var(--radius);
    padding: 46px 38px;
    box-shadow: 0 24px 70px rgba(0,0,0,.4);
}

/* ============ FOOTER ============ */
.site-footer {
    position: relative;
    z-index: 2;
    background: rgba(10,10,18,.8);
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 40px 0 28px;
    margin-top: auto;
}

/* ============ MODAL ============ */
.modal-content.bg-dark { background: #14141f !important; }

/* ============ REVEAL SCROLL ============ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22,.72,.24,1);
}
.reveal.visivel { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVO ============ */
@media (max-width: 575.98px) {
    .hero { padding-top: 100px; }
    .display-4 { font-size: 2.2rem; }
    .display-5 { font-size: 1.9rem; }
}

/* Cards com perspectiva (efeito tilt p/ mouse) */
.tilt-wrap { perspective: 900px; }

/* ============ DEMO URL BAR — estilo barra de navegador ============ */
.demo-url-bar {
    display: inline-flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 7px 12px;
    font-size: .78rem;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    text-decoration: none;
    color: rgba(255,255,255,.85);
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.demo-url-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(124,92,255,.08), transparent 60%);
    opacity: 0;
    transition: opacity .3s ease;
}
.demo-url-bar:hover {
    background: rgba(255,255,255,.07);
    border-color: rgba(124,92,255,.5);
    box-shadow: 0 0 20px rgba(124,92,255,.18);
    color: #fff;
    text-decoration: none;
}
.demo-url-bar:hover::before { opacity: 1; }

.demo-url-protocol {
    color: #28c840;
    font-weight: 700;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
}
.demo-url-protocol .fa-lock-open { color: #febc2e; }
.demo-url-sep {
    color: rgba(255,255,255,.25);
    margin: 0 1px;
    flex-shrink: 0;
}
.demo-url-host {
    color: #fff;
    font-weight: 700;
    letter-spacing: .3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.demo-url-path {
    color: rgba(255,255,255,.4);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
}
.demo-url-open {
    color: rgba(255,255,255,.4);
    margin-left: 8px;
    flex-shrink: 0;
    font-size: .7rem;
    transition: color .25s ease, transform .25s ease;
}
.demo-url-bar:hover .demo-url-open {
    color: var(--gold);
    transform: translate(2px, -2px);
}
/* Variante menor para o carousel */
.demo-url-bar--carousel {
    font-size: .73rem;
    padding: 6px 10px;
    border-radius: 8px;
}

/* ============ DEMO CREDS — estilo painel macOS ============ */
.demo-creds {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    font-size: .8rem;
}
.demo-creds-header {
    background: rgba(255,255,255,.06);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.demo-dot {
    width: 11px; height: 11px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.demo-creds-title {
    color: rgba(255,255,255,.5);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-left: 4px;
}
.demo-creds-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.demo-cred-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: .78rem;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.demo-cred-row:last-child { border-bottom: none; }
.demo-cred-role {
    font-weight: 700;
    font-size: .72rem;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
}
.role-admin  { background: rgba(212,175,55,.15); color: #d4af37; border: 1px solid rgba(212,175,55,.3); }
.role-cliente { background: rgba(99,179,237,.15); color: #63b3ed; border: 1px solid rgba(99,179,237,.3); }
.role-prof   { background: rgba(72,187,120,.15); color: #48bb78; border: 1px solid rgba(72,187,120,.3); }
.demo-cred-val {
    color: rgba(255,255,255,.85);
    word-break: break-all;
    font-family: 'JetBrains Mono','Fira Code', monospace;
    font-size: .75rem;
    flex: 1;
    min-width: 0;
}
.demo-cred-sep { color: rgba(255,255,255,.2); flex-shrink: 0; }
.demo-cred-pass {
    color: var(--gold);
    font-family: 'JetBrains Mono','Fira Code', monospace;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============ BOTÃO DEMO LAUNCH ============ */
.btn-demo-launch {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(212,175,55,.45);
    background: rgba(212,175,55,.06);
    color: #d4af37;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    overflow: hidden;
    transition: all .3s ease;
}
.btn-demo-launch .btn-demo-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.15), transparent);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.btn-demo-launch:hover {
    background: rgba(212,175,55,.12);
    border-color: rgba(212,175,55,.7);
    color: #d4af37;
    box-shadow: 0 0 28px rgba(212,175,55,.2);
    text-decoration: none;
    transform: translateY(-2px);
}
.btn-demo-launch:hover .btn-demo-glow {
    transform: translateX(100%);
}