/* =========================================================
   critical.css
   CSS crítico para conteúdo acima da dobra (mobile/desktop)
   Combina reset + variables + base + nav + hero
   ========================================================= */

/* =========================================================
   reset.css — Zeragem de estilos padrão do navegador
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    line-height: 1.5;
}

img,
video,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: inherit;
}

/* =========================================================
   variables.css — Tokens de design / CSS Custom Properties
   ========================================================= */

:root {
    /* Cores */
    --black: #080810;
    --dark: #0f0f1a;
    --card: #13131f;
    --border: rgba(255, 255, 255, 0.07);
    --white: #ffffff;
    --muted: rgba(255, 255, 255, 0.55);
    --accent: #3b9eff;
    --green: #00e676;
    --yellow: #ffd740;
    --pink: #ff4d8d;
    --grad: linear-gradient(135deg, #3b9eff, #a855f7);

    /* Espaçamento */
    --section-pad: 90px 5%;

    /* Bordas */
    --card-radius: 20px;
    --pill-radius: 50px;

    /* Transições */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   base.css — Estilos globais, utilitários e responsividade
   ========================================================= */

html {
    font-size: 17px;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
    opacity: .4;
}

.section {
    padding: var(--section-pad);
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: block;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 68px);
    letter-spacing: 1px;
    line-height: 1.02;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 17px;
    color: var(--muted);
    font-weight: 600;
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 48px;
}

.btn-primary {
    background: var(--green);
    color: #000;
    font-family: 'Nunito', sans-serif;
    font-weight: 900;
    font-size: 17px;
    padding: 17px 38px;
    border-radius: var(--pill-radius);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
    text-decoration: none;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 230, 118, 0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 17px;
    padding: 17px 38px;
    border-radius: var(--pill-radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 1024px) {
    .section {
        padding: 72px 5%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 16px;
    }

    .section {
        padding: 60px 5%;
    }

    .section-sub {
        max-width: 100%;
    }

    .section-title {
        font-size: clamp(36px, 9vw, 56px);
    }
}

@media (max-width: 500px) {
    html {
        font-size: 15px;
    }

    .section {
        padding: 48px 5%;
    }

    .section-title {
        font-size: clamp(32px, 11vw, 48px);
    }

    .btn-primary,
    .btn-secondary {
        font-size: 15px;
        padding: 15px 28px;
    }
}

/* =========================================================
   nav.css — Barra de navegação fixa no topo
   ========================================================= */

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 5%;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(8, 8, 16, 0.85);
    border-bottom: 1px solid var(--border);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.nav-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 26px;
    letter-spacing: 2px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 700;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-cta {
    background: var(--green);
    color: #000;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 22px;
    border-radius: var(--pill-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(0, 230, 118, 0.4);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .top-nav {
        padding: 12px 5%;
    }
}

/* =========================================================
   hero.css — Seção hero (acima da dobra)
   ========================================================= */

@keyframes pulse-center {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.18);
        opacity: 0.65;
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 40px;
    position: relative;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 158, 255, 0.14) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: pulse-center 5s ease-in-out infinite;
    z-index: 0;
}

.hero-glow2 {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
    top: 15%;
    right: 2%;
    pointer-events: none;
    animation: pulse 6s ease-in-out 1s infinite;
    z-index: 0;
}

.hero-glow3 {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.08) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
    pointer-events: none;
    animation: pulse 7s ease-in-out 2s infinite;
    z-index: 0;
}

.floater {
    position: absolute;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
    opacity: 0.45;
    z-index: 1;
}

.floater img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 12px;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5)) blur(0.5px);
}

.floater:nth-child(1) {
    top: 8%;
    left: 2%;
    animation-delay: 0s;
}

.floater:nth-child(2) {
    top: 10%;
    right: 2%;
    animation-delay: 1.5s;
}

.floater:nth-child(3) {
    bottom: 14%;
    left: 2%;
    animation-delay: 3s;
}

.floater:nth-child(4) {
    bottom: 12%;
    right: 2%;
    animation-delay: 0.8s;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 158, 255, 0.1);
    border: 1px solid rgba(59, 158, 255, 0.28);
    border-radius: var(--pill-radius);
    padding: 7px 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    animation: fadeDown 0.8s var(--ease) both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: blink 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(58px, 11vw, 118px);
    line-height: 0.93;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
    animation: fadeDown 0.9s var(--ease) 0.1s both;
}

.hero h1 .line1 {
    display: block;
    color: var(--white);
}

.hero h1 .line2 {
    display: block;
    background: linear-gradient(90deg, #3b9eff 0%, #a855f7 40%, #3b9eff 60%, #a855f7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textShimmer 4s linear infinite;
}

.hero-sub {
    font-size: clamp(16px, 2.2vw, 20px);
    color: rgba(255, 255, 255, 0.68);
    max-width: 580px;
    line-height: 1.68;
    margin: 24px auto 40px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    animation: fadeDown 1s var(--ease) 0.2s both;
}

.hero-sub strong {
    color: var(--white);
    font-weight: 800;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
    animation: fadeDown 1s var(--ease) 0.3s both;
}

.hero-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 64px;
    position: relative;
    z-index: 2;
    animation: fadeDown 1s var(--ease) 0.45s both;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 46px;
    letter-spacing: 1px;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 4ch;
    display: inline-block;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 5px;
    max-width: 110px;
}

.hero-stats .stat+.stat {
    padding-left: 0;
}

@media (min-width: 501px) {
    .hero-stats {
        position: relative;
    }

    .stat:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -24px;
        top: 10%;
        height: 80%;
        width: 1px;
        background: var(--border);
    }

    .stat {
        position: relative;
    }
}

.phones-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
    padding: 8px 5% 56px;
    overflow: visible;
    position: relative;
}

.phone-wrap {
    position: relative;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.phone-wrap img {
    width: 165px;
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
}

.phone-wrap.center img {
    width: 210px;
    transform: translateY(-28px);
    box-shadow:
        0 36px 90px rgba(59, 158, 255, 0.28),
        0 0 0 1px rgba(59, 158, 255, 0.22);
}

.phone-wrap.side {
    opacity: 0.65;
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .hero-stats {
        gap: 24px;
    }

    .stat-num {
        font-size: 38px;
    }

    .stat-label {
        font-size: 11px;
    }
}

@media (max-width: 500px) {
    .hero {
        padding: 100px 5% 32px;
    }

    .hero-stats {
        gap: 18px;
    }

    .stat-num {
        font-size: 34px;
    }

    .floater {
        display: none;
    }

    .phones-row {
        justify-content: flex-start;
        align-items: stretch;
        gap: 12px;
        padding: 8px 5% 40px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .phones-row::-webkit-scrollbar {
        display: none;
    }

    .phone-wrap,
    .phone-wrap.side,
    .phone-wrap.center {
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        scroll-snap-align: center;
        opacity: 1;
        transform: none;
    }

    .phone-wrap img,
    .phone-wrap.center img {
        width: min(72vw, 250px);
        transform: none;
    }
}