/* StarCraftKit - StarCraft 2 Themed Styles */

:root {
    /* StarCraft 2 Colors */
    --sc2-blue: #00a8ff;
    --sc2-blue-dark: #0084cc;
    --sc2-orange: #ff8800;
    --sc2-purple: #9966ff;
    --sc2-cyan: #00ffff;
    --sc2-gold: #ffd700;
    
    /* Race Colors */
    --terran-red: #ff4444;
    --zerg-purple: #9966ff;
    --protoss-gold: #ffcc00;
    
    /* Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-tertiary: #adb5bd;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --code-bg: #f6f8fa;
    
    /* Dark mode variables will be set via JavaScript */
}

/* Dark Mode Colors */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #0a0e1a;
        --bg-secondary: #0f1420;
        --bg-tertiary: #1a1f2e;
        --text-primary: #e9ecef;
        --text-secondary: #adb5bd;
        --text-tertiary: #6c757d;
        --border-color: #2d3142;
        --card-bg: #141824;
        --code-bg: #1a1f2e;
    }
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(10, 14, 26, 0.95);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    color: var(--sc2-blue);
    white-space: nowrap;
}

.nav-brand .logo {
    font-size: 2rem;
    margin-right: 0.5rem;
    color: var(--sc2-orange);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--sc2-blue);
}

.github-link, .docs-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.github-link {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.github-link:hover {
    background: var(--sc2-blue);
    color: white !important;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 3rem 0 2rem;
    margin-top: 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--sc2-blue) 0%, transparent 10%),
                radial-gradient(circle, var(--sc2-orange) 0%, transparent 10%);
    opacity: 0.05;
    animation: rotate 60s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--sc2-blue) 0%, var(--sc2-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    display: block;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Quick Start */
.quick-start {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.quick-start h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--sc2-blue);
}

.code-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.code-tab {
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.code-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--sc2-blue);
}

.code-tab.active {
    background: var(--sc2-blue);
    color: white;
}

.code-block {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.code-block.compact {
    margin: 0;
}

.code-block pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 0;
    max-width: 100%;
}

