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

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #10b981;
    --dark-bg: #0f172a;
    --light-bg: #f8fafc;
    --bg-secondary: #f9fafb;
    --text-primary: #1a1a1a;
    --text-secondary: #64748b;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --code-bg: #2d2d2d;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --card-shadow: var(--shadow-md);
    --card-hover-shadow: var(--shadow-lg);
    --radius: 0.5rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

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

/* Prevent horizontal overflow on all sections */
main {
    overflow-x: hidden;
}

section {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure all card-like elements don't cause overflow */
.feature-card,
.command-card,
.ai-example,
.json-example,
.tutorial-card,
.practice,
.use-case,
.install-option,
.screenshot-card {
    overflow-x: hidden;
    max-width: 100%;
}

/* Ensure all pre elements handle overflow properly */
.command-card pre,
.tutorial-card pre,
.use-case pre,
.practice pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

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

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 64px;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    height: 100%;
}

.logo {
    font-size: 2rem;
    margin-right: 0.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    align-items: center;
    height: 100%;
}

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

.nav-menu a:hover {
    color: var(--primary-color);
}

.docs-link {
    background: var(--accent-color);
    color: white !important;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    margin-right: 0.5rem;
    display: inline-flex;
    align-items: center;
}

.docs-link:hover {
    background: var(--primary-dark) !important;
}

.github-link {
    background: var(--text-primary);
    color: white !important;
    padding: 0.375rem 1rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
}

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

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    width: 44px;
    height: 44px;
    position: relative;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    display: block;
    position: absolute;
    left: 10px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                top 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                opacity 0.3s ease;
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    top: 14px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 28px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #e0e7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

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

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-code {
    max-width: 600px;
    margin: 0 auto;
}

