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

:root {
    /* Notion-inspired color palette */
    --primary-color: #37352f;
    --primary-light: #787774;
    --secondary-color: #9b9a97;
    --accent-color: #2e75cc;
    --accent-light: #4a9eff;
    --success-color: #4cb782;
    --warning-color: #ff9d3b;
    --danger-color: #ff7369;
    
    /* Background colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f7f6f3;
    --bg-tertiary: #f1f1ef;
    --bg-dark: #2f3437;
    
    /* Text colors */
    --text-primary: #37352f;
    --text-secondary: #787774;
    --text-tertiary: #9b9a97;
    --text-light: #ffffff;
    
    /* Border colors */
    --border-primary: #e3e2e0;
    --border-secondary: #d3d2d0;
    --border-focus: #2e75cc;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border radius */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-light);
}

code {
    font-family: var(--font-mono);
    background-color: var(--bg-tertiary);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.nav-logo i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-sm);
}

.bar {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Hero Section */
.hero {
    padding: 120px 0 var(--space-3xl);
    background: linear-gradient(135deg, rgba(55, 53, 47, 0.8) 0%, rgba(120, 119, 116, 0.6) 100%), 
                url('https://d2wlxnjs36siot.cloudfront.net/X-Plane_Screenshot_2024.10.25_-_16.00.47.83.png') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--text-light);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(55, 53, 47, 0.85) 0%, 
        rgba(120, 119, 116, 0.7) 50%, 
        rgba(46, 117, 204, 0.3) 100%);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.badge {
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

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

.badge-primary {
    background: rgba(46, 117, 204, 0.9);
    color: var(--text-light);
    border-color: rgba(46, 117, 204, 0.3);
}

.badge-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-success {
    background: rgba(76, 183, 130, 0.9);
    color: var(--text-light);
    border-color: rgba(76, 183, 130, 0.3);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(46, 117, 204, 0.9);
    color: var(--text-light);
    border-color: rgba(46, 117, 204, 0.3);
    box-shadow: 0 4px 12px rgba(46, 117, 204, 0.3);
}

.btn-primary:hover {
    background: rgba(46, 117, 204, 1);
    border-color: rgba(46, 117, 204, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 117, 204, 0.4);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Animation */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.plugin-preview {
    position: relative;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.plugin-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.plugin-preview i {
    font-size: 3rem;
    color: var(--text-light);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

.sound-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: wave 2s infinite;
}

.wave:nth-child(1) {
    width: 100px;
    height: 100px;
    margin: -50px 0 0 -50px;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    animation-delay: 0.5s;
}

.wave:nth-child(3) {
    width: 200px;
    height: 200px;
    margin: -100px 0 0 -100px;
    animation-delay: 1s;
}

@keyframes wave {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

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

/* Scroll indicator removed */

/* Floating particles effect */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 117, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Section Styles */
section {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2xl);
    color: var(--text-primary);
}

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

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

.feature-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-secondary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-primary);
}

.feature-icon i {
    font-size: 1.25rem;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Downloads Section */
.downloads {
    background: var(--bg-secondary);
}

.latest-release h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    text-align: center;
    color: var(--text-primary);
}

.release-date {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    font-size: 0.875rem;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    align-items: stretch;
}

.download-card {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.download-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-secondary);
}

.download-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.download-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-icon {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    color: var(--accent-color);
}

.download-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.download-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    font-size: 0.875rem;
}

.download-card .file-size {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-lg);
}

.download-card-actions {
    margin-top: auto;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(46, 117, 204, 0.9);
    color: var(--text-light);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(46, 117, 204, 0.3);
    box-shadow: 0 4px 12px rgba(46, 117, 204, 0.3);
}

.download-btn:hover {
    background: rgba(46, 117, 204, 1);
    border-color: rgba(46, 117, 204, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 117, 204, 0.4);
}

.download-btn-placeholder {
    height: 36px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    animation: pulse 2s infinite;
    border: 1px solid var(--border-primary);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Installation Section */
.installation {
    background: var(--bg-primary);
}

.installation-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.step:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.step-content code {
    background: var(--bg-tertiary);
    padding: 0.125rem 0.25rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-primary);
    border: 1px solid var(--border-primary);
}

/* Changelog Section */
.changelog {
    background: var(--bg-secondary);
}

.changelog-content {
    max-width: 800px;
    margin: 0 auto;
}

.loading-spinner {
    text-align: center;
    padding: var(--space-2xl);
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: var(--space-md);
    display: block;
}

