* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary: #6366f1;
    --secondary: #f97316;
    --accent: #a855f7;
    --background: #0f172a;
    --surface: #1e1b4b;
    --card: #312e81;
    --text: #f0f9ff;
    --text-muted: #cbd5e1;
    --border: rgba(99, 102, 241, 0.2);
    --spacing: 1rem;
    --radius: 0.5rem;
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    background-image:
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(15, 23, 42, 0.9);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'JetBrains Mono', monospace;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.terminal-icon {
    font-size: 1.25rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1rem;
        background: rgba(30, 27, 75, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        display: none;
        animation: slideDown 0.3s ease-out;
    }

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.06));
    z-index: 0;
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {

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

    50% {
        transform: scale(1.05) rotate(1deg);
    }
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite reverse;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.badge:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.7);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5rem);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.terminal-demo {
    background: rgba(49, 46, 129, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 2rem auto;
    max-width: 600px;
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.terminal-demo:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.2) inset;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 27, 75, 0.6);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.terminal-demo:hover .terminal-dot {
    animation: dotPulse 1s ease-in-out infinite;
}

@keyframes dotPulse {

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

    50% {
        transform: scale(1.2);
    }
}

.terminal-dot.red {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

.terminal-dot.yellow {
    background: #eab308;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.6);
}

.terminal-dot.green {
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.terminal-body div {
    margin-bottom: 0.5rem;
}

.prompt {
    color: var(--primary);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.arrow {
    color: var(--text-muted);
    margin: 0 0.5rem;
}

.output {
    color: var(--text-muted);
    padding-left: 2rem;
}

.cursor {
    display: inline-block;
    animation: cursorBlink 1s step-end infinite, cursorGlow 2s ease-in-out infinite;
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.8);
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

@keyframes cursorGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }

    50% {
        box-shadow: 0 0 30px rgba(99, 102, 241, 1);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    background-size: 200% 200%;
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    animation: gradientShift 3s ease infinite;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.icon {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.btn:hover .icon {
    transform: scale(1.2);
}

.scroll-indicator {
    animation: bounce 2s infinite;
    color: var(--text-muted);
}

@keyframes bounce {

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

    50% {
        transform: translateY(10px);
    }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

/* Sections */
section {
    padding: 4rem 1.5rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

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

.section-header {
    max-width: 1280px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.06));
}

.features-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-15px) scale(1.03) rotateX(5deg);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.18);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.2),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Commands Preview */
.commands-preview {
    background: rgba(49, 46, 129, 0.1);
}

.commands-categories {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cmd-category {
    background: rgba(49, 46, 129, 0.35);
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.cmd-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.cmd-category h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.cmd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.badge-cmd {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.badge-cmd:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.8);
}

/* Screenshots Section */
.screenshots {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06), transparent);
}

.screenshots-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.screenshot-card {
    position: relative;
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}

.screenshot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.screenshot-card:hover::before {
    opacity: 1;
}

.screenshot-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.35);
}

.screenshot-card img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.screenshot-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.15) contrast(1.1);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    min-height: 400px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
    display: block;
}

.screenshot-card p {
    padding: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Download Section */
.download {
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.06));
}

.download-grid {
    max-width: 1280px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.download-column h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.card {
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    backdrop-filter: blur(20px) saturate(150%);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

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

.requirements-list li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
    transition: transform 0.3s ease;
}

.requirements-list li:hover {
    transform: translateX(10px);
}

.bullet {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 50%;
    margin-top: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
}

.requirements-list li:hover .bullet {
    transform: scale(1.8);
    box-shadow: 0 0 20px rgba(99, 102, 241, 1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.requirements-list li:hover {
    color: var(--text);
}

.code-block {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.code-block:hover {
    transform: translateX(8px);
}

.code-block:last-child {
    margin-bottom: 0;
}

.code-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.code-icon {
    font-size: 1rem;
    color: var(--primary);
}

.code-block code {
    display: block;
    background: rgba(30, 27, 75, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 0.25rem;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--primary);
    overflow-x: auto;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.code-block code:hover {
    background: rgba(30, 27, 75, 0.8);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.code-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-cta {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.license-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
}

/* Wiki Section */
.wiki {
    background: rgba(49, 46, 129, 0.08);
}

.wiki-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.wiki-card {
    padding: 2rem;
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
}

.wiki-card:hover {
    transform: translateY(-12px) rotateY(5deg);
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.25);
}

.wiki-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.wiki-card:hover .wiki-icon {
    transform: scale(1.3) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.7));
}

.wiki-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.wiki-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Footer */
.footer {
    background: rgba(49, 46, 129, 0.2);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    backdrop-filter: blur(20px);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
    transition: transform 0.3s ease;
}

.footer-column ul li:hover {
    transform: translateX(5px);
}

.footer-column a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1.5px solid var(--border);
    border-radius: 0.75rem;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.social-icon:hover::before {
    left: 100%;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Commands Page */
.commands-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.06));
    border-bottom: 1px solid var(--border);
    padding: 3rem 1.5rem;
    backdrop-filter: blur(20px);
}

.commands-header-content {
    max-width: 1280px;
    margin: 0 auto;
}

.commands-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.commands-icon {
    font-size: 2.5rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.commands-header-content h1 {
    font-size: 2.5rem;
}

.commands-header-content p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

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

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.3);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    transition: transform 0.3s ease;
}

