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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 80rem;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #037CFB 0%, #4DB6FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.hint {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.5);
}

kbd {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-family: 'Poppins', monospace;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Demo Content */
.demo-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 2rem;
    max-width: 120rem;
    margin: 4rem auto;
    padding: 0 2rem 8rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.6rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
}

.demo-card:hover {
    transform: translateY(-0.5rem);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(3, 124, 251, 0.3);
}

.demo-card i {
    font-size: 4rem;
    color: #4DB6FF;
    margin-bottom: 2rem;
}

.demo-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.demo-card p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Command Palette Overlay */
.command-palette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.command-palette-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Command Palette */
.command-palette {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.6rem;
    width: 90%;
    max-width: 60rem;
    max-height: 60vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-2rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Search Container */
.search-container {
    position: relative;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-icon {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.8rem;
}

.command-search {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.4rem 2rem 1.4rem 5rem;
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.command-search:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #037CFB;
    box-shadow: 0 0 0 3px rgba(3, 124, 251, 0.2);
}

.command-search::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.shortcut-hint {
    position: absolute;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Command List */
.command-list {
    max-height: calc(60vh - 10rem);
    overflow-y: auto;
    padding: 1rem;
}

.command-list::-webkit-scrollbar {
    width: 0.8rem;
}

.command-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
}

.command-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
}

.command-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Command Category */
.command-category {
    margin-bottom: 1.5rem;
}

.category-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    padding: 1rem 1.5rem 0.5rem;
}

/* Command Item */
.command-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.command-item:hover,
.command-item.selected {
    background: rgba(3, 124, 251, 0.15);
    border-left: 3px solid #037CFB;
    padding-left: 1.2rem;
}

.command-icon {
    font-size: 1.8rem;
    color: #4DB6FF;
    width: 2.5rem;
    text-align: center;
}

.command-info {
    flex: 1;
}

.command-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 0.3rem;
}

.command-name mark {
    background: rgba(255, 193, 7, 0.3);
    color: #FFC107;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

.command-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.5);
}

.command-shortcut {
    display: flex;
    gap: 0.5rem;
}

.key {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.4rem;
    padding: 0.3rem 0.6rem;
    font-size: 1.1rem;
    font-family: 'Poppins', monospace;
    color: rgba(255, 255, 255, 0.6);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.empty-state i {
    font-size: 5rem;
    margin-bottom: 2rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.empty-state span {
    font-size: 1.3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.4rem;
    }

    .hint {
        font-size: 1.2rem;
    }

    .demo-content {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 6rem;
    }

    .command-palette {
        width: 95%;
        max-height: 70vh;
    }

    .command-name {
        font-size: 1.4rem;
    }
}
