/* =====================================================================
   MSD DIGITAL - Landing Page
   Paleta: Azul profundo (#0A1F44) - Azul eletrico (#1E6BFF)
           Off-white (#F7F9FC) - Grafite (#1A1D24) - Dourado (#C9A961)
   Fontes: Sora (headings) + Inter (body)
   ===================================================================== */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1A1D24;
    background: #F7F9FC;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; }

/* ---------- TOKENS ---------- */
:root {
    --navy-900: #071633;
    --navy-800: #0A1F44;
    --navy-700: #0F2A5A;
    --navy-600: #143473;
    --blue-500: #1E6BFF;
    --blue-400: #4A8AFF;
    --off-white: #F7F9FC;
    --gray-50:  #EEF2F9;
    --gray-100: #DCE3F0;
    --gray-200: #BCC8DB;
    --gray-500: #5B6B85;
    --gray-700: #2C3648;
    --graphite: #1A1D24;
    --gold:     #C9A961;
    --gold-soft: rgba(201, 169, 97, .15);

    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 24px;

    --shadow-sm: 0 2px 8px rgba(10, 31, 68, .06);
    --shadow:    0 10px 40px rgba(10, 31, 68, .10);
    --shadow-lg: 0 30px 80px rgba(10, 31, 68, .18);

    --header-h: 76px;
}

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--graphite);
}
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.lead { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--gray-500); line-height: 1.65; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Sora', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--blue-500);
    padding: 6px 14px;
    background: rgba(30, 107, 255, .08);
    border-radius: 999px;
    border: 1px solid rgba(30, 107, 255, .18);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }

.eyebrow.on-dark {
    color: #9CBBFF;
    background: rgba(30, 107, 255, .14);
    border-color: rgba(156, 187, 255, .25);
}
.eyebrow.on-dark::before { background: #9CBBFF; }

.eyebrow.gold {
    color: var(--gold);
    background: rgba(201, 169, 97, .08);
    border-color: rgba(201, 169, 97, .35);
}
.eyebrow.gold::before { background: var(--gold); box-shadow: 0 0 10px rgba(201,169,97,.6); }
.eyebrow .gold-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; box-shadow: 0 0 10px rgba(201,169,97,.8); }
.eyebrow.gold::before { display: none; }

.text-gold { color: var(--gold); }

