/* ============================================================
   B-ZN Digital — Stylesheet
   Paleta: Azul | Roxo | Lilás | Laranja
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
    /* Cores da marca */
    --blue: #2563eb;
    --blue-deep: #1e3a8a;
    --purple: #7c3aed;
    --purple-deep: #5b21b6;
    --lilac: #a78bfa;
    --lilac-light: #c4b5fd;
    --orange: #f97316;
    --orange-light: #fb923c;

    /* Neutros */
    --bg: #0a0a14;
    --bg-2: #0f0f1e;
    --bg-3: #14142b;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #e8e8f0;
    --text-muted: #9999b0;
    --text-dim: #6b6b85;
    --white: #ffffff;

    /* Gradientes */
    --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--purple) 50%, var(--orange) 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(37,99,235,.15) 0%, rgba(124,58,237,.15) 50%, rgba(249,115,22,.15) 100%);
    --grad-text: linear-gradient(90deg, var(--lilac) 0%, var(--blue) 40%, var(--orange) 100%);
    --grad-cta: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);

    /* Tipografia */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Layout */
    --container: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 28px;
    --header-h: 72px;

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

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 120px 0; position: relative; }

.section__head { max-width: 720px; margin-bottom: 64px; }

.section__label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--lilac);
    margin-bottom: 16px;
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section__desc {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gradient-text {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
    padding: 14px 28px;
}

.btn--primary {
    background: var(--grad-cta);
    color: var(--white);
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
    background: var(--surface-hover);
    border-color: var(--lilac);
    color: var(--white);
}

.btn--light {
    background: var(--white);
    color: var(--bg);
}
.btn--light:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.2);
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 1000;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}

.header.scrolled {
    background: rgba(10, 10, 20, 0.85);
    border-bottom-color: var(--border);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.logo {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo__mark {
    font-size: 1.35rem;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo__text {
    font-size: 1.35rem;
    color: var(--text);
}

.logo--light .logo__text { color: var(--text-muted); }

/* Nav */
.nav {
    display: flex;
    gap: 32px;
    margin-left: auto;
    margin-right: 24px;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--grad-text);
    transition: width 0.3s var(--ease);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.header__cta { flex-shrink: 0; }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
}

.hero__glow--blue {
    width: 500px; height: 500px;
    background: var(--blue);
    top: -100px; left: -100px;
}

.hero__glow--purple {
    width: 600px; height: 600px;
    background: var(--purple);
    top: 30%; right: -150px;
}

.hero__glow--orange {
    width: 400px; height: 400px;
    background: var(--orange);
    bottom: -100px; left: 30%;
    opacity: 0.2;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero__badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--grad-brand-soft);
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--lilac-light);
    margin-bottom: 28px;
}

.hero__title {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero__subtitle {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll {
    position: absolute;
    bottom: 32px; left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll span {
    display: block;
    width: 24px; height: 40px;
    border: 2px solid var(--border-strong);
    border-radius: 12px;
    position: relative;
}

.hero__scroll span::after {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: var(--lilac);
    border-radius: 2px;
    animation: scrollHint 2s var(--ease) infinite;
}

@keyframes scrollHint {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* ---------- Quem Somos ---------- */
.about { background: var(--bg-2); }

.about__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
}

.about__text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about__text strong { color: var(--text); }

.about__commitment {
    font-size: 1.15rem !important;
    color: var(--text) !important;
    font-weight: 500;
    padding-left: 20px;
    border-left: 3px solid var(--purple);
}

.about__stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s var(--ease);
}

.stat:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateX(4px);
}

.stat__num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- Serviços ---------- */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--grad-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.card:hover {
    border-color: var(--border-strong);
    background: var(--surface-hover);
    transform: translateY(-6px);
}

.card:hover::before { transform: scaleX(1); }

.card__icon {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-brand-soft);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    margin-bottom: 24px;
    color: var(--lilac-light);
    transition: color 0.3s var(--ease);
}

.card:hover .card__icon { color: var(--orange-light); }

.card__icon svg { width: 28px; height: 28px; }

.card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.card__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Diferenciais ---------- */
.differentials { background: var(--bg-2); }

.differentials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.diff {
    padding: 40px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s var(--ease-out);
    position: relative;
}

.diff:hover {
    border-color: var(--lilac);
    background: var(--surface-hover);
    transform: translateY(-4px);
}

.diff__num {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.5;
    margin-bottom: 20px;
}

.diff__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.diff__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Processo ---------- */
.process__timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process__timeline::before {
    content: '';
    position: absolute;
    top: 28px; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue) 0%, var(--purple) 33%, var(--lilac) 66%, var(--orange) 100%);
    opacity: 0.3;
}

.step {
    position: relative;
    z-index: 1;
}

.step__marker {
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 2px solid var(--border-strong);
    border-radius: 50%;
    margin-bottom: 24px;
    transition: all 0.3s var(--ease);
}

.step:hover .step__marker {
    border-color: var(--purple);
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.3);
}

.step__num {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.step__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ---------- CTA Final ---------- */
.cta-final {
    padding: 100px 0;
    background: var(--bg);
}

.cta-final__panel {
    position: relative;
    padding: 72px 48px;
    text-align: center;
    background: var(--bg-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-final__glow {
    position: absolute;
    top: -50%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
    filter: blur(60px);
}

.cta-final__title {
    position: relative;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.cta-final__text {
    position: relative;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 36px;
}

.cta-final .btn { position: relative; }

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding-top: 64px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer__tagline {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 280px;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s var(--ease);
}

.footer__nav a:hover { color: var(--lilac-light); }

.footer__contact p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.footer__contact a:hover { color: var(--lilac-light); }
.footer__contact strong { color: var(--text); }

.footer__bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer__bottom p {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-align: center;
}

/* ---------- Animações de entrada ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Responsivo ---------- */
@media (max-width: 968px) {
    .section { padding: 80px 0; }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services__grid,
    .differentials__grid {
        grid-template-columns: 1fr 1fr;
    }

    .process__timeline {
        grid-template-columns: 1fr 1fr;
    }

    .process__timeline::before { display: none; }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    /* Header sem backdrop-filter no mobile para não criar containing block
       que impede o nav position:fixed de cobrir a tela toda */
    .header {
        background: var(--bg);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav, .header__cta { display: none; }

    .nav-toggle { display: flex; }

    /* Menu mobile — overlay fullscreen */
    .nav.mobile-open {
        display: flex;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 32px;
        background: var(--bg);
        z-index: 999;
    }

    .nav.mobile-open .nav__link {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--white);
    }

    .hero { padding-top: 100px; min-height: auto; padding-bottom: 80px; }

    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }

    .hero__scroll { display: none; }
}

@media (max-width: 600px) {
    .container { padding: 0 20px; }

    .services__grid,
    .differentials__grid,
    .process__timeline {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cta-final__panel { padding: 48px 24px; }

    .about__commitment { padding-left: 16px; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

:focus-visible {
    outline: 2px solid var(--lilac);
    outline-offset: 3px;
    border-radius: 4px;
}
