/* ============================================
   Git-Drive Documentation - Industrial Data Vault
   ============================================ */

/* CSS Variables */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0e14;
    --bg-secondary: #111820;
    --bg-tertiary: #1a2230;
    --bg-elevated: #0f1419;
    
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    
    --accent-primary: #00d9ff;
    --accent-secondary: #00b8d9;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --accent-subtle: rgba(0, 217, 255, 0.1);
    
    --success: #3fb950;
    --warning: #d29922;
    --error: #f85149;
    
    --border-color: rgba(99, 115, 129, 0.2);
    --border-accent: rgba(0, 217, 255, 0.3);
    
    /* Typography */
    --font-display: 'JetBrains Mono', monospace;
    --font-body: 'Outfit', sans-serif;
    
    /* 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;
    
    /* Sizing */
    --container-max: 1200px;
    --header-height: 70px;
    
    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

/* Light Theme */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --accent-primary: #0891b2;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(8, 145, 178, 0.2);
    --accent-subtle: rgba(8, 145, 178, 0.1);
    
    --border-color: rgba(71, 85, 105, 0.15);
    --border-accent: rgba(8, 145, 178, 0.3);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Background Effects */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: 
        linear-gradient(var(--accent-primary) 1px, transparent 1px),
        linear-gradient(90deg, var(--accent-primary) 1px, transparent 1px);
    background-size: 50px 50px;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, var(--accent-subtle), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(0, 217, 255, 0.05), transparent);
}

/* ============================================
   Header & Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 14, 20, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background var(--transition-normal);
}

[data-theme="light"] .header {
    background: rgba(255, 255, 255, 0.9);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.logo:hover {
    color: var(--accent-primary);
}

.logo-icon {
    color: var(--accent-primary);
    font-size: 1.5rem;
    animation: pulse 3s ease-in-out infinite;
}

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

.logo-text .accent {
    color: var(--accent-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    list-style: none;
}

.nav-link {
    position: relative;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-link.active {
    color: var(--accent-primary);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - var(--space-lg));
}

.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-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

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

.sun-icon {
    display: none;
}

.moon-icon {
    display: block;
}

[data-theme="light"] .sun-icon {
    display: block;
}

[data-theme="light"] .moon-icon {
    display: none;
}

.github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.github-link svg {
    width: 22px;
    height: 22px;
}

/* ============================================
   Main Content
   ============================================ */

.main {
    position: relative;
    z-index: 1;
    padding-top: var(--header-height);
    min-height: 100vh;
}

.page {
    display: none;
    padding: var(--space-3xl) 0;
    animation: fadeIn 0.4s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    min-height: calc(100vh - var(--header-height) - var(--space-3xl) * 2);
    padding: var(--space-2xl) 0;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: var(--space-lg);
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.1s;
}

.badge-icon {
    animation: spin 4s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-lg);
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.2s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.3s;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.4s;
}

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

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

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border: none;
}

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

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

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    animation: slideIn 0.6s ease backwards;
    animation-delay: 0.5s;
}

