:root {
    --red:      #d11919;
    --amber:    #d17b19;
    --dark:     #0a0a0a;
    --surface:  #141414;
    --surface2: #1a1a1a;
    --light:    #ffffff;
    --muted:    rgba(255,255,255,0.6);
    --line:     rgba(209,25,25,0.18);
    --grad:     linear-gradient(135deg, #d11919 0%, #d17b19 100%);
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
.header {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; height: 80px;
    background: transparent;
    transition: background .4s, box-shadow .4s, height .4s;
    z-index: 1000;
}
.header.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--line);
    height: 68px;
}

.logo img {
    height: 200px;
    transition: height .4s var(--ease), filter .3s;
    filter: drop-shadow(0 0 10px rgba(209,25,25,.2));
}
.header.scrolled .logo img { height: 140px; }

.nav { display: flex; gap: .4rem; align-items: center; }

.nav-link {
    display: flex; align-items: center; gap: .45rem;
    padding: .6rem 1.1rem;
    font-size: .88rem; font-weight: 500; letter-spacing: .3px;
    color: rgba(255,255,255,.75);
    border-radius: 50px;
    position: relative; overflow: hidden;
    transition: color .2s, transform .2s;
}
.nav-link::before {
    content: '';
    position: absolute; inset: 0; border-radius: 50px;
    background: var(--grad); opacity: 0; transition: opacity .2s;
}
.nav-link span, .nav-link i { position: relative; z-index: 1; }
.nav-link i { font-size: 1rem; }
.nav-link:hover { color: #fff; transform: translateY(-2px); }
.nav-link:hover::before { opacity: 1; }

.nav-cta {
    background: var(--grad); color: #fff;
    box-shadow: 0 4px 16px rgba(209,25,25,.3);
}
.nav-cta::before { display: none; }
.nav-cta:hover { box-shadow: 0 6px 22px rgba(209,25,25,.5); }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
    position: relative;
    height: 100vh; min-height: 620px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    text-align: center;
}

#hero-bg {
    position: absolute; inset: -18%;
    background:
        linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 100%),
        url('/images/construção.webp') center/cover no-repeat;
    will-change: transform; z-index: 0;
    animation: heroBgIn 2.4s var(--ease) forwards;
}
@keyframes heroBgIn {
    from { transform: scale(1.14); filter: brightness(.35) saturate(.5); }
    to   { transform: scale(1);   filter: brightness(1)   saturate(1);  }
}

/* grain */
.hero-noise {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 180px; opacity: .5;
}
/* scanlines */
.hero-scanlines {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,.03) 3px, rgba(0,0,0,.03) 4px);
    animation: scanMove 8s linear infinite;
}
@keyframes scanMove { from{background-position:0 0} to{background-position:0 100vh} }

/* glitch */
.hero-glitch {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
    animation: glitchFlash 9s step-end infinite;
}
@keyframes glitchFlash {
    0%,98%,100% { opacity:0; }
    98.2% { opacity:1; background:rgba(209,25,25,.04); clip-path:inset(28% 0 60% 0); transform:translateX(-4px); }
    98.5% { opacity:1; background:rgba(0,200,255,.03); clip-path:inset(65% 0 15% 0); transform:translateX(4px); }
    98.8% { opacity:0; transform:none; }
}

/* glow ambiental */
.hero-glow {
    position: absolute; bottom: -40px; left: 50%;
    transform: translateX(-50%);
    width: 55%; height: 220px;
    background: radial-gradient(ellipse at center, rgba(209,25,25,.09) 0%, transparent 68%);
    z-index: 1; pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
    0%,100% { opacity:.6; transform:translateX(-50%) scaleX(1); }
    50%      { opacity:.9; transform:translateX(-50%) scaleX(1.12); }
}

#hero-particles {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 2; pointer-events: none;
}

.hero-content {
    position: relative; z-index: 5;
    padding: 0 5%; max-width: 860px;
}

/* entrada cascata */
.hero-content h1,
.hero-content p,
.hero-actions {
    opacity: 0; transform: translateY(24px);
    transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.hero-content h1.hero-visible,
.hero-content p.hero-visible,
.hero-actions.hero-visible {
    opacity: 1 !important; transform: none !important;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .72rem; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--red);
    border: 1px solid rgba(209,25,25,.4);
    padding: .35rem 1.1rem; border-radius: 50px;
    background: rgba(209,25,25,.08);
    margin-bottom: 1.6rem;
    /* badge visível imediatamente */
    opacity: 0; animation: fadeIn .7s .3s var(--ease) forwards;
}
@keyframes fadeIn { to { opacity:1; } }

