/* =========================================
   DESIGN TOKENS
========================================= */
:root {
    --color-bg: #050912;
    --color-surface-glass: rgba(15, 23, 42, 0.45);
    --color-surface-border: rgba(255, 255, 255, 0.1);
    --color-primary: #00A9E0;
    --color-primary-hover: #008CBA;
    --color-text-main: #F8FAFC;
    --color-text-muted: #94A3B8;
    --color-whatsapp: #25D366;
    --color-whatsapp-hover: #1EBE55;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================================
   RESETS
========================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: #050912; }

body {
    background-color: transparent;
    color: var(--color-text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Garante scroll nativo fluido no iOS */
    -webkit-overflow-scrolling: touch;
}

/* Remove flash azul ao tocar links/botões no iOS */
a, button, [role="button"] {
    -webkit-tap-highlight-color: transparent;
    tap-highlight-color: transparent;
}

/* Remove atraso de 300ms no tap (iOS legado) */
a, button, input, select, textarea, [role="button"] {
    touch-action: manipulation;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; margin-bottom: 1rem; }
.highlight { color: var(--color-primary); }
/* padding lateral respeita safe-area em modo paisagem (iPhone com notch/Dynamic Island) */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: max(2rem, calc(1.5rem + env(safe-area-inset-left, 0px)));
    padding-right: max(2rem, calc(1.5rem + env(safe-area-inset-right, 0px)));
}

/* =========================================
   SCROLLYTELLING BACKGROUND (DRONE ORBIT)
========================================= */
/* Container das imagens: sem transform para evitar o bug iOS Safari de position:fixed + transform */
.fixed-bg-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; height: 100dvh; z-index: -1; overflow: hidden; background-color: #050912; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.bg-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
#bg-layer-2, #bg-layer-3, #bg-layer-4, #bg-layer-5 { opacity: 0; }
/* Overlay como elemento fixo separado — renderiza corretamente no iOS Safari no primeiro frame */
#bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(5,9,18,0.85); z-index: 1; pointer-events: none; -webkit-transform: translateZ(0); transform: translateZ(0); }
.content-wrapper { position: relative; z-index: 10; }

/* =========================================
   BUTTONS
========================================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; text-decoration: none; transition: var(--transition-smooth); border: none; cursor: pointer; font-family: var(--font-body); font-size: 0.95rem; }
.btn-primary { background-color: var(--color-primary); color: #fff; box-shadow: 0 4px 14px rgba(0, 169, 224, 0.4); }
.btn-primary:hover { background-color: var(--color-primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 169, 224, 0.6); }
.btn-secondary { background-color: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(10px); }
.btn-secondary:hover { background-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.btn-large { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-huge { padding: 1.25rem 2.5rem; font-size: 1.25rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.9rem; }

/* Glass Card */
.glass-card { background: var(--color-surface-glass); border: 1px solid var(--color-surface-border); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: var(--radius-lg); box-shadow: var(--shadow-glass); padding: 2.5rem; transition: var(--transition-smooth); }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); background: rgba(15, 23, 42, 0.6); }

/* =========================================
   HEADER
========================================= */
/* env(safe-area-inset-top) empurra conteúdo abaixo da Dynamic Island / notch */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    padding: calc(1.5rem + env(safe-area-inset-top, 0px)) 0 1.5rem;
    transition: var(--transition-smooth);
}
.header.scrolled {
    background: rgba(5, 9, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-surface-border);
    padding: calc(1rem + env(safe-area-inset-top, 0px)) 0 1rem;
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.header-logo { height: 80px; width: auto; animation: gentleFloat 4s ease-in-out infinite, logoGlow 4s ease-in-out infinite; }

.nav { display: flex; gap: 2rem; }
.nav a { color: #fff; text-decoration: none; font-size: 1rem; font-weight: 600; transition: var(--transition-smooth); text-shadow: 0 2px 4px rgba(0,0,0,0.8); }
.nav a:hover { color: var(--color-primary); }

@keyframes gentleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes logoGlow {
    0%, 100% { filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(0, 169, 224, 0.4)); }
    50% { filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(0, 169, 224, 0.9)); }
}

/* =========================================
   SECTIONS
========================================= */
.section { padding: 6rem 0; }
.section-header { margin-bottom: 4rem; max-width: 700px; }
.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }

