/* DynaNex User Manual - Modern CSS Styles */

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

:root {
    /* Black & White Theme */
    --primary-black: #000000;
    --primary-white: #ffffff;
    --dark-gray: #1a1a1a;
    --medium-gray: #2d2d2d;
    --light-gray: #404040;
    --accent-gray: #666666;
    --text-gray: #999999;
    --border-gray: #333333;
    
    /* Subtle Accents */
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    
    /* Pure B&W Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-black) 0%, var(--medium-gray) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--medium-gray) 0%, var(--primary-black) 100%);
    --gradient-hero: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
    --gradient-reverse: linear-gradient(135deg, var(--primary-white) 0%, #f5f5f5 100%);
    
    /* Glass Effects */
    --glass-dark: rgba(0, 0, 0, 0.8);
    --glass-light: rgba(255, 255, 255, 0.1);
    --backdrop-blur: blur(20px);
    
    /* 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: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Styles */
html {
    /* Removed scroll-behavior: smooth to use custom JavaScript implementation */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--primary-white);
    background: var(--gradient-hero);
    min-height: 100vh;
}

/* Title with Portrait Layout */
.title-with-portrait {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2xl);
    margin-bottom: var(--space-xl);
}

/* Developer Profile Styles */
.developer-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: 0;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.developer-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.developer-image {
    width: 150px;
    height: 200px;
    border-radius: 25px;
    object-fit: cover;
    object-position: center;
    border: 6px solid var(--primary-white);
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
}

.developer-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 35px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.05) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    z-index: -1;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

.developer-image:hover {
    transform: scale(1.08);
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 0.15),
        0 15px 40px rgba(0, 0, 0, 0.6),
        inset 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.developer-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.developer-info h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-white);
    margin: 0;
    letter-spacing: 0.02em;
    text-transform: none;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .title-with-portrait {
        flex-direction: column;
        align-items: center;
        gap: var(--space-lg);
    }
    
    .developer-profile {
        gap: var(--space-md);
        padding: var(--space-lg);
        margin-top: 0;
    }
    
    .developer-image {
        width: 120px;
        height: 160px;
    }
    
    .developer-image::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-radius: 25px;
    }
    
    .developer-info h3 {
        font-size: 2rem;
    }
}

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

/* Typography */
.gradient-text {
    background: var(--primary-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary-white);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-size: 1rem;
    transform: translateY(0);
}

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-black);
    border: 2px solid var(--border-gray);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    border-color: var(--primary-black);
    color: var(--primary-black);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.btn-download {
    background: var(--accent-green);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Old modal styles removed - new modal uses inline styles */

/* Plugin Screenshot Section */
.plugin-showcase {
    padding: var(--space-3xl) 0;
    background: var(--primary-white);
    color: var(--primary-black);
}

.plugin-showcase .section-title {
    color: var(--primary-black);
}

.plugin-showcase .section-description {
    color: var(--accent-gray);
}

.screenshot-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    flex-wrap: wrap;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.screenshot-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--primary-black);
    text-align: center;
}

.plugin-screenshot {
    width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.plugin-screenshot:hover {
    /* Removed scaling to prevent GitHub display issues */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Responsive design for screenshots */
@media (max-width: 768px) {
    .screenshot-container {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .screenshot-item {
        max-width: 100%;
    }
    
    .plugin-screenshot {
        max-height: 400px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--glass-dark);
    backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--border-gray);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 2px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
}

.nav-right-logo {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
}

.nav-right-logo .logo-icon {
    width: 100px;
    height: 100px;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
}

.nav-main-logo {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.nav-main-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none;
}

.logo-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
    box-shadow: none;
}

.logo-icon img {
    filter: grayscale(100%) contrast(120%) brightness(0.9);
    drop-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* White background containers need black text */
.logo-icon,
.version,
.floating-card,
.doc-card,
.step,
.install-step,
.tip-card,
.guide-content,
.faq-section,
.issue-card {
    color: var(--primary-black);
}

.logo-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: none;
}

.logo-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.version {
    background: var(--primary-white);
    color: var(--primary-black);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-menu {
    display: flex;
    gap: var(--space-md);
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    transition: all 0.05s ease;
    position: relative;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-white);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 24px;
    height: 3px;
    background: var(--gray-700);
    margin: 3px 0;
    border-radius: var(--radius-sm);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding-top: 80px; /* Move content closer to navigation */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(0, 0, 0, 0.3) 0%, transparent 50%),
                linear-gradient(45deg, rgba(26, 26, 26, 0.2) 0%, rgba(45, 45, 45, 0.1) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    padding-top: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-2xl);
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-2xl);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    text-align: center;
    color: white;
}

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

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 200px;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .hero-visual {
        margin-top: var(--space-lg);
        align-items: center;
    }
}

.hero-code-block {
    background: var(--dark-gray);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-gray);
    overflow: hidden;
    width: 100%;
    max-width: 450px;
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.code-header {
    background: var(--medium-gray);
    padding: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-gray);
}

.code-dots {
    display: flex;
    gap: var(--space-sm);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28ca42; }

.code-title {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 600;
}

