/* =========================================================
   CSBC26 — Landing Page Stylesheet
   Design System: Dark · Glassmorphism · Brand Colors
   ========================================================= */

/* ---------------------------------------------------------
   0. RESET & CUSTOM PROPERTIES
   --------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Brand palette */
    --azul-escuro: #141964;
    --azul-claro: #3b4ee2;
    --branco: #ffffff;
    --verde: #45d679;
    --laranja: #fb7e4d;
    --cinza-base: #D9D9D9;

    /* Extended tokens */
    --bg-base: #0b0f3b;
    --bg-surface: rgba(20, 25, 100, 0.35);
    --bg-surface-2: rgba(59, 78, 226, 0.15);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.06);
    --text-primary: #f0f2ff;
    --text-secondary: rgba(240, 242, 255, 0.65);
    --text-muted: rgba(240, 242, 255, 0.38);

    /* Spacing */
    --sp-xs: 4px;
    --sp-sm: 8px;
    --sp-md: 16px;
    --sp-lg: 24px;
    --sp-xl: 40px;
    --sp-2xl: 64px;

    /* Radius */
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
    --duration-fast: 180ms;
    --duration-base: 320ms;
    --duration-slow: 600ms;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}


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

img {
    display: block;
    max-width: 100%;
}

/* ---------------------------------------------------------
   1. ANIMATED BACKGROUND — Heat-wave orbs
   --------------------------------------------------------- */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    will-change: transform, opacity;
}

.orb--1 {
    width: 70vmax;
    height: 70vmax;
    top: -30vmax;
    left: -20vmax;
    background: radial-gradient(circle, #3b4ee2 0%, #141964 60%, transparent 80%);
    animation: orb-drift-1 14s ease-in-out infinite alternate;
}

.orb--2 {
    width: 55vmax;
    height: 55vmax;
    bottom: -25vmax;
    right: -15vmax;
    background: radial-gradient(circle, #2d5dce 0%, #141964 55%, transparent 80%);
    animation: orb-drift-2 18s ease-in-out infinite alternate;
}

.orb--3 {
    width: 40vmax;
    height: 40vmax;
    top: 30%;
    left: 55%;
    background: radial-gradient(circle, rgba(69, 214, 121, 0.45) 0%, transparent 70%);
    animation: orb-drift-3 22s ease-in-out infinite alternate;
}

.orb--4 {
    width: 35vmax;
    height: 35vmax;
    bottom: 10%;
    left: 5%;
    background: radial-gradient(circle, rgba(251, 126, 77, 0.3) 0%, transparent 70%);
    animation: orb-drift-4 16s ease-in-out infinite alternate;
}

@keyframes orb-drift-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8vw, 12vh) scale(1.08);
    }

    66% {
        transform: translate(-5vw, 18vh) scale(0.95);
    }

    100% {
        transform: translate(12vw, 6vh) scale(1.12);
    }
}

@keyframes orb-drift-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    40% {
        transform: translate(-10vw, -8vh) scale(1.1);
    }

    100% {
        transform: translate(5vw, -15vh) scale(0.9);
    }
}

@keyframes orb-drift-3 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.4;
    }

    50% {
        transform: translate(-12vw, 8vh) scale(1.2) rotate(20deg);
        opacity: 0.6;
    }

    100% {
        transform: translate(6vw, -10vh) scale(0.85) rotate(-15deg);
        opacity: 0.35;
    }
}

