:root {
    --bg: #0b121d;
    --accent: #cb772c;
    --accent-light: #e59e5e;
    --white: #ffffff;
    --text-muted: #a0aec0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 3rem;
    --radius-md: 2rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* ─── Welcome / Typeform Screen ─── */
#welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#welcome-screen.wf-exit {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

#welcome-screen.wf-hidden {
    display: none;
}

.wf-logo-top {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.wf-logo-top img {
    height: 36px;
    opacity: 0.7;
}

.wf-content {
    width: 100%;
    max-width: 580px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.wf-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wf-label span {
    margin-left: 0.3rem;
}

.wf-question {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
}

.wf-input {
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 300;
    padding: 0.6rem 0;
    outline: none;
    width: 100%;
    transition: border-color 0.3s ease;
    caret-color: var(--accent);
}

.wf-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.wf-input:focus {
    border-bottom-color: var(--accent);
}

.wf-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: -0.4rem;
}

.wf-hint strong {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
}

.wf-btn {
    align-self: flex-start;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s ease, transform 0.1s ease;
}

.wf-btn:hover {
    background: var(--accent-light);
}

.wf-btn:active {
    transform: scale(0.97);
}

/* ─── Pronoun Selector ─── */
.wf-pronoun-group {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.2rem;
}

.wf-pronoun {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    letter-spacing: 0.02em;
}

.wf-pronoun:hover {
    border-color: rgba(255,255,255,0.45);
    color: var(--white);
}

.wf-pronoun--active {
    border-color: var(--accent);
    background: rgba(203, 119, 44, 0.15);
    color: var(--white);
}

/* ─── Hero Welcome Text ─── */
.hero-welcome {
    font-size: 3rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    min-height: 1.5em;
}

.hero-sub {
    font-size: 2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: -0.01em;
    line-height: 1.4;
    margin-top: 0;
    margin-bottom: 6rem;
}

html, body {
    height: 100%;
    overflow: hidden;
    background-color: var(--bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

main {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.noise-overlay {
    display: none;
}

.slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1100;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.5);
    box-shadow: 0 0 15px var(--accent);
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 18, 29, 0.8);
    z-index: 2;
}

.overlay.dark { background: rgba(12, 18, 29, 0.9); }

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 2rem;
}

/* Slide 1: Hero V4 */
.hero-content.v4 {
    text-align: center;
    z-index: 1000;
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.logo-wrapper {
    margin-top: 1rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.grid-main-logo {
    max-width: 750px;
    width: 90%;
    height: auto;
    filter: drop-shadow(0 0 50px rgba(233, 174, 117, 0.4));
}

.hero-slogan {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--white);
    line-height: 1.4;
    margin-bottom: 5rem;
    letter-spacing: -0.01em;
}

/* ─── iPad Mockup ─── */
.ipad-mockup {
    margin: 2rem auto 0;
    display: flex;
    justify-content: center;
}

.ipad-frame {
    position: relative;
    width: min(700px, 85vw);
    aspect-ratio: 4 / 3;
    background: #1a1a2e;
    border-radius: 28px;
    border: 10px solid #2e2e3e;
    box-shadow:
        0 0 0 2px #111,
        0 40px 80px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 12px 10px;
    gap: 8px;
}

.ipad-camera {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2a2a3a;
    border: 1px solid #111;
    flex-shrink: 0;
}

.ipad-screen {
    flex: 1;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.ipad-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ipad-home-bar {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.scroll-indicator-v4 {
    position: absolute;
    bottom: -10vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
}

.scroll-indicator-v4 span { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; }

.arrow {
    width: 18px; height: 18px;
    border-bottom: 2px solid white; border-right: 2px solid white;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) rotate(45deg);}
    40% {transform: translateY(-10px) rotate(45deg);}
    60% {transform: translateY(-5px) rotate(45deg);}
}

/* Slide 2: Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-left: 1px solid rgba(255,255,255,0.12);
}

.stat-item:first-child {
    border-left: none;
}

.stat-item .number {
    display: block;
    font-size: clamp(4rem, 7vw, 6.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.28px;
}

.stat-item p {
    font-size: 17px;
    color: var(--text-muted);
    letter-spacing: -0.374px;
    line-height: 1.47;
    font-weight: 400;
    text-transform: none;
}

/* Slide 3: Quality V4.1 */
.quality-v4 {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: center;
    height: 100%;
    gap: 1.5rem 3rem;
}

.quality-v4 .section-title {
    grid-column: 1 / -1;
}

.factory-video-wrap {
    grid-column: 1;
    grid-row: 2;
}

.quality-info-v4 {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    align-items: center;
}

/* ─── Factory Video + Progress Slider (slide 3) ─── */
.factory-video-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.factory-video-v4 {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    object-fit: cover;
    display: block;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
}

/* ─── Progress Slider ─── */
.video-progress-wrap {
    padding: 0.5rem 0;
    cursor: pointer;
}

.video-progress-track {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    transition: height 80ms, margin 80ms;
}

.video-progress-wrap:hover .video-progress-track {
    height: 8px;
}

.video-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: var(--white);
    border-radius: 20px;
    transition: width 0.25s linear;
}

