@import url('legal.css');

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

:root {
    --bg: #000000;
    --text: #ffffff;
    --muted: #a1a1aa;
    --accent: #c9a8e8;
    --card: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --btn-add: #d4b4f0;
    --grid-color: rgba(255, 255, 255, 0.03);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
}

#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, #a78be0, #e0b4d4);
    z-index: 9999;
    transition: width 0.08s linear;
    pointer-events: none;
}

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

#silk-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(7, 5, 18, 0.55) 0%, rgba(5, 3, 12, 0.85) 100%);
}

nav,
main,
footer {
    position: relative;
    z-index: 2;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 16px 0;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 6px;
    border-radius: 999px;
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.14),
        0 4px 32px rgba(0, 0, 0, 0.40);
    backdrop-filter: blur(32px) saturate(160%) brightness(1.05);
    -webkit-backdrop-filter: blur(32px) saturate(160%) brightness(1.05);
}

.nav-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(175deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 1;
}

.nav-inner>* {
    position: relative;
    z-index: 2;
}

.nav-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 17px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
    max-width: 0;
    margin-right: 0;
    padding: 0;
    overflow: hidden;
    pointer-events: none;
    transition:
        opacity 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
        max-width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        margin-right 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-logo.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    max-width: 40px;
    margin-right: 4px;
    pointer-events: auto;
}

.nav-logo:not(.visible) {
    transition:
        opacity 0.30s cubic-bezier(0.55, 0, 0.45, 1),
        transform 0.30s cubic-bezier(0.55, 0, 0.45, 1),
        max-width 0.32s cubic-bezier(0.55, 0, 0.45, 1) 0.04s,
        margin-right 0.32s cubic-bezier(0.55, 0, 0.45, 1) 0.04s;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(230, 220, 245, 0.65);
    padding: 6px 15px;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    transition: color .18s, background .18s;
    letter-spacing: 0.01em;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.09);
}

.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    box-shadow: 0 0 8px #4ade80cc, 0 0 2px #4ade80;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.nav-status-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(230, 220, 245, 0.55);
    letter-spacing: 0.01em;
}

.nav-support {
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    text-decoration: none;
    transition:
        background 0.30s ease,
        border-color 0.30s ease,
        color 0.20s ease,
        padding 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: rgba(201, 168, 232, 0.12);
    border: 1px solid rgba(201, 168, 232, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.20);
    color: rgba(225, 195, 255, 0.88);
    padding: 7px 16px;
}

.nav-support:hover {
    background: rgba(201, 168, 232, 0.22);
    color: #fff;
}

.nav-support.scrolled {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(220, 210, 240, 0.75);
    padding: 7px 12px;
}

.nav-support.scrolled:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-support .support-label {
    display: inline-block;
    max-width: 60px;
    overflow: hidden;
    opacity: 1;
    transition: max-width 0.28s, opacity 0.20s, margin 0.28s;
}

.nav-support.scrolled .support-label {
    max-width: 0;
    opacity: 0;
    margin-left: -4px;
}

#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(230, 220, 245, 0.75);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 20px rgba(0, 0, 0, 0.30);
    z-index: 500;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .3s, transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), background .2s, color .2s;
}

#back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#back-to-top:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.feature-card,
.community-card,
.btn-view,
footer,
#cta-card,
.glass-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.community-card::before,
footer::before,
#cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(165deg,
            rgba(255, 255, 255, 0.09) 0%,
            rgba(255, 255, 255, 0.02) 35%,
            rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 0;
}

.feature-card>*,
.community-card>*,
footer>* {
    position: relative;
    z-index: 1;
}

#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: transparent;
}

.hero-brand-img {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    margin-bottom: 22px;
    object-fit: cover;
    box-shadow: 0 12px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 20%, #c8a8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 10px;
    min-height: 1.4em;
}

.typer-cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--accent);
    animation: blinkCursor 1s step-end infinite;
    font-weight: 300;
}

@keyframes blinkCursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-stats {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 40px;
}

.scratch-word {
    position: relative;
    display: inline-block;
    color: var(--text);
    font-weight: 600;
    padding-bottom: 5px;
}

.scratch-svg {
    position: absolute;
    left: -3px;
    bottom: -2px;
    width: calc(100% + 6px);
    height: 10px;
    overflow: visible;
    pointer-events: none;
}

.scratch-path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

