﻿:root {
    --bg: #070b14;
    --bg-soft: #0f1625;
    --surface: rgba(19, 31, 53, 0.72);
    --text: #ecf2ff;
    --muted: #a6b3cb;
    --primary: #0d6efd;
    --neon: #e50606;
    --accent: #d90429;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 14px 38px rgba(3, 10, 22, 0.45);
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Particle Canvas ── */
#particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
main  { position: relative; z-index: 1; }
.footer { position: relative; z-index: 1; }
.back-to-top { z-index: 1200; }

body {
    font-family: 'Exo 2', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 16% 8%, rgba(18, 198, 255, 0.16), transparent 34%),
        radial-gradient(circle at 14% 70%, rgba(217, 4, 41, 0.1), transparent 28%),
        linear-gradient(150deg, #050a16 0%, #0a1730 52%, #060b17 100%);
    line-height: 1.6;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 92px 0; }
h1, h2, h3, h4 {
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); margin-bottom: 14px; }
p { color: var(--muted); }

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background:
        radial-gradient(circle at 22% 36%, rgba(13, 110, 253, 0.24) 0%, transparent 60%),
        linear-gradient(180deg, rgba(2, 11, 26, 0.96) 0%, rgba(3, 20, 42, 0.92) 100%);
    border-bottom: 1px solid rgba(217, 4, 41, 0.34);
    backdrop-filter: blur(12px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 14px; }
.brand { display: flex; align-items: center; gap: 0; text-decoration: none; color: var(--text); }
.brand-logo {
    width: 140px;
    height: 125px;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: none;
    transition: box-shadow .28s ease, transform .28s ease;
}
.brand:hover .brand-logo {
    box-shadow: 0 0 38px rgba(18, 198, 255, 0.5);
    transform: translateY(-1px);
}
.nav a, .btn {
    font-family: 'Eurostile Bold Extended', 'Eurostile', 'Microgramma D Extended Bold', 'Microgramma', 'Michroma', sans-serif;
    letter-spacing: 0.2px;
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; transition: color .25s; }
.nav a:hover { color: var(--neon); }
.btn-nav {
    border: 1px solid rgb(151 7 7);
    padding: 10px 14px;
    border-radius: 12px;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--text);
    cursor: pointer;
}

