/* XB_F.1_MIX Website - Dark Mode First Design System */

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

:root {
    /* Color System */
    --bg-pure-black: #000000;
    --bg-near-black: #0a0a0a;
    --bg-elevated: #141414;
    --bg-hover: #1e1e1e;
    --bg-tooltip: #282828;
    
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    
    --accent-primary: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --accent-glow-strong: rgba(59, 130, 246, 0.7);
    
    --semantic-success: #22c55e;
    --semantic-warning: #f59e0b;
    --semantic-error: #ef4444;
    
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-moderate: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.2);
    
    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    
    --font-size-hero-xl: 56px;
    --font-size-heading-lg: 36px;
    --font-size-heading-md: 24px;
    --font-size-heading-sm: 20px;
    --font-size-body-lg: 18px;
    --font-size-body-base: 16px;
    --font-size-body-sm: 14px;
    --font-size-code: 14px;
    
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.1;
    --line-height-snug: 1.2;
    --line-height-normal: 1.3;
    --line-height-relaxed: 1.5;
    --line-height-loose: 1.6;
    --line-height-code: 1.4;
    
    --letter-spacing-tighter: -0.02em;
    --letter-spacing-tight: -0.01em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.01em;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-4: 16px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows & Glow */
    --glow-accent: 0 0 20px rgba(59, 130, 246, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
    --glow-accent-strong: 0 0 30px rgba(59, 130, 246, 0.7), 0 0 60px rgba(59, 130, 246, 0.4);
    --elevation-card: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.5);
    --elevation-modal: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 24px rgba(0, 0, 0, 0.7);
    
    /* Animation */
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
    --easing-default: ease-out;
    --easing-sharp: cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Base Typography */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-body-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
    background-color: var(--bg-near-black);
    overflow-x: hidden;
}

/* Typography Classes */
.hero-title {
    font-size: var(--font-size-hero-xl);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tighter);
    margin-bottom: var(--space-6);
}

.section-title {
    font-size: var(--font-size-heading-lg);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: var(--space-4);
}

.heading-md {
    font-size: var(--font-size-heading-md);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-3);
}

.heading-sm {
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-2);
}

.body-lg {
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-4);
}

.body-base {
    font-size: var(--font-size-body-base);
    line-height: var(--line-height-relaxed);
}

.body-sm {
    font-size: var(--font-size-body-sm);
    line-height: var(--line-height-relaxed);
    letter-spacing: var(--letter-spacing-wide);
}

.code {
    font-family: var(--font-mono);
    font-size: var(--font-size-code);
    line-height: var(--line-height-code);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-relaxed);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
}

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

.logo-text {
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-6);
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-body-base);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--easing-default);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: all var(--duration-fast) var(--easing-default);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-ghost {
    height: 48px;
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-md);
    font-size: var(--font-size-body-base);
    font-weight: var(--font-weight-semibold);
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-default);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--glow-accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--glow-accent-strong);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

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

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--glow-accent);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

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

.btn-glow {
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: var(--glow-accent); }
    50% { box-shadow: var(--glow-accent-strong); }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--bg-pure-black);
    display: flex;
    align-items: center;
    padding: var(--space-20) 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--space-6);
}

.title-accent {
    color: var(--accent-primary);
    display: block;
    font-size: var(--font-size-heading-lg);
    margin-top: var(--space-2);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-body-lg);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.badge {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--border-subtle);
}

.hero-cta {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-images {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--space-4);
    max-width: 400px;
}

.hero-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-base) var(--easing-default);
    cursor: pointer;
}

.hero-img:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--glow-accent);
    transform: scale(1.05);
}

.hero-img-main {
    grid-column: 1 / -1;
    height: 200px;
}

/* Architecture Section */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.arch-card {
    background: var(--bg-elevated);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--elevation-card);
    transition: all var(--duration-base) var(--easing-default);
    text-align: center;
}

.arch-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-moderate);
    transform: translateY(-4px);
}

.arch-icon {
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
}

.arch-title {
    color: var(--text-primary);
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

.arch-desc {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Code Sections */
.code-section {
    background: #0f0f0f;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-6);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-subtle);
}

.code-lang {
    color: var(--text-secondary);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
}

.btn-copy {
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-body-sm);
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-default);
}

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