.video-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.15s ease, width 0.1s ease, height 0.1s ease;
    pointer-events: none;
}

.video-progress-wrap:hover .video-progress-thumb {
    opacity: 1;
}

.video-progress-wrap:hover .video-progress-thumb:hover {
    width: 18px;
    height: 18px;
}

/* Lista de qualidade (slide 3) — badges numerados em coluna */
.quality-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    list-style: none;
    width: 280px;
    padding: 0;
    margin: 0;
}

.quality-features li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.98rem;
    line-height: 1.35;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 0.85rem;
    padding: 0.7rem 0.9rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.quality-features li:hover {
    border-color: rgba(203, 119, 44, 0.4);
    background: rgba(255, 255, 255, 0.04);
}

.qf-num {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.qf-text { flex: 1; }

/* Slide 4: Horizontal Stepper */
.stepper-h {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
}

.stepper-track {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.sh-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
    cursor: pointer;
    flex: 1;
    max-width: 160px;
    transition: opacity 0.3s ease;
}

.sh-circle-wrap {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sh-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-muted);
    background: transparent;
    transition: all 0.4s ease;
}

.sh-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.sh-connector {
    flex: 1;
    height: 2px;
    background: var(--glass-border);
    margin-top: 32px;
    transition: background 0.4s ease;
}

.sh-connector--done {
    background: rgba(203, 119, 44, 0.5);
}

/* Hover */
.sh-step:hover .sh-circle {
    border-color: rgba(203, 119, 44, 0.4);
    color: rgba(203, 119, 44, 0.5);
}

/* Done — steps before the active one */
.sh-step.state-done .sh-circle {
    border-color: rgba(203, 119, 44, 0.55);
    color: rgba(203, 119, 44, 0.8);
}
.sh-step.state-done .sh-label {
    color: rgba(203, 119, 44, 0.7);
}

/* Active — the clicked step */
.sh-step.state-active .sh-circle {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 6px rgba(203, 119, 44, 0.12), 0 0 40px rgba(203, 119, 44, 0.35);
    animation: pulse-gold 2.5s infinite;
}
.sh-step.state-active .sh-label {
    color: var(--white);
    font-weight: 700;
}

/* Upcoming — steps after active */
.sh-step.state-upcoming {
    opacity: 0.3;
}
.sh-step.state-upcoming:hover {
    opacity: 0.55;
}

/* Detail card */
.sh-detail-card {
    background: rgba(203, 119, 44, 0.04);
    border: 1px solid rgba(203, 119, 44, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    min-height: 140px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sh-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3rem;
    right: 3rem;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.detail-step-num {
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.detail-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.detail-text {
    font-size: 1rem;
    line-height: 1.47;
    color: var(--text-muted);
}

@keyframes pulse-gold {
    0%   { box-shadow: 0 0 0 6px rgba(203, 119, 44, 0.12), 0 0 40px rgba(203, 119, 44, 0.35); }
    60%  { box-shadow: 0 0 0 14px rgba(203, 119, 44, 0), 0 0 40px rgba(203, 119, 44, 0.2); }
    100% { box-shadow: 0 0 0 6px rgba(203, 119, 44, 0.12), 0 0 40px rgba(203, 119, 44, 0.35); }
}

/* ─── Slide 5: Projetos entregues (carrossel Netflix-style) ─── */
#slide-5 {
    overflow: hidden;
    padding: 4rem 0;
}

.projects-wrap {
    width: 100%;
    max-width: 100vw;
    z-index: 10;
    position: relative;
}

#slide-5 .section-title {
    margin-bottom: 2.5rem;
}

.projects-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0, 0, 0, 0.35) 4%,
        #000 14%,
        #000 86%,
        rgba(0, 0, 0, 0.35) 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0, 0, 0, 0.35) 4%,
        #000 14%,
        #000 86%,
        rgba(0, 0, 0, 0.35) 96%,
        transparent 100%
    );
}

.projects-track {
    display: flex;
    gap: 3.5rem;
    padding: 2rem 0;
    will-change: transform;
    align-items: center;
}

/* Setas de navegação (Netflix-style) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(11, 18, 29, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--white);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
    /* Mantém o ícone bem centralizado mesmo quando o transform anima */
    padding: 0;
}

.carousel-nav--prev { left: 1.5rem; }
.carousel-nav--next { right: 1.5rem; }