.hero-code pre {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: left;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

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

/* Installation Section */
.installation {
    padding: 80px 0;
    background: var(--light-bg);
}

.install-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.install-method {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.install-method h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* CLI Documentation */
.cli-docs {
    padding: 80px 0;
    background: white;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.command-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.command-card:hover {
    box-shadow: var(--card-hover-shadow);
}

.command-card h3 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.command-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* GUI Documentation */
.gui-docs {
    padding: 80px 0;
    background: var(--light-bg);
}

.gui-features {
    max-width: 900px;
    margin: 0 auto;
}

.gui-feature {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.gui-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.screenshot-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.screenshot-placeholder {
    background: var(--light-bg);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--text-light);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.shortcut {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
}

kbd {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* AI Guide Section */
.ai-guide {
    padding: 80px 0;
    background: white;
}

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

.ai-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.ai-example {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.ai-example h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.json-reference {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    overflow-x: hidden;
    max-width: 100%;
}

.json-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.json-example h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Tutorials Section */
.tutorials {
    padding: 80px 0;
    background: var(--light-bg);
}

.tutorial-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.tutorial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.tutorial-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tutorial-card ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

/* Best Practices */
.best-practices {
    padding: 80px 0;
    background: white;
}

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

.practice {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.practice:hover {
    box-shadow: var(--card-hover-shadow);
}

.practice h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.practice ul {
    list-style: none;
    padding: 0;
}

.practice li {
    padding: 0.25rem 0;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

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

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

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

/* Code Blocks */
pre {
    overflow-x: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    max-width: 100%;
}

pre code {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.875rem;
    display: block;
    overflow-x: auto;
    white-space: pre;
}

/* Responsive */
@media (max-width: 768px) {
    /* Typography adjustments */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Navigation */
    .nav-menu {
        display: none;
        position: fixed;
        top: 64px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 64px);
        background: white;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        right: 0;
    }
    
    .nav-menu a {
        font-size: 1.125rem;
        padding: 0.75rem;
        width: 100%;
        border-radius: 0.5rem;
    }
    
    .hamburger {
        display: block;
        width: 44px;
        height: 44px;
        padding: 7px;
        position: relative;
        z-index: 1001;
    }
    
    /* Hero section */
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Code blocks - prevent overflow */
    pre {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    
    .hero-code {
        margin: 2rem -1rem;
    }
    
    .hero-code pre {
        border-radius: 0;
        font-size: 0.75rem;
    }
    
    /* AI Examples - Fix overflow issue */
    .ai-examples {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .ai-example {
        padding: 1.5rem;
        overflow-x: hidden;
    }
    
    .ai-example pre {
        font-size: 0.75rem;
        max-width: 100%;
        overflow-x: auto;
    }
    
    /* JSON examples */
    .json-examples {
        grid-template-columns: 1fr;
    }
    
    .json-example {
        overflow-x: hidden;
        max-width: 100%;
    }
    
    .json-example pre {
        font-size: 0.75rem;
        padding: 1rem;
        max-width: 100%;
    }
    
    .json-reference {
        padding: 1rem;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    /* Command grid */
    .command-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .command-card {
        padding: 1.5rem;
    }
    
    .command-card pre {
        font-size: 0.75rem;
    }
    
    /* Tutorial cards */
    .tutorial-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* GUI screenshots */
    .gui-screenshots {
        grid-template-columns: 1fr;
    }
    
    /* Use cases */
    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Practices grid */
    .practices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Install options */
    .install-options {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .install-option {
        width: 100%;
    }
    
    /* Problem/Solution */
    .problem-solution {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    /* Stats */
    .hero-stats {
        gap: 1rem;
    }
    
    .stat strong {
        font-size: 1.5rem;
    }
    
    /* Container padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Section padding */
    section {
        padding: 3rem 0;
    }
    
    /* Ensure content doesn't touch screen edges */
    .ai-guide,
    .cli-docs,
    .gui-docs,
    .tutorials,
    .best-practices,
    .use-cases {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* CTA */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

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

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

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
}

.skip-link:focus,
.skip-link:active {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0 0 0.5rem 0;
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 3rem auto;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

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

/* Why Section */
.why {
    padding: 80px 0;
    background: var(--light-bg);
}

.why-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    animation: pulse 20s ease-in-out infinite;
}

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

.why-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.problem-solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.problem, .solution {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.problem {
    border-top: 4px solid #ef4444;
}

.solution {
    border-top: 4px solid #10b981;
}

.problem:hover, .solution:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.problem h3, .solution h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.problem h3 {
    color: #ef4444;
}

.solution h3 {
    color: #10b981;
}

.problem h3::before {
    content: '⚠️';
    font-size: 1.8rem;
}

.solution h3::before {
    content: '✨';
    font-size: 1.8rem;
}

.problem ul, .solution ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.problem li, .solution li {
    padding: 0.75rem 0;
    font-size: 1.05rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.problem li:last-child, .solution li:last-child {
    border-bottom: none;
}

.problem li {
    color: var(--text-secondary);
}

.solution li {
    color: var(--text-primary);
    font-weight: 500;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .problem-solution {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .why-section h2 {
        font-size: 2rem;
    }
    
    .problem, .solution {
        padding: 2rem;
    }
}

/* Original why grid styles for other sections */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.why-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-hover-shadow);
}

.why-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Use Cases Section */
.use-cases {
    padding: 80px 0;
    background: white;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s;
}

.use-case:hover {
    box-shadow: var(--card-hover-shadow);
}

.use-case-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.author-info h4 {
    margin: 0;
    color: var(--text-primary);
}

.author-info p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
}

details {
    background: var(--light-bg);
    border-radius: 0.5rem;
    padding: 1rem;
    cursor: pointer;
}

details summary {
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

details[open] {
    background: white;
    box-shadow: var(--card-shadow);
}

.faq-answer {
    margin-top: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Copy Button for Code Blocks */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

pre:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background: var(--primary-dark);
}

/* Loading States */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Fonts Loaded State */
.fonts-loaded body {
    font-family: var(--font-sans);
}

.fonts-loaded pre code,
.fonts-loaded .command-card h3,
.fonts-loaded kbd {
    font-family: var(--font-mono);
}

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

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .copy-button {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    .hero-title {
        -webkit-text-fill-color: black;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Hamburger animation - Transform to X */
.hamburger.active span:nth-child(1) {
    top: 21px !important;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    top: 21px !important;
    transform: rotate(-45deg);
}

/* Final overflow protection for mobile */
@media (max-width: 768px) {
    /* Force all elements to respect viewport width */
    * {
        max-width: 100%;
    }
    
    /* Ensure code blocks scroll horizontally instead of overflowing */
    pre, code {
        word-break: normal;
        word-wrap: normal;
        white-space: pre;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Add small padding to pre elements */
    pre {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0;
    }
    
    /* Ensure hamburger animation works on mobile */
    .hamburger.active span:nth-child(1) {
        top: 21px !important;
        transform: rotate(45deg) !important;
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(-20px) !important;
    }
    
    .hamburger.active span:nth-child(3) {
        top: 21px !important;
        transform: rotate(-45deg) !important;
    }
}