/* Unity Analyzer IDE - Website Styles v2 */
/* Modern glassmorphism with theme support */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(30, 30, 40, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #007ACC;
    --accent-hover: #005A9E;
    --gradient-1: #007ACC;
    --gradient-2: #00D4FF;
    --gradient-3: #7B2FFF;
    --success: #16825D;
    --error: #FF6B6B;
    --warning: #FFA500;
    --radius: 12px;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 122, 204, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent);
}

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

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 18px;
}

.logo-icon { font-size: 24px; }

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-auth, .nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.theme-icon { font-size: 18px; }

.theme-toggle.theme-switching {
    animation: themeSpin 0.3s ease;
}

@keyframes themeSpin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(0.8); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    transition: all var(--transition);
}

.lang-btn:hover {
    border-color: var(--accent);
}

.lang-flag { font-size: 16px; }

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition);
    min-width: 150px;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all var(--transition);
}

.lang-dropdown button:hover {
    background: var(--glass-bg);
    color: var(--text-primary);
}

.lang-dropdown button.active {
    background: var(--accent);
    color: white;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.orb-1 { width: 600px; height: 600px; background: var(--gradient-1); top: -200px; right: -200px; }
.orb-2 { width: 400px; height: 400px; background: var(--gradient-3); bottom: -100px; left: -100px; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: var(--gradient-2); top: 50%; left: 50%; animation-delay: -10s; }

.grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content { max-width: 600px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--text-secondary); }

.hero-visual {
    display: flex;
    justify-content: center;
}