/* ---------- LAYOUT ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
section { padding: clamp(60px, 9vw, 120px) 0; }
section.tight { padding: clamp(50px, 7vw, 90px) 0; }

.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 72px); text-align: center; }
.section-head h2 {
    margin: 16px 0 18px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}
.section-head .lead { margin: 0 auto; }

/* ---------- BOTOES ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: 'Sora', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .01em;
    border-radius: var(--radius-sm);
    transition: all .2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn-primary {
    background: var(--blue-500);
    color: #fff;
    box-shadow: 0 10px 30px rgba(30, 107, 255, .35);
}
.btn-primary:hover { background: #1557d4; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(30, 107, 255, .45); }
.btn-ghost {
    background: transparent;
    color: var(--navy-800);
    border: 1.5px solid rgba(10, 31, 68, .15);
}
.btn-ghost:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-ghost.on-dark:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn svg { width: 18px; height: 18px; }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--header-h);
    background: rgba(10, 31, 68, 0);
    backdrop-filter: blur(0);
    transition: background .3s ease, backdrop-filter .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
    background: rgba(10, 31, 68, .88);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--blue-500) 0%, #0044cc 100%);
    color: #fff; font-weight: 800; font-size: .9rem;
    box-shadow: 0 6px 20px rgba(30, 107, 255, .4);
}
.brand small { display: block; font-size: .65rem; font-weight: 500; color: #9CBBFF; letter-spacing: .2em; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a { color: rgba(255, 255, 255, .82); font-size: .92rem; font-weight: 500; position: relative; }
.nav a:hover { color: #fff; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--blue-500); transition: width .2s ease; }
.nav a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; color: #fff; padding: 8px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 60px;
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(30, 107, 255, .25) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 100%, rgba(30, 107, 255, .18) 0%, transparent 55%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
    pointer-events: none;
}
.hero-glow {
    position: absolute;
    width: 560px; height: 560px;
    border-radius: 50%;
    top: -120px; right: -120px;
    background: radial-gradient(circle, rgba(30, 107, 255, .4) 0%, transparent 70%);
    filter: blur(40px);
    animation: float 12s ease-in-out infinite;
    pointer-events: none;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-30px); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; width: 100%; }
.hero-title { color: #fff; margin: 20px 0 22px; text-wrap: balance; }
.hero-title .accent { background: linear-gradient(135deg, #6EA3FF 0%, #1E6BFF 50%, #C9A961 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #C9D3E8; max-width: 560px; margin-bottom: 36px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-trust { display: flex; align-items: center; gap: 18px; color: #9CBBFF; font-size: .85rem; }
.hero-trust-avatars { display: flex; }
.hero-trust-avatars span { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #4A8AFF, #0A1F44); border: 2px solid var(--navy-800); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #fff; font-size: .75rem; }
.hero-trust-avatars span:first-child { margin-left: 0; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .85rem; }

/* ---- Card visual do agente IA no hero ---- */
.hero-card {
    position: relative;
    background: linear-gradient(155deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .4);
}
.hero-card::before {
    content: '';
    position: absolute; inset: -1px;
    background: linear-gradient(135deg, rgba(30, 107, 255, .4), transparent 40%, rgba(201, 169, 97, .3));
    border-radius: var(--radius-lg);
    z-index: -1;
    filter: blur(1px);
}
.hero-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.hero-card-ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), #0044cc); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.hero-card-head strong { color: #fff; font-family: 'Sora', sans-serif; display: block; font-size: .95rem; }
.hero-card-head small { color: #7CF3A8; font-size: .75rem; display: flex; align-items: center; gap: 6px; }
.hero-card-head small::before { content: ''; width: 7px; height: 7px; background: #23D07C; border-radius: 50%; box-shadow: 0 0 8px #23D07C; animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.chat-bubble { padding: 12px 16px; border-radius: 14px; margin: 12px 0; font-size: .9rem; max-width: 85%; line-height: 1.5; }
.chat-bubble.ia { background: rgba(255, 255, 255, .08); color: #E8EEFF; border-top-left-radius: 4px; }
.chat-bubble.me { background: var(--blue-500); color: #fff; margin-left: auto; border-top-right-radius: 4px; }
.chat-typing { display: inline-flex; gap: 4px; padding: 14px 16px; background: rgba(255, 255, 255, .08); border-radius: 14px; border-top-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: #9CBBFF; animation: typing 1.4s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

/* =====================================================================
   STATS BAR
   ===================================================================== */
.stats {
    background: #fff;
    padding: 56px 0;
    position: relative;
    border-bottom: 1px solid var(--gray-50);
}
.stats::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 20vw, 260px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .8;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; position: relative; }
.stats-grid > * { position: relative; }
.stats-grid > *:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -20px; top: 20%;
    width: 1px; height: 60%;
    background: linear-gradient(180deg, transparent, var(--gray-100), transparent);
}
.stat-num { font-family: 'Sora', sans-serif; font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; color: var(--navy-800); line-height: 1; }
.stat-num .plus { color: var(--gold); }
.stat-label { margin-top: 10px; font-size: .88rem; color: var(--gray-500); letter-spacing: .02em; }

/* =====================================================================
   SERVICES
   ===================================================================== */
.services { background: var(--off-white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff;
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-50);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(201, 169, 97, .35); }
.service-card:hover .service-ico { background: var(--gold-soft); color: var(--gold); }
.service-card.highlight { background: linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 100%); color: #fff; border-color: transparent; }
.service-card.highlight::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(30, 107, 255, .4) 0%, transparent 60%);
    filter: blur(30px);
}
.service-card.highlight h3 { color: #fff; }
.service-card.highlight p { color: #C9D3E8; }
.service-card.highlight .service-ico { background: rgba(255, 255, 255, .1); color: #9CBBFF; }
.service-card.highlight .badge { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--gold); color: var(--navy-800); border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }

.service-ico {
    width: 52px; height: 52px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(30, 107, 255, .1);
    color: var(--blue-500);
    margin-bottom: 20px;
}
.service-ico svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; position: relative; }
.service-card p { color: var(--gray-500); font-size: .95rem; line-height: 1.65; position: relative; }

/* =====================================================================
   PROCESSO / METODOLOGIA
   ===================================================================== */
.process { background: #fff; position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.process-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 8%; right: 8%;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gray-100) 0 8px, transparent 8px 16px);
    z-index: 0;
}
.process-step { position: relative; text-align: center; padding: 0 8px; }
.process-num {
    width: 64px; height: 64px; margin: 0 auto 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--navy-800);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 700;
    color: var(--navy-800);
    position: relative; z-index: 1;
    transition: all .25s ease;
}
.process-step:hover .process-num { background: var(--blue-500); border-color: var(--blue-500); color: #fff; transform: scale(1.08); }
.process-step h4 { font-family: 'Sora', sans-serif; font-size: 1.05rem; margin-bottom: 8px; color: var(--navy-800); }
.process-step p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }

/* =====================================================================
   PORTFOLIO
   ===================================================================== */
.portfolio { background: var(--off-white); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
}
.pf-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pf-img {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
    position: relative;
    overflow: hidden;
}
.pf-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pf-card:hover .pf-img img { transform: scale(1.07); }
.pf-cat { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .95); color: var(--navy-800); padding: 5px 12px; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.pf-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.pf-body h3 { font-size: 1.15rem; margin-bottom: 10px; }
.pf-body p { color: var(--gray-500); font-size: .92rem; flex: 1; line-height: 1.6; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pf-tags span { font-size: .72rem; padding: 4px 10px; background: var(--gray-50); color: var(--gray-700); border-radius: 999px; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonials {
    background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.testimonials::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    bottom: -200px; left: -200px;
    background: radial-gradient(circle, rgba(30, 107, 255, .2) 0%, transparent 70%);
    filter: blur(40px);
}
.testimonials h2 { color: #fff; }
.testimonials .lead { color: #B8C5DD; }
.t-carousel { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.t-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius);
    padding: 32px 28px;
    backdrop-filter: blur(10px);
    position: relative;
}
.t-quote { color: var(--gold); font-family: 'Sora', serif; font-size: 3.5rem; line-height: 1; position: absolute; top: 14px; right: 20px; opacity: .4; }
.t-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 16px; font-size: .95rem; }
.t-text { color: #E8EEFF; font-size: .98rem; line-height: 1.7; margin-bottom: 24px; }
.t-autor { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.t-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .95rem; overflow: hidden; }
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-autor strong { display: block; color: #fff; font-size: .95rem; font-family: 'Sora', sans-serif; }
.t-autor small { color: #9CBBFF; font-size: .8rem; }

/* =====================================================================
   CTA FINAL
   ===================================================================== */
.cta-final { background: var(--off-white); }
.cta-box {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    border-radius: var(--radius-lg);
    padding: clamp(40px, 6vw, 80px);
    color: #fff;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.cta-box::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(30, 107, 255, .3) 0%, transparent 50%),
                radial-gradient(circle at 20% 100%, rgba(201, 169, 97, .15) 0%, transparent 50%);
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin: 14px 0 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
.cta-box p { color: #C9D3E8; max-width: 620px; margin: 0 auto 32px; font-size: 1.05rem; }
.cta-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--navy-900); color: #9CBBFF; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: #B8C5DD; font-size: .92rem; line-height: 1.65; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: .85rem; font-family: 'Sora', sans-serif; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { font-size: .92rem; color: #9CBBFF; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); transition: all .2s; }
.social a:hover { background: var(--blue-500); border-color: var(--blue-500); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    color: #7B8BA8;
}

/* =====================================================================
   SECAO AGENTE IA (Sofia) - destaque premium
   ===================================================================== */
.ai-agent {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(30, 107, 255, .22) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(201, 169, 97, .12) 0%, transparent 55%),
        linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-900) 100%);
    color: #fff;
    overflow: hidden;
    padding: clamp(80px, 11vw, 140px) 0;
}
.ai-agent::before,
.ai-agent::after {
    content: "";
    position: absolute;
    left: 50%;
    width: clamp(200px, 30vw, 340px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201,169,97,.55), transparent);
    transform: translateX(-50%);
}
.ai-agent::before { top: 0; }
.ai-agent::after  { bottom: 0; }

.ai-agent-orb {
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    top: -140px; left: -140px;
    background: radial-gradient(circle, rgba(30, 107, 255, .35) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}
.ai-agent-orb.two {
    top: auto; left: auto;
    bottom: -160px; right: -100px;
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(201, 169, 97, .22) 0%, transparent 70%);
}

.ai-agent-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 72px;
    align-items: center;
}
.ai-agent-copy h2 {
    color: #fff;
    margin: 18px 0 22px;
    line-height: 1.12;
    text-wrap: balance;
}
.lead.on-dark { color: #C9D3E8; max-width: 560px; }

.ai-capabilities {
    list-style: none;
    margin: 32px 0 36px;
    display: grid;
    gap: 18px;
}
.ai-capabilities li {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ai-cap-ico {
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(201, 169, 97, .12);
    border: 1px solid rgba(201, 169, 97, .35);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
}
.ai-cap-ico svg { width: 20px; height: 20px; }
.ai-capabilities li strong {
    display: block;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 3px;
    letter-spacing: -.01em;
}
.ai-capabilities li span {
    display: block;
    color: #B8C5DD;
    font-size: .92rem;
    line-height: 1.55;
}

.ai-agent-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.ai-agent-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #9CBBFF;
    font-size: .85rem;
    font-weight: 500;
}
.live-dot {
    width: 8px; height: 8px;
    background: #23D07C;
    border-radius: 50%;
    box-shadow: 0 0 10px #23D07C;
    animation: pulse 1.6s ease-in-out infinite;
}

/* ---- Mock visual do chat (lado direito) ---- */
.ai-agent-demo {
    position: relative;
    padding: 0 20px;
}
.ai-demo-screen {
    position: relative;
    background: #0C1D3E;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    box-shadow:
        0 40px 80px rgba(0,0,0,.45),
        0 0 0 1px rgba(201,169,97,.12) inset;
    overflow: hidden;
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    transition: transform .6s ease;
}
.ai-demo-screen:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

.ai-demo-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.ai-demo-top .dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.ai-demo-top .dot.r { background: #ff6159; }
.ai-demo-top .dot.y { background: #ffbd2e; }
.ai-demo-top .dot.g { background: #28ca41; }
.ai-demo-top small {
    margin-left: 10px;
    color: #9CBBFF;
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'Sora', sans-serif;
}

.ai-demo-body {
    padding: 22px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-demo-msg {
    padding: 12px 16px;
    border-radius: 14px;
    font-size: .92rem;
    line-height: 1.5;
    max-width: 88%;
    animation: msgSlide .5s ease both;
}
.ai-demo-msg.bot {
    background: rgba(255, 255, 255, .06);
    color: #E8EEFF;
    border-top-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid rgba(255,255,255,.05);
}
.ai-demo-msg.user {
    background: linear-gradient(135deg, var(--blue-500), #1557d4);
    color: #fff;
    border-top-right-radius: 4px;
    align-self: flex-end;
    box-shadow: 0 10px 20px rgba(30,107,255,.25);
}
@keyframes msgSlide {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0);   }
}
.ai-demo-msg.bot:nth-child(1)  { animation-delay: .0s; }
.ai-demo-msg.user:nth-child(2) { animation-delay: .15s; }
.ai-demo-msg.bot:nth-child(3)  { animation-delay: .3s; }
.ai-demo-msg.user:nth-child(4) { animation-delay: .45s; }

.ai-demo-typing {
    display: inline-flex;
    align-self: flex-start;
    gap: 5px;
    padding: 14px 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 14px;
    border-top-left-radius: 4px;
}
.ai-demo-typing span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #9CBBFF;
    animation: typing 1.4s ease-in-out infinite;
}
.ai-demo-typing span:nth-child(2) { animation-delay: .2s; }
.ai-demo-typing span:nth-child(3) { animation-delay: .4s; }

.ai-demo-foot {
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.05);
}
.ai-demo-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 24px;
    padding: 10px 16px;
    color: #7B8BA8;
    font-size: .9rem;
}
.ai-demo-input svg {
    width: 18px; height: 18px;
    color: var(--blue-500);
}

.ai-demo-tag {
    position: absolute;
    top: 24px;
    right: 0;
    background: rgba(10, 31, 68, .9);
    border: 1px solid rgba(201,169,97,.35);
    color: var(--gold);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: .05em;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
    backdrop-filter: blur(10px);
}

/* =====================================================================
   Separadores dourados sutis entre secoes claras
   ===================================================================== */
.portfolio { position: relative; }
.portfolio::before,
.process::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 20vw, 260px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .6;
}

/* =====================================================================
   ANIMACOES DE SCROLL
   ===================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-glow, .chat-typing span, .hero-card-head small::before,
    .hp-seal::before, .hp-float, .hp-map svg circle { animation: none; }
}

/* =====================================================================
   HERO v2 - REPOSICIONAMENTO LOCAL / AUTORIDADE / VELOCIDADE
   ===================================================================== */

/* Ultima linha do titulo em dourado */
.hero-title .accent-gold {
    color: var(--gold);
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--gold);
}

/* Pilulas de diferenciais abaixo do subtitulo */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: -10px 0 34px;
    padding: 0;
}
.hero-pills li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(30, 107, 255, .10);
    border: 1px solid rgba(156, 187, 255, .22);
    color: #C9D3E8;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1;
}
.hero-pills li strong { color: #fff; font-weight: 700; }
.hero-pills svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* =====================================================================
   HERO PAINEL DO TIME (lado direito, substitui mock de chat)
   ===================================================================== */
.hero-panel {
    position: relative;
    min-height: 480px;
}

.hero-panel .hp-card {
    background: linear-gradient(155deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.01) 100%);
    border: 1px solid rgba(156, 187, 255, .15);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.hero-panel .hp-main {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-panel .hp-map {
    position: absolute;
    top: 0; right: 0;
    width: 220px; height: 220px;
    opacity: .9;
    pointer-events: none;
}
.hero-panel .hp-map svg { width: 100%; height: 100%; }
.hero-panel .hp-map svg circle:nth-child(4) {
    filter: drop-shadow(0 0 12px rgba(201,169,97,.9));
    animation: pulse 1.8s ease-in-out infinite;
}

.hero-panel .hp-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    width: fit-content;
    margin-bottom: 20px;
}
.hero-panel .hp-chip svg { width: 14px; height: 14px; }
.hero-panel .hp-chip-gold {
    background: rgba(201, 169, 97, .12);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 97, .35);
}