@keyframes orb-drift-4 {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    60% {
        transform: translate(8vw, -6vh) scale(1.15);
        opacity: 0.5;
    }

    100% {
        transform: translate(-4vw, 10vh) scale(0.88);
        opacity: 0.25;
    }
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ---------------------------------------------------------
   2. LAYOUT SHELL
   --------------------------------------------------------- */
.site-header,
.app-shell,
.site-footer {
    position: relative;
    z-index: 2;
}

/* ---------------------------------------------------------
   3. HEADER
   --------------------------------------------------------- */
.site-header {
    padding: var(--sp-md) var(--sp-lg);
    background: transparent;
    -webkit-backdrop-filter: blur(20px);
    /* Must be higher than .app-shell (z-index: 2) so the
       menu popup can render above the card grid */
    z-index: 100;
}

.header-inner {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
    /* Altura de linha consistente do cabeçalho em TODAS as páginas
       (home, agenda, chat, gamificação, mapa). Como os controles ficam
       centrados (align-items:center) e o logo é limitado abaixo para caber
       nesta altura, o botão de menu / "Início" aparece sempre na mesma
       altura vertical entre as páginas. */
    min-height: 64px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    width: auto;
    object-fit: contain;
    /* Force white rendering for the negative (white) logo */
    filter: brightness(0) invert(1);
}

/* Limita o logo DO CABEÇALHO para não ultrapassar a altura da linha,
   mantendo o cabeçalho com a mesma altura em todas as páginas (o logo em
   conteúdo — ex.: agenda — não é afetado por ser fora do .site-header). */
.site-header .logo {
    max-height: 48px;
}

.header-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 5px 12px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--verde);
    box-shadow: 0 0 8px var(--verde);
    animation: pulse-dot 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px var(--verde);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.85);
        box-shadow: 0 0 14px var(--verde);
    }
}

.badge-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--verde);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   4. APP SHELL / MAIN
   --------------------------------------------------------- */

/* --- Mobile default (max 899px): single column, centred --- */
.app-shell {
    flex: 1;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

/* Transparent wrapper — on mobile just stacks normally */
.content-left {
    display: flex;
    flex-direction: column;
    gap: var(--sp-xl);
}

/* ---------------------------------------------------------
   5. HERO
   --------------------------------------------------------- */
.hero {
    display: flex;
    flex-direction: column;
    gap: var(--sp-lg);
}

.hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title__highlight {
    background: linear-gradient(135deg, var(--azul-claro) 0%, var(--verde) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------------------------------------------------------
   6. SUGGESTIONS
   --------------------------------------------------------- */
.suggestions-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--sp-sm);
}

.suggestions-label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.suggestions-track {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-sm);
    min-height: 44px;
    align-items: center;
}

.suggestion-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.83rem;
    font-weight: 500;
    background: rgba(59, 78, 226, 0.18);
    border: 1px solid rgba(59, 78, 226, 0.35);
    color: var(--text-secondary);
    backdrop-filter: blur(8px);
    cursor: default;
    white-space: nowrap;
    transition: border-color var(--duration-base) var(--ease-out),
        background var(--duration-base) var(--ease-out);
}

.suggestion-pill::before {
    content: '✦';
    font-size: 0.6rem;
    color: var(--azul-claro);
    flex-shrink: 0;
}

.suggestion-pill.is-active {
    background: rgba(59, 78, 226, 0.28);
    border-color: rgba(59, 78, 226, 0.6);
    color: var(--text-primary);
}

/* ---------------------------------------------------------
   7. CARDS GRID
   --------------------------------------------------------- */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--sp-md);
}

/* ----- Base card ----- */
.card {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: var(--sp-md);
    display: flex;
    flex-direction: column;
    gap: var(--sp-xs);
    overflow: hidden;
    cursor: pointer;
    transition:
        transform var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card:active {
    transform: translateY(0) scale(0.98);
}

/* Glow element (moved on hover via JS or pure CSS) */
.card__glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    pointer-events: none;
}

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

/* ----- Card icon ----- */
.card__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card__icon svg {
    width: 18px;
    height: 18px;
}

/* ----- Card body ----- */
.card__tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--verde);
    display: block;
}

/* ----- Beta / preview badge (temporary features) -----
   Posicionado à esquerda da seta do card (card__arrow em top/right:
   var(--sp-sm), 26px de largura). Absoluto para NÃO afetar o tamanho
   do card. Centrado verticalmente na seta via translateY(-50%). */
