/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --primary-hover: #00cc33;
    --text-color: #e0e0e0;
    --text-secondary: #888888;
    --bg-color: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --border-color: #2a2a2a;
    --card-shadow: 0 4px 6px -1px rgba(0, 255, 65, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 255, 65, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
    --transition: all 0.2s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 15px;
}

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

/* Header and Navigation */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(0, 255, 65, 0.4);
}

.lang-switcher {
    display: flex;
    gap: 0.375rem;
    align-items: center;
}

.lang-link {
    padding: 0.35rem 0.55rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid transparent;
}

.lang-link:hover {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-link.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.3rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 5rem 0 4rem;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 255, 65, 0.03) 0px,
        rgba(0, 255, 65, 0.03) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    letter-spacing: -0.03em;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 255, 65, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
    font-family: inherit;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.125rem;
}

/* Section Styles */
section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    letter-spacing: -0.025em;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Features Section */
.features {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Site Sections */
.site-sections {
    padding: 4rem 0;
}

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

.section-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
}

.section-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-4px);
}

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

.section-title-card {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.section-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    max-width: 200px;
    height: auto;
    opacity: 0.8;
    filter: hue-rotate(80deg) brightness(1.2);
}

/* Download Section */
.download {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.download-content {
    max-width: 700px;
    margin: 0 auto;
}

.requirements,
.usage {
    background: var(--bg-color);
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

.requirements h3,
.usage h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.requirements ul {
    list-style-position: inside;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.code-block {
    background: #050505;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: var(--primary-color);
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.7;
}

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

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.resource-card {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: block;
}

.resource-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
}

.resource-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.resource-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.resource-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 2.5rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 1.75rem;
}

.footer-section h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 700;
}

.footer-section p {
    font-size: 0.85rem;
}

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

.footer-section ul li {
    margin-bottom: 0.4rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.85rem;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        align-items: flex-start;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        top: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 3.5rem 0 2.5rem;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 1.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.35rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

.page-content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.content-main h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.content-main p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-main ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-main ul li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.sidebar-image {
    max-width: 200px;
    width: 100%;
    height: auto;
    opacity: 0.8;
}

.subpages {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.subpages h3 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

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

.subpage-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: var(--transition);
}

.subpage-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
    color: var(--primary-color);
}

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

    .content-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .section-title {
        font-size: 1.25rem;
    }
}
