* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Background animado ── */
.bg-animation { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-animation .orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: .12;
    animation: orbFloat 22s infinite ease-in-out;
}
.bg-animation .orb:nth-child(1) { width: 650px; height: 650px; background: #6366f1; top: -12%; left: -8%; }
.bg-animation .orb:nth-child(2) { width: 450px; height: 450px; background: #8b5cf6; top: 45%; right: -6%; animation-delay: -7s; }
.bg-animation .orb:nth-child(3) { width: 550px; height: 550px; background: #06b6d4; bottom: -10%; left: 28%; animation-delay: -14s; }
@keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    25%     { transform: translate(60px,-30px) scale(1.08); }
    50%     { transform: translate(-20px,55px) scale(.95); }
    75%     { transform: translate(35px,25px) scale(1.04); }
}

.grid-overlay {
    position: fixed; inset: 0; z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ── Container ── */
.container { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; padding: 40px 20px 60px; }

/* ── Animação fade-up ── */
.fadeUp { opacity: 0; transform: translateY(30px); animation: fadeUp .9s ease forwards; }
.fadeUp:nth-child(2) { animation-delay: .12s; }
.fadeUp:nth-child(3) { animation-delay: .24s; }
.fadeUp:nth-child(4) { animation-delay: .36s; }
.fadeUp:nth-child(5) { animation-delay: .48s; }
.fadeUp:nth-child(6) { animation-delay: .6s; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ── Header ── */
.header-block { text-align: center; margin-bottom: 10px; }
.header-block .tag {
    display: inline-block; padding: 6px 18px; border-radius: 50px;
    background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.28);
    font-size: .78rem; font-weight: 500; color: #a5b4fc; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 20px;
}
.brand {
    font-size: clamp(2.4rem,5.5vw,4rem); font-weight: 900; letter-spacing: -2px; line-height: 1.1;
    background: linear-gradient(135deg,#fff 0%,#a5b4fc 50%,#6366f1 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand small {
    display: block; font-size: .34em; font-weight: 300; letter-spacing: 8px; text-transform: uppercase;
    background: linear-gradient(90deg,#6366f1,#06b6d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-top: 6px;
}

/* ── Logo retangular ── */
.logo-wrap {
    width: 380px;
    max-width: 90%;
    margin: 36px auto 0;
    position: relative;
}
.logo-frame {
    position: relative; width: 100%; height: 130px;
    background: #12121a; border: 2px solid #1a1a2e; border-radius: 16px;
    overflow: hidden; transition: all .35s ease;
    display: flex; align-items: center; justify-content: center;
}
.logo-frame::before {
    content: ''; position: absolute; inset: -2px; border-radius: 16px;
    background: conic-gradient(from 0deg,#6366f1,#8b5cf6,#06b6d4,#6366f1);
    animation: spin 6s linear infinite; opacity: 0; z-index: -1; transition: opacity .3s ease;
}
.logo-frame:hover::before { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo-frame:hover { border-color: transparent; transform: translateY(-3px); box-shadow: 0 10px 40px rgba(99,102,241,.15); }

.logo-frame .placeholder-content {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.logo-frame .placeholder-content svg { width: 38px; height: 38px; opacity: .35; transition: opacity .3s; }
.logo-frame:hover .placeholder-content svg { opacity: .65; }
.logo-frame .placeholder-content span { font-size: .72rem; color: #64748b; font-weight: 500; }

.logo-frame img { width: 100%; height: 100%; object-fit: contain; padding: 12px 20px; border-radius: 14px; }

#logoInput { display: none; }

/* ── Hero ── */
.hero-section { text-align: center; margin: 48px 0 50px; padding: 0 10px; }
.hero-section h2 {
    font-size: clamp(1.6rem,4vw,2.5rem); font-weight: 800; letter-spacing: -1px; line-height: 1.25;
    background: linear-gradient(135deg,#ffffff 0%,#c7d2fe 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 18px;
}
.hero-section p {
    font-size: clamp(1rem,2.2vw,1.15rem); color: #94a3b8; line-height: 1.75; max-width: 650px; margin: 0 auto;
}

/* ── Seções (serviços / projetos) ── */
.services-section { margin: 50px 0; }
.services-section .sec-title {
    text-align: center; font-size: clamp(1.3rem,3vw,1.8rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 32px;
    background: linear-gradient(135deg,#a5b4fc,#06b6d4);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.service-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.service-card {
    background: rgba(18,18,26,.7); border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px; padding: 32px 28px; backdrop-filter: blur(12px); transition: all .35s ease;
}
.service-card:hover { border-color: rgba(99,102,241,.35); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(99,102,241,.08); }
.service-card .icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.service-card .icon svg { width: 28px; height: 28px; }

.icon-purple { background: rgba(99,102,241,.15); }
.icon-purple svg { stroke: #818cf8; }
.icon-cyan   { background: rgba(6,182,212,.15); }
.icon-cyan svg   { stroke: #22d3ee; }
.icon-amber  { background: rgba(245,158,11,.15); }
.icon-amber svg  { stroke: #fbbf24; }

.service-card h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; color: #f1f5f9; }
.service-card p  { font-size: .92rem; color: #64748b; line-height: 1.6; }

/* ── Botão ver detalhes ── */
.btn-details {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    padding: 10px 20px; border: 1px solid rgba(99,102,241,.3); border-radius: 10px;
    background: rgba(99,102,241,.08); color: #a5b4fc; font-family: 'Inter',sans-serif;
    font-size: .85rem; font-weight: 600; cursor: pointer; transition: all .3s ease;
}
.btn-details:hover {
    background: rgba(99,102,241,.18); border-color: rgba(99,102,241,.5);
    color: #c7d2fe; transform: translateY(-2px);
}
.btn-details svg { width: 16px; height: 16px; }

/* ── Contato ── */
.contact-section { text-align: center; margin: 50px 0 20px; }
.contact-section h3 {
    font-size: 1.05rem; font-weight: 600; color: #94a3b8; margin-bottom: 22px; letter-spacing: 1px; text-transform: uppercase;
}
.btn-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; max-width: 800px; margin: 0 auto; }
.c-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 22px; border: none; border-radius: 14px; font-family: 'Inter',sans-serif;
    font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .3s cubic-bezier(.4,0,.2,1);
    text-decoration: none; position: relative; overflow: hidden;
}
.c-btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg,rgba(255,255,255,.1),transparent); opacity: 0; transition: opacity .3s;
}
.c-btn:hover::before { opacity: 1; }
.c-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.c-btn:active { transform: translateY(-1px); }
.c-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-wpp  { background: linear-gradient(135deg,#25d366,#128c7e); color: #fff; }
.btn-mail { background: linear-gradient(135deg,#6366f1,#4f46e5); color: #fff; }
.btn-link { background: linear-gradient(135deg,#0077b5,#005885); color: #fff; }
.btn-ig   { background: linear-gradient(135deg,#e4405f,#c13584,#833ab4); color: #fff; }
.btn-tel  { background: linear-gradient(135deg,#f59e0b,#d97706); color: #fff; }

/* ── Modal genérico (formulário) ── */
.modal-backdrop {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 20px;
}
.modal-backdrop.active { display: flex; }
.modal-box {
    background: #12121a; border: 1px solid rgba(255,255,255,.08); border-radius: 24px;
    width: 100%; max-width: 500px; padding: 40px 36px; position: relative;
    animation: modalIn .4s ease; box-shadow: 0 25px 80px rgba(0,0,0,.5);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-close {
    position: absolute; top: 16px; right: 18px; background: none; border: none; cursor: pointer;
    width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    transition: background .2s; color: #64748b;
}
.modal-close:hover { background: rgba(255,255,255,.06); color: #fff; }
.modal-box h3 {
    font-size: 1.3rem; font-weight: 800; margin-bottom: 6px;
    background: linear-gradient(135deg,#fff,#a5b4fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.modal-box .modal-sub { font-size: .85rem; color: #64748b; margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-size: .8rem; font-weight: 600; color: #94a3b8;
    margin-bottom: 6px; letter-spacing: .5px; text-transform: uppercase;
}
.form-group input,
.form-group textarea {
    width: 100%; padding: 14px 16px; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08); border-radius: 12px; color: #f1f5f9;
    font-family: 'Inter',sans-serif; font-size: .95rem; outline: none; transition: all .25s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: rgba(99,102,241,.5); box-shadow: 0 0 20px rgba(99,102,241,.08); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #475569; }
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.submit-btn {
    width: 100%; padding: 16px; border: none; border-radius: 14px;
    background: linear-gradient(135deg,#6366f1,#4f46e5); color: #fff;
    font-family: 'Inter',sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all .3s; margin-top: 8px; letter-spacing: .5px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,.3); }
.submit-btn:active { transform: translateY(0); }

/* ── Modal Projeto ── */
.project-modal .modal-box { max-width: 600px; padding: 0; overflow: hidden; }
.project-modal .pm-image-wrap {
    width: 100%; background: #0e0e18; display: flex;
    align-items: center; justify-content: center; padding: 30px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.project-modal .pm-image-wrap img {
    width: 100%; max-width: 500px; height: auto;
    border-radius: 12px; object-fit: contain;
}
.project-modal .pm-image-wrap .pm-placeholder {
    display: flex; flex-direction: column; align-items: center; gap: 8px; color: #475569;
}
.project-modal .pm-image-wrap .pm-placeholder svg { width: 48px; height: 48px; opacity: .4; }
.project-modal .pm-image-wrap .pm-placeholder span { font-size: .8rem; }
.project-modal .pm-body { padding: 30px 36px 36px; }
.project-modal .pm-body h3 {
    font-size: 1.3rem; font-weight: 800; margin-bottom: 12px;
    background: linear-gradient(135deg,#fff,#a5b4fc);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.project-modal .pm-body .pm-desc {
    font-size: .95rem; color: #94a3b8; line-height: 1.7; margin-bottom: 24px;
}
.project-modal .pm-body .pm-link {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
    border: none; border-radius: 12px; background: linear-gradient(135deg,#6366f1,#4f46e5);
    color: #fff; font-family: 'Inter',sans-serif; font-size: .95rem; font-weight: 700;
    text-decoration: none; cursor: pointer; transition: all .3s;
}
.project-modal .pm-body .pm-link:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,.3); }
.project-modal .pm-body .pm-link svg { width: 18px; height: 18px; }

/* ── Footer ── */
.footer { text-align: center; margin-top: 40px; }
.footer p { font-size: .82rem; color: #334155; }
.footer .dot {
    display: inline-block; width: 6px; height: 6px; background: #22c55e;
    border-radius: 50%; margin-right: 6px; animation: pulse 2s infinite; vertical-align: middle;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: .5; transform: scale(.8); }
}

/* ── Responsivo ── */
@media(max-width:640px){
    .btn-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .logo-wrap { width: 320px; }
    .modal-box { padding: 30px 24px; }
    .project-modal .pm-body { padding: 24px; }
}
@media(max-width:400px){
    .btn-grid { grid-template-columns: 1fr; }
    .logo-wrap { width: 280px; }
}

/* ═══ BANNER DE COOKIES LGPD ═══ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(18, 18, 26, 0.95);
    border-top: 1px solid rgba(99, 102, 241, 0.3);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cookie-text .cookie-link {
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(165, 180, 252, 0.5);
    transition: all 0.2s;
}

.cookie-text .cookie-link:hover {
    color: #c7d2fe;
    border-bottom-style: solid;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cookie-btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
}

.cookie-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.cookie-btn-outline {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cookie-btn-outline:hover {
    border-color: rgba(148, 163, 184, 0.6);
    color: #cbd5e1;
}

/* Responsivo para mobile */
@media (max-width: 640px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner {
        padding: 16px 16px 20px;
    }
}

/* ═══ MODAL POLÍTICA DE PRIVACIDADE ═══ */
.privacy-modal .modal-box {
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
}

.privacy-modal .privacy-content {
    text-align: left;
    color: #94a3b8;
    line-height: 1.75;
    font-size: 0.95rem;
}

.privacy-modal .privacy-content h4 {
    color: #f1f5f9;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 22px 0 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.privacy-modal .privacy-content h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.privacy-modal .privacy-content p { margin-bottom: 14px; }

.privacy-modal .privacy-content a {
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px dashed rgba(165, 180, 252, 0.4);
    transition: all 0.2s;
}
.privacy-modal .privacy-content a:hover {
    color: #c7d2fe;
    border-bottom-style: solid;
}

/* Scrollbar customizada para o modal */
.privacy-modal .modal-box::-webkit-scrollbar { width: 6px; }
.privacy-modal .modal-box::-webkit-scrollbar-track { background: rgba(255,255,255,0.03); border-radius: 3px; }
.privacy-modal .modal-box::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.5); border-radius: 3px; }
.privacy-modal .modal-box::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.8); }