﻿:root {
    --primary: #059669;
    --primary-light: #10b981;
    --primary-dark: #047857;
    --accent: #0d9488;
    --accent-light: #14b8a6;
    
    --bg-primary: #0f1410;
    --bg-secondary: #141a16;
    --bg-tertiary: #1a211c;
    --bg-card: rgba(26, 33, 28, 0.7);
    
    --text-primary: #f9fafb;
    --text-secondary: rgba(249, 250, 251, 0.7);
    --text-muted: rgba(249, 250, 251, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(5, 150, 105, 0.25) 0%, rgba(13, 148, 136, 0.25) 100%);
    
    --writer: #3b82f6;
    --calc: #10b981;
    --impress: #f97316;
    --draw: #eab308;
    --base: #8b5cf6;
    --math: #ec4899;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

[data-theme="light"] {
    --bg-primary: #f0fdf4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #ecfdf5;
    --bg-card: rgba(255, 255, 255, 0.9);
    
    --text-primary: #0f172a;
    --text-secondary: rgba(15, 23, 42, 0.7);
    --text-muted: rgba(15, 23, 42, 0.5);
    
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* Background Effects */
.background-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-wave {
    position: absolute;
    width: 200%;
    height: 600px;
    opacity: 0.3;
}

.wave-1 {
    background: linear-gradient(180deg, var(--primary) 0%, transparent 100%);
    top: -300px;
    left: -50%;
    transform: rotate(-5deg);
    animation: waveFloat 20s ease-in-out infinite;
}

.wave-2 {
    background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
    bottom: -300px;
    right: -50%;
    transform: rotate(5deg);
    animation: waveFloat 25s ease-in-out infinite reverse;
}

@keyframes waveFloat {
    0%, 100% { transform: rotate(-5deg) translateX(0); }
    50% { transform: rotate(-3deg) translateX(50px); }
}

.dots-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(5, 150, 105, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(15, 20, 16, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: background var(--transition-base);
}

[data-theme="light"] .header {
    background: rgba(240, 253, 244, 0.9);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--glass-border);
    color: var(--text-primary);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

.sun-icon { display: none; }
.moon-icon { display: block; }

[data-theme="light"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: none; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 24px rgba(5, 150, 105, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.45);
}

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

.btn-secondary:hover {
    background: var(--glass-border);
    border-color: rgba(255, 255, 255, 0.15);
}

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

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

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gradient-glow);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.hero-formats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.format-tag {
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Hero Visual - Apps Showcase */
.hero-visual {
    display: flex;
    justify-content: center;
}

.apps-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 340px;
}

.app-card {
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.app-card.writer:hover { border-color: rgba(59, 130, 246, 0.5); }
.app-card.calc:hover { border-color: rgba(16, 185, 129, 0.5); }
.app-card.impress:hover { border-color: rgba(249, 115, 22, 0.5); }
.app-card.draw:hover { border-color: rgba(234, 179, 8, 0.5); }

.app-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: var(--radius-md);
}

.app-icon svg {
    width: 28px;
    height: 28px;
}

.app-card.writer .app-icon {
    background: rgba(59, 130, 246, 0.15);
    color: var(--writer);
}

.app-card.calc .app-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--calc);
}

.app-card.impress .app-icon {
    background: rgba(249, 115, 22, 0.15);
    color: var(--impress);
}

.app-card.draw .app-icon {
    background: rgba(234, 179, 8, 0.15);
    color: var(--draw);
}

.app-name {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(1.875rem, 3.5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Apps Section */
.apps {
    background: var(--bg-secondary);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.app-feature-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.app-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.1);
}

.app-feature-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
}

.app-feature-icon svg {
    width: 32px;
    height: 32px;
}

.app-feature-icon.writer {
    background: rgba(59, 130, 246, 0.15);
    color: var(--writer);
}

.app-feature-icon.calc {
    background: rgba(16, 185, 129, 0.15);
    color: var(--calc);
}

