:root {
    --blue: #0060A9;
    --red: #9D2235;
    --gray: #B2B4B2;
    --black: #0A0A0A;
    --white: #FFFFFF;
    --muted: #6f7478;
    --line: rgba(10, 10, 10, .1);
    --soft: #f5f7fa;
    --radius: 24px;
    --shadow: 0 24px 80px rgba(0, 0, 0, .14);
    --shadow-soft: 0 18px 45px rgba(0, 96, 169, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--black);
    background:
        radial-gradient(circle at top left, rgba(0, 96, 169, .14), transparent 34rem),
        radial-gradient(circle at top right, rgba(157, 34, 53, .12), transparent 30rem),
        var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .035;
    z-index: -1;
    background-image: linear-gradient(45deg, #000 25%, transparent 25%), linear-gradient(-45deg, #000 25%, transparent 25%);
    background-size: 6px 6px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(10, 10, 10, .06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -.04em;
}
.brand > span { font-size: 1.08rem; }
.brand span span { color: var(--blue); margin-left: 2px; }

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 700;
    color: rgba(10, 10, 10, .72);
}
.main-nav a { transition: .2s ease; }
.main-nav a:hover { color: var(--blue); }
.nav-cta {
    color: var(--white) !important;
    background: var(--black);
    padding: 11px 16px;
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(10,10,10,.15);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--black);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--white);
    border-radius: 999px;
}

.section-pad { padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 72px); }
.section-narrow { margin: 0 clamp(18px, 5vw, 72px); }

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr);
    gap: clamp(36px, 7vw, 96px);
    align-items: center;
    min-height: calc(100vh - 84px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--red);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .75rem;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue), var(--red));
}

h1, h2, h3 { line-height: 1.05; margin: 0; letter-spacing: -.055em; }
h1 { font-size: clamp(2.8rem, 7vw, 6.8rem); max-width: 980px; }
h2 { font-size: clamp(2.05rem, 4vw, 4.3rem); max-width: 920px; }
h3 { font-size: 1.45rem; }

.hero-text {
    margin: 26px 0 0;
    max-width: 690px;
    color: rgba(10, 10, 10, .72);
    font-size: clamp(1rem, 1.55vw, 1.23rem);
}
.hero-text strong { color: var(--black); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    padding: 14px 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), #004b82);
    box-shadow: 0 18px 38px rgba(0, 96, 169, .25);
}
.btn-ghost {
    color: var(--black);
    background: rgba(255, 255, 255, .74);
    border: 1px solid rgba(10, 10, 10, .12);
}
.btn-full { width: 100%; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}
.trust-row span, .tech-list span {
    border: 1px solid rgba(10, 10, 10, .09);
    background: rgba(255, 255, 255, .78);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 800;
    color: rgba(10, 10, 10, .68);
}