#scratch-1 .scratch-path.draw {
    animation: pencilDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
}

#scratch-2 .scratch-path.draw {
    animation: pencilDraw 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s forwards;
}

@keyframes pencilDraw {
    0% {
        stroke-dashoffset: 400;
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 14px;
    border: 1px solid rgba(220, 190, 255, 0.30);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    background: rgba(212, 180, 240, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 4px 24px rgba(180, 140, 255, 0.18);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    color: rgba(240, 225, 255, 0.95);
    transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s, background .2s;
}

.btn-add::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 55%);
    pointer-events: none;
}

.btn-add>* {
    position: relative;
    z-index: 1;
}

.btn-add:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.40),
        0 8px 36px rgba(180, 140, 255, 0.28);
    background: rgba(212, 180, 240, 0.26);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 14px;
    cursor: pointer;
    color: rgba(230, 220, 248, 0.85);
    background: none;
    border: none;
    transition: transform .18s cubic-bezier(0.34, 1.56, 0.64, 1), background .2s, color .2s;
}

.btn-view:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.chevron {
    margin-top: 50px;
    color: var(--muted);
    font-size: 22px;
    animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    50% {
        transform: translateY(8px);
        opacity: .85;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp .7s ease forwards;
}

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

.reveal-item {
    opacity: 0 !important;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.d1 {
    animation-delay: .1s;
}

.d2 {
    animation-delay: .2s;
}

.d3 {
    animation-delay: .3s;
}

.d4 {
    animation-delay: .4s;
}

@keyframes skeletonPulse {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.7;
    }
}

.skeleton-stat {
    display: inline-block;
    min-width: 2.8ch;
    color: transparent !important;
    background: rgba(200, 170, 255, 0.22);
    border-radius: 4px;
    animation: skeletonPulse 1.4s ease-in-out infinite;
    vertical-align: middle;
}

#commands {
    padding: 90px 40px 70px;
    max-width: 1200px;
    margin: 0 auto;
}

.commands-header {
    text-align: center;
    margin-bottom: 40px;
}

.commands-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
}

.commands-sidebar {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 14px;
    position: sticky;
    top: 88px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sidebar-search {
    position: relative;
    margin-bottom: 18px;
}

.sidebar-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    padding: 9px 12px 9px 34px;
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s, background .2s;
}

.sidebar-search input::placeholder {
    color: var(--muted);
}

.sidebar-search input:focus {
    border-color: rgba(200, 168, 232, 0.35);
    background: rgba(255, 255, 255, 0.07);
}

.sidebar-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(160, 140, 185, 0.55);
    padding: 0 8px;
    margin-bottom: 6px;
}

.cat-list {
    list-style: none;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    color: rgba(200, 190, 220, 0.55);
    transition: background .16s, color .16s;
    user-select: none;
}

.cat-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(230, 220, 245, 0.85);
}

.cat-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.cat-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(160, 140, 190, 0.50);
    flex-shrink: 0;
}

.cat-item.active .cat-icon {
    color: rgba(200, 168, 232, 0.85);
}

.cat-name {
    flex: 1;
    font-weight: 500;
}

.cat-count {
    font-size: 11.5px;
    color: rgba(140, 120, 170, 0.55);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 1px 7px;
    font-weight: 500;
    min-width: 22px;
    text-align: center;
}

.cat-item.active .cat-count {
    background: rgba(200, 168, 232, 0.14);
    color: rgba(200, 168, 232, 0.80);
}

.commands-content {
    min-width: 0;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.cmd-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 16px 18px;
    backdrop-filter: blur(16px);
    transition: border-color .22s, background .22s, transform .22s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
    cursor: pointer;
}

.cmd-card:hover {
    border-color: rgba(200, 168, 232, 0.22);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.cmd-card:active {
    transform: scale(0.98);
}

.cmd-card[hidden] {
    display: none;
}

.cmd-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    letter-spacing: -0.2px;
    font-family: 'Outfit', sans-serif;
}

.cmd-desc {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 11px;
}

.cmd-tag {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(200, 168, 232, 0.70);
    background: rgba(200, 168, 232, 0.09);
    border: 1px solid rgba(200, 168, 232, 0.18);
    border-radius: 5px;
    padding: 2px 7px;
}