.hero-content h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 900; line-height: 1.08;
    letter-spacing: -1.5px;
    margin-bottom: 1.2rem;
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted); font-weight: 300;
    line-height: 1.75; margin-bottom: 2.4rem;
    max-width: 600px; margin-left: auto; margin-right: auto;
}

.hero-actions {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* botões hero */
.btn-primary, .btn-outline {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .9rem 2.2rem; border-radius: 50px;
    font-size: .88rem; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    transition: transform .3s var(--ease), box-shadow .3s;
    position: relative; overflow: hidden;
}
.btn-primary {
    background: var(--grad); color: #fff;
    box-shadow: 0 8px 28px rgba(209,25,25,.35);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(209,25,25,.55);
}
.btn-outline {
    background: transparent; color: var(--light);
    border: 1px solid rgba(255,255,255,.25);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,.6);
    background: rgba(255,255,255,.06);
    transform: translateY(-3px);
}

/* scroll hint */
.hero-scroll-hint {
    position: absolute; bottom: 2.2rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    z-index: 5; opacity: 0;
    animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll-hint span {
    font-size: .65rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--muted);
}
.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--red), transparent);
    animation: scrollDrop 1.8s ease-in-out infinite;
}
@keyframes scrollDrop {
    0%   { transform:scaleY(0); transform-origin:top; opacity:1; }
    50%  { transform:scaleY(1); transform-origin:top; }
    51%  { transform:scaleY(1); transform-origin:bottom; }
    100% { transform:scaleY(0); transform-origin:bottom; opacity:0; }
}

/* ══════════════════════════════
   SECTIONS
══════════════════════════════ */
.section { padding: 5.5rem 5%; }
.section-dark {
    background: var(--surface);
    border-top: 1px solid rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.04);
}
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    display: flex; align-items: center; gap: .8rem;
    font-size: .72rem; font-weight: 700;
    letter-spacing: 4px; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.label-line { display: block; width: 28px; height: 1.5px; background: var(--red); }

.section-title {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -0.5px; margin-bottom: 3.5rem;
}

/* ══════════════════════════════
   DIFERENCIAIS CARDS
══════════════════════════════ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.diff-card {
    background: var(--surface2);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 20px;
    padding: 2.2rem;
    position: relative; overflow: hidden;
    transition: border-color .4s, transform .45s var(--ease), box-shadow .4s;
}
.diff-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad);
    transform: scaleX(0); transform-origin: left;
    transition: transform .4s var(--ease);
}
.diff-card:hover {
    border-color: rgba(209,25,25,.3);
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(209,25,25,.14);
}
.diff-card:hover::before { transform: scaleX(1); }

.diff-card-highlight {
    border-color: rgba(209,25,25,.25);
    background: rgba(209,25,25,.04);
}
.diff-card-highlight::before { transform: scaleX(1); }

.diff-num {
    position: absolute; top: 1.4rem; right: 1.4rem;
    font-size: 2.8rem; font-weight: 900;
    color: rgba(255,255,255,.03);
    -webkit-text-stroke: 1px rgba(255,255,255,.06);
    line-height: 1;
}

.diff-icon {
    width: 56px; height: 56px;
    background: var(--grad); border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff;
    margin-bottom: 1.4rem;
    box-shadow: 0 8px 20px rgba(209,25,25,.3);
    transition: transform .3s var(--ease);
}
.diff-card:hover .diff-icon { transform: scale(1.1) rotate(4deg); }

.diff-card h3 {
    font-size: 1.2rem; font-weight: 700;
    margin-bottom: .7rem; color: #fff;
}
.diff-card > p {
    font-size: .9rem; color: var(--muted);
    line-height: 1.7; font-weight: 300; margin-bottom: 1.4rem;
}

.diff-list {
    list-style: none;
    display: flex; flex-direction: column; gap: .6rem;
}
.diff-list li {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .85rem; color: rgba(255,255,255,.72);
    line-height: 1.5;
}
.diff-list li i { color: var(--red); font-size: .95rem; flex-shrink: 0; margin-top: .1rem; }
.diff-list li strong { color: #fff; }

.diff-footer {
    display: flex; align-items: center; gap: .6rem;
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .82rem; color: var(--muted);
}
.diff-footer i { color: var(--red); font-size: 1.1rem; flex-shrink: 0; }

/* ══════════════════════════════
   PROCESSO
══════════════════════════════ */
.process-grid {
    display: flex; gap: 1.2rem;
    overflow-x: auto; padding: 1rem .5rem 1.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.process-grid::-webkit-scrollbar { height: 4px; }
.process-grid::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 99px; }
.process-grid::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 99px; }