.code-block {
    padding: var(--space-6);
    margin: 0;
    overflow-x: auto;
    background: transparent;
}

.code-block code {
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: var(--font-size-code);
    line-height: var(--line-height-code);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-elevated);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--elevation-card);
    transition: all var(--duration-base) var(--easing-default);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-moderate);
    transform: translateY(-4px);
}

.feature-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
}

.feature-icon {
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
}

.feature-title {
    color: var(--text-primary);
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

.feature-desc {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* Gallery Section */
.gallery-section {
    background: var(--bg-pure-black);
    padding: var(--space-24) 0;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-16);
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-default);
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all var(--duration-base) var(--easing-default);
    cursor: pointer;
}

.gallery-item:hover {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--glow-accent-strong);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: all var(--duration-base) var(--easing-default);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h4 {
    color: var(--text-primary);
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.gallery-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-body-sm);
    margin-bottom: var(--space-2);
}

.gallery-tags {
    color: var(--accent-primary);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
}

/* LoRA Section */
.lora-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

.lora-title {
    color: var(--text-primary);
    font-size: var(--font-size-heading-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
}

.lora-desc {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-8);
}

.lora-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

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

.stat-number {
    color: var(--accent-primary);
    font-size: var(--font-size-heading-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--font-size-body-sm);
}

/* Deployment Section */
.deployment-tabs {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-subtle);
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-body-base);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--duration-fast) var(--easing-default);
    border-bottom: 2px solid transparent;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--accent-primary);
    background: var(--bg-elevated);
    border-bottom-color: var(--accent-primary);
}

.tab-content {
    padding: var(--space-8);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-6);
}

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

.deployment-card h4 {
    color: var(--text-primary);
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

.deployment-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.tech-spec {
    color: var(--accent-primary);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
}

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

.opt-item {
    background: var(--bg-hover);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.opt-item h4 {
    color: var(--text-primary);
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

.opt-item p {
    color: var(--text-secondary);
}

/* Resources Section */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-16);
}

.resource-card {
    background: var(--bg-elevated);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--elevation-card);
    transition: all var(--duration-base) var(--easing-default);
    text-align: center;
}

.resource-card:hover {
    background: var(--bg-hover);
    border-color: var(--border-moderate);
    transform: translateY(-4px);
}

.resource-icon {
    color: var(--accent-primary);
    margin-bottom: var(--space-4);
    display: flex;
    justify-content: center;
}

.resource-title {
    color: var(--text-primary);
    font-size: var(--font-size-heading-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

.resource-desc {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-6);
}

.resource-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: all var(--duration-fast) var(--easing-default);
}

.resource-link:hover {
    color: var(--accent-hover);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-hover) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-moderate);
    padding: var(--space-16);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: var(--text-primary);
    font-size: var(--font-size-heading-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    color: var(--text-secondary);
    font-size: var(--font-size-body-lg);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--space-8);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-moderate);
    box-shadow: var(--elevation-modal);
    overflow: hidden;
}

.lightbox-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1;
    transition: all var(--duration-fast) var(--easing-default);
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: var(--space-6);
    background: var(--bg-elevated);
}

.lightbox-info h3 {
    color: var(--text-primary);
    font-size: var(--font-size-heading-md);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.lightbox-info p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

#lightbox-tags {
    color: var(--accent-primary);
    font-size: var(--font-size-body-sm);
    font-weight: var(--font-weight-medium);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .lora-content {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .hero-image-grid {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-hero-xl: 32px;
        --font-size-heading-lg: 24px;
        --font-size-body-lg: 16px;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: var(--space-16) 0;
        min-height: auto;
    }
    
    .section {
        padding: var(--space-16) 0;
    }
    
    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
        max-width: 280px;
    }
    
    .architecture-grid,
    .features-grid,
    .gallery-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .hero-img {
        height: 150px;
    }
    
    .hero-img-main {
        height: 180px;
    }
    
    .lora-stats {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .gallery-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: var(--space-2);
    }
    
    .filter-btn {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }
    
    .hero-container {
        padding: 0 var(--space-4);
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 12px;
        padding: var(--space-1) var(--space-3);
    }
}

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

.fade-in-up {
    animation: fadeInUp var(--duration-slow) var(--easing-default);
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .lightbox,
    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
}