/* ==========================================================================
   Snow Dive — camada de motion e 3D
   Carregado apenas na home. Complementa styles.css.
   ========================================================================== */

:root {
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-expo: cubic-bezier(0.87, 0, 0.13, 1);
    --ice: #d7efff;
    --ice-glow: rgba(190, 230, 255, 0.35);
    --glass-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.015));
    --glass-border: rgba(255, 255, 255, 0.09);
    --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

/* Lenis (scroll suave) */
html.motion { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

::selection { background: var(--ice); color: #000; }

/* ---------- Preloader ---------- */
.preloader { display: none; }

.motion .preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: #000;
    clip-path: inset(0 0 0 0);
}

.motion.preloader-done .preloader { display: none; }

.preloader__brand {
    font-size: clamp(3rem, 11vw, 9rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    opacity: 0;
}

.preloader__brand .sc:nth-last-child(-n+4) { font-family: var(--font-display); font-style: italic; font-weight: 400; }

.preloader__bar {
    width: min(260px, 60vw);
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.preloader__bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #fff, var(--ice));
    transform: scaleX(0);
    transform-origin: 0 50%;
}

.preloader__count {
    position: absolute;
    right: clamp(16px, 4vw, 48px);
    bottom: clamp(16px, 4vw, 40px);
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.preloader__pct { font-size: 0.35em; color: rgba(255, 255, 255, 0.45); margin-left: 0.15em; }

/* ---------- Camada 3D, grão e progresso ---------- */
.webgl {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.6s var(--ease-out-expo);
}

.has-webgl .webgl { opacity: 1; }
.has-webgl .hero-pattern,
.has-webgl .tech-grid,
.has-webgl .tech-particles { display: none; }

main, .footer { position: relative; z-index: 1; }
main { overflow-x: clip; }

.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.055;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grainShift 7s steps(10) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -8%); }
    20% { transform: translate(-12%, 4%); }
    30% { transform: translate(6%, -14%); }
    40% { transform: translate(-4%, 16%); }
    50% { transform: translate(-12%, 6%); }
    60% { transform: translate(12%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(2%, 20%); }
    90% { transform: translate(-8%, 6%); }
    100% { transform: translate(0, 0); }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 1002;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), #fff 60%, var(--ice));
    box-shadow: 0 0 12px var(--ice-glow);
    transform: scaleX(0);
    transform-origin: 0 50%;
    pointer-events: none;
}

/* ---------- Header flutuante (cápsula de vidro) ---------- */
.header--floating {
    top: 14px;
    background: none;
    border: 0;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    transition: transform 0.8s var(--ease-out-expo);
}

.header--floating .container { max-width: 1240px; }

.header--floating .nav-content {
    position: relative;
    isolation: isolate;
    gap: 1.2rem;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    pointer-events: auto;
}

/* O vidro fica num pseudo-elemento: backdrop-filter no próprio elemento prenderia o menu mobile (position: fixed) dentro da cápsula */
.header--floating .nav-content::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(10, 11, 13, 0.42);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.header--floating.is-scrolled .nav-content::before {
    background: rgba(8, 9, 11, 0.74);
    border-color: rgba(215, 239, 255, 0.12);
}

.header--floating.is-hidden { transform: translateY(calc(-100% - 24px)); }

/* Logo */
.header--floating .logo {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff;
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 22px rgba(190, 230, 255, 0.16);
    transition: transform 0.8s var(--ease-out-expo);
}

.header--floating .logo:hover .logo-mark { transform: rotate(-14deg) scale(1.08); }

.header--floating .logo-text {
    font-size: 1.12rem;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.header--floating .logo-text::after { display: none; }

.header--floating .logo-text em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.14em;
    color: var(--ice);
}

/* Links (desktop): pílula que desliza até o link ativo/hover */
.nav-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.72rem;
    color: rgba(215, 239, 255, 0.55);
}

.header--floating .nav-menu a::after { display: none; }

