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

:root {
    --primary: #00ff88;
    --primary-dark: #00cc6a;
    --secondary: #00d4ff;
    --dark: #0a0e1a;
    --dark-card: #141821;
    --darker: #050810;
    --text: #ffffff;
    --text-secondary: #b4b4b4;
    --accent: #ffff00;
    --gradient: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 28px !important;
    max-height: 28px !important;
    width: 28px !important;
    max-width: 28px !important;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.logo-text .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 35px;
    height: 30px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.github-link {
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: var(--primary) !important;
}

.github-link:hover {
    background: rgba(0, 255, 136, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.05), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05), transparent 50%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 255, 136, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 255, 136, 0.1);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.version-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Code Window */
.code-window {
    background: #334455;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.code-dots span:nth-child(1) {
    background: #ff5f57;
}

.code-dots span:nth-child(2) {
    background: #ffbd2e;
}

.code-dots span:nth-child(3) {
    background: #28ca42;
}

.code-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content code {
    color: #ffffff;
}

.keyword {
    color: #ffff00;
    font-weight: normal;
}

.function {
    color: #ffffff;
}

.string {
    color: #00ff66;
}

.number {
    color: #40ffff;
}

.comment {
    color: #bbeeff;
    font-style: normal;
}

.type {
    color: #ffff00;
}

.operator {
    color: #ffffff;
}

.boolean {
    color: #ffff00;
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 4rem;
}

/* Features Section */
.features {
    background: var(--dark);
}

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

.feature-card {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

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

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

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

/* Examples Section */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--dark-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.example-card h3 {
    padding: 1rem 1.5rem;
    background: rgba(0, 255, 136, 0.05);
    color: var(--primary);
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.example-card pre {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    overflow-x: auto;
}

/* Download Section */
.download {
    background: var(--dark);
}

.download-cards {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.download-card {
    background: var(--dark-card);
    padding: 3rem;
    border-radius: 16px;
    border: 2px solid var(--primary);
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.download-version {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.download-includes {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.download-includes li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.download-includes li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.download-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.eula-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
}

.eula-link:hover {
    color: var(--primary-dark);
}

.requirements {
    background: var(--dark-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.requirements h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}

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

.requirements-grid div {
    color: var(--text-secondary);
}

.requirements-grid strong {
    color: var(--text);
}

/* Community Section */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.community-single {
    display: flex;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.community-card,
.community-card-large {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.community-card-large {
    padding: 3rem;
    text-align: center;
    border: 2px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.15);
    width: 100%;
}

.community-card:hover,
.community-card-large:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
}

.community-card-large:hover {
    box-shadow: 0 15px 50px rgba(0, 255, 136, 0.25);
}

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

.community-card h3,
.community-card-large h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.community-card-large h3 {
    font-size: 1.8rem;
}

.community-card p,
.community-card-large p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.community-card-large p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.community-link {
    color: var(--primary);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(0, 255, 136, 0.1);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

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

.footer-column ul li {
    margin-bottom: 0.5rem;
}

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

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.footer-credits {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-code {
        order: -1;
    }

    .code-window {
        max-width: 100%;
    }

    .code-content {
        text-align: left;
        font-size: 0.8rem;
        padding: 1rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .navbar .container {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 1rem 0;
        background: var(--dark-card);
        border-radius: 8px;
        margin-top: 1rem;
    }

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

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

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

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

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

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .code-window {
        font-size: 0.75rem;
    }

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

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