/* ============================================
   DinoX Website - Modern CSS
   Mobile-First, Light Mint / Dark Blue Theme
   Domain: dinox.handwerker.jetzt
   ============================================ */

/* ===== Local Font Faces ===== */
@font-face {
    font-family: 'Inter';
    font-weight: 300;
    font-style: normal;
    src: url('../fonts/Inter-Thin.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 400;
    font-style: normal;
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 500;
    font-style: normal;
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 600;
    font-style: normal;
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    font-weight: 700;
    font-style: normal;
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-display: swap;
}

/* ===== CSS Variables ===== */
:root {
    /* Light Theme - Mint Green */
    --color-primary: #10b981;
    --color-primary-light: #34d399;
    --color-primary-dark: #059669;
    --color-accent: #06b6d4;
    --color-donate: #f59e0b;
    --color-donate-dark: #d97706;
    
    --bg-body: #ffffff;
    --bg-section: #f0fdf4;
    --bg-card: #ffffff;
    --bg-code: #ecfdf5;
    --bg-nav: rgba(255, 255, 255, 0.92);
    
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    
    --border-color: #d1fae5;
    --border-subtle: #e5e7eb;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    --gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    --gradient-donate: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    
    /* 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;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', Consolas, monospace;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===== Dark Theme - Blue ===== */
[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-primary-light: #60a5fa;
    --color-primary-dark: #2563eb;
    --color-accent: #8b5cf6;
    --color-donate: #fbbf24;
    --color-donate-dark: #f59e0b;
    
    --bg-body: #0f172a;
    --bg-section: #1e293b;
    --bg-card: #1e293b;
    --bg-code: #1e293b;
    --bg-nav: rgba(15, 23, 42, 0.95);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --border-color: #334155;
    --border-subtle: #334155;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-hero: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --gradient-donate: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hide horizontal scrollbars globally */
::-webkit-scrollbar:horizontal {
    display: none;
    height: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
    scrollbar-width: thin;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    overflow-x: hidden;
    min-width: 320px;
    transition: background-color var(--transition-base), color var(--transition-base);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal overflow from any element */
.container, section, main, footer, header {
    max-width: 100%;
}

/* Navbar needs overflow visible for mobile menu dropdown */
nav.navbar {
    max-width: 100%;
    overflow: visible;
}

/* Global pre/code - prevent scrollbars */
pre, code {
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

a:hover {
    color: var(--color-primary-dark);
}

/* ===== Accessibility Focus Styles ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode adjustments */
@media (prefers-contrast: high) {
    :root {
        --border-subtle: #000000;
        --border-color: #000000;
    }
    
    [data-theme="dark"] {
        --border-subtle: #ffffff;
        --border-color: #ffffff;
    }
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

ul, ol {
    list-style: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    box-sizing: border-box;
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    position: fixed;
    left: var(--space-md);
    top: var(--space-md);
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-md);
    z-index: 10000;
}

/* ===== Navigation ===== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-sm) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav-brand .logo {
    width: 36px;
    height: 36px;
}

.nav-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: none;
    gap: var(--space-xs);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
    }
}

.nav-menu a {
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-menu a:hover {
    color: var(--text-primary);
    background: var(--bg-section);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

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

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 8px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

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

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

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

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-md);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu a:hover {
    background: var(--bg-section);
    color: var(--text-primary);
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-section);
    border-color: var(--color-primary);
}

.btn-donate {
    background: var(--gradient-donate);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: #ffffff;
}

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

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

/* ===== Hero Section ===== */
.hero {
    background: var(--gradient-hero);
    padding: var(--space-xl) 0 var(--space-2xl);
    overflow: hidden;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-3xl) 0 var(--space-4xl);
    }
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .hero .container {
        flex-direction: row;
        text-align: left;
        gap: var(--space-3xl);
    }
}

.hero-content {
    flex: 1;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .hero-content {
        max-width: 600px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
    width: 100%;
}

@media (min-width: 480px) {
    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Hero Buttons - Full width on small mobile */
.hero-buttons .btn {
    width: 100%;
}

@media (min-width: 480px) {
    .hero-buttons .btn {
        width: auto;
    }
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-tags {
        justify-content: flex-start;
    }
}

.tag {
    padding: var(--space-xs) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Hero Slider */
.hero-slider {
    flex: 1;
    width: 100%;
    max-width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .hero-slider {
        max-width: 600px;
    }
}

.hero-slides {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 16/10;
}

@media (min-width: 768px) {
    .hero-slides {
        border-radius: var(--radius-xl);
    }
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slider-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-slider-dot:hover {
    background: var(--color-primary-light);
}

.hero-slider-dot.active {
    background: var(--color-primary);
    width: 24px;
}

/* Legacy hero-image (fallback) */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
}

.hero-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

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

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

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

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

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
}

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

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

/* ===== Screenshots Section ===== */
.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.screenshot-item {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    background: var(--bg-card);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.screenshot-item img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}

.screenshot-item .caption {
    padding: var(--space-md);
    text-align: center;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
}



/* ===== Download Section ===== */
.download {
    background: var(--bg-section);
}

.download-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .download-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Source Code card spans full width */
    .download-card:last-child {
        grid-column: 1 / -1;
    }
}

.download-card {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    min-width: 0;
    overflow: hidden;
}

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

.download-card.featured {
    border-color: var(--color-primary);
    position: relative;
}

.download-card.featured::before {
    content: 'Recommended';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}

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

.download-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.download-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.download-card pre {
    background: var(--bg-code);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    overflow-x: hidden;
    margin-bottom: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    word-break: break-all;
    white-space: pre-wrap;
    max-width: 100%;
}

@media (min-width: 480px) {
    .download-card pre {
        font-size: 0.75rem;
    }
}

@media (min-width: 1200px) {
    .download-card pre {
        font-size: 0.8125rem;
    }
}

.download-card code {
    font-family: var(--font-mono);
}

/* ===== Donate Section ===== */
.donate {
    background: var(--gradient-donate);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    opacity: 0.5;
}

.donate .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.donate-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.donate-icon svg {
    width: 32px;
    height: 32px;
    color: #ffffff;
}

.donate h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-md);
}

.donate p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.donate-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .donate-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: none;
    }
}