.animate-float {
    animation: heroFloat 6s infinite ease-in-out;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Window Mockup */
.window-mockup {
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.window-header {
    background: #252526;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.window-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27CA40; }
.window-title { color: var(--text-secondary); font-size: 12px; margin-left: auto; }

.window-content {
    background: #1E1E1E;
    padding: 20px;
}

.code-preview {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: #d4d4d4;
}

.code-preview .keyword { color: #569CD6; }
.code-preview .class { color: #4EC9B0; }
.code-preview .method { color: #DCDCAA; }
.code-preview .number { color: #B5CEA8; }

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--text-secondary);
    font-size: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Headers */
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 15px; }
.section-subtitle { color: var(--text-secondary); font-size: 18px; }

/* Features */
.features { background: var(--bg-secondary); }

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

.feature-card {
    padding: 30px;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 122, 204, 0.1);
}

.feature-icon { font-size: 40px; margin-bottom: 15px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* CTA */
.cta-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 20px;
    text-align: center;
}

.cta-card h2 { font-size: 32px; margin-bottom: 15px; }
.cta-card > p { color: var(--text-secondary); margin-bottom: 30px; }
.cta-buttons { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; }

/* Page Header */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}

.page-title { font-size: 42px; font-weight: 700; margin-bottom: 10px; }
.page-subtitle { color: var(--text-secondary); font-size: 18px; }

/* Workshop */
.workshop-toolbar {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: var(--radius);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
    padding: 0 15px;
    border-radius: 8px;
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 12px 0;
    font-size: 14px;
    outline: none;
}

.sort-select select {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.workshop-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 14px;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Mods Grid */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.mod-card {
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.mod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mod-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.mod-icon { font-size: 32px; }
.mod-title-wrap { display: flex; align-items: center; gap: 8px; }
.mod-title { font-size: 16px; font-weight: 600; color: white; }
.verified-badge { color: #4ade80; font-size: 14px; }

.mod-body { padding: 20px; background: var(--bg-card); }
.mod-desc { color: var(--text-secondary); font-size: 14px; margin-bottom: 15px; line-height: 1.5; }

.mod-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.mod-tag {
    padding: 4px 10px;
    background: var(--glass-bg);
    border-radius: 4px;
    font-size: 11px;
    color: var(--accent);
}

.mod-tag.difficulty-easy { color: #4ade80; }
.mod-tag.difficulty-medium { color: #fbbf24; }
.mod-tag.difficulty-hard { color: #f97316; }
.mod-tag.difficulty-expert { color: #ef4444; }

.mod-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mod-stats { display: flex; gap: 15px; font-size: 13px; color: var(--text-secondary); }
.mod-author { font-size: 12px; color: var(--text-secondary); }

/* Download Page */
.download-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.download-hero-content h1 { font-size: 42px; margin-bottom: 15px; }
.download-hero-content > p { color: var(--text-secondary); font-size: 18px; margin-bottom: 30px; }

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 20px;
}

.badge-new {
    background: var(--success);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

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

.download-card {
    padding: 30px;
    border-radius: var(--radius);
    transition: transform var(--transition);
}

.download-card.featured { border: 2px solid var(--accent); }
.download-card:hover { transform: translateY(-5px); }

.download-card-header {
    text-align: center;
    margin-bottom: 25px;
}

.os-icon { font-size: 48px; display: block; margin-bottom: 15px; }
.download-card-header h3 { font-size: 24px; margin-bottom: 5px; }

.recommended {
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
}

.coming-soon {
    background: var(--glass-bg);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
}

.download-specs {
    list-style: none;
    margin-bottom: 25px;
}

.download-specs li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--glass-border);
}

/* Changelog */
.changelog-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.changelog-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
}

.changelog-icon { font-size: 28px; }
.changelog-content h4 { margin-bottom: 5px; }
.changelog-content p { color: var(--text-secondary); font-size: 14px; }

/* Requirements */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.requirement-card {
    padding: 30px;
    border-radius: var(--radius);
}

.requirement-card h4 { margin-bottom: 20px; color: var(--accent); }
.requirement-card ul { list-style: none; }
.requirement-card li { padding: 8px 0; color: var(--text-secondary); font-size: 14px; }
.requirement-card strong { color: var(--text-primary); }

/* Documentation */
.docs-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 70px;
}

.docs-sidebar {
    width: 280px;
    position: fixed;
    top: 70px;
    left: 0;
    bottom: 0;
    padding: 30px 20px;
    overflow-y: auto;
    border-right: 1px solid var(--glass-border);
}

.docs-nav-section { margin-bottom: 25px; }
.docs-nav-section h4 {
    color: var(--text-secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.docs-nav a {
    display: block;
    padding: 8px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all var(--transition);
}

.docs-nav a:hover { color: var(--text-primary); background: var(--glass-bg); }
.docs-nav a.active { color: var(--accent); background: rgba(0, 122, 204, 0.1); }

.docs-content {
    flex: 1;
    margin-left: 280px;
    padding: 40px 60px;
    max-width: 900px;
}

.docs-article { margin-bottom: 80px; }
.docs-article h1 { font-size: 32px; margin-bottom: 20px; }
.docs-article h2 { font-size: 24px; margin: 40px 0 15px; }
.docs-article h3 { font-size: 18px; margin: 30px 0 10px; }
.docs-article p { color: var(--text-secondary); margin-bottom: 15px; line-height: 1.7; }
.docs-article ul, .docs-article ol { margin: 15px 0 15px 25px; color: var(--text-secondary); }
.docs-article li { margin-bottom: 8px; }

.docs-callout {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: var(--radius);
    margin: 20px 0;
}

.docs-callout.info { background: rgba(0, 122, 204, 0.1); border-left: 3px solid var(--accent); }
.docs-callout.warning { background: rgba(255, 165, 0, 0.1); border-left: 3px solid var(--warning); }
.callout-icon { font-size: 20px; }

.docs-code {
    margin: 20px 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #2d2d30;
    font-size: 12px;
    color: var(--text-secondary);
}

.docs-code pre {
    background: #1e1e1e;
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.docs-image { margin: 30px 0; }
.image-placeholder {
    padding: 60px;
    text-align: center;
    border-radius: var(--radius);
    color: var(--text-secondary);
}

.image-placeholder span { font-size: 48px; display: block; margin-bottom: 10px; }

/* API Endpoints */
.api-endpoint {
    margin: 20px 0;
    padding: 15px;
    background: var(--glass-bg);
    border-radius: var(--radius);
}

.endpoint-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.method {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.method.get { background: #16825D; color: white; }
.method.post { background: #007ACC; color: white; }
.method.put { background: #FFA500; color: white; }
.method.delete { background: #FF6B6B; color: white; }

.endpoint-header code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo { margin-bottom: 15px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; }

.footer-links h4 { margin-bottom: 15px; font-size: 14px; }
.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 20px;
    animation: modalIn 0.3s ease;
}

.modal-lg { max-width: 800px; max-height: 85vh; overflow-y: auto; }

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: color var(--transition);
}

.modal-close:hover { color: var(--text-primary); }

.modal-icon { font-size: 48px; text-align: center; margin-bottom: 15px; }
.modal-content h2 { text-align: center; margin-bottom: 10px; }
.modal-content > p { text-align: center; color: var(--text-secondary); margin-bottom: 30px; }

.form-group { margin-bottom: 15px; }
.form-group input {
    width: 100%;
    padding: 15px;
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color var(--transition);
}

.form-group input:focus { outline: none; border-color: var(--accent); }

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-switch a { color: var(--accent); text-decoration: none; }
.error-message { color: var(--error); text-align: center; margin-top: 15px; font-size: 14px; }

/* Mod Detail Modal */
.mod-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.mod-detail-icon { font-size: 64px; }
.mod-detail-header h2 { margin-bottom: 5px; }
.mod-detail-author { color: var(--text-secondary); }

.mod-detail-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--glass-bg);
    border-radius: var(--radius);
}

.stat-item { text-align: center; }
.stat-item .stat-icon { font-size: 24px; display: block; margin-bottom: 5px; }
.stat-item .stat-value { font-size: 20px; font-weight: 600; display: block; }
.stat-item .stat-label { font-size: 12px; color: var(--text-secondary); }

.mod-detail-section { margin-bottom: 30px; }
.mod-detail-section h3 { margin-bottom: 15px; }
.mod-detail-section p { color: var(--text-secondary); line-height: 1.7; }

.code-block { border-radius: var(--radius); overflow: hidden; }
.code-block pre {
    background: #1e1e1e;
    padding: 20px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    max-height: 400px;
}

.mod-detail-actions { display: flex; gap: 15px; }

/* Notifications */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 25px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--text-primary);
    z-index: 9999;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show { transform: translateX(0); }
.notification-success { border-color: var(--success); }
.notification-error { border-color: var(--error); }
.notification-icon { font-size: 18px; }

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Animations */
.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.animate-on-scroll.animate-visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .docs-sidebar { display: none; }
    .docs-content { margin-left: 0; padding: 30px 20px; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-controls { display: none; }
    .mobile-menu { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .hero { padding: 120px 20px 60px; min-height: auto; }
    .hero-title { font-size: 32px; }
    .hero-buttons { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .mods-grid { grid-template-columns: 1fr; }
    
    .cta-card { padding: 40px 20px; }
    .cta-buttons { flex-direction: column; }
    
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    
    .modal-content { padding: 30px 20px; }
    .mod-detail-header { flex-direction: column; text-align: center; }
    .mod-detail-stats { flex-wrap: wrap; justify-content: center; }
    .mod-detail-actions { flex-direction: column; }
}

/* Light Theme Overrides */
[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

[data-theme="light"] .window-content,
[data-theme="light"] .docs-code pre,
[data-theme="light"] .code-block pre {
    background: #1e1e1e;
    color: #d4d4d4;
}

[data-theme="light"] .code-header {
    background: #2d2d30;
}

/* Print */
@media print {
    .navbar, .footer, .modal { display: none; }
    .hero-bg { display: none; }
    body { background: white; color: black; }
}


/* ============================================
   NEW HERO SECTION WITH CODE WINDOWS
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

.hero-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    position: relative;
    z-index: 1;
}

/* Code Windows */
.code-window {
    width: 380px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform-origin: center;
}

.code-window-left {
    transform: perspective(1000px) rotateY(15deg) translateX(-20px);
}

.code-window-right {
    transform: perspective(1000px) rotateY(-15deg) translateX(20px);
}

.code-window-header {
    background: linear-gradient(180deg, #3c3c3c 0%, #2d2d2d 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-window-content {
    background: #1e1e1e;
    padding: 20px;
    min-height: 320px;
    max-height: 320px;
    overflow: hidden;
}

.typing-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #d4d4d4;
    margin: 0;
    white-space: pre-wrap;
}

/* Code syntax highlighting */
.typing-code .kw { color: #569CD6; } /* keywords */
.typing-code .cl { color: #4EC9B0; } /* classes */
.typing-code .fn { color: #DCDCAA; } /* functions */
.typing-code .vr { color: #9CDCFE; } /* variables */
.typing-code .nm { color: #B5CEA8; } /* numbers */
.typing-code .st { color: #CE9178; } /* strings */
.typing-code .cm { color: #6A9955; } /* comments */
.typing-code .at { color: #C586C0; } /* attributes */

/* Float animations for code windows */
.animate-float-left {
    animation: floatLeft 6s ease-in-out infinite;
}

.animate-float-right {
    animation: floatRight 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes floatLeft {
    0%, 100% { transform: perspective(1000px) rotateY(15deg) translateX(-20px) translateY(0); }
    50% { transform: perspective(1000px) rotateY(12deg) translateX(-30px) translateY(-15px); }
}

@keyframes floatRight {
    0%, 100% { transform: perspective(1000px) rotateY(-15deg) translateX(20px) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-12deg) translateX(30px) translateY(-15px); }
}

/* Hero Center Content */
.hero-center {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    margin-bottom: 30px;
    animation: fadeInDown 0.8s ease forwards;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.title-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.6;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-1));
    background-size: 200% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: glowMove 3s linear infinite;
    opacity: 0.7;
    filter: blur(8px);
}

@keyframes glowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.btn-icon {
    font-size: 18px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    animation: fadeIn 1s ease 2s forwards;
    opacity: 0;
}

.scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-arrow {
    font-size: 20px;
    animation: bounce 2s infinite;
}

/* Particles */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

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

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Feature cards improvements */
.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), var(--gradient-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 28px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* CTA improvements */
.cta-card {
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 122, 204, 0.1), rgba(123, 47, 255, 0.1));
    z-index: 0;
}

.cta-card h2, .cta-card p, .cta-buttons {
    position: relative;
    z-index: 1;
}

/* Responsive for new hero */
@media (max-width: 1200px) {
    .code-window {
        width: 300px;
    }
    
    .code-window-content {
        min-height: 280px;
        max-height: 280px;
    }
    
    .typing-code {
        font-size: 11px;
    }
}

@media (max-width: 1024px) {
    .hero-showcase {
        flex-direction: column;
        gap: 30px;
    }
    
    .code-window-left,
    .code-window-right {
        display: none;
    }
    
    .hero-center {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
