:root {
    --bg: #070d1c;
    --bg-soft: #111b33;
    --card: #111a2f;
    --primary: #3f8cff;
    --primary-2: #7d5dff;
    --accent: #32e8c9;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 20px 50px rgba(3, 9, 25, 0.45);
    --radius: 20px;
    --topbar-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    line-height: 1.55;
}

h1, h2, h3, h4,
.section h2,
.hero h1,
.pricing-name,
.spotlight h3,
.contact-box h3,
.contact-form h4,
.story-content h4,
.card h3,
.panel h2,
.title {
    color: var(--heading);
}

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

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    background: var(--shell-header-bg);
    border-bottom: 1px solid var(--shell-border);
    box-shadow: var(--glass-shadow), var(--shell-highlight);
}

.topbar-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    min-height: 58px;
}

.brand {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand img {
    display: block;
    width: auto;
    height: 46px;
    max-width: 168px;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
    color: var(--muted);
    font-size: .93rem;
}

.menu a {
    position: relative;
    transition: color .22s ease;
    padding-bottom: 2px;
    white-space: nowrap;
}

.menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    border-radius: 2px;
}

.menu a:hover { color: #fff; }
.menu a:hover::after { transform: scaleX(1); }

.menu a.active {
    color: #ffffff;
}

.menu a.active::after { transform: scaleX(1); }

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Botões ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-family: inherit;
    font-size: .88rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
    white-space: nowrap;
    text-decoration: none;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 8px 22px rgba(63, 140, 255, 0.34);
}

.btn-primary:hover {
    box-shadow: 0 12px 30px rgba(63, 140, 255, 0.48);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.btn-accent {
    color: #081422;
    background: linear-gradient(135deg, var(--accent), #1dd8b3);
    box-shadow: 0 8px 22px rgba(50, 232, 201, 0.3);
    font-weight: 800;
}

.btn-accent:hover {
    box-shadow: 0 12px 32px rgba(50, 232, 201, 0.45);
}

/* ── Mobile hamburger ───────────────────────────────── */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: var(--text);
    width: 42px;
    height: 42px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 12px;
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .3);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .26s ease, opacity .26s ease;
}

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

/* ── Hero ───────────────────────────────────────────── */
.hero {
    padding: 80px 0 56px;
}

.hero-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.12fr .88fr;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(50, 232, 201, .35);
    background: rgba(50, 232, 201, .07);
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .06em;
    margin-bottom: 18px;
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(.85); }
}

.hero h1 {
    margin: 0 0 18px;
    font-family: "Sora", sans-serif;
    font-size: clamp(30px, 4.8vw, 54px);
    line-height: 1.07;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(90deg, var(--primary), var(--heading-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    margin: 0 0 30px;
    color: var(--muted);
    max-width: 580px;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-card {
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    overflow: hidden;
    position: relative;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(63, 140, 255, .12), transparent 55%);
    pointer-events: none;
    z-index: 1;
}

.hero-card img {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

/* ── Section base ───────────────────────────────────── */
.section { padding: 68px 0; }

.section-head {
    margin-bottom: 30px;
    max-width: 700px;
}

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: .16em;
    font-weight: 800;
    margin-bottom: 8px;
}

.section h2 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
    font-size: clamp(26px, 3.8vw, 40px);
    letter-spacing: -.01em;
}

.section p { margin: 0; color: var(--muted); }

/* ── Carrossel de seções ────────────────────────────── */
html.sections-carousel-root {
    height: 100%;
    overflow: hidden;
}

body.sections-carousel {
    height: 100dvh;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

body.sections-carousel .topbar {
    position: relative;
    top: auto;
    flex-shrink: 0;
}

body.sections-carousel .carousel-stage {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
    padding: 10px 0 8px;
}

body.sections-carousel main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
}

body.sections-carousel .site-footer {
    flex: 0 0 auto;
    margin-top: 0;
    overflow: visible;
}

body.sections-carousel .carousel-nav {
    position: relative;
    top: auto;
    flex-shrink: 0;
    width: 100%;
    margin: 0;
    padding: 10px 14px;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--glass-border);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--glass-highlight);
    pointer-events: auto;
}

.sections-carousel .carousel-section {
    display: none;
    opacity: 0;
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin: 0;
    width: 100%;
    padding: 28px 8px 32px 28px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(130, 155, 200, 0.28) transparent;
}