.changelog-entry {
    background: var(--bg-primary);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-primary);
    transition: all 0.2s ease;
}

.changelog-entry:hover {
    border-color: var(--border-secondary);
    box-shadow: var(--shadow-sm);
}

.changelog-version {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-primary);
}

.changelog-version h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0;
}

.changelog-date {
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.changelog-section {
    margin-bottom: var(--space-lg);
}

.changelog-section:last-child {
    margin-bottom: 0;
}

.changelog-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.changelog-section.added h4 {
    color: var(--success-color);
}

.changelog-section.changed h4 {
    color: var(--warning-color);
}

.changelog-section.fixed h4 {
    color: var(--danger-color);
}

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

.changelog-list li {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.changelog-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Enhanced Markdown Support in Changelog */
.changelog-list li.indent-1 {
    padding-left: calc(var(--space-lg) + var(--space-lg));
}

.changelog-list li.indent-2 {
    padding-left: calc(var(--space-lg) + var(--space-xl));
}

.changelog-list li.indent-3 {
    padding-left: calc(var(--space-lg) + var(--space-2xl));
}

.changelog-paragraph {
    margin: var(--space-md) 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.changelog-blockquote {
    margin: var(--space-md) 0;
    padding: var(--space-md) var(--space-lg);
    border-left: 4px solid var(--accent-color);
    background: rgba(var(--accent-color-rgb), 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.changelog-codeblock {
    margin: var(--space-md) 0;
    background: var(--bg-dark);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.changelog-codeblock code {
    display: block;
    padding: var(--space-md);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: #e6e6e6;
    background: transparent;
    white-space: pre;
    overflow-x: auto;
}

/* Inline markdown styles */
.changelog-list li strong,
.changelog-paragraph strong,
.changelog-blockquote strong {
    font-weight: 600;
    color: var(--text-primary);
}

.changelog-list li em,
.changelog-paragraph em,
.changelog-blockquote em {
    font-style: italic;
    color: var(--text-primary);
}

.changelog-list li code,
.changelog-paragraph code,
.changelog-blockquote code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.8em;
    background: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color);
    padding: 0.2em 0.4em;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
}

.changelog-list li del,
.changelog-paragraph del,
.changelog-blockquote del {
    text-decoration: line-through;
    color: var(--text-tertiary);
    opacity: 0.7;
}

.changelog-list li a,
.changelog-paragraph a,
.changelog-blockquote a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.changelog-list li a:hover,
.changelog-paragraph a:hover,
.changelog-blockquote a:hover {
    border-bottom-color: var(--accent-color);
}

/* Syntax highlighting for code blocks */
.changelog-codeblock .language-javascript code,
.changelog-codeblock .language-js code {
    color: #f7df1e;
}

.changelog-codeblock .language-css code {
    color: #1572b6;
}

.changelog-codeblock .language-html code {
    color: #e34f26;
}

.changelog-codeblock .language-bash code,
.changelog-codeblock .language-sh code {
    color: #89e051;
}

.changelog-codeblock .language-json code {
    color: #4db8ff;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-light);
}

.footer-section p {
    color: #9b9a97;
    line-height: 1.6;
    font-size: 0.875rem;
}

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

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: #9b9a97;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

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

.footer-bottom {
    border-top: 1px solid #404040;
    padding-top: var(--space-lg);
    text-align: center;
    color: #9b9a97;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: var(--space-xl) 0;
        border-bottom: 1px solid var(--border-primary);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero {
        background-attachment: scroll;
        padding: 100px 0 var(--space-2xl);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }

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

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

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

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

    .plugin-preview {
        width: 150px;
        height: 150px;
    }

    .plugin-preview i {
        font-size: 2.5rem;
    }

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

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

    .step {
        flex-direction: column;
        text-align: center;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .hero {
        padding: 80px 0 var(--space-xl);
    }

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

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

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

    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .plugin-preview {
        width: 120px;
        height: 120px;
    }

    .plugin-preview i {
        font-size: 2rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }
.mb-5 { margin-bottom: var(--space-xl); }
.mb-6 { margin-bottom: var(--space-2xl); }

.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }
.mt-5 { margin-top: var(--space-xl); }
.mt-6 { margin-top: var(--space-2xl); }

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success-color);
    color: var(--text-light);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.toast-error {
    background: var(--danger-color);
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.download-btn:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(46, 117, 204, 0.2);
    color: var(--text-primary);
}

::-moz-selection {
    background: rgba(46, 117, 204, 0.2);
    color: var(--text-primary);
}