.code-content {
    padding: var(--space-lg);
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-line {
    display: flex;
    margin-bottom: var(--space-xs);
}

.line-number {
    color: var(--text-gray);
    width: 30px;
    flex-shrink: 0;
    text-align: right;
    margin-right: var(--space-md);
    user-select: none;
}

.keyword { color: #ff79c6; }
.string { color: #50fa7b; }
.comment { color: #6272a4; }
.function { color: #8be9fd; }
.boolean { color: #bd93f9; }

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

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    font-weight: 600;
    color: var(--gray-700);
}

.card-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.card-logo img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: var(--radius-sm);
    animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
    0% { width: 0%; }
    50% { width: 85%; }
    100% { width: 85%; }
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.feature-item i {
    color: var(--accent-green);
}


/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: var(--dark-gray);
    border-top: 1px solid var(--border-gray);
}

/* Guide Section - Light background */
.guide {
    padding: var(--space-3xl) 0;
    background: var(--primary-white);
    color: var(--primary-black);
}

.guide .section-title {
    color: var(--primary-black);
}

.guide .section-description {
    color: var(--accent-gray);
}

/* Documentation Section - Light background */
.documentation {
    padding: var(--space-3xl) 0;
    background: var(--primary-white);
    color: var(--primary-black);
}

.documentation .section-title {
    color: var(--primary-black);
}

.documentation .section-description {
    color: var(--accent-gray);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--space-lg);
    color: var(--primary-white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--medium-gray);
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-gray);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto var(--space-lg);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
}

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

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Guide Section - Already defined above */

/* Additional Guide Elements */
.feature-highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    border: 1px solid var(--accent-blue);
}

.warning-box {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--accent-red);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.tip-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-green);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.success-box {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--accent-green);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

.requirements-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
    border: 1px solid var(--accent-blue);
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    gap: var(--space-xl);
    align-items: center;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    color: var(--primary-black);
}

.step::after {
    content: '';
    position: absolute;
    left: 40px;
    bottom: -32px;
    width: 2px;
    height: 32px;
    background: var(--gradient-primary);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--primary-black);
}

.step-content p {
    color: var(--accent-gray);
    line-height: 1.6;
}

.step-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    color: var(--primary-blue);
    font-size: 1.5rem;
}

/* Documentation Section */
.documentation {
    padding: var(--space-3xl) 0;
    background: white;
}

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

.doc-card {
    display: block;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
    text-decoration: none;
    color: inherit;
    transition: all 0.05s ease;
    position: relative;
    overflow: hidden;
}

.doc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.doc-card:hover::before {
    transform: scaleX(1);
}

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

.doc-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
}

.doc-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--gray-800);
}

.doc-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.doc-arrow {
    color: var(--primary-blue);
    font-size: 1rem;
    position: absolute;
    bottom: var(--space-lg);
    right: var(--space-lg);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.05s ease;
}

.doc-card:hover .doc-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Footer */
.footer {
    background: var(--primary-black);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-gray);
}

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

.footer-brand .logo-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

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

.link-group h4 {
    color: white;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.link-group a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-700);
}

.footer-credit p {
    color: var(--text-gray);
    margin-bottom: var(--space-xs);
}

.footer-credit strong {
    color: white;
}

.version-badge {
    background: var(--gradient-primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .step {
        grid-template-columns: 60px 1fr;
        gap: var(--space-lg);
    }
    
    .step-visual {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* Mobile navigation optimizations */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .navbar {
        position: static !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: none !important;
        padding: 2px 0 !important;
        min-height: 30px !important;
    }
}

@media (max-width: 768px) {
    
    /* Container and spacing adjustments */
    .container {
        padding: 0 var(--space-md);
    }
    
    /* Navigation improvements */
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2px;
        cursor: pointer;
    }
    
    .nav-toggle .bar {
        background: var(--primary-white) !important;
        width: 18px;
        height: 2px;
        margin: 1px 0;
        transition: 0.3s;
        border-radius: 1px;
    }
    
    .nav-container {
        padding: 0 var(--space-md);
        min-height: 30px;
        align-items: center;
        display: flex;
        justify-content: space-between;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    /* Hero section mobile optimizations */
    .hero {
        min-height: 90vh;
        padding: var(--space-xl) 0;
        padding-top: 0; /* Remove top padding since navbar is not fixed on mobile */
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
        padding: 0 var(--space-sm);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: var(--space-lg) var(--space-xl);
        font-size: 1rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: var(--space-md);
        flex-wrap: wrap;
        margin-top: var(--space-xl);
    }
    
    .stat {
        min-width: 100px;
        text-align: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Hero visual code block mobile */
    .hero-code-block {
        margin-top: var(--space-xl);
        font-size: 0.8rem;
    }
    
    /* Typography improvements */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--space-lg);
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
    
    /* Feature cards mobile optimization */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-card {
        padding: var(--space-xl);
        text-align: center;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: var(--space-md);
    }
    
    /* Steps and guide sections */
    .guide-steps {
        gap: var(--space-xl);
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        padding: var(--space-lg);
    }
    
    .step-number {
        margin-bottom: var(--space-md);
        position: static;
        transform: none;
    }
    
    .step-visual {
        order: -1;
        margin-bottom: var(--space-md);
    }
    
    /* Content sections */
    .guide-content {
        padding: var(--space-lg);
    }
    
    .guide-content h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-md);
    }
    
    .guide-content h3 {
        font-size: 1.2rem;
        margin-bottom: var(--space-sm);
    }
    
    /* Tables and lists mobile friendly */
    .tip-box, .warning-box, .success-box, .requirements-box {
        padding: var(--space-md);
        margin: var(--space-md) 0;
    }
    
    .code-content {
        font-size: 0.8rem;
        padding: var(--space-md);
        overflow-x: auto;
    }
    
    /* Footer mobile optimization */
    .doc-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .footer-credit {
        font-size: 0.9rem;
    }
}

/* Desktop optimizations */
@media (min-width: 769px) {
    .navbar {
        position: fixed !important;
    }
    
    html {
        scroll-behavior: smooth;
    }
}

/* Additional mobile improvements for very small screens */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: var(--space-lg);
    }
    
    .step {
        padding: var(--space-md);
    }
    
    .hero-stats {
        gap: var(--space-sm);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    /* Logo adjustments for very small screens */
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .nav-container {
        padding: 0 var(--space-sm);
        min-height: auto;
    }
}