.sections-carousel .carousel-section::-webkit-scrollbar {
    width: 4px;
}

.sections-carousel .carousel-section::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}

.sections-carousel .carousel-section::-webkit-scrollbar-thumb {
    background: rgba(130, 155, 200, 0.22);
    border-radius: 99px;
}

.sections-carousel .carousel-section:hover::-webkit-scrollbar-thumb {
    background: rgba(130, 155, 200, 0.42);
}

.sections-carousel .carousel-section.is-active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    opacity: 1;
    animation: carouselIn 420ms cubic-bezier(.22, .85, .28, 1) both;
}

/* Painéis internos: evita empilhar vidro sobre vidro e esconder a logo de fundo */
.sections-carousel .carousel-section .panel,
.sections-carousel .carousel-section .pillar,
.sections-carousel .carousel-section .card,
.sections-carousel .carousel-section .pricing-card,
.sections-carousel .carousel-section .hero-card,
.sections-carousel .carousel-section .spotlight,
.sections-carousel .carousel-section .systems-portal,
.sections-carousel .carousel-section .contact-box,
.sections-carousel .carousel-section .contact-form,
.sections-carousel .carousel-section .story-carousel,
.sections-carousel .carousel-section .qa-marquee,
.sections-carousel .carousel-section .kpi {
    background: var(--glass-inner);
    backdrop-filter: var(--glass-backdrop-inner);
    -webkit-backdrop-filter: var(--glass-backdrop-inner);
    box-shadow: none;
}

.sections-carousel .carousel-section .container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 12px 0 0;
}

.sections-carousel .hero {
    padding: 12px 0 8px;
}

.sections-carousel .section {
    padding: 8px 0;
}

/* Desktop: conteúdo do carrossel mais abaixo, legível no painel */
@media (min-width: 981px) {
    body.sections-carousel .carousel-stage {
        padding: 16px 0 12px;
    }

    .sections-carousel .carousel-section {
        padding: 44px 20px 40px 36px;
    }

    .sections-carousel .hero {
        padding: 40px 0 32px;
    }

    .sections-carousel .section {
        padding: 36px 0 28px;
    }

    .sections-carousel .carousel-section .container {
        padding: 4px 20px 0 0;
    }

    .site-footer-inner {
        padding: 16px 0;
    }
}

@keyframes carouselIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ── Carousel Nav ───────────────────────────────────── */
.carousel-nav {
    position: sticky;
    top: 84px;
    z-index: 26;
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
    padding: 7px 8px;
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.carousel-btn {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    color: rgba(240, 244, 255, .88);
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(63, 140, 255, .16);
    border-color: rgba(63, 140, 255, .38);
    color: #fff;
    transform: none;
}

.carousel-progress {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex: 1;
    padding: 0 4px;
}

.carousel-label {
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: .14em;
    text-transform: uppercase;
    transition: color .3s ease;
    line-height: 1;
    font-family: "Sora", sans-serif;
}

.carousel-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: all .28s ease;
}

.carousel-dot.active {
    width: 18px;
    background: linear-gradient(90deg, rgba(63, 140, 255, .85), rgba(50, 232, 201, .75));
    box-shadow: none;
}

.carousel-dot:hover:not(.active) {
    background: rgba(255, 255, 255, .38);
    transform: none;
}

/* ── Transition effects ─────────────────────────────── */
.section-transition-focus {
    animation: none;
}

@keyframes sectionFocusPulse {
    0% { transform: translateY(20px) scale(0.978); opacity: .4; filter: saturate(.82); }
    50% { transform: none; opacity: 1; filter: saturate(1.16) brightness(1.05); }
    100% { transform: none; opacity: 1; filter: none; }
}

.nav-transitioning::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 45;
    background:
        radial-gradient(circle at 50% 50%, rgba(50, 232, 201, 0.07), transparent 34%),
        radial-gradient(circle at 50% 50%, rgba(63, 140, 255, 0.12), transparent 52%);
    animation: navOverlayFlash 680ms ease;
}

@keyframes navOverlayFlash {
    0% { opacity: 0; }
    25% { opacity: 1; }
    100% { opacity: 0; }
}