.hero-visual { min-height: 560px; display: grid; place-items: center; }
.device-stack { position: relative; width: min(460px, 100%); height: 560px; }
.phone-mockup {
    position: absolute;
    inset: 36px 66px 0 66px;
    border: 12px solid var(--black);
    background: linear-gradient(180deg, #f8fbff, #eaf1f7);
    border-radius: 42px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transform: rotate(4deg);
}
.phone-top {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 22px;
    background: var(--black);
    border-radius: 999px;
    z-index: 1;
}
.app-screen {
    position: absolute;
    inset: 0;
    padding: 62px 22px 24px;
    background:
        radial-gradient(circle at 20% 8%, rgba(0, 96, 169, .28), transparent 35%),
        linear-gradient(180deg, #fff, #eef3f7);
}
.screen-pill { width: 88px; height: 28px; border-radius: 999px; background: var(--blue); box-shadow: 0 14px 28px rgba(0,96,169,.25); }
.screen-title { width: 80%; height: 34px; margin: 24px 0; border-radius: 12px; background: var(--black); }
.screen-chart {
    height: 178px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid rgba(10, 10, 10, .08);
    display: flex;
    align-items: end;
    gap: 12px;
    padding: 20px;
    box-shadow: 0 20px 35px rgba(0,0,0,.08);
}
.screen-chart span { flex: 1; border-radius: 999px 999px 12px 12px; background: linear-gradient(180deg, var(--blue), #78aeda); }
.screen-chart span:nth-child(2) { height: 88%; background: linear-gradient(180deg, var(--red), #d05a6b); }
.screen-chart span:nth-child(1) { height: 48%; }
.screen-chart span:nth-child(3) { height: 68%; }
.screen-chart span:nth-child(4) { height: 38%; }
.screen-list { margin-top: 22px; display: grid; gap: 12px; }
.screen-list i { height: 44px; border-radius: 16px; background: rgba(10,10,10,.08); }

.floating-card {
    position: absolute;
    z-index: 4;
    width: 220px;
    padding: 18px;
    border-radius: 24px;
    color: var(--white);
    box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}
.floating-card strong { display: block; font-size: 1.1rem; }
.floating-card small { display: block; color: rgba(255,255,255,.76); margin-top: 5px; line-height: 1.35; }
.floating-card .dot { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--white); margin-bottom: 18px; }
.card-blue { background: linear-gradient(135deg, var(--blue), #003f70); left: 0; top: 64px; }
.card-red { background: linear-gradient(135deg, var(--red), #650f1d); right: 0; bottom: 66px; animation-delay: .8s; }

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.stats-grid article {
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(10,10,10,.08);
    box-shadow: var(--shadow-soft);
}
.stats-grid strong { display: block; color: var(--blue); font-size: clamp(1.6rem, 3vw, 2.5rem); line-height: 1; letter-spacing: -.06em; }
.stats-grid span { display: block; margin-top: 8px; color: rgba(10,10,10,.66); font-weight: 800; }

.section-heading { margin-bottom: 36px; }
.section-heading p:not(.eyebrow) { max-width: 720px; color: rgba(10,10,10,.68); font-size: 1.08rem; }
.services-grid, .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.service-card, .project-card, .contact-card, .lead-card, .lead-detail-card, .login-card {
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(10,10,10,.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.service-card {
    padding: 28px;
    min-height: 294px;
    transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon-box {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--red));
    font-weight: 950;
    margin-bottom: 26px;
}
.service-card p, .project-card p, .timeline p, .contact-copy p { color: rgba(10,10,10,.67); }

.portfolio-section {
    background:
        linear-gradient(180deg, rgba(10,10,10,.02), rgba(0,96,169,.06)),
        var(--soft);
}
.portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card {
    position: relative;
    padding: clamp(26px, 4vw, 42px);
    overflow: hidden;
}
.project-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(0,96,169,.12);
}
.project-zapei::after { background: rgba(157,34,53,.12); }
.project-head { display: flex; gap: 18px; align-items: center; margin-bottom: 24px; }
.project-head img { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 18px 42px rgba(0,0,0,.12); }
.project-tag { color: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; }
.project-card ul { padding: 0; margin: 22px 0; list-style: none; display: grid; gap: 10px; }
.project-card li { display: flex; gap: 10px; color: rgba(10,10,10,.72); font-weight: 750; }
.project-card li::before { content: "✓"; color: var(--blue); font-weight: 950; }
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }

.process-section { background: var(--black); color: var(--white); }
.process-section .eyebrow { color: var(--gray); }
.process-section .section-heading p { color: rgba(255,255,255,.68); }
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    overflow: hidden;
}
.timeline div { padding: 30px; background: #101010; }
.timeline strong {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--red));
}
.timeline p { color: rgba(255,255,255,.64); }

.contact-section {
    background:
        radial-gradient(circle at 90% 20%, rgba(157,34,53,.12), transparent 28rem),
        radial-gradient(circle at 10% 90%, rgba(0,96,169,.13), transparent 28rem),
        var(--white);
}
.contact-card {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 36px;
    padding: clamp(24px, 5vw, 52px);
    max-width: 1180px;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.contact-mini-list { display: grid; gap: 10px; margin-top: 24px; }
.contact-mini-list span { font-weight: 850; color: rgba(10,10,10,.72); }
.contact-mini-list span::before { content: "•"; color: var(--red); margin-right: 10px; }
.lead-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
label { display: grid; gap: 8px; font-weight: 850; color: rgba(10,10,10,.78); }
input, textarea, select {
    width: 100%;
    border: 1px solid rgba(10,10,10,.12);
    border-radius: 16px;
    padding: 14px 15px;
    background: rgba(255,255,255,.94);
    color: var(--black);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
textarea { resize: vertical; min-height: 132px; }
input:focus, textarea:focus, select:focus { border-color: rgba(0,96,169,.65); box-shadow: 0 0 0 4px rgba(0,96,169,.11); }
.form-note { margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.flash {
    width: min(980px, calc(100% - 36px));
    margin: 20px auto 0;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 850;
}
.flash-success { color: #075f35; background: #dff8ea; border: 1px solid #9ee3bb; }
.flash-error { color: #8c1221; background: #ffe6ea; border: 1px solid #f1a6b1; }

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 32px clamp(18px, 5vw, 72px);
    background: var(--black);
    color: var(--white);
}
.site-footer p { margin: 4px 0 0; color: rgba(255,255,255,.62); }
.site-footer a { font-weight: 900; color: var(--gray); }

.reveal { opacity: 0; transform: translateY(24px); transition: .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-sm { transition-delay: .08s; }

/* Admin */
.admin-body {
    min-height: 100vh;
    background: #f3f6fa;
}
.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(440px, 100%); padding: 30px; box-shadow: var(--shadow); }
.login-card img { margin-bottom: 20px; }
.login-card h1 { font-size: 2rem; margin-bottom: 8px; }
.login-card p { color: var(--muted); margin-bottom: 22px; }
.login-card label { margin-bottom: 14px; }
.back-link { display: block; text-align: center; margin-top: 18px; color: var(--blue); font-weight: 850; }

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px clamp(18px, 4vw, 52px);
    background: var(--white);
    border-bottom: 1px solid rgba(10,10,10,.08);
}
.admin-brand span span { display: block; color: var(--muted); margin-left: 0; font-size: .8rem; letter-spacing: 0; }
.admin-header nav { display: flex; gap: 12px; font-weight: 850; color: var(--blue); }
.admin-shell { padding: clamp(24px, 4vw, 52px); max-width: 1240px; margin: 0 auto; }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-title h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
.admin-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 22px; }
.admin-stat {
    padding: 18px;
    border-radius: 18px;
    background: var(--white);
    border: 1px solid rgba(10,10,10,.08);
}
.admin-stat.active { outline: 3px solid rgba(0,96,169,.15); border-color: rgba(0,96,169,.45); }
.admin-stat strong { display: block; color: var(--blue); font-size: 1.8rem; line-height: 1; }
.admin-stat span { color: var(--muted); font-weight: 850; }
.leads-list { display: grid; gap: 14px; }
.lead-card { padding: 22px; }
.lead-main { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.lead-main h2 { font-size: 1.55rem; margin-top: 10px; }
.lead-main p { margin: 6px 0 0; color: var(--muted); }
.lead-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.lead-meta span { padding: 8px 10px; border-radius: 999px; background: #eef3f7; color: rgba(10,10,10,.72); font-weight: 750; }
.status-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: .78rem; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.status-novo { background: #e9f4ff; color: #00528f; }
.status-em_contato { background: #fff2d7; color: #7b5200; }
.status-proposta { background: #f1e8ff; color: #5630a0; }
.status-fechado { background: #e4f9ed; color: #06723d; }
.status-perdido { background: #ffe6ea; color: #9d2235; }
.empty-state { padding: 40px; border-radius: var(--radius); background: var(--white); color: var(--muted); text-align: center; font-weight: 850; }
.lead-detail-shell { max-width: 1040px; }
.lead-detail-card { padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow-soft); }
.lead-detail-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 28px; }
.lead-detail-head h1 { font-size: clamp(2rem, 5vw, 4rem); margin-top: 10px; }
.lead-detail-head p { color: var(--muted); }
.status-form { display: flex; gap: 10px; align-items: center; }
.status-form select { min-width: 160px; }
.lead-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.lead-info-grid div { padding: 16px; border-radius: 18px; background: #f4f7fa; }
.lead-info-grid strong { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.lead-info-grid a { color: var(--blue); font-weight: 850; }
.message-box { padding: 20px; border-radius: 20px; background: var(--black); color: var(--white); }
.message-box strong { color: var(--gray); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.message-box p { white-space: normal; margin-bottom: 0; color: rgba(255,255,255,.78); }
.lead-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

@media (max-width: 1050px) {
    .hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-visual { min-height: 480px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .contact-card { grid-template-columns: 1fr; }
    .lead-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .site-header { padding: 14px 18px; }
    .nav-toggle { display: block; }
    .main-nav {
        position: fixed;
        top: 72px;
        left: 18px;
        right: 18px;
        display: grid;
        gap: 8px;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(10,10,10,.08);
        box-shadow: var(--shadow);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: .2s ease;
    }
    .main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .main-nav a { padding: 12px; }
    .nav-cta { text-align: center; }
    h1 { font-size: clamp(2.6rem, 14vw, 4.6rem); }
    .section-pad { padding-left: 18px; padding-right: 18px; }
    .hero-actions .btn { width: 100%; }
    .hero-visual { display: none; }
    .stats-grid, .portfolio-grid, .form-row, .admin-stats, .lead-info-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .timeline { grid-template-columns: 1fr; }
    .site-footer, .admin-title, .lead-detail-head, .lead-main { flex-direction: column; align-items: stretch; }
    .admin-header { align-items: flex-start; flex-direction: column; }
    .status-form { flex-direction: column; align-items: stretch; }
}