.app-feature-icon.impress {
    background: rgba(249, 115, 22, 0.15);
    color: var(--impress);
}

.app-feature-icon.draw {
    background: rgba(234, 179, 8, 0.15);
    color: var(--draw);
}

.app-feature-icon.base {
    background: rgba(139, 92, 246, 0.15);
    color: var(--base);
}

.app-feature-icon.math {
    background: rgba(236, 72, 153, 0.15);
    color: var(--math);
}

.app-feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.app-feature-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.app-formats {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.1);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-glow);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 50%;
    margin: 0 auto 20px;
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary-light);
}

.benefit-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Comparison Section */
.comparison {
    background: var(--bg-secondary);
}

.comparison-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.comparison-header {
    padding: 32px;
    text-align: center;
    background: var(--gradient-glow);
    border-bottom: 1px solid var(--glass-border);
}

.comparison-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.comparison-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.comparison-table {
    padding: 24px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--glass-border);
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-row span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.comparison-row .highlight {
    color: var(--primary-light);
    font-weight: 600;
}

.comparison-row .check {
    color: var(--primary);
}

.comparison-row .check svg,
.comparison-row .cross svg {
    width: 20px;
    height: 20px;
}

.comparison-row .cross {
    color: #ef4444;
}

/* Download Section */
.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.download-card {
    padding: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

.download-card.featured {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
    border-color: rgba(5, 150, 105, 0.3);
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(5, 150, 105, 0.15);
}

.download-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--gradient-glow);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius-lg);
}

.download-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-light);
}

.download-icon.linux svg {
    fill: var(--text-secondary);
}

.download-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.download-card > p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.version {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-options .btn {
    width: 100%;
}

.download-extra {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.download-extra a {
    color: var(--primary-light);
}

.download-extra a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Final CTA */
.final-cta {
    background: var(--bg-secondary);
}

.cta-card {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.12) 0%, rgba(13, 148, 136, 0.12) 100%);
    border: 1px solid rgba(5, 150, 105, 0.25);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
}

.cta-card h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--glass-border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.footer-logo .logo-icon {
    width: 36px;
    height: 36px;
}

.footer-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 300px;
}

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

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-formats {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .apps-showcase {
        max-width: 300px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 32px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-info p {
        max-width: none;
    }
    
    .footer-logo {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero h1 {
        font-size: 1.875rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .app-feature-card {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-header h2 {
        font-size: 1.625rem;
    }
    
    .cta-card {
        padding: 48px 24px;
    }
    
    .cta-card h2 {
        font-size: 1.625rem;
    }
    
    .comparison-row {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .benefit-card,
    .app-feature-card {
        padding: 24px;
    }
    
    .download-card {
        padding: 28px;
    }
    
    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        padding: 0 20px 16px;
        font-size: 0.9rem;
    }
    
    .apps-showcase {
        max-width: 100%;
    }
}
/* Screenshots Section */
.screenshots {
    background: var(--bg-secondary);
}

.screenshot-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-frame {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.frame-header {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
}

.frame-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.frame-dot:nth-child(1) { background: #ff5f57; }
.frame-dot:nth-child(2) { background: #ffbd2e; }
.frame-dot:nth-child(3) { background: #28ca42; }

.frame-content {
    padding: 24px;
}

.screenshot-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-content h4 {
    margin: 20px 0 10px;
    color: var(--primary-light);
}

.modal-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.modal-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.modal-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    margin: 12px 0;
}

.modal-content code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--primary-light);
}

/* No-copy protection */
.no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Button text style */
.btn-text {
    background: none;
    border: none;
    color: var(--primary-light);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 8px 0;
    margin-top: 12px;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.8;
}

/* Comparison fix */
.comparison-card {
    position: relative;
    z-index: 1;
}

.comparison-header {
    position: relative;
    z-index: 2;
}

.comparison-table {
    position: relative;
    z-index: 1;
}

/* Fan site text */
.fan-site {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}