/* Setas só aparecem quando o cursor entra no viewport */
.projects-viewport:hover .carousel-nav,
.reviews-viewport:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: var(--accent);
    border-color: var(--accent-light);
    transform: translateY(-50%) scale(1.08);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav svg { display: block; }

.iphone-video {
    /* Mantém a proporção 9:16 dos celulares.
       Cada card usa altura como referência, e a largura sai do aspect-ratio.
       Aumentamos a altura para ter cards maiores e mostrar apenas
       2 em destaque + peek dos laterais. */
    flex: 0 0 auto;
    height: 70vh;
    aspect-ratio: 9/16;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: #000;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    transform-origin: center center;
}

.iphone-video:hover {
    border-color: rgba(203, 119, 44, 0.45);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(203, 119, 44, 0.2);
}

/* Quando o mouse está num card específico, traz pra escala de destaque */
.iphone-video.is-hovered {
    opacity: 1 !important;
    transform: scale(1.08) translateY(-4px) !important;
    z-index: 20;
}

.iphone-video video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Slide 7: Closing */
.closing-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; text-align: center; }

/* ─── Slide 6: Avaliações (carrossel Netflix-style) ─── */
#slide-6 {
    background:
        radial-gradient(circle at 20% 0%, rgba(203, 119, 44, 0.08), transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(203, 119, 44, 0.06), transparent 55%),
        var(--bg);
    /* Permite que o track sangre nas bordas (efeito peek das laterais) */
    overflow: hidden;
    padding: 4rem 0;
}

.reviews-wrap {
    width: 100%;
    max-width: 100vw;
    z-index: 10;
    position: relative;
}

.reviews-eyebrow {
    text-align: center;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

#slide-6 .section-title {
    font-size: 2.6rem;
    margin-bottom: 2.5rem;
    color: var(--white);
    text-transform: none;
    letter-spacing: -0.01em;
}

/* Viewport com fade nas laterais para o efeito Netflix peek */
.reviews-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Mascara as bordas — cards saindo/entrando ficam translúcidos */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0, 0, 0, 0.35) 4%,
        #000 14%,
        #000 86%,
        rgba(0, 0, 0, 0.35) 96%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        rgba(0, 0, 0, 0.35) 4%,
        #000 14%,
        #000 86%,
        rgba(0, 0, 0, 0.35) 96%,
        transparent 100%
    );
}

.reviews-track {
    display: flex;
    gap: 3.5rem;
    /* Padding vertical maior para acomodar a escala 1.08 dos cards de destaque
       sem que eles sejam cortados pelas bordas do viewport. */
    padding: 2rem 0;
    will-change: transform;
}

.review-card {
    /* 3 cards visíveis + ~10% do próximo aparecendo de cada lado.
       Subtrai os gaps (3.5rem × ~3 entre cards visíveis) antes de dividir. */
    flex: 0 0 calc((100vw - 14rem) / 3.4);
    max-width: 400px;
    min-width: 240px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* O JS aplica scale + opacity no transform inline; aqui só transicionamos
       suavemente eles, e separadamente a borda/fundo no hover. */
    transition:
        opacity 0.45s ease,
        transform 0.45s ease,
        border-color 0.4s ease,
        background 0.4s ease;
    transform-origin: center center;
}

.review-card:hover {
    border-color: rgba(203, 119, 44, 0.45);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(203, 119, 44, 0.15);
}

/* Quando o mouse está num card específico (mesmo lateral), traz ele
   para 100% de opacidade e escala de destaque — sobrescreve o inline do JS. */