.code-block code {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Installation section specific code blocks */
.install-option .code-block {
    flex: 1;
}

.install-option .code-block pre {
    padding: 0.75rem 1rem;
}

.install-option .code-block code {
    font-size: 0.8rem;
}

.comment { color: #6a737d; }
.keyword { color: var(--sc2-blue); font-weight: 600; }
.string { color: var(--sc2-orange); }
.type { color: var(--sc2-purple); }
.function { color: var(--protoss-gold); }

.hidden {
    display: none;
}

/* Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--sc2-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--sc2-blue-dark);
    transform: translateY(-2px);
}

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

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

/* Terminal Demo */
.terminal-window {
    background: #fdf6e3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    max-width: 100%;
}

@media (prefers-color-scheme: dark) {
    .terminal-window {
        background: #0a0e1a;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    }
}

.terminal-header {
    background: #eee8d5;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

@media (prefers-color-scheme: dark) {
    .terminal-header {
        background: #1a1f2e;
    }
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

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

.terminal-button.red { background: #ff5f56; }
.terminal-button.yellow { background: #ffbd2e; }
.terminal-button.green { background: #27c93f; }

.terminal-title {
    color: #6c757d;
    font-size: 0.875rem;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #586e75;
    overflow-x: auto;
    max-width: 100%;
}

@media (prefers-color-scheme: dark) {
    .terminal-body {
        color: #93a1a1;
    }
}

.terminal-body pre {
    margin: 0;
    overflow-x: auto;
    white-space: pre;
}

/* Solarized Light Terminal Colors */
.term-header { color: #268bd2; }
.term-logo { color: #cb4b16; font-weight: 700; }
.term-version { color: #657b83; }
.term-section { color: #073642; font-weight: 700; margin: 1rem 0; }
.term-match { color: #586e75; }
.term-tournament { color: #268bd2; font-weight: 600; }
.term-stage { color: #657b83; }
.term-player-z { color: #6c71c4; font-weight: 600; }
.term-player-t { color: #dc322f; font-weight: 600; }
.term-player-p { color: #b58900; font-weight: 600; }
.term-score { color: #073642; font-weight: 700; }
.term-status { color: #cb4b16; }
.term-time { color: #93a1a1; font-size: 0.8rem; }
.term-stats { color: #657b83; margin-top: 1rem; }
.term-highlight { color: #268bd2; font-weight: 600; }
.term-dim { color: #93a1a1; }

/* Dark mode terminal colors */
@media (prefers-color-scheme: dark) {
    .term-header { color: var(--sc2-cyan); }
    .term-logo { color: var(--sc2-orange); }
    .term-version { color: #6c757d; }
    .term-section { color: white; }
    .term-match { color: #adb5bd; }
    .term-tournament { color: var(--sc2-blue); }
    .term-stage { color: #6c757d; }
    .term-player-z { color: var(--zerg-purple); }
    .term-player-t { color: var(--terran-red); }
    .term-player-p { color: var(--protoss-gold); }
    .term-score { color: white; }
    .term-status { color: var(--sc2-orange); }
    .term-time { color: #6c757d; }
    .term-stats { color: #6c757d; }
    .term-highlight { color: var(--sc2-blue); }
    .term-dim { color: #495057; }
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--sc2-blue);
    display: block;
}

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


/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card.compact {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--sc2-blue);
}

.feature-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* SDK Section */
.sdk-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.sdk-header {
    text-align: center;
    margin-bottom: 3rem;
}

.sdk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.feature-list {
    list-style: none;
    margin: 1rem 0 2rem;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

.platform-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform-badge {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 4px;
    font-size: 0.875rem;
    color: var(--sc2-blue);
    font-weight: 500;
}

/* CLI Section */
.cli-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.cli-showcase {
    margin-top: 3rem;
}

.cli-demo {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.cli-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.25rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem;
}

.cli-tab {
    padding: 0.75rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.875rem;
}

.cli-tab:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.cli-tab.active {
    color: var(--sc2-blue);
    background: var(--bg-primary);
    border-color: var(--sc2-blue);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.cli-output {
    display: none;
    padding: 1rem 1.5rem;
}

.cli-output.active {
    display: block;
}

.cli-command {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    padding: 0.4rem 1rem;
    background: var(--code-bg);
    border-radius: 6px;
    border-left: 3px solid var(--sc2-blue);
}

.cli-result {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-primary);
    background: var(--code-bg);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    overflow-x: auto;
}

/* CLI Output Colors */
.cli-header { 
    color: var(--sc2-blue); 
    font-weight: 700;
    display: block;
    margin-bottom: 0.75rem;
}

.cli-tournament { color: var(--sc2-blue); }
.cli-stage { color: var(--text-secondary); }
.cli-player-t { color: var(--terran-red); font-weight: 600; }
.cli-player-z { color: var(--zerg-purple); font-weight: 600; }
.cli-player-p { color: var(--protoss-gold); font-weight: 600; }
.cli-team { color: var(--sc2-cyan); font-weight: 600; }
.cli-score { color: var(--text-primary); font-weight: 700; }
.cli-status { color: var(--sc2-orange); }
.cli-match { color: var(--text-primary); }
.cli-time { color: var(--text-primary); font-weight: 600; }
.cli-date { 
    color: var(--text-primary); 
    font-weight: 600;
    display: block;
    margin: 0.5rem 0 0.25rem;
}
.cli-info { color: var(--text-secondary); font-size: 0.75rem; }
.cli-tier { color: var(--sc2-purple); font-weight: 600; }
.cli-win { color: #27c93f; font-weight: 700; }
.cli-loss { color: #ff5f56; font-weight: 700; }
.cli-stats { 
    color: var(--text-secondary); 
    display: block;
    margin-top: 0.75rem;
    font-size: 0.75rem;
}
.cli-section {
    color: var(--text-primary);
    font-weight: 600;
    display: block;
    margin: 0.5rem 0 0.25rem;
}
.cli-search-item {
    display: block;
    margin: 0.25rem 0;
    color: var(--text-secondary);
}
.cli-tournament-item {
    display: block;
    margin: 0.75rem 0;
}

.cli-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.cli-feature {
    text-align: center;
}

.cli-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.cli-feature h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cli-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Installation Section */
.installation-section {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.installation-section .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.installation-section .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* OS Recommendations */
.os-recommendations {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.os-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.os-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sc2-blue) 0%, var(--sc2-purple) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.os-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.os-card:hover::before {
    opacity: 1;
}

.macos-card .os-icon {
    color: #000;
}

@media (prefers-color-scheme: dark) {
    .macos-card .os-icon {
        color: #fff;
    }
}

.arch-card .os-icon {
    color: #1793d1;
}

.linux-card .os-icon {
    color: var(--sc2-orange);
}

.os-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.os-icon {
    flex-shrink: 0;
}

.os-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.os-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--sc2-blue);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.install-command {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}

.install-command code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-primary);
    user-select: all;
    white-space: pre-wrap;
    word-break: break-word;
    padding-right: 1rem;
    display: block;
    line-height: 1.5;
}

.copy-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: var(--sc2-blue);
    color: white;
    border-color: var(--sc2-blue);
}

.os-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

/* Other Methods */
.other-methods {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.other-methods h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.method-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.method-icon {
    display: inline-flex;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 50%;
    margin-bottom: 1rem;
    color: var(--sc2-blue);
}

.method-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

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

.download-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.mini-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.mini-download-btn:hover {
    background: var(--sc2-blue);
    color: white;
    border-color: var(--sc2-blue);
}

/* Legacy styles cleanup */
.install-grid {
    display: none;
}

.setup-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--sc2-blue);
}

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

.footer-section li {
    padding: 0.25rem 0;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-badges {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

.footer-badges img {
    height: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .navbar .container {
        padding: 0.75rem 15px;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .nav-brand .logo {
        font-size: 1.5rem;
        margin-right: 0.3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
        overflow: hidden;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-demo {
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-wrap: wrap;
    }
    
    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .sdk-grid {
        grid-template-columns: 1fr;
    }
    
    .cli-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .cli-tab {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .cli-command {
        font-size: 0.75rem;
        word-break: break-all;
    }
    
    .cli-result {
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }
    
    .cli-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .cli-icon {
        font-size: 2rem;
    }
    
    .cli-feature h4 {
        font-size: 0.875rem;
    }
    
    .cli-feature p {
        font-size: 0.75rem;
    }
    
    .os-recommendations {
        grid-template-columns: 1fr;
    }
    
    .os-card {
        padding: 1.25rem;
    }
    
    .os-header {
        flex-wrap: wrap;
    }
    
    .os-icon {
        width: 36px;
        height: 36px;
    }
    
    .install-command {
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .install-command code {
        font-size: 0.75rem;
        padding-right: 0.5rem;
    }
    
    .copy-btn {
        padding: 0.4rem;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .mini-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .code-block pre {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .terminal-window {
        font-size: 0.65rem;
    }
    
    .terminal-body {
        padding: 1rem;
    }
    
    .hero-stats {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 1 1 auto;
        min-width: 80px;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-text {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .quick-start {
        max-width: 100%;
        padding: 1rem;
    }
    
    .quick-start h3 {
        font-size: 1.1rem;
    }
    
    .code-block {
        max-width: 100%;
        overflow-x: auto;
    }
    
    .code-block code {
        font-size: 0.7rem;
    }
    
    .feature-card h3 {
        font-size: 1rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    .download-links {
        flex-wrap: wrap;
    }
    
    .download-link {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Ensure all major sections don't overflow */
    .features, .sdk-section, .cli-section, .installation-section {
        overflow-x: hidden;
    }
    
    /* CLI tabs responsive */
    .cli-tabs {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
        padding: 0.75rem;
    }
    
    .cli-tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .sdk-grid, .cli-showcase, .install-grid {
        max-width: 100%;
    }
    
    /* Fix CLI demo on mobile */
    .cli-demo {
        max-width: 100%;
        overflow: hidden;
    }
    
    .cli-output {
        max-width: 100%;
    }
    
    pre {
        max-width: 100%;
        overflow-x: auto;
    }
}