.hero { padding-top: 188px; min-height: 96vh; display: flex; align-items: center; }
.hero-grid { display: grid; gap: 34px; grid-template-columns: 1.2fr .8fr; align-items: center; }
.eyebrow {
    display: inline-block;
    color: #e50606;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: .78rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.hero-content .eyebrow {
    margin: 0 0 14px;
    max-width: none;
}
.hero-content p { max-width: 62ch; margin: 18px 0; }
.hero-actions { display: flex; gap: 12px; margin: 20px 0 26px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: .25s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(100deg, #8f0000 0%, #e34a4a 100%);
    color: #fff;
    box-shadow: none;
}
.btn-primary:hover { transform: none; filter: brightness(1.06); }
.btn-ghost { border-color: rgba(255, 255, 255, .32); color: var(--text); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }

.hero-stats { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.3rem; color: #fff; }
.hero-stats span { font-size: .9rem; color: var(--muted); }

.hero-card, .card, .service-card, .pillar, .project-card, .timeline-item, .contact-form, .cta-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card { padding: 28px; }
.hero-card ul { list-style: none; margin-top: 16px; }
.hero-card li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #d5e2ff; }
.hero-card .material-icons-outlined { color: var(--neon); font-size: 19px; }

.section-intro { max-width: 72ch; margin-bottom: 22px; }
.section-kicker {
    display: table;
    margin: 0 auto 14px;
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #e50606;
    padding: 5px 16px;
    border: 1px solid rgba(229, 6, 6, .35);
    border-radius: 100px;
    background: rgba(229, 6, 6, .08);
}
.section-title {
    text-align: center;
}
.container > .section-intro {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.about-grid, .services-grid, .portfolio-grid {
    display: grid;
    gap: 18px;
}
.about-grid { grid-template-columns: repeat(3, 1fr); }

/* Sobre — Bull mascot */
.sobre-bull {
    display: flex;
    justify-content: center;
    margin: 44px 0 52px;
}
.sobre-bull-img {
    width: 500px;
    max-width: 88%;
    height: auto;
    object-fit: contain;
    animation: bullFloat 5s ease-in-out infinite;
    filter: drop-shadow(0 0 28px rgba(13,110,253,.42)) drop-shadow(0 0 64px rgba(18,198,255,.18));
}

.card { padding: 24px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { padding: 24px; transition: transform .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(229, 6, 6, .35); }
.service-card .material-icons-outlined { color: var(--neon); margin-bottom: 10px; font-size: 31px; }

/* ═══════════════════════════════════════════
   DIFERENCIAIS — Advanced Redesign
═══════════════════════════════════════════ */
.diff-section { position: relative; overflow: hidden; }
.diff-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(18, 198, 255, .055) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: 0;
}

.diff-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.diff-orb-a {
    position: absolute;
    width: 700px; height: 700px;
    top: -200px; left: -100px;
    background: radial-gradient(circle, rgba(13, 110, 253, .12), transparent 58%);
    border-radius: 50%;
    animation: diffOrb 10s ease-in-out infinite;
}
.diff-orb-b {
    position: absolute;
    width: 500px; height: 500px;
    bottom: -100px; right: -80px;
    background: radial-gradient(circle, rgba(217, 4, 41, .09), transparent 55%);
    border-radius: 50%;
    animation: diffOrb 13s ease-in-out infinite reverse;
}
@keyframes diffOrb {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.diff-header { text-align: center; margin-bottom: 52px; position: relative; z-index: 1; }
.diff-eyebrow {
    display: inline-block;
    font-family: 'Orbitron', sans-serif;
    font-size: .7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--neon);
    margin-bottom: 14px;
    padding: 5px 16px;
    border: 1px solid rgba(18, 198, 255, .22);
    border-radius: 100px;
    background: rgba(18, 198, 255, .05);
}
.diff-header h2 { margin-bottom: 12px; }
.grad-word {
    font-style: normal;
    color: #ecf2ff;
}
.diff-header .section-intro { margin: 0 auto; text-align: center; }

.diff-stage {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Bull focal point */
.diff-bull-wrap {
    position: relative;
    width: 580px; height: 580px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.diff-scan-frame {
    position: relative;
    width: 90%; height: 90%;
    animation: bullFloat 5s ease-in-out infinite;
}
@keyframes bullFloat {
    0%   { transform: translateY(0)     scale(1); }
    35%  { transform: translateY(-16px) scale(1.012); }
    65%  { transform: translateY(-10px) scale(1.006); }
    100% { transform: translateY(0)     scale(1); }
}
.diff-bull-img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(13,110,253,.35)) drop-shadow(0 0 55px rgba(18,198,255,.14));
}

/* Cards */
.diff-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}
.diff-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: transform .2s, border-color .2s;
}
.diff-card:hover { transform: translateY(-4px); border-color: rgba(229, 6, 6, .35); }

.diff-card-bar { display: none; }

.diff-icon {
    display: block;
    font-size: 30px;
    color: var(--neon);
    filter: none;
    margin-bottom: 16px;
}
.diff-card h3 { font-size: 1.05rem; color: #e0ecff; margin-bottom: 10px; }
.diff-card p   { font-size: .875rem; line-height: 1.68; }

.diff-chip {
    display: inline-block;
    margin-top: 18px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: .66rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: rgba(229, 6, 6, .06);
    border: 1px solid rgba(229, 6, 6, .25);
    color: #ff7878;
}
.chip-b { background: rgba(229, 6, 6, .06); border-color: rgba(229, 6, 6, .25); color: #ff7878; }
.chip-c { background: rgba(229, 6, 6, .06); border-color: rgba(229, 6, 6, .25); color: #ff7878; }

.timeline { display: grid; gap: 14px; }
.timeline-item { padding: 20px; display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; }
.timeline-item span {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
    font-weight: 700;
}

.portfolio-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { padding: 24px; }

.cta-section { padding-top: 40px; }
.cta-box { text-align: center; padding: 48px 26px; }
.cta-box p { max-width: 72ch; margin: 14px auto 22px; }

.contact-form { padding: 28px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-group { margin-bottom: 14px; }
label { display: block; margin-bottom: 8px; font-weight: 600; color: #dce7ff; }
input, select, textarea {
    width: 100%;
    background: rgba(10, 16, 29, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    border-radius: 10px;
    padding: 12px 12px;
    font: inherit;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--neon); }
.error-message { color: #ff7080; min-height: 16px; display: block; margin-top: 4px; font-size: .83rem; }
.input-error { border-color: #ff7080; }
.form-message { margin-bottom: 12px; font-weight: 600; }
.form-message.success { color: #58f3b1; }
.form-message.error { color: #ff7080; }

.footer { border-top: 1px solid var(--line); margin-top: 72px; background: rgba(3, 7, 15, .94); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; padding: 38px 0; }
.footer h3, .footer h4 { margin-bottom: 10px; }
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.footer-brand-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
}
.footer ul { list-style: none; color: var(--muted); }
.footer-bottom { text-align: center; border-top: 1px solid var(--line); padding: 14px 0; }
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 120, 120, 0.45);
    background: #7b0000;
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 1200;
    box-shadow: 0 10px 24px rgba(120, 0, 0, .35);
    transition: transform .2s ease, filter .2s ease, opacity .24s ease, visibility .24s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.back-to-top .material-icons-outlined {
    font-size: 28px;
    line-height: 1;
}
.back-to-top:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }

@media (max-width: 980px) {
    .hero-grid, .about-grid, .services-grid, .portfolio-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .diff-bull-wrap { width: 460px; height: 460px; }
    .diff-cards { grid-template-columns: repeat(2, 1fr); }
    .hero { min-height: auto; }
}

@media (max-width: 760px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: 100%;
        right: 4%;
        width: min(320px, 92vw);
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #0b1321;
        display: none;
        flex-direction: column;
        align-items: stretch;
    }
    .nav.open { display: flex; }
    .hero { padding-top: 260px; }
    .hero-content { padding-top: 28px; }
    .hero .eyebrow { margin-top: 0; }
    .hero-grid, .about-grid, .services-grid, .portfolio-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
    .eyebrow { font-size: .68rem; letter-spacing: 0.6px; white-space: normal; overflow-wrap: break-word; }
    .diff-bull-wrap { width: 340px; height: 340px; }
    .diff-cards { grid-template-columns: 1fr; }
    .back-to-top { right: 16px; bottom: 16px; width: 52px; height: 52px; }
    .section { padding: 72px 0; }
}