/* =========================================
   HERO
========================================= */
/* Hero padding-top compensa o header + safe area da Dynamic Island */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; padding-top: calc(8rem + env(safe-area-inset-top, 0px)); }
/* opacity/transform inicial gerido exclusivamente pelo GSAP via gsap.set() — evita flash invisível no iOS */
.hero-content { max-width: 800px; }
.hero .badge { display: inline-flex; align-items: center; padding: 0.5rem 1rem; background: rgba(0, 169, 224, 0.15); color: var(--color-primary); border: 1px solid rgba(0, 169, 224, 0.3); border-radius: 50px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1.5rem; letter-spacing: 1px; text-transform: uppercase; box-shadow: 0 0 15px rgba(0,0,0,0.5); }
.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0.15em solid var(--color-primary);
  animation: typing 3s steps(35, end) infinite alternate, blink-caret .75s step-end infinite;
  text-shadow: 1px 1px 8px rgba(0,0,0,0.9);
}
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: var(--color-primary); } }

.hero .headline { font-size: clamp(2.5rem, 5vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; text-shadow: 0px 4px 20px rgba(0,0,0,0.8); }
.hero .subheadline { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 600px; text-shadow: 0px 2px 10px rgba(0,0,0,0.9); font-weight: 500; }
.trusted-by { margin-top: 3rem; display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; color: var(--color-text-muted); }
.trusted-by .stars { color: #FBBF24; display: flex; gap: 0.2rem; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); text-align: center; color: var(--color-text-muted); font-size: 0.85rem; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* =========================================
   SERVICES
========================================= */
.services { padding-top: 2rem; }
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 4rem; }
.card-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1.5rem; }
.glass-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.glass-card p { color: var(--color-text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.card-features { list-style: none; }
.card-features li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.9rem; color: #E2E8F0; }
.card-features i { color: var(--color-primary); }
.center-action { text-align: center; }

/* =========================================
   PORTFOLIO
========================================= */
.portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.portfolio-content h2 { font-size: 2.5rem; }
.portfolio-content p { color: var(--color-text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.testimonial { background: rgba(255,255,255,0.03); border-left: 4px solid var(--color-primary); padding: 2rem; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.testimonial .quote { font-style: italic; font-size: 1.05rem; margin-bottom: 1.5rem; color: #fff; }
.testimonial .author { display: flex; align-items: center; gap: 1rem; }
.author .avatar { width: 45px; height: 45px; background: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.author strong { display: block; line-height: 1.2; }
.author span { font-size: 0.85rem; color: var(--color-text-muted); }
.portfolio-video { padding: 1rem; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 8px; overflow: hidden; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* =========================================
   PROCESS
========================================= */
.steps-wrapper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; position: relative; }
.steps-wrapper::before { content: ''; position: absolute; top: 35px; left: 10%; width: 80%; height: 2px; background: rgba(255,255,255,0.1); z-index: -1; }
.step { text-align: center; }
.step-num { width: 70px; height: 70px; background: var(--color-bg); border: 2px solid var(--color-primary); color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; margin: 0 auto 1.5rem auto; font-family: var(--font-heading); box-shadow: 0 0 20px rgba(0, 169, 224, 0.2); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { font-size: 0.9rem; color: var(--color-text-muted); }

/* =========================================
   FAQ
========================================= */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.faq-item { padding: 2rem; }
.faq-item h3 { font-size: 1.15rem; margin-bottom: 1rem; color: var(--color-primary); }
.faq-item p { font-size: 0.95rem; color: var(--color-text-muted); }

/* =========================================
   CTA
========================================= */
.cta-section { padding: 8rem 0; }
.cta-box { text-align: center; padding: 5rem 2rem; }
.accent-border { border-top: 4px solid var(--color-primary); }
.cta-box h2 { font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 1.5rem; }
.cta-box p { font-size: 1.2rem; color: var(--color-text-muted); max-width: 600px; margin: 0 auto 2.5rem auto; }

/* =========================================
   FOOTER
========================================= */
.footer { border-top: 1px solid var(--color-surface-border); padding: 4rem 0 2rem 0; background: rgba(5,9,18,0.95); backdrop-filter: blur(10px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand p { color: var(--color-text-muted); margin: 1rem 0 1.5rem 0; max-width: 300px; }
.certifications { display: flex; flex-direction: column; gap: 0.5rem; color: #E2E8F0; font-size: 0.9rem; }
.certifications i { color: var(--color-primary); }
.footer h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.8rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 0.5rem; }
.footer ul li a { color: var(--color-text-muted); text-decoration: none; transition: var(--transition-smooth); }
.footer ul li a:hover { color: var(--color-primary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05); color: var(--color-text-muted); font-size: 0.9rem; }
.footer-dev { text-align: center; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(255,255,255,0.04); font-size: 0.75rem; color: rgba(148,163,184,0.45); letter-spacing: 0.02em; }
.footer-dev a { color: rgba(148,163,184,0.55); text-decoration: none; transition: color 0.2s; }
.footer-dev a:hover { color: var(--color-primary); }
.legal-links a { color: var(--color-text-muted); text-decoration: none; margin-left: 1.5rem; }

/* =========================================
   WHATSAPP
========================================= */
/* bottom: calc() garante que o botão não fique atrás do home indicator no iPhone 15/16/17 */
.floating-whatsapp { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); right: max(30px, calc(30px + env(safe-area-inset-right, 0px))); width: 60px; height: 60px; background-color: var(--color-whatsapp); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); z-index: 999; transition: var(--transition-smooth); text-decoration: none; animation: pulse 2s infinite; }
.floating-whatsapp:hover { background-color: var(--color-whatsapp-hover); transform: scale(1.1) translateY(-5px); animation: none; }
.floating-whatsapp .tooltip { position: absolute; right: 75px; background: white; color: #111; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9rem; font-weight: 600; opacity: 0; visibility: hidden; transition: var(--transition-smooth); white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.floating-whatsapp:hover .tooltip { opacity: 1; visibility: visible; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* =========================================
   COOKIE BANNER — barra compacta horizontal
========================================= */
.cookie-banner {
    position: fixed;
    bottom: max(16px, calc(12px + env(safe-area-inset-bottom, 0px)));
    left: max(16px, calc(12px + env(safe-area-inset-left, 0px)));
    right: max(16px, calc(12px + env(safe-area-inset-right, 0px)));
    max-width: 520px;
    background: rgba(8, 15, 35, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-surface-border);
    border-radius: 12px;
    z-index: 9999;
    padding: 0.75rem 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}
.cookie-banner.show { opacity: 1; visibility: visible; transform: translateY(0); }
.cookie-content { display: flex; align-items: center; gap: 0.75rem; flex-wrap: nowrap; }
.cookie-content p { font-size: 0.78rem; color: var(--color-text-muted); flex: 1; margin: 0; line-height: 1.4; }
.cookie-content a { color: var(--color-primary); text-decoration: none; }
.cookie-content .btn { flex-shrink: 0; padding: 0.4rem 1rem; font-size: 0.8rem; white-space: nowrap; }

/* =========================================
   ANIMATION STATES
========================================= */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; visibility: hidden; }

/* =========================================
   HAMBURGER BUTTON
========================================= */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   MOBILE NAVIGATION OVERLAY
========================================= */
#mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 9, 18, 0.98);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    /* Safe area: conteúdo não fica atrás da Dynamic Island nem do home indicator */
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}
#mobile-nav.open {
    display: flex;
    opacity: 1;
}
.mobile-nav-close {
    position: absolute;
    /* Botão X acima da Dynamic Island */
    top: max(1.25rem, calc(0.75rem + env(safe-area-inset-top, 0px)));
    right: max(1.25rem, calc(0.75rem + env(safe-area-inset-right, 0px)));
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
    padding: 2rem;
}
.mobile-nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: color 0.25s ease;
    letter-spacing: -0.5px;
}
.mobile-nav-link:hover, .mobile-nav-link:focus { color: var(--color-primary); }
.mobile-nav-cta { margin-top: 0.5rem; font-size: 1.1rem !important; }

/* =========================================
   TABLET (max 992px)
========================================= */
@media (max-width: 992px) {
    .portfolio-grid { grid-template-columns: 1fr; }
    .steps-wrapper { grid-template-columns: 1fr 1fr; }
    .steps-wrapper::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================
   MOBILE (max 768px) - SINGLE BLOCK
========================================= */
@media (max-width: 768px) {
    html, body { max-width: 100vw; overflow-x: hidden; }
    .container {
        padding-left: max(1.25rem, calc(1rem + env(safe-area-inset-left, 0px)));
        padding-right: max(1.25rem, calc(1rem + env(safe-area-inset-right, 0px)));
    }
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }

    /* Header — padding-top respeita Dynamic Island */
    .header { padding: calc(0.75rem + env(safe-area-inset-top, 0px)) 0 0.75rem; }
    .header.scrolled {
        padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 0 0.5rem;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: rgba(5, 9, 18, 0.95);
    }
    .header-content { justify-content: center; position: relative; }
    .header-logo { height: 55px; animation: logoGlow 4s ease-in-out infinite; }
    .nav, .nav-cta { display: none; }
    .hamburger { display: flex; }

    /* Desativa backdrop-filter no mobile — muito pesado no GPU do iOS */
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 23, 42, 0.85);
    }
    /* Desativa animação hover no mobile (não há hover real em touch) */
    .glass-card:hover { transform: none; }

    /* Desativa will-change no mobile para liberar GPU memory */
    .bg-layer { will-change: auto; }
    #bg-overlay { will-change: auto; }

    /* Hero — padding-top soma safe area para não ficar atrás do header+Dynamic Island */
    .hero { min-height: 100vh; min-height: 100dvh; padding-top: calc(5rem + env(safe-area-inset-top, 0px)); padding-bottom: 2rem; }
    .hero-content { text-align: center; display: flex; flex-direction: column; align-items: center; }

    /* Badge: sem nowrap no mobile — evita overflow horizontal em telas pequenas */
    .hero .badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.75rem;
        white-space: normal;
        text-align: center;
        max-width: 100%;
    }
    /* Typewriter: desativa efeito no mobile para evitar overflow com nowrap */
    .typewriter {
        white-space: normal;
        overflow: visible;
        border-right: none;
        animation: none;
        width: auto !important;
    }

    .hero .headline { font-size: 2.1rem; letter-spacing: -1px; }
    .hero .subheadline { font-size: 0.975rem; margin-bottom: 2rem; max-width: 100%; }
    .btn-large { padding: 0.85rem 1.8rem; font-size: 1rem; }
    .btn-huge { padding: 0.85rem 1.8rem; font-size: 1rem; } /* reduz CTA enorme no mobile */
    .trusted-by { flex-direction: column; text-align: center; gap: 0.4rem; margin-top: 1.5rem; font-size: 0.85rem; }
    .trusted-by .stars { justify-content: center; }
    .scroll-indicator { display: none; }

    /* Services */
    .grid-services { grid-template-columns: 1fr; gap: 1.5rem; }
    .glass-card { padding: 1.75rem; }
    .glass-card h3 { font-size: 1.3rem; }

    /* Portfolio */
    .portfolio-content h2 { font-size: 1.8rem; }
    .portfolio-content p { font-size: 1rem; }
    .testimonial { border-left: none; border-top: 4px solid var(--color-primary); border-radius: var(--radius-lg); text-align: center; }
    .testimonial .author { justify-content: center; }

    /* Process */
    .steps-wrapper { grid-template-columns: 1fr; gap: 2rem; }

    /* FAQ */
    .faq-grid { grid-template-columns: 1fr; gap: 1.25rem; }
    .section-header h2 { font-size: 1.8rem; }

    /* CTA */
    .cta-section { padding: 4rem 0; }
    .cta-box { padding: 2.5rem 1.5rem; }
    .cta-box h2 { font-size: 1.8rem; }
    .cta-box p { font-size: 1rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .footer-brand p { margin: 1rem auto; }
    .certifications { align-items: center; }
    .footer ul li { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .legal-links a { margin: 0 0.5rem; }
    .footer { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(5, 9, 18, 0.98); }

    /* WhatsApp — sobe acima do home indicator */
    .floating-whatsapp {
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        right: max(20px, calc(16px + env(safe-area-inset-right, 0px)));
        width: 52px; height: 52px; font-size: 1.6rem;
    }
    .floating-whatsapp .tooltip { display: none; }

    /* Cookie — sobe acima do home indicator */
    .cookie-banner {
        left: max(10px, calc(8px + env(safe-area-inset-left, 0px)));
        right: max(10px, calc(8px + env(safe-area-inset-right, 0px)));
        bottom: max(12px, calc(8px + env(safe-area-inset-bottom, 0px)));
        padding: 0.65rem 0.85rem;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: rgba(8, 15, 35, 0.99);
    }
    .cookie-content p { font-size: 0.72rem; }
    .cookie-content .btn { padding: 0.35rem 0.85rem; font-size: 0.75rem; }
}

/* =========================================
   EXTRA SMALL (≤390px — iPhone SE, velhos)
========================================= */
@media (max-width: 390px) {
    .hero .headline { font-size: 1.85rem; }
    .hero .subheadline { font-size: 0.9rem; }
    .hero .badge { font-size: 0.55rem; }
    .section-header h2 { font-size: 1.6rem; }
    .glass-card { padding: 1.35rem; }
    .glass-card h3 { font-size: 1.2rem; }
    .btn-large, .btn-huge { padding: 0.8rem 1.4rem; font-size: 0.9rem; }
    .step-num { width: 58px; height: 58px; font-size: 1.25rem; }
    .cta-box h2 { font-size: 1.55rem; }
}

/* =========================================
   ACESSIBILIDADE — Sem animações
========================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .header-logo { animation: none; filter: brightness(0) invert(1); }
    .floating-whatsapp { animation: none; }
    .typewriter { animation: none; white-space: normal; overflow: visible; border-right: none; width: auto !important; }
}
