﻿:root {
    --bg: #050d1a;
    --ink: #f5f7fb;
    --mute: rgba(245, 247, 251, 0.68);
    --red: #e10600;
    --red-2: #ff2d24;
    --navy: #0a1630;
    --line: rgba(255, 255, 255, 0.14);
    --cyan: #4ec4ff;
    --topbar: #e8eef6;
    --topbar-ink: #0a1628;
    --topbar-height: 4.75rem;
    --display: "Sora", "Segoe UI", sans-serif;
    --body: "Outfit", "Segoe UI", sans-serif;
}

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

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    overflow: hidden;
}

/* Páginas de conteúdo/legal precisam rolar — html também, senão o scroll trava */
html:has(body.content-page),
html:has(body.legal) {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.content-page,
body.legal {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

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

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--red-2);
    outline-offset: 3px;
}

/* ===== CINEMA (Ken Burns + ondas) ===== */
.cinema {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: var(--bg);
    overflow: hidden;
}

.cinema-video,
.cinema-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    will-change: opacity, transform;
}

.cinema-video {
    opacity: 0.26;
    filter: saturate(0.85) contrast(1.05) brightness(0.85);
}

.cinema.has-video .cinema-video { opacity: 0.28; }
.cinema.has-video .cinema-photo { opacity: 0; }

.cinema-photo {
    opacity: 0.32;
    background: url("/assets/show/logistics-poster.webp") center / cover no-repeat;
    animation: ken 28s ease-in-out infinite alternate;
    filter: saturate(0.9) brightness(0.9);
}

.cinema-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.cinema-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 70% 40%, rgba(225, 6, 0, 0.12), transparent 60%),
        radial-gradient(ellipse 50% 45% at 15% 70%, rgba(78, 196, 255, 0.1), transparent 55%);
}

.cinema-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(105deg, rgba(5, 13, 26, 0.9) 0%, rgba(5, 13, 26, 0.5) 45%, rgba(5, 13, 26, 0.78) 100%),
        linear-gradient(180deg, rgba(5, 13, 26, 0.55) 0%, rgba(5, 13, 26, 0.18) 40%, rgba(5, 13, 26, 0.88) 100%);
}

.cinema-grain {
    position: absolute;
    inset: 0;
    opacity: 0.07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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");
}