/* ── Cards de produtos ──────────────────────────────── */
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    padding: 22px;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    transition: transform .26s ease, border-color .26s ease, box-shadow .26s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(50, 232, 201, .4), transparent);
    opacity: 0;
    transition: opacity .26s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(50, 232, 201, .4);
    box-shadow: 0 28px 56px rgba(3, 9, 25, .5);
}

.card:hover::after { opacity: 1; }

.card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.card-top img {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.card h3 { margin: 0; font-size: 1.08rem; }

.card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text);
    line-height: 1.52;
}

.card li { margin-bottom: 6px; }

/* ── Solution360 ────────────────────────────────────── */
.solution360-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.solution360 .section-head {
    max-width: 640px;
}

.solution360-showcase {
    margin: 0;
    width: min(920px, 100%);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 24px 48px rgba(2, 8, 22, 0.35);
}

.solution360-showcase img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── Seção Assinatura / Planos ──────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pricing-card {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    padding: 28px 24px;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 140, 255, .38), transparent);
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(63, 140, 255, .42);
    box-shadow: 0 32px 64px rgba(3, 9, 25, .5), 0 0 0 1px rgba(63, 140, 255, .1);
}

.pricing-card.pricing-featured {
    border-color: rgba(63, 140, 255, .38);
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: 0 24px 54px rgba(3, 9, 25, .5), 0 0 0 1px rgba(63, 140, 255, .18);
}

.pricing-card.pricing-featured::before {
    background: linear-gradient(90deg, transparent, rgba(63, 140, 255, .72), transparent);
}

.pricing-card.pricing-featured:hover {
    transform: translateY(-10px);
    border-color: rgba(63, 140, 255, .62);
    box-shadow: 0 36px 70px rgba(3, 9, 25, .55), 0 0 30px rgba(63, 140, 255, .1);
}

.pricing-popular {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--primary), var(--primary-2));
    color: #fff;
    align-self: flex-start;
}

.pricing-name {
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading);
    margin: 0;
    line-height: 1.1;
}

.pricing-desc {
    color: var(--muted);
    font-size: .9rem;
    margin: 4px 0 0;
    line-height: 1.4;
}

.pricing-divider {
    border: 0;
    height: 1px;
    background: var(--line);
}

.pricing-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: .93rem;
    line-height: 1.42;
}

.pricing-features li::before {
    content: "✓";
    flex-shrink: 0;
    color: var(--accent);
    font-weight: 800;
    font-size: .86rem;
    margin-top: 1px;
}

.pricing-note {
    text-align: center;
    color: var(--muted);
    font-size: .86rem;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

/* ── About ──────────────────────────────────────────── */
.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.spotlight {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    padding: 26px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px;
    align-items: start;
}

.spotlight h3 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
    font-size: clamp(22px, 3vw, 30px);
}

.spotlight p { margin: 0 0 14px; color: var(--text); }

.spotlight-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.5;
}

.spotlight-list li { margin-bottom: 6px; }

.qa-marquee {
    margin: 16px 0 0;
    border: 1px solid rgba(50, 232, 201, .22);
    border-radius: 14px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.qa-track {
    padding: 16px 18px 16px 20px;
    border-left: 4px solid var(--accent);
    background: rgba(0, 0, 0, .12);
}

.qa-item { display: none; color: var(--text); font-size: .92rem; line-height: 1.5; }
.qa-item.active { display: block; }
.qa-item .q { color: var(--text); font-weight: 700; display: block; margin-bottom: 4px; }
.qa-item .a { color: var(--accent); }

.kpi-boxes { display: grid; gap: 10px; }

.kpi {
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
}

.kpi strong {
    display: block;
    color: var(--accent);
    margin-bottom: 3px;
    font-size: .83rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* ── Story carousel ─────────────────────────────────── */
.story-carousel {
    margin-top: 16px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
}

.story-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.story-toolbar small { color: var(--muted); font-weight: 700; letter-spacing: .03em; }

.story-btn {
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    color: var(--text-strong);
    padding: 7px 12px;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    text-decoration: none;
    display: inline-flex;
}

.story-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .12); }

.story-media {
    display: block;
    background: #0b1528;
    padding: clamp(12px, 2vw, 20px);
    aspect-ratio: 1915 / 962;
    max-height: min(82vh, 900px);
    min-height: 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    contain: layout paint;
}

