*{margin:0;padding:0;box-sizing:border-box}
:root{
    --blue:#2563eb;
    --blue-dark:#1d4ed8;
    --text:#111827;
    --muted:#4b5563;
    --border:#e5e7eb;
    --bg:#f6f8fb;
    --white:#ffffff;
    --ok:#16a34a;
    --err:#dc2626;
    --shadow:0 12px 28px rgba(15,23,42,.09);
    --shadow-hover:0 22px 45px rgba(15,23,42,.14);
}
*{scroll-behavior:smooth}
body{
    font-family:Arial, Helvetica, sans-serif;
    background:var(--bg);
    color:var(--text);
    overflow-x:hidden;
}
a{text-decoration:none;color:inherit}
.topbar{
    width:100%;
    background:rgba(255,255,255,.94);
    border-bottom:1px solid var(--border);
    padding:18px 5%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:20;
    backdrop-filter:blur(14px);
}
.brand{
    display:flex;
    align-items:center;
    gap:14px;
    color:var(--text);
}
.brand-logo{
    width:52px;
    height:52px;
    border-radius:16px;
    background:linear-gradient(135deg,#2563eb,#7c3aed);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    font-size:20px;
    box-shadow:0 14px 28px rgba(37,99,235,.22);
}
.brand h1{font-size:22px;font-weight:900;letter-spacing:-.02em}
.brand p{font-size:13px;color:var(--muted);font-weight:700;margin-top:3px}
.top-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.btn{
    border:0;
    border-radius:999px;
    padding:13px 22px;
    font-weight:900;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    text-align:center;
    transition:.25s ease;
}
.btn-blue{background:var(--blue);color:#fff}
.btn-blue:hover{background:var(--blue-dark);transform:translateY(-2px)}
.btn-light{background:#eef2ff;color:#1e40af}
.btn-light:hover{background:#dbeafe}
.btn-red{background:#fee2e2;color:#991b1b}
.btn-green{background:#dcfce7;color:#166534}

.ai-section{
    width:100%;
    padding:62px 5% 85px;
}
.section-head{
    max-width:980px;
    margin:0 auto 45px;
    text-align:center;
}
.section-kicker{
    display:inline-block;
    margin-bottom:12px;
    color:var(--blue);
    font-size:14px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}
.section-head h2,
.section-head h1{
    font-size:42px;
    line-height:1.12;
    font-weight:900;
    color:var(--text);
    margin-bottom:14px;
    letter-spacing:-.04em;
}
.section-head p{
    font-size:17px;
    line-height:1.65;
    color:var(--muted);
    font-weight:700;
}
.cards-grid{
    width:100%;
    max-width:1640px;
    margin:0 auto;
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:28px;
}
.service-card{
    background:var(--white);
    border:1px solid var(--border);
    border-radius:22px;
    overflow:hidden;
    box-shadow:var(--shadow);
    transition:.25s ease;
    display:flex;
    flex-direction:column;
    min-height:525px;
}
.service-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow-hover);
}
.image-wrap{
    width:100%;
    height:240px;
    overflow:hidden;
}
.visual-bg{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    isolation:isolate;
}
.visual-bg:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size:34px 34px;
    opacity:.5;
    z-index:-1;
}
.visual-bg:after{
    content:"";
    position:absolute;
    width:250px;
    height:250px;
    border-radius:50%;
    background:rgba(255,255,255,.22);
    filter:blur(32px);
    z-index:-1;
}
.visual-icon{
    width:132px;
    height:132px;
    border-radius:36px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.22);
    border:1px solid rgba(255,255,255,.36);
    box-shadow:0 25px 55px rgba(0,0,0,.20);
    backdrop-filter:blur(10px);
    font-size:64px;
}
.bg-blue{background:linear-gradient(135deg,#1d4ed8,#38bdf8)}
.bg-cyan{background:linear-gradient(135deg,#0891b2,#22d3ee)}
.bg-purple{background:linear-gradient(135deg,#4c1d95,#a855f7)}
.bg-building{background:linear-gradient(135deg,#0f172a,#2563eb)}
.bg-orange{background:linear-gradient(135deg,#ea580c,#f59e0b)}
.bg-green{background:linear-gradient(135deg,#047857,#22c55e)}
.bg-light{background:linear-gradient(135deg,#334155,#94a3b8)}
.bg-clean{background:linear-gradient(135deg,#0f766e,#5eead4)}
.bg-product{background:linear-gradient(135deg,#be123c,#fb7185)}
.card-body{
    padding:22px 24px 24px;
    display:flex;
    flex-direction:column;
    flex:1;
}
.card-body h3,
.card-body h2{
    font-size:21px;
    line-height:1.25;
    font-weight:900;
    color:#1f2937;
    margin-bottom:12px;
    display:flex;
    align-items:center;
    gap:8px;
}
.card-body h3 span,
.card-body h2 span{
    width:28px;
    display:inline-flex;
    justify-content:center;
}
.card-body p{
    font-size:16px;
    line-height:1.55;
    color:#475569;
    font-weight:700;
    margin-bottom:22px;
    flex:1;
}
.card-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:50px;
    border-radius:999px;
    background:var(--blue);
    color:#fff;
    font-size:16px;
    font-weight:900;
    letter-spacing:.02em;
    transition:.25s ease;
    margin-top:auto;
}
.card-btn:hover{background:var(--blue-dark);transform:translateY(-2px)}

.page-wrap{width:100%;max-width:1240px;margin:0 auto;padding:45px 5% 80px}
.panel{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    box-shadow:var(--shadow);
    padding:28px;
    margin-bottom:24px;
}
.panel h2{font-size:28px;margin-bottom:10px;font-weight:900;letter-spacing:-.03em}
.panel p{color:var(--muted);font-weight:700;line-height:1.6}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:22px}
.form-full{grid-column:1/-1}
label{display:block;font-weight:900;margin-bottom:8px}
input,textarea,select{
    width:100%;
    border:1px solid #cbd5e1;
    border-radius:14px;
    padding:14px 15px;
    font-size:15px;
    background:#fff;
    outline:none;
    transition:.2s ease;
}
input:focus,textarea:focus,select:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(37,99,235,.10)}
textarea{min-height:130px;resize:vertical}
.table-wrap{overflow-x:auto}
.table{width:100%;border-collapse:collapse;margin-top:20px}
.table th,.table td{padding:14px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}
.table th{background:#f8fafc;font-weight:900}
.alert{padding:14px 18px;border-radius:14px;margin-bottom:18px;font-weight:800}
.ok{background:#dcfce7;color:#166534}
.error{background:#fee2e2;color:#991b1b}
.work{background:#eff6ff;color:#1e40af}
.login-box{max-width:440px;margin:80px auto;background:#fff;padding:34px;border-radius:24px;box-shadow:0 20px 45px rgba(15,23,42,.12)}
.login-box h1{font-size:30px;margin-bottom:10px}
.login-box p{color:var(--muted);font-weight:700;margin-bottom:22px}

.module-layout{max-width:1580px;margin:0 auto;padding:35px 5% 80px}
.module-title{
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    align-items:end;
    margin-bottom:24px;
}
.module-title h2{
    font-size:42px;
    line-height:1.08;
    font-weight:900;
    letter-spacing:-.045em;
    margin-bottom:10px;
}
.module-title p{
    color:var(--muted);
    font-weight:700;
    line-height:1.65;
    max-width:820px;
}
.module-kpi{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}
.kpi-pill{
    background:#fff;
    border:1px solid var(--border);
    border-radius:999px;
    padding:11px 16px;
    font-size:13px;
    font-weight:900;
    color:#1e40af;
}
.module-grid{
    display:grid;
    grid-template-columns:430px 1fr;
    gap:24px;
    align-items:start;
}
.side-form{
    position:sticky;
    top:94px;
}
.preview-box{
    background:#fff;
    border:1px solid var(--border);
    border-radius:22px;
    padding:22px;
    box-shadow:var(--shadow);
}
.preview-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}
.preview-head h2{font-size:24px;font-weight:900}
.preview-area{
    min-height:560px;
    border:2px dashed #d8dce7;
    border-radius:20px;
    background:
        radial-gradient(circle at top left,rgba(37,99,235,.08),transparent 34%),
        #f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    text-align:center;
    color:var(--muted);
    font-weight:800;
    position:relative;
    overflow:hidden;
}
.preview-area img{
    max-width:100%;
    max-height:680px;
    border-radius:18px;
    box-shadow:0 16px 38px rgba(15,23,42,.18);
    background:#fff;
}
.result-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:16px;
    margin-top:20px;
}
.result-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:18px;
    padding:12px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.result-card img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:14px;background:#f1f5f9}
.result-card b{display:block;margin:10px 0 8px;font-size:14px}
.api-list{display:grid;gap:10px;margin-top:16px}
.api-pill{padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid var(--border);font-weight:800}
.file-list{display:grid;gap:10px;margin-top:12px}
.file-item{display:grid;grid-template-columns:70px 1fr;gap:12px;align-items:center;padding:10px;border:1px solid var(--border);border-radius:16px;background:#fff}
.file-item img{width:70px;height:70px;object-fit:cover;border-radius:12px;background:#f1f5f9}
.small{font-size:12px;color:var(--muted);line-height:1.45}
.muted{color:var(--muted)}
.whatsapp-float{
    position:fixed;
    right:26px;
    bottom:26px;
    width:58px;
    height:58px;
    border-radius:50%;
    background:#22c55e;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:30px;
    box-shadow:0 12px 28px rgba(34,197,94,.35);
    z-index:20;
}
.loader{width:18px;height:18px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite;display:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1200px){
    .cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .module-grid{grid-template-columns:1fr}
    .side-form{position:relative;top:auto}
    .module-title{grid-template-columns:1fr}
    .module-kpi{justify-content:flex-start}
}
@media(max-width:760px){
    .topbar{flex-direction:column;align-items:flex-start;gap:14px}
    .cards-grid{grid-template-columns:1fr;gap:22px}
    .ai-section{padding:42px 18px 70px}
    .section-head h2,.section-head h1{font-size:32px}
    .section-head p{font-size:16px}
    .image-wrap{height:210px}
    .service-card{min-height:auto}
    .form-grid{grid-template-columns:1fr}
    .top-actions{flex-wrap:wrap}
    .module-layout{padding:25px 18px 60px}
    .module-title h2{font-size:32px}
    .preview-area{min-height:380px}
}