.search-input:focus+.search-icon {
    transform: translateY(-50%) scale(1.2);
}

.results-count {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.commands-sections {
    display: grid;
    gap: 2rem;
}

.command-category-section {
    background: rgba(49, 46, 129, 0.18);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.command-category-section:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.12);
    border-bottom: 1px solid var(--border);
}

.category-header h2 {
    flex: 1;
    color: var(--primary);
    font-size: 1.5rem;
}

.category-count {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 0.25rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.commands-table {
    width: 100%;
    border-collapse: collapse;
}

.commands-table thead {
    background: rgba(99, 102, 241, 0.08);
}

.commands-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.commands-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.08);
    transition: all 0.3s ease;
}

.commands-table tbody tr {
    transition: all 0.3s ease;
}

.commands-table tbody tr:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.command-name {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-weight: 600;
}

.command-desc {
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 3rem;
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(15px);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Scroll animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }

    .features-grid,
    .screenshots-grid,
    .download-grid,
    .wiki-grid {
        grid-template-columns: 1fr;
    }

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

    .terminal-demo {
        font-size: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .commands-table {
        font-size: 0.875rem;
    }

    .commands-table th,
    .commands-table td {
        padding: 0.75rem;
    }

    .screenshot-card img {
        height: 200px;
    }

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

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {

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

/* Wiki Page Styles */
.wiki-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.wiki-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.wiki-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.wiki-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wiki-icon-large {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

.wiki-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
}

.wiki-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: rgba(30, 27, 75, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.wiki-sidebar h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.wiki-nav {
    list-style: none;
}

.wiki-nav li {
    margin-bottom: 0.5rem;
}

.wiki-nav a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.wiki-nav a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

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

.wiki-section {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.wiki-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.wiki-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.wiki-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

.wiki-section h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--primary);
}

.info-card {
    background: rgba(30, 27, 75, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover {
    background: rgba(30, 27, 75, 0.5);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item {
    padding: 0.75rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0.375rem;
    border-left: 3px solid var(--primary);
}

.info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    counter-increment: step-counter;
    padding: 1rem;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 0.75rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.code-example {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 1.5rem 0;
    overflow: hidden;
}

.code-title {
    background: rgba(99, 102, 241, 0.1);
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    border-bottom: 1px solid var(--border);
}

.code-example pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-example code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text);
}

.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cmd-item {
    background: rgba(30, 27, 75, 0.3);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.cmd-item:hover {
    background: rgba(30, 27, 75, 0.5);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.cmd-item code {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.cmd-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.req-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(30, 27, 75, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.req-item:hover {
    background: rgba(30, 27, 75, 0.5);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.req-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.req-item h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.req-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.wiki-link {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 1px solid var(--primary);
    transition: all 0.2s ease;
}

.wiki-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.wiki-footer-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: var(--radius);
    margin-top: 3rem;
}

.wiki-footer-cta h2 {
    margin-bottom: 0.5rem;
}

.wiki-footer-cta p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-link {
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 1.5px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover {
    color: white;
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(99, 102, 241, 0.5);
}

.social-link:hover::after {
    width: 300px;
    height: 300px;
}

.social-link .icon {
    margin-right: 0;
    font-size: 1.1rem;
}

/* Enhanced particle background effect */
@keyframes float {

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

    50% {
        transform: translateY(-20px);
    }
}

/* Enhanced button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Wiki Layout */
@media (max-width: 768px) {
    .wiki-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .wiki-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

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

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

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

/* News Section */
.news-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.08));
    padding: 4rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.news-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

.news-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.news-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-icon {
    font-size: 3rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.news-header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin: 0;
}

.news-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.news-card {
    background: rgba(49, 46, 129, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.news-card:hover::before {
    transform: scaleX(1);
}

.news-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.3),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.news-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 27, 75, 0.4);
    border-bottom: 1px solid var(--border);
}

.news-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 1rem;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

.news-card-image {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    height: 250px;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.08);
    filter: brightness(1.1);
}

.news-card-content {
    padding: 1.5rem;
}

.news-card-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.news-card:hover .news-card-content h2 {
    color: var(--primary);
}

.news-excerpt {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.375rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-size: 0.95rem;
}

.read-more-btn:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.arrow-icon {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.read-more-btn:hover .arrow-icon {
    transform: translateX(4px);
}

.news-full-content {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    animation: slideDown 0.4s ease-out;
}

.news-full-content h3 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.news-full-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.news-full-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.news-full-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.news-full-content ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.news-full-content a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.news-full-content a:hover {
    border-bottom-color: var(--primary);
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.news-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.news-footer p {
    margin-bottom: 0.5rem;
}

.news-footer strong {
    color: var(--text);
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .news-card-image {
        height: 200px;
    }
}

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