.review-card.is-hovered {
    opacity: 1 !important;
    transform: scale(1.08) translateY(-4px) !important;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.review-meta { line-height: 1.3; }

.review-name {
    color: var(--white);
    font-weight: 600;
    font-size: 0.98rem;
}

.review-sub {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.review-stars {
    color: var(--accent);
    letter-spacing: 0.15em;
    font-size: 0.95rem;
}

.review-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
    line-height: 1.6;
    flex: 1;
}

.review-foot {
    color: var(--text-muted);
    font-size: 0.75rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}


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

    .slide { padding: 2rem 1.25rem; }

    /* Hero */
    .hero-slogan { font-size: 2.2rem; margin-bottom: 3rem; }
    .grid-main-logo { max-width: 90%; }

    /* Section titles */
    .section-title { font-size: 2.2rem; }
    .closing-title { font-size: 2.2rem; }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; gap: 0; }
    .stat-item { border-left: none; border-top: 1px solid rgba(255,255,255,0.12); padding: 1.5rem; }
    .stat-item:first-child { border-top: none; }
    .stat-item .number { font-size: 4.5rem; }

    /* ── Slide 3 (Qualidade) no mobile ── */
    /* Permite altura natural do conteúdo se passar de 100vh em telas baixas */
    #slide-3 {
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
        overflow-y: auto;
    }
    /* Layout vira uma coluna: título → vídeo dominante → lista limpa */
    .quality-v4 {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        height: auto;
        padding: 0;
    }
    .quality-v4 .section-title {
        font-size: 1.6rem;
        margin-bottom: 0;
        text-align: center;
    }
    .factory-video-wrap {
        width: 100%;
        order: 2;
    }
    .factory-video-v4 {
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 1.25rem;
        box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    }
    .quality-info-v4 {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .quality-features {
        width: 100%;
        max-width: 360px;
        gap: 0.65rem;
    }
    .quality-features li {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
        gap: 0.75rem;
    }
    .qf-num {
        flex: 0 0 26px;
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
    /* Compatibilidade com a antiga .bullet-list-horizontal (caso alguma parte ainda referencie) */
    .bullet-list-horizontal { flex-direction: column; align-items: stretch; width: 100%; }
    .bullet-list-horizontal li { text-align: center; }

    /* Stepper — vertical no mobile */
    .stepper-h { gap: 1.5rem; }
    .stepper-track { flex-direction: column; align-items: stretch; gap: 0; }

    .sh-step {
        flex-direction: row;
        width: 100%;
        gap: 1rem;
        padding: 0.5rem 0;
        align-items: center;
    }
    .sh-circle-wrap { height: auto; flex-shrink: 0; }
    .sh-label { text-align: left; font-size: 0.9rem; }

    /* Conector vertical alinhado ao centro do círculo */
    .sh-connector {
        width: 2px;
        height: 24px;
        margin-top: 0;
        margin-left: 27px;
        align-self: stretch;
        flex: none;
    }

    .sh-detail-card { padding: 1.5rem 1.25rem; min-height: auto; }
    .detail-title { font-size: 1.1rem; }

    /* ── Carrossel de projetos no mobile ── */
    #slide-5 {
        padding: 1.5rem 0;
        /* Permite que viewport e setas trabalhem em coluna */
        flex-direction: column;
    }
    #slide-5 .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.25rem;
        letter-spacing: -0.01em;
    }
    .projects-wrap {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .projects-track {
        /* Gap maior para criar respiro entre o card central e os vizinhos
           que ficam quase invisíveis nas laterais. */
        gap: 2rem;
        padding: 1rem 0;
        align-items: center;
    }
    .iphone-video {
        /* No mobile, fixamos a LARGURA (não a altura) para garantir que
           apenas 1 celular protagonista caiba na tela. O aspect-ratio 9:16
           já está definido na regra base, então a altura sai automaticamente. */
        width: 70vw;
        max-width: 320px;
        height: auto;
        flex: 0 0 70vw;
        border-radius: 1.75rem;
        box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    }

    /* Setas no mobile: embaixo do card, centralizadas, em barra de controle.
       Fora do caminho do conteúdo principal. */
    #slide-5 .projects-viewport .carousel-nav,
    #slide-6 .reviews-viewport .carousel-nav {
        opacity: 1;
        width: 38px;
        height: 38px;
        background: rgba(11, 18, 29, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.18);
        /* Posiciona logo abaixo do card, fora dele */
        top: auto;
        bottom: 0.5rem;
        transform: none;
    }
    #slide-5 .projects-viewport .carousel-nav--prev,
    #slide-6 .reviews-viewport .carousel-nav--prev {
        left: 30%;
    }
    #slide-5 .projects-viewport .carousel-nav--next,
    #slide-6 .reviews-viewport .carousel-nav--next {
        right: 30%;
    }
    #slide-5 .projects-viewport .carousel-nav:hover,
    #slide-5 .projects-viewport .carousel-nav:active,
    #slide-6 .reviews-viewport .carousel-nav:hover,
    #slide-6 .reviews-viewport .carousel-nav:active {
        transform: scale(0.95);
        background: var(--accent);
    }
    /* Reserva espaço pras setas no fundo do viewport */
    .projects-viewport,
    .reviews-viewport {
        padding-bottom: 3.25rem;
    }
    .carousel-nav svg { width: 18px; height: 18px; }

    /* ── Avaliações no mobile ── */
    #slide-6 { padding: 2.5rem 0; }
    #slide-6 .section-title {
        font-size: 1.7rem;
        margin-bottom: 1.25rem;
    }
    .reviews-eyebrow { font-size: 0.7rem; letter-spacing: 0.16em; }
    .reviews-track {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .review-card {
        flex: 0 0 82vw;
        min-width: 0;
        max-width: 360px;
        padding: 1.4rem 1.25rem 1.2rem;
        gap: 0.85rem;
        border-radius: 1.1rem;
    }
    .review-text { font-size: 0.9rem; line-height: 1.55; }
    .review-name { font-size: 0.95rem; }
    .review-sub { font-size: 0.75rem; }
}

.fade-up { opacity: 0; transform: translateY(40px); transition: all 0.8s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
