:root {
            --space: #07061a;
            --space-2: #0f0c2e;
            --nebula: #7c5cff;
            --magenta: #ff4fa3;
            --cyan: #4de1ff;
            --star: #f3f0ff;
            --muted: #a9a3d6;
            --glass: rgba(20, 16, 56, .55);
            --line: rgba(160, 140, 255, .22);
            --display: "Unbounded", "Trebuchet MS", sans-serif;
            --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
        }

        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            margin: 0;
            font-family: var(--body);
            color: var(--star);
            background:
                radial-gradient(60% 50% at 80% 8%, rgba(124, 92, 255, .30), transparent 70%),
                radial-gradient(50% 45% at 8% 40%, rgba(255, 79, 163, .16), transparent 70%),
                radial-gradient(55% 50% at 70% 95%, rgba(77, 225, 255, .14), transparent 70%),
                var(--space);
            background-attachment: fixed;
            min-height: 100vh;
        }

        #galaxy {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        header, .hero-wrapper, .page-container, footer { position: relative; z-index: 1; }

        a { color: var(--cyan); }

        /* ---------- HEADER ---------- */
        header {
            position: sticky; top: 0; z-index: 20;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            background: rgba(7, 6, 26, .55);
            border-bottom: 1px solid var(--line);
        }
        .nav {
            max-width: 1200px; margin: 0 auto; padding: 14px 24px;
            display: flex; align-items: center; justify-content: space-between; gap: 20px;
        }
        .nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
        .nav ul a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color .2s; }
        .nav ul a:hover { color: var(--star); }
        .logo { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
        .logo span {
            width: 32px; height: 32px; border-radius: 50%;
            display: grid; place-items: center; font-size: .9rem;
            background: conic-gradient(from 0deg, var(--nebula), var(--magenta), var(--cyan), var(--nebula));
            box-shadow: 0 0 18px rgba(124, 92, 255, .8);
            animation: spin 9s linear infinite;
        }
        .logo span::first-letter { animation: none; }

        /* ---------- BOTÕES ---------- */
        .btn {
            font-family: var(--body); font-weight: 600; cursor: pointer;
            color: var(--star); background: transparent;
            border: 1px solid var(--line); border-radius: 999px;
            padding: 10px 22px; transition: transform .2s, box-shadow .2s, border-color .2s;
        }
        .btn:hover { border-color: var(--cyan); box-shadow: 0 0 22px rgba(77, 225, 255, .25); transform: translateY(-2px); }
        .btn.primary {
            border: none; color: #fff;
            background: linear-gradient(120deg, var(--nebula), var(--magenta));
            box-shadow: 0 6px 26px rgba(124, 92, 255, .45);
        }
        .btn.primary:hover { box-shadow: 0 8px 34px rgba(255, 79, 163, .55); }
        .btn:focus-visible, input:focus-visible, .filters button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

        /* ---------- HERO ---------- */
        .hero-wrapper { padding: 90px 24px 60px; }
        .hero { max-width: 760px; margin: 0 auto 0 max(0px, calc((100% - 1200px) / 2)); padding: 0 24px; }
        .tag {
            display: inline-block; padding: 7px 16px; border-radius: 999px;
            border: 1px solid var(--line); background: var(--glass);
            color: var(--cyan); font-size: .85rem; font-weight: 600; margin-bottom: 26px;
        }
        .hero h1 {
            font-family: var(--display); font-weight: 700;
            font-size: clamp(2rem, 5.2vw, 3.7rem); line-height: 1.12; margin: 0 0 22px;
            letter-spacing: -.02em;
        }
        .hero h1 em {
            font-style: normal;
            background: linear-gradient(100deg, var(--cyan), var(--nebula) 45%, var(--magenta));
            background-size: 220% 100%;
            -webkit-background-clip: text; background-clip: text; color: transparent;
            animation: aurora 7s ease-in-out infinite alternate;
        }
        .hero p { color: var(--muted); font-size: 1.15rem; line-height: 1.65; max-width: 56ch; margin: 0 0 34px; }
        .hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

        /* ---------- LAYOUT ---------- */
        .page-container {
            max-width: 1200px; margin: 0 auto; padding: 20px 24px 70px;
            display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start;
        }

        /* ---------- BUSCA / FILTROS ---------- */
        .toolbar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
        .search {
            flex: 1 1 280px; max-width: 480px; display: flex; align-items: center; gap: 10px;
            padding: 0 18px; border-radius: 999px;
            background: var(--glass); border: 1px solid var(--line);
            backdrop-filter: blur(10px); color: var(--muted);
            transition: border-color .2s, box-shadow .2s;
        }
        .search:focus-within { border-color: var(--nebula); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }
        .search input {
            flex: 1; background: none; border: none; outline: none;
            color: var(--star); font: inherit; padding: 14px 0;
        }
        .search input::placeholder { color: var(--muted); opacity: .8; }
        .filters { display: flex; gap: 8px; }
        .filters button {
            font: inherit; font-weight: 600; cursor: pointer; color: var(--muted);
            padding: 10px 20px; border-radius: 999px;
            background: var(--glass); border: 1px solid var(--line); transition: all .2s;
        }
        .filters button:hover { color: var(--star); border-color: var(--nebula); }
        .filters button.active {
            color: #fff; border-color: transparent;
            background: linear-gradient(120deg, var(--nebula), var(--magenta));
            box-shadow: 0 4px 20px rgba(124, 92, 255, .45);
        }

        /* ---------- GRID / CARDS (funciona com qualquer card que o script.js gerar) ---------- */
        .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
        .grid > *, .card {
            position: relative; overflow: hidden;
            background: var(--glass); color: var(--star);
            border: 1px solid var(--line); border-radius: 20px;
            backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
            box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
            transition: transform .25s, border-color .25s, box-shadow .25s;
        }
        .grid > *:hover, .card:hover {
            transform: translateY(-5px);
            border-color: var(--nebula);
            box-shadow: 0 14px 50px rgba(124, 92, 255, .35);
        }
        .grid p, .card p { color: var(--muted); }
        .grid img, .card img { max-width: 100%; }

        /* ---------- SIDEBAR ---------- */
        .sidebar {
            position: sticky; top: 90px;
        }
        .sticky-sidebar {
            padding: 22px;
            border-radius: 22px; background: var(--glass);
            border: 1px solid var(--line); backdrop-filter: blur(14px);
        }
        .sidebar-header { display: flex; align-items: center; gap: 10px; }
        .sidebar-header h3 { font-family: var(--display); font-size: 1rem; margin: 0; }
        .sparkle { animation: twinkle 2.4s ease-in-out infinite; }
        .sidebar-desc { color: var(--muted); font-size: .9rem; margin: 6px 0 18px; }
        .destaques-list { display: grid; gap: 12px; }
        .destaques-list > * {
            padding: 12px; border-radius: 14px; cursor: pointer;
            background: rgba(124, 92, 255, .1); border: 1px solid transparent;
            transition: border-color .2s, background .2s;
        }
        .destaques-list > *:hover { border-color: var(--cyan); background: rgba(77, 225, 255, .08); }

        /* ---------- MODAL ---------- */
        .modal {
            position: fixed; inset: 0; z-index: 100; display: none;
            align-items: center; justify-content: center; padding: 20px;
            background: rgba(4, 3, 16, .75); backdrop-filter: blur(6px);
        }
        .modal.open, .modal.active, .modal.show { display: flex; }
        .modal-box {
            position: relative; width: min(560px, 100%); max-height: 88vh; overflow: auto;
            padding: 32px; border-radius: 24px;
            background: linear-gradient(160deg, var(--space-2), var(--space));
            border: 1px solid var(--nebula);
            box-shadow: 0 0 60px rgba(124, 92, 255, .4);
            animation: warp .35s cubic-bezier(.2, .9, .3, 1.2);
        }
        .close {
            position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
            border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
            background: var(--glass); color: var(--star);
        }
        .close:hover { border-color: var(--magenta); }

        /* ---------- FOOTER ---------- */
        footer {
            text-align: center; padding: 34px 24px; color: var(--muted);
            border-top: 1px solid var(--line); background: rgba(7, 6, 26, .6);
        }

        /* ---------- ANIMAÇÕES ---------- */
        @keyframes spin { to { transform: rotate(360deg); } }
        @keyframes aurora { to { background-position: 100% 0; } }
        @keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
        @keyframes warp { from { opacity: 0; transform: scale(.85) translateY(20px); } to { opacity: 1; transform: none; } }

        @media (max-width: 900px) {
            .page-container { grid-template-columns: 1fr; }
            .sticky-sidebar { position: static; }
            .nav ul { display: none; }
            .hero-wrapper { padding-top: 60px; }
        }
        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation: none !important; transition: none !important; }
            html { scroll-behavior: auto; }
        }

        /* ====== INNER CARD STYLES ====== */
        .card {
            padding: 26px 20px;
            text-align: center;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .card .badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, var(--nebula), var(--magenta));
            color: #fff;
            font-size: 0.7rem;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 999px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .card .avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--nebula), var(--cyan));
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 16px;
            font-family: var(--display);
        }

        .card h3 {
            margin: 0 0 6px;
            font-size: 1.15rem;
            font-family: var(--display);
        }

        .card .role {
            font-size: 0.85rem;
            color: var(--cyan);
            margin-bottom: 14px;
            font-weight: 600;
        }

        .card .desc {
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 20px;
            flex: 1;
        }

        .card .tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            justify-content: center;
        }

        .card .tags span {
            font-size: 0.75rem;
            padding: 4px 10px;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--line);
            color: var(--muted);
        }

        /* ====== MINI CARD DESTAQUES ====== */
        .destaque-mini-card {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .destaque-mini-card .avatar-mini {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--magenta), var(--cyan));
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            flex-shrink: 0;
            color: #fff;
            font-family: var(--display);
        }

        .destaque-mini-card .info {
            flex: 1;
            min-width: 0;
        }

        .destaque-mini-card h4 {
            font-size: 0.95rem;
            margin: 0 0 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-family: var(--display);
        }

        .destaque-mini-card p {
            font-size: 0.8rem;
            color: var(--muted);
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