.card__badge {
    position: absolute;
    top: calc(var(--sp-sm) + 13px);
    right: calc(var(--sp-sm) + 34px);
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 9px;
    border-radius: 100px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.4;
    pointer-events: none;
}

.card__badge--beta {
    color: #fb7e4d;
    background: rgba(251, 126, 77, 0.14);
    border: 1px solid rgba(251, 126, 77, 0.42);
}

.card__badge--beta::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fb7e4d;
    box-shadow: 0 0 6px #fb7e4d;
    animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.55; transform: scale(0.8); }
}

.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.card__desc {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-top: 2px;
}

/* ----- Arrow button ----- */
.card__arrow {
    position: absolute;
    top: var(--sp-sm);
    right: var(--sp-sm);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
}

.card:hover .card__arrow {
    background: rgba(255, 255, 255, 0.14);
    transform: translate(2px, -2px);
}

.card__arrow svg {
    width: 12px;
    height: 12px;
}

/* ---- FEATURED CARD — Chatbot ---- */
/* .card--wide (used by Gamificação) shares the exact same footprint
   as the featured chatbot card, so it renders directly below it at
   the same size — only colors/branding differ per variant below. */
.card--featured,
.card--wide {
    grid-column: 1 / -1;
    /* spans full width */
    flex-direction: row;
    align-items: center;
    gap: var(--sp-md);
    padding: var(--sp-lg) var(--sp-md);
    min-height: 110px;
}

.card--featured {
    background: linear-gradient(135deg,
            rgba(59, 78, 226, 0.55) 0%,
            rgba(20, 25, 100, 0.7) 100%);
    border-color: rgba(59, 78, 226, 0.5);
}

.card--featured:hover {
    border-color: rgba(59, 78, 226, 0.85);
    box-shadow: 0 24px 60px rgba(59, 78, 226, 0.3);
}

.card--featured .card__glow {
    background: radial-gradient(ellipse at 20% 50%, rgba(59, 78, 226, 0.4) 0%, transparent 65%);
}

.card--featured .card__icon,
.card--wide .card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.card--featured .card__icon {
    background: rgba(59, 78, 226, 0.5);
    border: 1px solid rgba(59, 78, 226, 0.6);
}

.card--featured .card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--branco);
}

.card--wide .card__icon svg {
    width: 24px;
    height: 24px;
}

.card--featured .card__body,
.card--wide .card__body {
    flex: 1;
}

.card--featured .card__title,
.card--wide .card__title {
    font-size: 1.4rem;
}

.card--featured .card__desc,
.card--wide .card__desc {
    font-size: 0.78rem;
    max-width: 300px;
}

/* ---- RANKING card ---- */
.card--ranking {
    background: linear-gradient(145deg,
            rgba(251, 126, 77, 0.25) 0%,
            rgba(20, 25, 100, 0.5) 100%);
    border-color: rgba(251, 126, 77, 0.25);
}

.card--ranking:hover {
    border-color: rgba(251, 126, 77, 0.6);
    box-shadow: 0 20px 50px rgba(251, 126, 77, 0.18);
}

.card--ranking .card__glow {
    background: radial-gradient(ellipse at 80% 20%, rgba(251, 126, 77, 0.35) 0%, transparent 60%);
}

.card--ranking .card__icon {
    background: rgba(251, 126, 77, 0.3);
    border: 1px solid rgba(251, 126, 77, 0.4);
}

.card--ranking .card__icon svg {
    color: var(--laranja);
}

.card--ranking .card__title {
    color: var(--laranja);
}

/* ---- AGENDA card ---- */
.card--agenda {
    background: linear-gradient(145deg,
            rgba(69, 214, 121, 0.2) 0%,
            rgba(20, 25, 100, 0.5) 100%);
    border-color: rgba(69, 214, 121, 0.2);
}

.card--agenda:hover {
    border-color: rgba(69, 214, 121, 0.55);
    box-shadow: 0 20px 50px rgba(69, 214, 121, 0.15);
}

.card--agenda .card__glow {
    background: radial-gradient(ellipse at 80% 20%, rgba(69, 214, 121, 0.3) 0%, transparent 60%);
}