@keyframes ken {
    from { transform: scale(1.06) translate3d(0, 0, 0); }
    to { transform: scale(1.14) translate3d(-1.8%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .cinema-video { display: none; }
    .cinema-photo {
        opacity: 0.3;
        animation: none !important;
    }
    .cinema-wave { opacity: 0.35; }
}

/* ===== TOPBAR FIXO (igual em todas as páginas) ===== */
.nav,
.content-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--topbar-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
    background: var(--topbar);
    border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    box-shadow: 0 8px 24px rgba(5, 13, 26, 0.12);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    max-width: min(17.5rem, 46vw);
}

.nav-brand img {
    width: auto;
    height: 3.5rem;
    max-width: 100%;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    gap: 0.55rem;
    flex-shrink: 0;
}

.nav-links,
.nav-explore {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.15rem clamp(0.55rem, 1.6vw, 1.1rem);
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.nav-links a,
.nav-explore a {
    position: relative;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(10, 22, 40, 0.62);
    padding: 0.35rem 0;
    transition: color .15s ease;
}

.nav-links a:hover,
.nav-explore a:hover { color: var(--topbar-ink); }

.nav-links a[aria-current="page"],
.nav-explore a[aria-current="page"] {
    color: var(--topbar-ink);
}

.nav-links a[aria-current="page"]::after,
.nav-explore a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
}

/* Conteúdo abaixo do topbar fixo (home overlaya o cinema) */
body.content-page,
body.legal {
    padding-top: var(--topbar-height);
}

.text-link {
    display: inline-flex;
    margin-top: 0.25rem;
    font-weight: 700;
    color: #ffb2ae;
    letter-spacing: 0.01em;
}

.text-link:hover { color: #fff; }

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.panel.center .cta-row { justify-content: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn.solid {
    background: linear-gradient(135deg, var(--red-2), var(--red));
    color: #fff;
    box-shadow: 0 12px 30px rgba(225, 6, 0, 0.35);
}

.btn.ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
}

.btn.lg {
    min-height: 3.15rem;
    padding-inline: 1.5rem;
    font-size: 1.02rem;
}

/* ===== DOTS ===== */
.dots {
    position: fixed;
    right: clamp(0.7rem, 2vw, 1.4rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    display: grid;
    gap: 0.55rem;
}

.dot {
    width: 0.5rem;
    height: 0.5rem;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: height .2s ease, background .2s ease;
}

.dot.is-on {
    height: 1.5rem;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.18);
}

/* ===== DECK / SLIDES ===== */
.deck {
    position: relative;
    z-index: 1;
    height: 100dvh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    padding: 5.5rem clamp(1.25rem, 5vw, 4.5rem) 2.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility 0s linear .5s;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.panel {
    width: min(1120px, 100%);
    max-height: calc(100dvh - 7rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.95rem, 2.2vh, 1.45rem);
}

.panel.center { margin-inline: auto; text-align: center; align-items: center; }

.panel.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.panel.split.rev > :first-child { order: 2; }

/* Entrada em cascata — só apresentação */
.slide .kicker,
.slide .logo-type,
.slide .headline,
.slide .copy,
.slide .cta-row,
.slide .motto,
.slide .text-link,
.slide .mock,
.slide .channels,
.slide .foot {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
    transition:
        opacity .65s cubic-bezier(.22, 1, .36, 1),
        transform .65s cubic-bezier(.22, 1, .36, 1);
}

.slide.is-active .kicker { opacity: 1; transform: none; transition-delay: .05s; }
.slide.is-active .logo-type { opacity: 1; transform: none; transition-delay: .12s; }
.slide.is-active .headline { opacity: 1; transform: none; transition-delay: .18s; }
.slide.is-active .copy { opacity: 1; transform: none; transition-delay: .26s; }
.slide.is-active .cta-row,
.slide.is-active .text-link { opacity: 1; transform: none; transition-delay: .34s; }
.slide.is-active .motto { opacity: 1; transform: none; transition-delay: .42s; }
.slide.is-active .mock { opacity: 1; transform: none; transition-delay: .3s; }
.slide.is-active .channels,
.slide.is-active .foot { opacity: 1; transform: none; transition-delay: .4s; }

.kicker {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: fit-content;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffb2ae;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 1.6rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--red), transparent);
}

.panel.center .kicker {
    margin-inline: auto;
}

.panel.center .kicker::before { display: none; }

.panel.center .kicker::after {
    content: "";
    width: 1.6rem;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.logo-type {
    display: block;
    font-family: var(--display);
    font-size: clamp(3.1rem, 11vw, 6.2rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.92;
    margin-bottom: 0.65rem;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.35));
}

.logo-type i { font-style: normal; }
.logo-type b { color: var(--red-2); }

.headline {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.6rem, 4.4vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    max-width: 16ch;
    text-wrap: balance;
}

.panel.center .headline { max-width: 18ch; }

h1 { margin: 0; }

.copy {
    margin: 0;
    max-width: 36ch;
    color: var(--mute);
    font-size: clamp(1.04rem, 1.8vw, 1.2rem);
    line-height: 1.6;
}

.copy.wide { max-width: 44ch; }

.motto {
    margin: 0.5rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    width: fit-content;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 178, 174, 0.8);
}