.process-item {
    min-width: 200px; flex: 0 0 200px;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 1rem;
    background: rgba(20,20,20,.8);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px; padding: 1.8rem 1.2rem;
    transition: border-color .3s, transform .35s var(--ease), box-shadow .3s;
}
.process-item:hover {
    border-color: rgba(209,25,25,.35);
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(209,25,25,.12);
}

.process-icon {
    width: 64px; height: 64px;
    background: var(--grad); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: #fff; position: relative;
    box-shadow: 0 8px 22px rgba(209,25,25,.35);
    transition: transform .3s var(--ease);
}
.process-item:hover .process-icon { transform: scale(1.12) rotate(5deg); }

.process-num {
    position: absolute; top: -6px; right: -6px;
    width: 22px; height: 22px;
    background: var(--dark); border: 1.5px solid var(--red);
    border-radius: 50%; font-size: .62rem; font-weight: 700;
    color: var(--red);
    display: flex; align-items: center; justify-content: center;
}

.process-item h4 {
    font-size: .95rem; font-weight: 700; color: #fff;
}
.process-item p {
    font-size: .8rem; color: var(--muted);
    line-height: 1.55; font-weight: 300;
}
.process-tags {
    display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center;
    margin-top: auto;
}
.process-tags span {
    font-size: .65rem; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase;
    padding: .22rem .65rem; border-radius: 50px;
    background: rgba(209,25,25,.1);
    border: 1px solid rgba(209,25,25,.28);
    color: rgba(209,25,25,.9);
}

/* ══════════════════════════════
   VÍDEO
══════════════════════════════ */
.video-wrap { max-width: 920px; margin: 0 auto; }
.video-frame {
    position: relative; padding-bottom: 56.25%; height: 0;
    border-radius: 16px; overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.video-frame iframe {
    position: absolute; top:0; left:0;
    width: 100%; height: 100%; border: none;
}

/* ══════════════════════════════
   CTA FINAL
══════════════════════════════ */
.cta-section {
    padding: 5.5rem 5%;
    background: var(--dark);
    position: relative; overflow: hidden;
    text-align: center;
}
.cta-section::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(209,25,25,.1) 0%, transparent 70%);
    pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -.5px; margin-bottom: 1rem;
}
.cta-inner p {
    font-size: 1rem; color: var(--muted);
    font-weight: 300; margin-bottom: 2.4rem;
}
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: .7rem;
    padding: 1rem 2.5rem; background: #25d366; color: #fff;
    border-radius: 50px; font-size: 1rem; font-weight: 700;
    letter-spacing: .5px;
    box-shadow: 0 8px 28px rgba(37,211,102,.3);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-whatsapp:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(37,211,102,.5);
}
.btn-whatsapp i { font-size: 1.2rem; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 1.5rem 5%;
}
.footer-content {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; gap: 1rem;
}
.footer-content p { font-size: .82rem; color: rgba(255,255,255,.3); }
.footer-social { display: flex; gap: .8rem; }
.footer-social a {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(209,25,25,.08);
    border: 1px solid rgba(209,25,25,.22);
    border-radius: 50%; color: var(--red); font-size: 1rem;
    transition: all .22s var(--ease);
}
.footer-social a:hover {
    background: var(--grad); color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 14px rgba(209,25,25,.3);
}

/* ══════════════════════════════
   SCROLL REVEAL
══════════════════════════════ */
.sr {
    opacity: 0; transform: translateY(32px);
    transition: opacity .78s var(--ease), transform .78s var(--ease);
}
.sr.in { opacity: 1; transform: none; }
.sr-d1 { transition-delay: .1s; }
.sr-d2 { transition-delay: .2s; }
.sr-d3 { transition-delay: .3s; }
.sr-d4 { transition-delay: .4s; }
.sr-d5 { transition-delay: .5s; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: 1fr; }
    .diff-card-highlight { order: -1; }
}
@media (max-width: 768px) {
    .header { height: auto; padding: .5rem 4%; }
    .logo img { height: 130px !important; }
    .nav-link span { display: none; }
    .nav-link { padding: .55rem .9rem; }
    .hero-content h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .section { padding: 3.5rem 4%; }
    .section-title { margin-bottom: 2.5rem; }
}
@media (max-width: 480px) {
    .logo img { height: 100px !important; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-primary, .btn-outline { width: 100%; max-width: 300px; justify-content: center; }
    .process-item { min-width: 170px; flex: 0 0 170px; }
}