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

:root {
    --white: #f5f5f7;
    --black: #0a0a0a;
    --accent: #2997ff;

    --moldura-scale: 1.04;      /* quão maior que o frame a moldura é (1.35 = 35% maior) */
    --moldura-top-offset: -14%; 
}

/* Garante que nada corte o overflow no caminho */
.outdoor-overlay {
    overflow: visible !important;
}

html { scroll-behavior: auto; }

body {
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', -apple-system, sans-serif;
    overflow-x: hidden;
}

/* ─── PIN WRAPPER ─────────────────────────────────────────────── */
.pin-wrapper {
    position: relative;
    height: 600vh; /* Altura total do scroll virtual */
}

.sticky-canvas {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── PRODUCT VISUAL ─────────────────────────────────────────── */
.product-visual {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ─── SCENE CARDS ─────────────────────────────────────────────── */
.scene-card {
    position: absolute;
    max-width: 480px;
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
    z-index: 10;
    pointer-events: none;
}

.scene-card.pos-center {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background-color: rgba(245,245,247,0.25);
    backdrop-filter: blur(6px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(40px);
    -webkit-border-radius: 12px;
    -moz-border-radius: 12px;
    -ms-border-radius: 12px;
    -o-border-radius: 12px;
}
.scene-card.pos-right {
    right: 8%;
    top: 50%;
    transform: translateY(calc(-50% + 40px));
    text-align: right;
}
.scene-card.pos-left {
    left: 8%;
    top: 50%;
    transform: translateY(calc(-50% + 40px));
}

.scene-card h1 {
    font-size: clamp(2.5rem, 2vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--black);
}
.scene-card h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1rem;
}
.scene-card p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 300;
    color: rgba(245,245,247,0.7);
    line-height: 1.6;
    margin-top: 0.75rem;
}
.scene-card .tagline {
    font-size: clamp(0.9rem, 1.4vw, 1rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-top: 0.5rem;
}

/* ─── OUTDOOR OVERLAY ─────────────────────────────────────────── */
.outdoor-overlay {
    position: absolute;
    inset: 0;
    opacity: 1;           /* sempre visível — controle via filhos */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: transparent; /* sem fundo escuro — troca é direta */
}

.outdoor-frame {
    position: absolute;  /* precisa ser absolute para o top funcionar */
    overflow: visible !important;
    left: 50%;
    transform: translateX(-50%);
    /* width e top são definidos via JS em CONFIG.outdoorWidth / CONFIG.outdoorTop */
    /* transform-origin também definida via JS: 'top center' */
}

.outdoor-frame img.outdoor-bg {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    object-fit: contain;
}

.outdoor-frame img.outdoor-moldura {
    position: absolute;
    inset: 0;
    object-fit: contain;
    pointer-events: none;
    z-index: 2;
    pointer-events: none;
    /* Centraliza e escala para ser maior que o container */
    width: calc(100% * var(--moldura-scale));
    height: auto;
    /* Alinha ao topo com offset ajustável */
    top: var(--moldura-top-offset);
    /* Centraliza horizontalmente ao redor do container */
    left: 50%;
    transform: translateX(-50%);
}

/* ─── CTA SECTION ───────────────────────────────────────────── */
.cta-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 40%, #1a1a2e 0%, var(--black) 100%);
}

/* Light Waves */
.light-waves { position: absolute; inset: 0; pointer-events: none; }
.wave {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(41, 151, 255, 0.08);
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
}
.wave:nth-child(1) { width: 30vw; height: 30vw; }
.wave:nth-child(2) { width: 55vw; height: 55vw; }
.wave:nth-child(3) { width: 80vw; height: 80vw; }

/* CTA Card */
.cta-card {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(50px);
}

.cta-tags { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.cta-tag {
    background: rgba(41, 151, 255, 0.1);
    border: 1px solid rgba(41, 151, 255, 0.3);
    color: var(--accent);
    padding: 0.25rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cta-title {
    font-size: clamp(2.5rem, 4.5vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 1.25rem;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(245,245,247,0.6);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--black);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(41, 151, 255, 0.25);
}

.cta-price {
    margin-top: 1.5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
}
.cta-installments {
    font-size: 0.9rem;
    color: rgba(245,245,247,0.45);
    margin-top: 0.3rem;
}

/* Frame Indicator (debug) */
.frame-indicator {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    font-family: monospace;
    letter-spacing: 0.05em;
}