@media (min-width: 769px) {
    .header--floating .nav-menu {
        position: relative;
        align-items: center;
        gap: 0.15rem;
    }

    .header--floating .nav-menu a {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: baseline;
        gap: 0.35rem;
        padding: 0.6rem 0.95rem;
        border-radius: 999px;
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.68);
        transition: color 0.4s ease;
    }

    .header--floating .nav-menu a:hover,
    .header--floating .nav-menu a.active { color: #fff; }

    .nav-indicator {
        position: absolute;
        top: 0;
        left: 0;
        width: 0;
        height: 100%;
        z-index: 0;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        opacity: 0;
        pointer-events: none;
    }

    .nav-mobile-only { display: none; }
}

/* Ações: idioma + CTA */
.nav-actions {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header--floating .language-selector { margin-right: 0; }

.header--floating .lang-toggle {
    height: 42px;
    padding: 0 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.72rem 1.25rem;
    font-size: 0.88rem;
    white-space: nowrap;
}

.nav-cta svg { width: 16px; height: 16px; transition: transform 0.6s var(--ease-out-expo); }
.nav-cta:hover svg { transform: rotate(45deg); }

@media (min-width: 769px) and (max-width: 1100px) {
    .header--floating .nav-num { display: none; }
    .header--floating .nav-menu a { padding: 0.6rem 0.7rem; }
}

@media (min-width: 769px) and (max-width: 980px) {
    .nav-cta { display: none; }
}

/* Botão do menu (mobile) */
.header--floating .menu-toggle {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header--floating .menu-toggle span {
    width: 18px;
    height: 1.5px;
    background: #000;
    box-shadow: none;
    transition: transform 0.6s var(--ease-out-expo);
}

.header--floating .menu-toggle.is-open span:first-child { transform: translateY(3.75px) rotate(45deg); }
.header--floating .menu-toggle.is-open span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Menu mobile: tela cheia, abre em círculo a partir do botão */
@media (max-width: 768px) {
    .header--floating { top: 10px; }
    .header--floating .nav-content { padding: 0.45rem 0.45rem 0.45rem 0.65rem; }
    .nav-cta,
    .nav-indicator { display: none; }

    .header--floating .nav-menu {
        position: fixed;
        inset: 0;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.1rem;
        padding: 6rem 1.6rem 3rem;
        background: none;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        visibility: hidden;
        transition: visibility 0s linear 0.75s;
    }

    /* Fundo do menu: um círculo que cresce a partir do botão. Só transform (composto na GPU):
       clip-path + backdrop-filter sobre o WebGL piscava em celulares */
    .header--floating .nav-menu::before {
        content: '';
        position: absolute;
        top: 16px;
        right: 22px;
        width: 44px;
        height: 44px;
        z-index: -1;
        border-radius: 50%;
        background: #040507;
        transform: scale(0);
        transition: transform 0.75s var(--ease-in-out-expo);
        will-change: transform;
        pointer-events: none;
    }

    .header--floating .nav-menu.active {
        visibility: visible;
        transition: visibility 0s;
    }

    .header--floating .nav-menu.active::before {
        transform: scale(64);
        transition: transform 0.9s var(--ease-in-out-expo);
    }

    .header--floating .nav-menu li {
        overflow: hidden;
        transition: opacity 0.25s ease;
    }

    .header--floating .nav-menu:not(.active) li { opacity: 0; }

    .header--floating .nav-menu a {
        display: flex;
        align-items: baseline;
        gap: 0.9rem;
        padding: 0.3rem 0;
        border: 0;
        font-size: clamp(2.2rem, 11vw, 3.2rem);
        font-weight: 700;
        letter-spacing: -0.045em;
        color: #fff;
    }

    .header--floating .nav-menu a.active .nav-label {
        font-family: var(--font-display);
        font-style: italic;
        font-weight: 400;
        color: var(--ice);
    }

    .header--floating .nav-num { font-size: 0.95rem; }
}

/* Elementos com efeito magnético: sem transição de transform no CSS */
.lang-toggle { transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.social-links a { display: inline-block; transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease; }

/* ---------- Hero ---------- */
.hero {
    background: transparent;
    min-height: 100vh;
    min-height: 100svh;
}

.motion .hero-content { animation: none; }

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 80% at 50% 100%, rgba(0, 0, 0, 0.85), transparent 60%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.6rem, 5.6vw, 5.6rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-title .highlight {
    display: inline;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.08em;
    letter-spacing: -0.015em;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: var(--ice);
    color: var(--ice);
    text-shadow: 0 0 42px var(--ice-glow);
}

.hero-subtitle { color: rgba(255, 255, 255, 0.6); }

/* Mobile/tablet: espaço para o cristal 3D acima do título (só quando há WebGL) */
.hero-crystal-space { display: none; }

@media (max-width: 991px) {
    .has-webgl .hero-crystal-space {
        display: block;
        height: clamp(220px, 32vh, 340px);
        margin: -1rem auto 0.5rem;
    }

}

@media (max-width: 768px) {
    .has-webgl .hero { padding-top: 84px; align-items: flex-start; }
}

@media (min-width: 992px) {
    .hero .container { width: 100%; max-width: 1280px; }
    .hero-content { text-align: left; margin: 0; max-width: 780px; }
    .hero-subtitle { max-width: 560px; }
    .hero-buttons { justify-content: flex-start; }
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: none;
}

.scroll-indicator .mouse { animation: bounceSoft 2.4s ease-in-out infinite; }

@keyframes bounceSoft {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.scroll-label {
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

/* ---------- Split text ---------- */
.sw {
    clip-path: inset(-0.5em -0.25em -0.16em -0.25em);
    will-change: transform;
}

.sc { will-change: transform, opacity; }

/* ---------- Botões ---------- */
.btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    transition: color 0.6s var(--ease-out-expo), background-color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.btn-primary:hover,
.btn-secondary:hover { transform: none; }

.btn-secondary,
.btn-outline,
.btn-secondary:hover,
.btn-outline:hover { background: transparent; }

.btn-secondary::before,
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    height: 100%;
    z-index: -1;
    background: #fff;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    transform: translateY(102%);
    transition: transform 0.75s var(--ease-out-expo), border-radius 0.75s var(--ease-out-expo);
}

.btn-secondary:hover::before,
.btn-outline:hover::before {
    transform: translateY(0);
    border-radius: 0;
}

.btn-secondary:hover,
.btn-outline:hover { color: #000; }

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -70%;
    width: 45%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(160, 210, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.9s var(--ease-out-expo);
    pointer-events: none;
}

.btn-primary:hover::after { left: 130%; }

.btn-primary:hover {
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.25), 0 0 60px var(--ice-glow);
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative;
    z-index: 2;
    width: 112%;
    margin: -1.5rem 0 -1.5rem -6%;
    padding: 1.8rem 0;
    overflow: hidden;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: rotate(-2.5deg);
}

.marquee__inner { display: flex; flex-direction: column; gap: 0.6rem; }

.marquee__row {
    display: flex;
    width: max-content;
    will-change: transform;
}

.marquee__track {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 2.4rem;
    padding-right: 2.4rem;
    font-size: clamp(2.4rem, 6.5vw, 5.8rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee__track i {
    font-style: normal;
    font-size: 0.38em;
    color: var(--ice);
    text-shadow: 0 0 20px var(--ice-glow);
}

.marquee__row--outline .marquee__track {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.45);
}

.marquee__row--outline .marquee__track i { -webkit-text-stroke: 0; }

/* ---------- Seções translúcidas sobre a cena 3D ---------- */
.servicos,
.precos {
    background: linear-gradient(180deg, rgba(8, 8, 9, 0) 0%, rgba(8, 8, 9, 0.6) 12%, rgba(8, 8, 9, 0.6) 88%, rgba(8, 8, 9, 0) 100%);
}

.construimos {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(8, 8, 9, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
}

.servicos { padding-top: 160px; }

.section-title { line-height: 1.12; }

/* ---------- Cards com vidro, tilt e brilho ---------- */
.servico-card,
.preco-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    transition: border-color 0.5s ease, box-shadow 0.6s ease, background-color 0.5s ease;
}

.servico-card:hover,
.preco-card:hover,
.preco-card.featured:hover { transform: none; }

.servico-card:hover {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 50px rgba(190, 230, 255, 0.06);
}

.servico-index {
    position: absolute;
    top: 2.2rem;
    right: 2.2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.5s ease;
}

.servico-card:hover .servico-index { color: var(--ice); }

.servico-icon { transition: transform 0.7s var(--ease-out-expo), background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.servico-card:hover .servico-icon { transform: translateY(-4px) rotate(-6deg) scale(1.08); }

.card-glare {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.09), transparent 45%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tilt::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(215, 239, 255, 0.75), transparent 45%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tilt:hover .card-glare,
.tilt:hover::after { opacity: 1; }

.preco-card.featured,
.preco-card.featured:hover { overflow: visible; transform: none; }

/* Borda cônica animada no card em destaque */
@property --angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.preco-card.featured {
    border: 2px solid transparent;
    background:
        linear-gradient(#0b0b0c, #0b0b0c) padding-box,
        conic-gradient(from var(--angle), rgba(255, 255, 255, 0.08) 0%, #fff 7%, rgba(255, 255, 255, 0.08) 16%, rgba(255, 255, 255, 0.08) 50%, var(--ice) 57%, rgba(255, 255, 255, 0.08) 66%) border-box;
    box-shadow: 0 0 90px rgba(190, 230, 255, 0.08);
    animation: borderSpin 6s linear infinite;
}

@keyframes borderSpin { to { --angle: 360deg; } }

.badge {
    z-index: 2;
    background: linear-gradient(90deg, #fff, var(--ice), #fff);
    background-size: 200% 100%;
    animation: badgeShine 3s linear infinite;
}

@keyframes badgeShine { to { background-position: -200% 0; } }

.preco-icon-wrapper { transition: transform 0.7s var(--ease-out-expo), background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.preco-card:hover .preco-icon-wrapper { transform: translateY(-4px) scale(1.08); }

/* ---------- O Que Construímos: índice editorial + cubo 3D ---------- */
.construimos { padding: 160px 0; overflow: visible; }
.construimos::after { display: none; }

.construimos-content {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: clamp(3rem, 6vw, 6rem);
}

@media (min-width: 992px) {
    .construimos-text { position: sticky; top: 14vh; }
}

.construimos-text .section-title { font-size: clamp(2.4rem, 4.6vw, 4rem); }

/* Cubo */
.build-stage {
    --cube: 170px;
    position: relative;
    width: var(--cube);
    height: var(--cube);
    margin: 5.5rem 0 3rem 3.5rem;
    perspective: 1100px;
}

.build-tilt,
.build-cube {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
}

.build-face {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid rgba(215, 239, 255, 0.28);
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(215, 239, 255, 0.14), transparent 60%),
        rgba(8, 10, 13, 0.88);
    box-shadow: inset 0 0 40px rgba(190, 230, 255, 0.08), 0 0 30px rgba(190, 230, 255, 0.05);
    backface-visibility: hidden;
}

.build-face--1 { transform: rotateY(0deg) translateZ(calc(var(--cube) / 2)); }
.build-face--2 { transform: rotateY(90deg) translateZ(calc(var(--cube) / 2)); }
.build-face--3 { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); }
.build-face--4 { transform: rotateY(270deg) translateZ(calc(var(--cube) / 2)); }
.build-face--5 { transform: rotateX(90deg) translateZ(calc(var(--cube) / 2)); }
.build-face--6 { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); }

.build-face__icon { display: inline-flex; }
.build-face svg { width: 58px; height: 58px; color: var(--ice); stroke-width: 1.2; filter: drop-shadow(0 0 18px rgba(190, 230, 255, 0.45)); }
.build-face img { width: 70%; opacity: 0.85; }

.build-face__num {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(255, 255, 255, 0.4);
}

.build-shadow {
    position: absolute;
    left: 50%;
    bottom: -70px;
    width: 150%;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(190, 230, 255, 0.22), transparent);
    filter: blur(6px);
    transform: translateX(-50%);
}

/* Índice */
.construimos-list {
    display: block;
    list-style: none;
    counter-reset: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.construimos-item {
    position: relative;
    display: grid;
    grid-template-columns: 3.2rem 3.4rem minmax(0, 1fr) 2.6rem;
    align-items: center;
    gap: 1.2rem;
    min-height: clamp(150px, 24vh, 220px);
    padding: 1.6rem 0.4rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    opacity: 0.32;
    transition: opacity 0.7s var(--ease-out-expo);
}

.construimos-item:hover { transform: none; background: none; box-shadow: none; }

.construimos-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    transform-origin: 0 50%;
}

.construimos-item::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--ice), rgba(215, 239, 255, 0));
    box-shadow: 0 0 14px var(--ice-glow);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1.1s var(--ease-out-expo);
}

.construimos-item.is-active,
.construimos-item:hover { opacity: 1; }
.construimos-item.is-active::after { transform: scaleX(1); }

.build-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.3rem;
    color: rgba(215, 239, 255, 0.7);
}

.build-icon {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.5s ease, border-color 0.5s ease;
}

.construimos-item .build-icon svg {
    width: 22px;
    height: 22px;
    color: #fff;
    stroke-width: 1.6;
    transition: color 0.5s ease;
}

.construimos-item.is-active .build-icon {
    background: #fff;
    border-color: #fff;
    transform: rotate(-12deg) scale(1.06);
}

.construimos-item.is-active .build-icon svg { color: #000; }

.construimos-item .build-label {
    font-size: clamp(1.5rem, 2.7vw, 2.5rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
    transition: color 0.5s ease;
}

/* Transições de transform só depois da entrada (evita conflito com o GSAP) */
.construimos-item.is-ready .build-icon { transition: transform 0.8s var(--ease-out-expo), background-color 0.5s ease, border-color 0.5s ease; }
.construimos-item.is-ready .build-label { transition: transform 0.8s var(--ease-out-expo), color 0.5s ease; }

.construimos-item:hover .build-label { transform: translateX(12px); }
.construimos-item.is-active .build-label { color: #fff; text-shadow: 0 0 40px rgba(190, 230, 255, 0.15); }

.build-arrow { display: inline-flex; justify-self: end; }

.construimos-item .build-arrow svg {
    width: 26px;
    height: 26px;
    color: rgba(255, 255, 255, 0.4);
    stroke-width: 1.4;
    transform: rotate(45deg);
    transition: transform 0.8s var(--ease-out-expo), color 0.5s ease;
}

.construimos-item.is-active .build-arrow svg { transform: rotate(0deg); color: var(--ice); }

@media (max-width: 991px) {
    .construimos { padding: 110px 0; }
    .construimos-content { grid-template-columns: minmax(0, 1fr); }
    .construimos-text { text-align: left; }
    .construimos-text .section-title,
    .construimos-text .section-subtitle { text-align: left; margin-left: 0; padding: 0; }
    .construimos-text .section-kicker,
    .construimos-text .btn { margin-left: 0; }
    .build-stage { display: none; }
    .construimos-item { grid-template-columns: 2.2rem 2.8rem minmax(0, 1fr) 1.6rem; gap: 0.9rem; min-height: 120px; opacity: 0.45; }
    .build-icon { width: 2.8rem; height: 2.8rem; }
}

.preco-disclaimer {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Sobre — narrativa em capítulos ("a descida")
   ========================================================================== */
.sobre { padding: 160px 0 140px; }
.sobre::before { display: none; }

/* Medidor de profundidade lateral */
.sobre-depth {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    left: max(16px, calc((100vw - 1200px) / 2 - 72px));
    width: 44px;
    z-index: 2;
    pointer-events: none;
}

.sobre-depth__inner {
    position: sticky;
    top: 28vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sobre-depth__value {
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ice);
    letter-spacing: 0.04em;
}

.sobre-depth__value::before { content: '\2212'; }

.sobre-depth__track {
    position: relative;
    width: 1px;
    height: 34vh;
    background: rgba(255, 255, 255, 0.1);
}

.sobre-depth__fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fff, var(--ice));
    box-shadow: 0 0 12px var(--ice-glow);
    transform: scaleY(0);
    transform-origin: 50% 0;
}

.sobre-depth__label {
    writing-mode: vertical-rl;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

@media (min-width: 1360px) { .sobre-depth { display: block; } }

/* Manifesto */
.sobre-head {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.sobre-head .section-kicker { display: flex; margin: 0 auto; }

.sobre-head .section-title {
    display: block;
    font-size: clamp(1.1rem, 1.6vw, 1.35rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    margin: 1.4rem 0 2.2rem;
}

.sobre-intro {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #fff;
}

.sobre-intro strong { font-weight: 400; color: #fff; text-shadow: 0 0 50px rgba(190, 230, 255, 0.18); }

/* Capítulos */
.sobre-chapter {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    margin-top: clamp(8rem, 18vh, 13rem);
}

.sobre-chapter > :not(.chapter-label) { grid-column: 2; }

.sobre-chapter--purpose { grid-template-columns: 170px minmax(0, 1.45fr) minmax(0, 0.75fr); }
.sobre-chapter--purpose .logo-stage { width: min(380px, 100%); margin-left: auto; }
.sobre-chapter--purpose .chapter-body { grid-column: 2; align-self: center; }
.sobre-chapter--purpose .sobre-visual { grid-column: 3; grid-row: 1; }

.chapter-label {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: start;
    position: sticky;
    top: 24vh;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.chapter-num {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 5.5rem;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(215, 239, 255, 0.55);
}

.chapter-line {
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, var(--ice), transparent);
    transform-origin: 0 50%;
}

.chapter-name {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.chapter-title {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
}

.chapter-lead {
    max-width: 760px;
    font-size: clamp(1.6rem, 2.7vw, 2.5rem);
    font-weight: 500;
    line-height: 1.28;
    letter-spacing: -0.025em;
    color: #fff;
}

.chapter-lead strong,
.philo-lead strong {
    font-weight: 600;
    color: var(--ice);
    background: linear-gradient(90deg, var(--ice), var(--ice)) 0 100% / 0% 1px no-repeat;
    transition: background-size 1.4s var(--ease-out-expo);
}

.philo-lead strong { color: #fff; }

.is-inview strong { background-size: 100% 1px; }

.chapter-text {
    max-width: 560px;
    margin-top: 2rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.chapter-text--closing { margin-top: 3.5rem; max-width: 620px; }
.chapter-text--offset { justify-self: end; margin-top: 4rem; }

/* Equação do modelo */
.model-equation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(220px, 280px);
    align-items: center;
    gap: 1.6rem;
    margin-top: 3rem;
    perspective: 1200px;
}

.model-criteria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.criterion {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.6rem;
    min-height: 150px;
    padding: 1.3rem 1.2rem;
    border-radius: 18px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: border-color 0.5s ease, box-shadow 0.5s ease;
}

.criterion:hover {
    border-color: rgba(215, 239, 255, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(190, 230, 255, 0.08);
}

.criterion__icon,
.belief__icon { display: inline-flex; width: fit-content; }

.criterion svg { width: 26px; height: 26px; color: var(--ice); stroke-width: 1.5; }
.criterion > span:last-child { font-weight: 600; line-height: 1.35; }

.criterion__num {
    position: absolute;
    top: 1rem;
    right: 1.1rem;
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(255, 255, 255, 0.3);
}

.model-equals {
    font-family: var(--font-display);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--ice);
    text-shadow: 0 0 30px var(--ice-glow);
}

.model-result {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 2rem 1.8rem;
    border-radius: 22px;
    background: linear-gradient(150deg, #fff, var(--ice));
    color: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 70px rgba(190, 230, 255, 0.25);
    overflow: hidden;
}

.model-result::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-20deg);
    animation: resultShine 4s var(--ease-in-out-expo) infinite;
}

@keyframes resultShine {
    0%, 55% { left: -60%; }
    100% { left: 140%; }
}

.model-result__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

.model-result__value {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.05;
}

.model-result__icon {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

/* Filosofia */
.philo-statement { margin-top: 5rem; }

.philo-lead {
    font-size: clamp(1.25rem, 1.9vw, 1.6rem);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
}

.philo-words {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.32em;
    font-size: clamp(3.2rem, 8.6vw, 8.4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.055em;
}

.philo-word { display: inline-block; }
.philo-word--cold { color: var(--ice); text-shadow: 0 0 60px var(--ice-glow); }
.philo-word--dark { color: rgba(255, 255, 255, 0.16); }
.philo-word--danger { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -0.02em; color: #fff; }

.philo-bridge {
    margin-top: 2rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--ice);
}

/* Citação */
.sobre-pullquote {
    position: relative;
    max-width: 1000px;
    margin: clamp(9rem, 20vh, 14rem) auto 0;
    text-align: center;
}

.sobre-pullquote__mark {
    position: absolute;
    top: -0.42em;
    left: 50%;
    font-family: var(--font-display);
    font-size: clamp(10rem, 22vw, 18rem);
    line-height: 1;
    color: var(--ice);
    opacity: 0.16;
    transform: translateX(-50%);
    pointer-events: none;
}

.sobre-pullquote__text {
    position: relative;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(2rem, 4.2vw, 3.6rem);
    line-height: 1.18;
    letter-spacing: -0.015em;
}

/* Crenças */
.sobre-beliefs { margin-top: 5rem; }

.beliefs-lead {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.4rem;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.belief {
    position: relative;
    display: grid;
    gap: 1.1rem;
    padding-top: 1.6rem;
}

.belief::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(215, 239, 255, 0.6), rgba(255, 255, 255, 0.06));
    transform-origin: 0 50%;
    transform: scaleX(var(--line, 1));
}

.belief__num { font-family: var(--font-display); font-style: italic; color: rgba(255, 255, 255, 0.35); }
.belief svg { width: 28px; height: 28px; color: var(--ice); stroke-width: 1.4; }
.belief p { font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }

/* Números */
.sobre .stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    gap: 0;
    margin-top: clamp(7rem, 16vh, 11rem);
    border-block: 1px solid rgba(255, 255, 255, 0.08);
}

.sobre .stat-item {
    padding: 3rem 1rem;
    background: none;
    border: 0;
    border-radius: 0;
    text-align: center;
}

.sobre .stat-item + .stat-item { border-left: 1px solid rgba(255, 255, 255, 0.08); }

.sobre .stat-number {
    font-size: clamp(4rem, 10vw, 8.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 30%, rgba(215, 239, 255, 0.25));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
}

.sobre .stat-label {
    margin-top: 0.8rem;
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .sobre-chapter,
    .sobre-chapter--purpose { grid-template-columns: minmax(0, 1fr); }
    .sobre-chapter > :not(.chapter-label),
    .sobre-chapter > .chapter-label,
    .sobre-chapter--purpose .chapter-body,
    .sobre-chapter--purpose .sobre-visual { grid-column: 1; grid-row: auto; }
    .chapter-label { position: static; flex-direction: row; align-items: center; margin-bottom: 1.8rem; }
    .chapter-num { font-size: 3.4rem; }
    .chapter-text--offset { justify-self: start; }
    .sobre-chapter--purpose .sobre-visual { margin-top: 3rem; }
    .model-equation { grid-template-columns: minmax(0, 1fr); }
    .model-equals { justify-self: center; transform: rotate(90deg); }
}

@media (max-width: 640px) {
    .sobre { padding: 110px 0 90px; }
    .model-criteria { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .criterion { min-height: 130px; }
    .beliefs-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .sobre .stat-item { padding: 2.2rem 0.5rem; }
    .chapter-text { font-size: 1.05rem; }
}

/* ---------- Logo em palco 3D ---------- */
.sobre-visual { perspective: 1200px; height: auto; }

/* Pinguim 3D: área reservada no layout; a cena WebGL desenha o modelo sobre ela */
@media (min-width: 992px) {
    .sobre-chapter--purpose { grid-template-columns: 170px minmax(0, 1.2fr) minmax(0, 1fr); }
    .sobre-chapter--purpose .sobre-visual { align-self: center; }
}

.penguin-anchor {
    position: relative;
    width: 100%;
    height: clamp(480px, 78vh, 780px);
    display: grid;
    place-items: center;
}

.penguin-fallback { width: min(320px, 80%); opacity: 0.9; }
.has-webgl .penguin-anchor:not(.is-fallback) .penguin-fallback { visibility: hidden; }

.penguin-loader {
    position: absolute;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: var(--ice);
    animation: penguinSpin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.has-webgl .penguin-anchor:not(.is-loaded) .penguin-loader { opacity: 1; }

@keyframes penguinSpin { to { transform: rotate(360deg); } }

@media (max-width: 991px) {
    .penguin-anchor { height: clamp(420px, 70vh, 560px); }
}

.logo-stage {
    width: min(460px, 92%);
    aspect-ratio: 1;
    transform-style: preserve-3d;
}

.logo-tilt {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    transform-style: preserve-3d;
}

.logo-stage .logo-image {
    position: relative;
    width: 78%;
    transform: translateZ(70px);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 30px rgba(190, 230, 255, 0.18));
}

.logo-glow {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(190, 230, 255, 0.22), transparent 65%);
    filter: blur(20px);
    transform: translateZ(-60px);
}

.logo-ring {
    position: absolute;
    inset: 4%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transform-style: preserve-3d;
}

.logo-ring::after {
    content: '';
    position: absolute;
    top: -4px;
    left: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 18px #fff, 0 0 40px var(--ice);
}

.logo-ring.r1 { animation: ringA 16s linear infinite; }
.logo-ring.r2 { inset: 14%; border-style: dashed; border-color: rgba(255, 255, 255, 0.12); animation: ringB 22s linear infinite; }
.logo-ring.r2::after { width: 5px; height: 5px; left: calc(50% - 2.5px); top: -3px; }
.logo-ring.r3 { inset: -6%; border-color: rgba(190, 230, 255, 0.14); animation: ringC 30s linear infinite; }

@keyframes ringA { from { transform: rotateX(70deg) rotateZ(0deg); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes ringB { from { transform: rotateY(66deg) rotateZ(0deg); } to { transform: rotateY(66deg) rotateZ(-360deg); } }
@keyframes ringC { from { transform: rotateX(-58deg) rotateY(24deg) rotateZ(0deg); } to { transform: rotateX(-58deg) rotateY(24deg) rotateZ(360deg); } }

/* ---------- Contato ---------- */
.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.035);
    border-color: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(215, 239, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(190, 230, 255, 0.08), 0 0 40px rgba(190, 230, 255, 0.1);
}

.info-icon { transition: transform 0.7s var(--ease-out-expo), background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.info-item:hover .info-icon { transform: rotate(-8deg) scale(1.1); }

/* ---------- Footer ---------- */
.footer { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 35%); }

.footer-giant {
    margin: 1rem 0 2rem;
    font-size: clamp(3.5rem, 19vw, 15rem);
    font-weight: 800;
    letter-spacing: -0.065em;
    line-height: 0.82;
    text-align: center;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.92);
    user-select: none;
}

.footer-giant .sc {
    padding: 0.14em 0.1em;
    margin: -0.14em -0.1em;
    background: linear-gradient(180deg, #fff 15%, rgba(215, 239, 255, 0.45) 60%, rgba(255, 255, 255, 0.04) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-giant .sw { clip-path: inset(-0.4em -0.5em -0.2em -0.5em); }

.footer-giant .sw:last-child .sc {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .hero-title { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65); }
    .scroll-indicator { display: none; }
    .marquee { padding: 1.2rem 0; }
    .servicos { padding-top: 110px; }
    .servico-index { top: 1.6rem; right: 1.6rem; }
    .logo-stage { width: min(320px, 86%); }
    .preco-card.featured { border-width: 2px; }
}

/* ---------- Acessibilidade ---------- */
@media (prefers-reduced-motion: reduce) {
    .grain,
    .logo-ring,
    .preco-card.featured,
    .badge,
    .scroll-indicator .mouse { animation: none !important; }
}