.panel.center .motto {
    margin-inline: auto;
    border-top-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .slide .kicker,
    .slide .logo-type,
    .slide .headline,
    .slide .copy,
    .slide .cta-row,
    .slide .motto,
    .slide .text-link,
    .slide .mock,
    .slide .channels,
    .slide .foot {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.next {
    position: absolute;
    left: 50%;
    bottom: 1.1rem;
    transform: translateX(-50%);
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}

.next em {
    width: 1px;
    height: 2.2rem;
    background: linear-gradient(180deg, var(--red), transparent);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ===== MOCK UI ===== */
.mock { display: grid; place-items: center; }

.mock-card {
    width: min(360px, 100%);
    padding: 1.25rem 1.3rem 1.35rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
        rgba(5, 13, 26, 0.35);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px) saturate(1.15);
}

.mock-label {
    display: block;
    margin-bottom: 0.9rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.mock-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.mock-card li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: center;
    padding: 0.7rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.22);
}

.mock-card li i {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.18);
}

.mock-card li b { font-size: 0.92rem; }
.mock-card li em {
    font-style: normal;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.bars { display: grid; gap: 0.85rem; }

.bar {
    display: grid;
    gap: 0.35rem;
}

.bar b {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.bar span {
    display: block;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.bar span::after {
    content: "";
    display: block;
    width: var(--p);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--red), var(--cyan));
    animation: fill 2.4s ease-in-out infinite alternate;
}

@keyframes fill {
    from { filter: brightness(0.9); }
    to { filter: brightness(1.15); }
}

.steps ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
}

.steps li {
    position: relative;
    padding: 0.75rem 0.85rem 0.75rem 2.3rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.22);
    font-weight: 700;
}

.steps li::before {
    content: "";
    position: absolute;
    left: 0.9rem;
    top: 50%;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    transform: translateY(-50%);
    background: var(--red);
}

.steps li:nth-child(2)::before { background: #f59e0b; }
.steps li:nth-child(3)::before { background: var(--cyan); }
.steps li:nth-child(4)::before { background: #34d399; }

/* ===== CHANNELS / FOOTER ===== */
.channels {
    margin-top: 0.5rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    width: min(420px, 100%);
}

.channels p {
    margin: 0 0 0.7rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.channels ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem 1.6rem;
}

.channels img {
    height: 1rem;
    width: auto;
    opacity: 0.38;
    filter: grayscale(1) brightness(1.4);
}

.foot {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.82rem;
}

.foot nav { display: flex; gap: 1rem; }
.foot a { color: rgba(255, 255, 255, 0.55); }
.foot a:hover { color: #fff; }

/* ===== LEGAL ===== */
body.legal {
    overflow: auto;
    background:
        radial-gradient(ellipse 60% 40% at 80% 0%, rgba(225, 6, 0, 0.18), transparent 55%),
        var(--bg);
}

body.legal .cinema { display: none; }

.legal-wrap {
    width: min(760px, calc(100% - 2rem));
    margin: 2rem auto 4rem;
}

.legal-wrap h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
}

.legal-wrap h2 {
    margin-top: 2rem;
    font-family: var(--display);
    font-size: 1.2rem;
}

.legal-wrap p,
.legal-wrap li { color: var(--mute); }

.legal-meta { color: rgba(255, 255, 255, 0.4) !important; }

.legal-back {
    display: inline-flex;
    margin-bottom: 1rem;
    color: #ffb2ae;
    font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .nav-links,
    .nav-explore { display: none; }
}

@media (max-width: 860px) {
    .slide {
        padding: 5rem 1.1rem 1.5rem;
        align-content: center;
    }

    .panel {
        width: 100%;
        max-height: none;
    }

    .panel.split,
    .panel.split.rev {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .panel.split.rev > :first-child { order: unset; }

    .panel.split .kicker,
    .panel.split .headline,
    .panel.split .copy { margin-inline: auto; }

    .mock { order: -1; }

    .dots {
        right: 0.55rem;
        gap: 0.45rem;
    }

    .cinema-video { opacity: 0.2; }
    .cinema-photo { opacity: 0.28; }
}

@media (max-width: 520px) {
    .nav-brand img { height: 2.85rem; }
    .mock-card { width: min(300px, 100%); }
    .logo-type { font-size: clamp(2.4rem, 14vw, 3.4rem); }
    .btn.lg { width: 100%; }
    .cta-row { width: 100%; }
}
