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

:root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --card: oklch(0.18 0 0);
    --card-foreground: oklch(0.985 0 0);
    --primary: oklch(0.7 0.2 260);
    --primary-foreground: oklch(0.145 0 0);
    --secondary: oklch(0.22 0 0);
    --secondary-foreground: oklch(0.985 0 0);
    --muted: oklch(0.25 0 0);
    --muted-foreground: oklch(0.6 0 0);
    --accent: oklch(60.152% 0.17981 256.923);
    --accent-foreground: oklch(0.145 0 0);
    --border: oklch(0.25 0 0);
    --radius: 0.75rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    gap: 1rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 4rem;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.nav-menu.active {
    display: flex;
}

.nav-menu .nav-link {
    padding: 0.5rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-menu {
    display: block;
    background: none;
    border: none;
    color: var(--foreground);
    cursor: pointer;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    color: var(--foreground);
    transition: background-color 0.2s;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: var(--muted);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background-color: transparent;
        backdrop-filter: none;
        border-bottom: none;
        padding: 0;
        gap: 1.5rem;
        align-items: center;
    }

    .nav-menu .nav-link {
        padding: 0;
    }

    .btn-menu {
        display: none;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
    }

    .header-logo {
        justify-self: start;
    }
    
    .header-actions {
        justify-self: end;
    }
}

.icon-terminal {
    color: var(--primary);
}

.logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.text-accent {
    color: var(--accent);
    font-weight: bold;
    font-size: large;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--foreground);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Main Content */
.main-content {
    padding: 3rem 1rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 4rem;
    text-align: center;
}

.hero-icon {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--primary);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title-accent {
    color: var(--primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 42rem;
    margin: 0 auto;
}


/* Category Navigation */
.nav-wrapper {
  display: flex;
  justify-content: center;
}


.category-nav {
    display: inline-flex;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.category-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-nav-link {
    padding: 0.75rem 1.5rem;
    background-color: var(--secondary);
    color: var(--foreground);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-nav-link:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .category-nav-list {
        flex-direction: column;
    }
    
    .category-nav-link {
        text-align: center;
    }
}

/* Category Section */
.category-section {
    margin-bottom: 4rem;
    scroll-margin-top: 6rem;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-description {
    color: var(--muted-foreground);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* App Card */
.app-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s;
}

.app-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
}

.card-header {
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.card-content {
    margin-top: 1rem;
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.install-type {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.install-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted-foreground);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.install-command {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.command-code {
    flex: 1;
    font-size: 0.75rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.btn-copy {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background-color: transparent;
    color: var(--foreground);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-copy:hover {
    background-color: var(--muted);
}

.btn-copy.copied {
    color: var(--accent);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    margin-top: 6rem;
    padding: 2rem 0;
}

.footer-content {
    text-align: center;
    color: var(--muted-foreground);
}

html {
    scroll-behavior: smooth;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

span.alert {
    color: var(--accent);
    font-weight: bold;
}