.hero-panel .hp-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.3rem, 1.8vw, 1.55rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.hero-panel .hp-text {
    color: #9CBBFF;
    font-size: .95rem;
    line-height: 1.6;
    margin: 0;
}

/* Cards flutuantes */
.hero-panel .hp-float {
    position: absolute;
    background: linear-gradient(155deg, var(--navy-700) 0%, var(--navy-800) 100%);
    border: 1px solid rgba(156, 187, 255, .18);
    border-radius: var(--radius);
    padding: 16px 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
    min-width: 140px;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}
.hero-panel .hp-float-tl {
    top: -16px;
    left: -18px;
}
.hero-panel .hp-float-br {
    bottom: 90px;
    right: -18px;
    animation-delay: -3s;
}
.hero-panel .hp-float-num {
    font-family: 'Sora', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
}
.hero-panel .hp-float-lbl {
    color: #9CBBFF;
    font-size: .75rem;
    letter-spacing: .04em;
    margin-top: 4px;
    text-transform: uppercase;
    font-weight: 500;
}

/* Selo de formacao (parte inferior) */
.hero-panel .hp-seal {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    z-index: 3;
    white-space: nowrap;
}
.hero-panel .hp-seal svg {
    width: 26px; height: 26px;
    color: var(--navy-800);
    flex-shrink: 0;
}
.hero-panel .hp-seal strong {
    display: block;
    color: var(--navy-800);
    font-family: 'Sora', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.1;
}
.hero-panel .hp-seal small {
    display: block;
    color: var(--gold);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* =====================================================================
   SECAO WHY-MSD (4 pilares)
   ===================================================================== */
.why-msd {
    background: var(--off-white);
    position: relative;
}
.why-msd .section-title .accent-gold { color: var(--gold); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: clamp(32px, 4vw, 56px);
}

.why-card {
    background: #fff;
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 48px; height: 3px;
    background: var(--gold);
    border-radius: 0 0 3px 0;
    opacity: .8;
}
.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(201, 169, 97, .35);
}