.copy-toast {
    position: fixed;
    bottom: 88px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(30, 22, 48, 0.92);
    border: 1px solid rgba(200, 168, 232, 0.22);
    backdrop-filter: blur(20px);
    color: rgba(220, 200, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 10px;
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s, transform .22s;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.commands-empty {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-top: 32px;
    padding: 40px 0;
}

#features {
    padding: 80px 40px;
    max-width: 1180px;
    margin: 0 auto;
}

.dashed-wave {
    width: 100%;
    height: 1px;
    margin-bottom: 60px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 20%,
            rgba(200, 168, 232, 0.14) 50%,
            rgba(255, 255, 255, 0.08) 80%,
            transparent 100%);
}

.features-bento {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 16px;
}

.feat-mod {
    grid-column: 1;
    grid-row: 1;
}

.feat-voice {
    grid-column: 2;
    grid-row: 1 / 3;
}

.feat-config {
    grid-column: 3;
    grid-row: 1;
}

.feat-lastfm {
    grid-column: 1;
    grid-row: 2;
}

.feat-enterprise {
    grid-column: 3;
    grid-row: 2;
}

.feature-card {
    border-radius: 22px;
    padding: 28px 26px;
    transition:
        border-color .25s,
        transform .25s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow .25s,
        background .25s;
}

.feature-card:hover {
    border-color: rgba(200, 168, 232, 0.22);
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-4px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 12px 48px rgba(130, 80, 220, 0.12);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: rgba(200, 180, 240, 0.75);
    flex-shrink: 0;
    transition: background .25s, border-color .25s, color .25s, transform .25s;
}

.feat-icon-text {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.feature-card:hover .feature-icon {
    background: rgba(200, 168, 232, 0.12);
    border-color: rgba(200, 168, 232, 0.22);
    color: rgba(220, 190, 255, 0.90);
    animation: iconBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes iconBounce {
    0% {
        transform: scale(1);
    }

    35% {
        transform: scale(1.20) rotate(-8deg);
    }

    65% {
        transform: scale(0.92) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.68;
}

#communities {
    padding: 90px 0 70px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: #fff;
    margin-bottom: 8px;
}

.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, #c9a8e8, #e0b4d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 50px;
}

.marquee-wrap {
    overflow: hidden;
    width: 100%;
    padding: 8px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
}

.marquee-forward {
    animation: marqueeForward 36s linear infinite;
}

.marquee-reverse {
    animation: marqueeReverse 30s linear infinite;
}

@keyframes marqueeForward {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeReverse {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.marquee-track:hover {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
}

.community-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 28px;
    padding: 16px 24px;
    min-width: 260px;
    flex-shrink: 0;
    cursor: pointer;
    background: var(--card);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(210, 180, 255, 0.3);
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 14px 40px rgba(180, 140, 255, 0.22);
}

.community-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: rgba(200, 168, 232, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: rgba(220, 200, 255, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.community-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.community-card:hover .community-avatar {
    transform: rotate(-6deg) scale(1.1);
    border-color: rgba(210, 180, 255, 0.5);
}

.community-info {
    min-width: 0;
}

.community-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    letter-spacing: -0.1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.community-members {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    margin-top: 1px;
}

#cta {
    padding: 110px 20px;
    text-align: center;
}

#cta-card {
    display: inline-block;
    padding: 60px 64px;
    border-radius: 28px;
    max-width: 580px;
    width: 100%;
    text-align: center;
}

#cta-card h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: #fff;
}

#cta-card h2 em {
    font-style: normal;
    color: var(--accent);
}

#cta-card p {
    color: var(--muted);
    font-size: 16px;
    margin: 0 auto 36px;
    line-height: 1.68;
    position: relative;
    z-index: 1;
}