.card--agenda .card__icon {
    background: rgba(69, 214, 121, 0.15);
}

.card--agenda .card__icon svg {
    color: var(--verde);
}

.card--agenda .card__title {
    color: var(--verde);
}

/* ---- MAPA card ---- */
.card--mapa {
    background: linear-gradient(145deg,
            rgba(59, 78, 226, 0.2) 0%,
            rgba(20, 25, 100, 0.5) 100%);
    border-color: rgba(59, 78, 226, 0.2);
}

.card--mapa:hover {
    border-color: rgba(59, 78, 226, 0.55);
    box-shadow: 0 20px 50px rgba(59, 78, 226, 0.2);
}

.card--mapa .card__glow {
    background: radial-gradient(ellipse at 80% 20%, rgba(59, 78, 226, 0.35) 0%, transparent 60%);
}

.card--mapa .card__icon {
    background: rgba(59, 78, 226, 0.2);
}

.card--mapa .card__icon svg {
    color: var(--azul-claro);
}

.card--mapa .card__title {
    color: #8ca0ff;
}

/* ---- CHATBOT card (small) ---- */
.card--chatbot {
    background: linear-gradient(145deg,
            rgba(59, 78, 226, 0.35) 0%,
            rgba(20, 25, 100, 0.55) 100%);
    border-color: rgba(59, 78, 226, 0.35);
}

.card--chatbot:hover {
    border-color: rgba(59, 78, 226, 0.7);
    box-shadow: 0 20px 50px rgba(59, 78, 226, 0.22);
}

.card--chatbot .card__glow {
    background: radial-gradient(ellipse at 80% 20%, rgba(59, 78, 226, 0.4) 0%, transparent 60%);
}

.card--chatbot .card__icon {
    background: rgba(59, 78, 226, 0.3);
    border: 1px solid rgba(59, 78, 226, 0.45);
}

.card--chatbot .card__icon svg {
    color: var(--branco);
}

.card--chatbot .card__title {
    color: #8ca0ff;
}

/* ---------------------------------------------------------
   8. EVENT INFO STRIP
   --------------------------------------------------------- */
.event-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-md);
    padding: var(--sp-md) var(--sp-lg);
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(16px);
}

.strip-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.strip-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--azul-claro);
}