.why-ico {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(10, 31, 68, .2);
}
.why-ico svg { width: 26px; height: 26px; }

.why-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy-800);
    line-height: 1.25;
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.why-text {
    color: var(--gray-500);
    font-size: .92rem;
    line-height: 1.6;
    margin: 0;
}

/* =====================================================================
   FAIXA DE CIDADES ATENDIDAS (antes do footer)
   ===================================================================== */
.cities {
    background: linear-gradient(180deg, var(--off-white) 0%, #fff 100%);
    padding: clamp(50px, 7vw, 90px) 0;
    position: relative;
}
.cities::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: clamp(120px, 20vw, 260px);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .6;
}

.cities-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}
.cities-pin {
    width: 28px; height: 28px;
    color: var(--gold);
    margin: 0 auto 14px;
    display: block;
}
.cities-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    color: var(--navy-800);
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.cities-sub {
    color: var(--gray-500);
    font-size: .98rem;
    margin: 0;
}

.cities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 12px;
    padding: 0;
    max-width: 920px;
    margin: 0 auto;
}
.cities-list li {
    padding: 9px 18px;
    border: 1px solid var(--gray-100);
    border-radius: 999px;
    background: #fff;
    color: var(--navy-800);
    font-size: .88rem;
    font-weight: 500;
    transition: all .2s ease;
    cursor: default;
}
.cities-list li:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 169, 97, .15);
}