.story-media img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background-color: #0b1528;
    z-index: 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.story-content { padding: 18px 20px; min-height: 0; font-size: 70%; line-height: 1.5; }

.story-view {
    display: grid;
    grid-template-columns: 1.42fr 0.58fr;
    align-items: stretch;
    min-height: 0;
}

.story-content h4 {
    margin: 0 0 10px;
    font-family: "Sora", sans-serif;
    font-size: clamp(15px, 2.1vw, 21px);
}

.story-content p { margin: 0 0 14px; color: var(--text); font-size: 1em; }

.story-points { margin: 0; padding-left: 18px; color: #dfe8fb; line-height: 1.55; }
.story-points li { margin-bottom: 6px; }

.story-qa {
    margin: 12px 0 0;
    display: grid;
    gap: 10px;
    font-size: 1em;
}

.story-qa:not(:empty) {
    padding: 14px 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(63, 140, 255, .2);
    background:
        radial-gradient(ellipse 100% 140% at 0% 40%, rgba(50, 232, 201, .09), transparent 55%),
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(63, 140, 255, .1), transparent 45%),
        linear-gradient(180deg, rgba(12, 24, 46, .88), rgba(6, 14, 30, .94));
    box-shadow: 0 10px 28px rgba(3, 9, 25, .32), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.story-qa .q { color: var(--text); font-weight: 700; font-size: .98em; }
.story-qa .a { color: var(--accent); font-size: .98em; }

.story-thumbs-wrap {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 12px;
    background: rgba(255, 255, 255, .02);
}

.story-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
}

.story-thumb {
    width: 100px;
    min-width: 100px;
    height: 100px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.story-thumb:hover,
.story-thumb:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(159, 232, 219, .7);
    box-shadow: 0 0 0 2px rgba(159, 232, 219, .2);
    outline: none;
}

.story-thumb.active {
    border-color: #9fe8db;
    box-shadow: 0 0 0 2px rgba(159, 232, 219, .18);
}

/* ── Panel / Pillars ────────────────────────────────── */
.panel {
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    padding: 26px;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.pillars { display: grid; gap: 12px; }

.pillar {
    border-radius: 14px;
    padding: 14px 16px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    transition: border-color .22s ease;
}

.pillar:hover { border-color: rgba(63, 140, 255, .3); }
.pillar strong { display: block; margin-bottom: 4px; color: var(--heading); }

/* ── Contact ────────────────────────────────────────── */
.contact-box {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 18px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.contact-box h3 { margin: 0 0 8px; font-size: clamp(20px, 2.8vw, 28px); }

.contact-list { margin: 10px 0 0; color: var(--text); }
.contact-list p { margin: 0 0 4px; color: inherit; }

.whatsapp-link { display: inline-flex; align-items: center; gap: 8px; }
.whatsapp-icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

.contact-form {
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop-soft);
    -webkit-backdrop-filter: var(--glass-backdrop-soft);
    border-radius: 18px;
    padding: 18px;
}

.contact-form h4 { margin: 0 0 10px; font-size: 1.06rem; }

.form-row { display: grid; gap: 6px; margin-bottom: 10px; }

.form-row label { font-size: .88rem; color: var(--muted); font-weight: 700; }

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    color: var(--text-strong);
    padding: 10px 12px;
    outline: none;
    font: inherit;
    font-size: .93rem;
    transition: border-color .2s ease, background .2s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: rgba(63, 140, 255, .5);
    background: rgba(63, 140, 255, .05);
}

.form-row textarea { min-height: 88px; resize: vertical; }

.contact-status {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    font-size: .9rem;
}

.contact-status.ok {
    background: rgba(52, 227, 171, .12);
    border: 1px solid rgba(52, 227, 171, .4);
    color: #b7ffeb;
}

.contact-status.err {
    background: rgba(255, 108, 129, .12);
    border: 1px solid rgba(255, 108, 129, .4);
    color: #ffd0d8;
}

.contact-status.is-dismissing {
    transition: opacity .45s ease, margin .45s ease, padding .45s ease;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0;
    overflow: hidden;
}

.hint { font-size: .84rem; color: var(--muted); margin-bottom: 12px; }