.donate-buttons .btn {
    width: 100%;
}

@media (min-width: 480px) {
    .donate-buttons .btn {
        width: auto;
    }
}

.btn-donate-light {
    background: #ffffff;
    color: var(--color-donate-dark);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.btn-donate-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: var(--color-donate-dark);
}

.btn-donate-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-donate-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* ===== XEP Section ===== */
.xep-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
    .xep-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.xep-stat {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.xep-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.xep-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.xep-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .xep-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .xep-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

.xep-category {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.xep-category h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.xep-category h3 svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.xep-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
}

.xep-badge {
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

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

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

.changelog-item {
    position: relative;
    padding-left: var(--space-2xl);
    padding-bottom: var(--space-xl);
    border-left: 2px solid var(--border-color);
}

.changelog-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.changelog-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--color-primary);
    border-radius: 50%;
    border: 3px solid var(--bg-section);
}

.changelog-version {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
}

.changelog-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

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

.changelog-content h4:first-child {
    margin-top: 0;
}

.changelog-content ul {
    padding-left: var(--space-lg);
}

.changelog-content li {
    position: relative;
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.changelog-content li::before {
    content: '→';
    position: absolute;
    left: calc(-1 * var(--space-lg));
    color: var(--color-primary);
}

/* ===== About Section ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.about-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.about-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 640px) and (max-width: 1023px) {
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    background: var(--bg-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.stat-card .stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.stat-card .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ===== Contact Info ===== */
.contact-info {
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-subtle);
    margin-top: var(--space-xl);
}

.contact-info h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-item a {
    color: var(--text-secondary);
}

.contact-item a:hover {
    color: var(--color-primary);
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-section);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

@media (min-width: 480px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr repeat(3, 1fr);
    }
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-brand .logo-row img {
    width: 32px;
    height: 32px;
}

.footer-brand .logo-row span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

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

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--text-muted);
}

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

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all var(--transition-base);
    z-index: 100;
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: var(--space-sm);
}

@media (min-width: 768px) {
    .lightbox {
        padding: var(--space-lg);
    }
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 100%;
    max-height: 75vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    object-fit: contain;
    cursor: zoom-out;
}

@media (min-width: 768px) {
    .lightbox-img {
        max-width: 90%;
        max-height: 80vh;
        border-radius: var(--radius-lg);
    }
}

.lightbox-caption {
    color: #ffffff;
    font-size: 1.125rem;
    margin-top: var(--space-lg);
    text-align: center;
}

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

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

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ===== Donate Section ===== */
.donate {
    padding: var(--space-3xl) 0;
    background: var(--bg-secondary);
}

.donate-content {
    display: flex;
    justify-content: center;
}

.donate-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

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

.donate-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
}

.donate-icon svg {
    width: 40px;
    height: 40px;
    color: #ffffff;
}

.donate-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.donate-card > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.btn-kofi {
    background: #FF5E5B;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: none;
}

.btn-kofi:hover {
    background: #e54542;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 94, 91, 0.4);
}

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

.donate-note {
    margin-top: var(--space-md);
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Mobile-First Responsive Fixes ===== */

/* Prevent any element from causing horizontal scroll */
* {
    max-width: 100%;
}

/* XEP Stats Mobile */
@media (max-width: 479px) {
    .xep-stats {
        grid-template-columns: 1fr;
    }
    
    .xep-stat-number {
        font-size: 1.5rem;
    }
}

/* About Section Mobile */
@media (max-width: 767px) {
    .about-links {
        flex-direction: column;
    }
    
    .about-links .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Contact Info Mobile */
@media (max-width: 479px) {
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .contact-item a {
        word-break: break-all;
    }
}

/* Section Padding Mobile */
@media (max-width: 479px) {
    section {
        padding: var(--space-2xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-xl);
    }
}

/* Tags Mobile - Horizontal Scroll */
.hero-tags {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: var(--space-sm);
}

.hero-tags::-webkit-scrollbar {
    display: none;
}

@media (max-width: 479px) {
    .hero-tags {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    
    .tag {
        flex-shrink: 0;
    }
}

/* Changelog Mobile */
@media (max-width: 479px) {
    .changelog-item {
        padding-left: var(--space-lg);
    }
}

/* Button sizing on very small screens */
@media (max-width: 359px) {
    .btn {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: var(--space-md) var(--space-lg);
        font-size: 1rem;
    }
}

/* Nav brand text on small screens */
@media (max-width: 359px) {
    .nav-brand .brand-name {
        font-size: 1rem;
    }
}

/* Footer Brand Mobile */
@media (max-width: 479px) {
    .footer-brand {
        max-width: 100%;
    }
}

/* Ensure images never overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Code blocks wrap on mobile */
code {
    word-break: break-word;
}

pre code {
    word-break: normal;
}