footer {
    padding: 22px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    backdrop-filter: blur(32px) saturate(150%);
    -webkit-backdrop-filter: blur(32px) saturate(150%);
    background: rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

footer::before {
    border-radius: 0;
}

footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

footer a:hover {
    color: var(--text);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: background .18s;
}

.nav-hamburger:hover {
    background: rgba(255, 255, 255, 0.09);
}

.nav-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(230, 220, 245, 0.75);
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-overlay {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    z-index: 99;
    background: rgba(14, 10, 24, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    backdrop-filter: blur(32px) saturate(160%);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    padding: 10px 8px;
    flex-direction: column;
    gap: 2px;
    min-width: 200px;
    opacity: 0;
    pointer-events: none;
    display: none;
    transition: opacity .25s, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav-overlay.open {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mobile-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: rgba(230, 220, 245, 0.75);
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    transition: background .18s, color .18s;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.mobile-nav-support {
    color: rgba(200, 168, 232, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin-top: 6px;
    padding-top: 12px;
}

@media (max-width: 1000px) {
    .features-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .feat-mod {
        grid-column: 1;
        grid-row: 1;
    }

    .feat-voice {
        grid-column: 2;
        grid-row: 1 / 3;
    }

    .feat-config {
        grid-column: 1;
        grid-row: 2;
    }

    .feat-lastfm {
        grid-column: 1;
        grid-row: 3;
    }

    .feat-enterprise {
        grid-column: 2;
        grid-row: 3;
    }

    .commands-layout {
        grid-template-columns: 210px 1fr;
    }
}

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

    #commands {
        padding: 70px 20px 50px;
    }

    .commands-layout {
        grid-template-columns: 1fr;
    }

    .commands-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sidebar-search {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }

    #cta-card {
        padding: 40px 28px;
    }
}

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

    .nav-status {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .features-bento {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .feat-mod,
    .feat-voice,
    .feat-config,
    .feat-lastfm,
    .feat-enterprise {
        grid-column: 1;
        grid-row: auto;
    }

    #features {
        padding: 60px 20px;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 40px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    #cta-card {
        padding: 32px 20px;
    }

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

    .commands-sidebar {
        grid-template-columns: 1fr;
    }

    #back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

#mouse-glow {
    position: fixed;
    pointer-events: none;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(160, 100, 240, 0.13) 0%,
            rgba(120, 70, 210, 0.07) 35%,
            transparent 68%);
    transform: translate(-50%, -50%);
    z-index: 1;
    will-change: left, top;
    transition: opacity 0.6s ease;
    opacity: 0;
}

#mouse-glow.active {
    opacity: 1;
}

.page-header {
    padding: 140px 48px 64px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-header h1 {
    font-size: 56px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-header p {
    font-size: 17px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

.commands-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 80px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.cmd-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cmd-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.065);
    cursor: pointer;
    transition: background .16s, border-color .18s, transform .15s;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.cmd-row:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(200, 168, 232, 0.20);
    transform: translateX(2px);
}

.cmd-row[hidden] {
    display: none;
}

.cmd-row-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    min-width: 155px;
    letter-spacing: -0.2px;
}

.cmd-row-desc {
    font-size: 13px;
    color: var(--muted);
    flex: 1;
    line-height: 1.5;
}

.cmd-row-tag {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(200, 168, 232, 0.65);
    background: rgba(200, 168, 232, 0.09);
    border: 1px solid rgba(200, 168, 232, 0.16);
    border-radius: 5px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.commands-empty-page {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    padding: 60px 0;
}

.status-page-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px 80px;
}

.status-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 36px;
}

.metric-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.metric-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -1px;
}

.metric-value.good {
    color: #4ade80;
}

.status-section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(160, 140, 185, 0.55);
    margin-bottom: 14px;
}

.shards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.shard-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px 20px;
    backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color .22s, background .22s;
}

.shard-card:hover {
    border-color: rgba(200, 168, 232, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.shard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.shard-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.shard-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.10);
    border: 1px solid rgba(74, 222, 128, 0.20);
    border-radius: 99px;
    padding: 3px 9px;
}

.shard-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: shardPulse 2s ease-in-out infinite;
}

@keyframes shardPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.shard-time {
    font-size: 11px;
    color: rgba(140, 120, 170, 0.5);
    margin-bottom: 14px;
}

.shard-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.shard-stat-item {
    display: block;
}

.shard-stat-label {
    font-size: 10.5px;
    color: rgba(140, 120, 170, 0.55);
    margin-bottom: 2px;
    font-weight: 500;
}

.shard-stat-val {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.shard-stat-val svg {
    opacity: 0.55;
}

@media (max-width: 900px) {
    .commands-page-wrap {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
    }

    .commands-page-wrap .commands-sidebar {
        position: static;
    }

    .page-header {
        padding: 100px 24px 32px;
    }

    .status-page-wrap {
        padding: 0 20px 60px;
    }

    .status-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cmd-row-tag {
        display: none;
    }
}

@media (max-width: 560px) {
    .status-metrics-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .cmd-row-desc {
        display: none;
    }

    .page-header h1 {
        font-size: 32px;
    }
}