/* =====================================================================
   FOOTER - LINHA DE FORMACAO E LOCAL
   ===================================================================== */
.footer-formacao,
.footer-local {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    font-size: .88rem;
    line-height: 1.5;
}
.footer-formacao svg,
.footer-local svg {
    width: 18px; height: 18px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.footer-formacao span { color: #C9D3E8; }
.footer-local span {
    color: var(--gold);
    font-weight: 600;
    letter-spacing: .02em;
}

/* =====================================================================
   RESPONSIVO DAS NOVAS SECOES
   ===================================================================== */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-panel { min-height: auto; margin-top: 40px; }
    .hero-panel .hp-float-tl { top: -20px; left: 10px; }
    .hero-panel .hp-float-br { bottom: auto; top: 60px; right: 10px; }
}

@media (max-width: 720px) {
    .hero-panel { display: none; } /* Em mobile o painel some para focar no manifesto */
    .why-grid { grid-template-columns: 1fr; gap: 16px; }
    .why-card { padding: 26px 22px; }
    .hero-pills { gap: 8px; }
    .hero-pills li { font-size: .78rem; padding: 7px 12px; }
    .hero-pills svg { width: 13px; height: 13px; }
    .cities-list li { font-size: .8rem; padding: 7px 14px; }
}

/* =====================================================================
   RESPONSIVO
   ===================================================================== */
@media (max-width: 1024px) {
    .services-grid, .portfolio-grid, .t-carousel { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .process-grid::before { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .stats-grid > *:not(:last-child)::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ai-agent-inner { grid-template-columns: 1fr; gap: 56px; }
    .ai-agent-demo { padding: 0; max-width: 520px; margin: 0 auto; }
    .ai-demo-screen { transform: none; }
    .ai-demo-tag { top: 14px; right: 14px; }
}
@media (max-width: 768px) {
    .nav, .nav-cta .btn { display: none; }
    .nav-toggle { display: inline-flex; }
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); padding-bottom: 60px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .services-grid, .portfolio-grid, .t-carousel { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ai-agent-actions { flex-direction: column; align-items: flex-start; }
    .ai-agent-orb, .ai-agent-orb.two { width: 300px; height: 300px; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}