.strip-divider {
    width: 1px;
    height: 20px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   9. FOOTER
   --------------------------------------------------------- */
.site-footer {
    padding: var(--sp-lg);
    text-align: center;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-x: hidden;
}

.footer-text {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.footer-text span {
    color: var(--azul-claro);
    font-weight: 700;
}

.footer-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ---------------------------------------------------------
   10. ENTRANCE ANIMATIONS (CSS fallback before GSAP loads)
   --------------------------------------------------------- */
.site-header,
.content-left,
.cards-grid {
    animation: fade-up 0.7s var(--ease-out) both;
}

.content-left {
    animation-delay: 0.08s;
}

.cards-grid {
    animation-delay: 0.18s;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------------------------------------------------------
   11. RESPONSIVE LAYOUT SYSTEM
   --------------------------------------------------------- */

/* ---- Tablet: slightly wider, still single column ---- */
@media (min-width: 600px) {
    .app-shell {
        max-width: 600px;
        padding-top: var(--sp-2xl);
    }

    .hero-title {
        font-size: 3rem;
    }

    .card--featured .card__title,
    .card--wide .card__title {
        font-size: 1.5rem;
    }
}

/* ---- Desktop: two-column, fits viewport, no scroll ---- */
@media (min-width: 900px) {

    /* Prevent page-level scroll on desktop — only for landing page (not agenda, not chat, not gamificacao) */
    html:not(:has(.agenda-page)):not(:has(.chat-page)):not(:has(.gamificacao-page)),
    body:not(.agenda-page):not(.chat-page):not(.gamificacao-page) {
        height: 100%;
        overflow: hidden;
    }

    /* Header: wider inner container */
    .header-inner {
        max-width: 1280px;
        padding: 0 var(--sp-xl);
    }

    /* App shell becomes a two-column grid filling remaining viewport */
    .app-shell {
        max-width: 1280px;
        height: 0;
        /* reset flex child height */
        flex: 1;
        flex-direction: row;
        align-items: stretch;
        gap: var(--sp-2xl);
        padding: var(--sp-2xl) var(--sp-2xl);
    }

    /* Left column: hero + event strip — vertically centred */
    .content-left {
        flex: 1;
        justify-content: center;
        gap: var(--sp-lg);
        min-width: 0;
    }

    /* Hero title scales up on desktop */
    .hero-title {
        font-size: clamp(2.5rem, 3.5vw, 4rem);
    }

    /* Event strip: left-aligned on desktop */
    .event-strip {
        justify-content: flex-start;
    }

    /* Right column: cards grid — larger, vertically centred */
    .cards-grid {
        flex: 1.1;
        align-self: center;
        min-width: 0;
        /* Remove the animation delay mismatch on desktop */
        gap: var(--sp-md);
    }

    /* Cards get more padding on desktop */
    .card {
        padding: var(--sp-lg);
    }

    .card--featured,
    .card--wide {
        min-height: 120px;
    }

    .card--featured .card__title,
    .card--wide .card__title {
        font-size: 1.6rem;
    }

    .card--featured .card__icon,
    .card--wide .card__icon {
        width: 56px;
        height: 56px;
    }

    .card--featured .card__icon svg,
    .card--wide .card__icon svg {
        width: 28px;
        height: 28px;
    }

    .card__title {
        font-size: 1.2rem;
    }

    .card__desc {
        font-size: 0.78rem;
    }
}

/* ---- Large desktop: cap width and add more breathing room ---- */
@media (min-width: 1200px) {
    .app-shell {
        gap: var(--sp-2xl);
        padding: var(--sp-2xl) calc(var(--sp-xl) * 1.5);
    }

    .hero-title {
        font-size: clamp(3rem, 4vw, 4.5rem);
    }
}

/* ---------------------------------------------------------
   12. REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .orb {
        animation: none !important;
    }
}

/* ---------------------------------------------------------
   INTERACTIVE CANVAS BACKGROUND
   --------------------------------------------------------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Styling do Slider */
.slider {
    background: transparent;
    height: 100px;
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 960px;

    /* A máscara faz as logos desaparecerem suavemente nas bordas */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.slider .slide-track {
    animation: scroll 55s linear infinite;
    display: flex;
    align-items: center;
    width: calc(250px * 17);
}

.slider .slide {
    height: 100px;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mantém o filtro para deixar as logos brancas */
.slider .slide img {
    filter: brightness(0) invert(1);
    object-fit: contain;
}

/* Animação do Carrossel */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 12));
    }
}

/* ---------------------------------------------------------
   HAMBURGER MENU & POPUP
   --------------------------------------------------------- */
.menu-wrapper {
    position: relative;
    z-index: 200;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(10px);
    transition: background var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.menu-btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.glass-menu {
    /* Anchored to .menu-wrapper — right edge aligns with button */
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;

    /* Glass identity */
    background: rgba(8, 12, 46, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    padding: 6px 0;

    /* Subtle shadow — not heavy */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;

    z-index: 200;
    /* GSAP controls visibility */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top right;
}

.glass-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.glass-menu__link {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 450;
    text-decoration: none;
    letter-spacing: 0.01em;
    border-left: 2px solid transparent;
    transition: color var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        padding-left var(--duration-fast) var(--ease-out);
}

.glass-menu__link:hover,
.glass-menu__link:focus {
    color: var(--text-primary);
    border-left-color: var(--azul-claro);
    padding-left: 24px;
    outline: none;
}

/* First and last items get rounded corners */
.glass-menu__list li:first-child .glass-menu__link {
    border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0;
}

.glass-menu__list li:last-child .glass-menu__link {
    border-radius: 0 0 calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px);
}