.terminal-demo {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 500px;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.terminal-dot:nth-child(1) { background: #f85149; }
.terminal-dot:nth-child(2) { background: #d29922; }
.terminal-dot:nth-child(3) { background: #3fb950; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.terminal-body {
    padding: var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal-line {
    display: flex;
    gap: var(--space-sm);
}

.prompt {
    color: var(--accent-primary);
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: var(--space-lg);
    animation: typeIn 0.5s ease;
}

.terminal-output.success {
    color: var(--success);
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 18px;
    background: var(--accent-primary);
    animation: blink 1s step-end infinite;
    margin-left: var(--space-sm);
}

@keyframes typeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: var(--space-3xl) 0;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

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

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
}

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

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

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   Quick Start Section
   ============================================ */

.quickstart {
    padding: var(--space-3xl) 0;
    text-align: center;
}

.quickstart-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
}

.step-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.5;
    line-height: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

/* ============================================
   Code Blocks
   ============================================ */

.code-block {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

.code-block.large {
    display: block;
    padding: 0;
    overflow: hidden;
}

.code-block.large pre {
    padding: var(--space-lg);
    overflow-x: auto;
}

.code-block code,
.code-block pre {
    color: var(--text-primary);
    font-family: inherit;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.copy-btn svg {
    width: 14px;
    height: 14px;
}

.copy-btn.copied {
    color: var(--success);
}

/* ============================================
   Page Styles
   ============================================ */

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

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.page-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: var(--space-2xl);
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    max-width: 800px;
}

.content-section .lead {
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Tabs */
.tabs {
    margin-bottom: var(--space-2xl);
}

.tab-list {
    display: flex;
    gap: var(--space-xs);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.tab {
    flex: 1;
    padding: var(--space-sm) var(--space-lg);
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.tab.active {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.command-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.command-card:hover {
    border-color: var(--border-accent);
}

.command-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.command-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.command-aliases {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.command-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
}

.command-example .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.feature-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Steps List */
.steps-list {
    margin-bottom: var(--space-lg);
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--accent-subtle);
    border-radius: 50%;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.step-item p {
    margin: 0;
    color: var(--text-secondary);
}

/* Features Mini */
.features-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature-mini {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.feature-mini-icon {
    color: var(--accent-primary);
    font-size: 1.25rem;
    line-height: 1;
}

.feature-mini strong {
    display: block;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.feature-mini p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    list-style: none;
    margin-bottom: var(--space-lg);
}

.numbered-list li {
    counter-increment: item;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-xl);
    position: relative;
    color: var(--text-secondary);
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent-primary);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

.options-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.options-table th,
.options-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.options-table th {
    background: var(--bg-tertiary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.options-table td {
    color: var(--text-secondary);
}

.options-table code {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* Structure Tree */
.structure-tree {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-family: var(--font-display);
    font-size: 0.9rem;
}

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

.tree-children {
    margin-left: var(--space-xl);
    margin-top: var(--space-sm);
}

.tree-children .tree-item {
    margin-bottom: var(--space-sm);
}

.folder {
    color: var(--accent-primary);
}

.desc {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Callout */
.callout {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(210, 153, 34, 0.1);
    border: 1px solid rgba(210, 153, 34, 0.3);
    border-radius: var(--radius-md);
}

.callout-icon {
    color: var(--warning);
    font-size: 1.25rem;
}

.callout p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Inline Code */
code {
    font-family: var(--font-display);
    font-size: 0.9em;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

pre code {
    padding: 0;
    background: none;
}

/* Keyboard */
kbd {
    display: inline-block;
    padding: 2px 6px;
    font-family: var(--font-display);
    font-size: 0.85em;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 0 var(--border-color);
}

/* Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.8;
}

/* ============================================
   App Preview / Screenshots
   ============================================ */

.app-preview {
    padding: var(--space-3xl) 0;
    border-top: 1px solid var(--border-color);
}

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

.screenshot-tabs {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.screenshot-tab {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.screenshot-tab:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.screenshot-tab.active {
    background: var(--accent-subtle);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.browser-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.browser-chrome {
    background: #1c1c1e;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }

.browser-url {
    margin-left: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.browser-content {
    position: relative;
    line-height: 0;
    background: #0d1117;
}

.browser-content .screenshot {
    width: 100%;
    display: none;
}

.browser-content .screenshot.active {
    display: block;
}

/* Companion section screenshot */
.companion-screenshot {
    margin-top: var(--space-2xl);
}

[data-theme="light"] .browser-chrome {
    background: #e8e8ed;
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .browser-url {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
    .screenshot-tabs {
        gap: 0.375rem;
    }
    .screenshot-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.875rem;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 1;
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

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

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

.footer-credit {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-credit a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ============================================
   Responsive Design
   ============================================ */

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

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        padding: var(--space-lg);
        gap: var(--space-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }
    
    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        display: block;
        padding: var(--space-md);
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-content {
        max-width: none;
    }
    
    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quickstart-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        width: 100%;
        max-width: 400px;
    }
    
    .tab-list {
        flex-wrap: wrap;
    }
    
    .tab {
        flex: none;
    }
    
    .features-mini {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .terminal-demo {
        font-size: 0.8rem;
    }
    
    .code-block {
        font-size: 0.8rem;
    }
}