.contact-form-reset { margin-top: 14px; margin-bottom: 0; }
.contact-form-reset a { color: var(--accent); font-weight: 700; text-decoration: underline; }
.contact-form-reset a:hover { color: #5ff0d4; }

.captcha-wrap {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(8, 17, 34, .62);
    margin-bottom: 10px;
}

.captcha-code {
    display: inline-block;
    user-select: none;
    letter-spacing: .32em;
    font-family: "Sora", monospace;
    font-weight: 800;
    font-size: 1.06rem;
    color: #e7f0ff;
    text-shadow: 0 0 2px rgba(255, 255, 255, .3);
    padding: 7px 12px;
    border-radius: 9px;
    border: 1px dashed rgba(255, 255, 255, .35);
    background:
        radial-gradient(circle at 15% 30%, rgba(63, 140, 255, .24), transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(125, 93, 255, .26), transparent 45%),
        rgba(255, 255, 255, .04);
    transform: skewX(-7deg);
}

.captcha-refresh {
    margin-left: 10px;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
    color: var(--accent);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: underline;
}

.captcha-refresh:disabled { opacity: .55; cursor: wait; }

/* ── Systems portal ─────────────────────────────────── */
.systems-portal {
    max-width: 820px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: clamp(22px, 3vw, 30px);
    background: var(--glass-bg-medium);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}

.systems-portal p { margin: 0 0 16px; color: var(--muted); }

.systems-url {
    color: var(--heading-light);
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(63, 140, 255, .45);
}

.systems-url:hover { color: var(--heading); border-bottom-color: rgba(126, 178, 255, .7); }

.systems-bridge { margin: 18px 0 20px; padding-left: 20px; color: var(--text); line-height: 1.55; }
.systems-bridge li { margin-bottom: 10px; }
.systems-bridge strong { color: var(--heading-light); }

.systems-portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* ── Reveal animation ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

/* ── Rodapé fixo (shell do carrossel) ──────────────── */
.site-footer-copy {
    margin: 0;
    color: var(--text);
}

.site-footer-copy small {
    display: block;
    line-height: 1.45;
}

.site-footer-copy .muted {
    color: var(--muted);
}

.site-footer-copy a {
    color: var(--heading-light);
    text-decoration: none;
    font-weight: 700;
}

.site-footer-meta {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.site-footer-meta b {
    color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 980px) {
    html.sections-carousel-root {
        height: 100svh;
    }

    body.sections-carousel {
        height: 100svh;
        min-height: 100svh;
    }

    .menu-toggle { display: flex; }

    .menu {
        position: fixed;
        inset: var(--topbar-h) 0 0;
        background: var(--glass-bg-strong);
        backdrop-filter: var(--glass-backdrop);
        -webkit-backdrop-filter: var(--glass-backdrop);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 8px 20px 24px;
        z-index: 29;
        border-top: 1px solid var(--line);
        display: none;
        overflow-y: auto;
    }

    .menu.is-open { display: flex; }

    .menu a {
        padding: 15px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        font-size: 1.05rem;
        text-align: left;
    }

    .menu a::after { display: none; }

    .hero-grid,
    .about,
    .spotlight-grid { grid-template-columns: 1fr; }

    .story-media {
        max-height: min(56vh, 500px);
        border-right: 0;
    }

    .story-view { grid-template-columns: 1fr; }

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

    .topbar-wrap {
        padding: 8px 0;
        min-height: 52px;
        gap: 10px;
    }

    .brand img {
        height: 38px;
        max-width: min(150px, 42vw);
    }

    :root { --topbar-h: 58px; }

    .carousel-nav { top: var(--topbar-h); }

    body.sections-carousel .carousel-stage {
        width: calc(100% - 24px);
        padding: 8px 0 6px;
    }

    .sections-carousel .carousel-section {
        padding: 20px 4px 24px 18px;
    }

    .topbar-actions .btn:first-child { display: none; }
}

@media (max-width: 760px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .contact-box { grid-template-columns: 1fr; }
    .carousel-label { display: none; }

    .site-footer-inner {
        width: min(1140px, calc(100% - 24px));
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 10px 0 max(16px, env(safe-area-inset-bottom, 16px));
    }
}

@media (max-width: 480px) {
    .container {
        width: min(1140px, calc(100% - 24px));
    }

    .topbar-actions { gap: 8px; }
    .topbar-actions .btn { font-size: .8rem; padding: 9px 14px; }

    .brand img {
        height: 34px;
        max-width: min(128px, 38vw);
    }
}
