:root {
    /* Light mode colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --accent-primary: #8b5cf6;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #a78bfa;
    --border-color: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

.dark-mode {
    /* Dark mode colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent-primary: #8b5cf6;
    --accent-secondary: #7c3aed;
    --accent-tertiary: #a78bfa;
    --border-color: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

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

/* Navigation */
.navbar {
    background: var(--bg-primary);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 100;
        box-shadow: 2px 0 10px var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1.5rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .theme-toggle {
        margin-top: 2rem;
        font-size: 1.5rem;
        padding: 12px 16px;
    }
}

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

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

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--accent-primary);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(29, 78, 216, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(96, 165, 250, 0.2) 0%, transparent 50%);
    animation: heroBackground 20s ease-in-out infinite;
}

@keyframes heroBackground {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(1deg); }
}

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

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

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-content h1 code {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9em;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle code {
    background: rgba(255,255,255,0.2);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.badges {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.5);
}

.btn-gem {
    background: linear-gradient(135deg, #701a75 0%, #581c87 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(112, 26, 117, 0.3);
}

.btn-gem:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 26, 117, 0.4);
}

/* Gem Install Section */
.gem-install {
    padding: 3rem 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.install-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px var(--shadow);
    border: 2px solid var(--accent-primary);
}

.install-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.install-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.install-command {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 2rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1.1rem;
    gap: 1rem;
}

.install-command code {
    flex: 1;
    color: var(--accent-primary);
    font-weight: 600;
}

.copy-btn {
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.install-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.install-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.install-link:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

/* Quick Start */
.quick-start {
    padding: 4rem 0;
    background: var(--bg-secondary);
    position: relative;
}

.quick-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.quick-start h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.step {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px var(--shadow);
    border: 1px solid var(--border-color);
}

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

.step pre {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
}

.step code {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
}

/* Magic Demo */
.magic-demo {
    padding: 4rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
}

.magic-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.magic-demo h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.code-terminal {
    max-width: 900px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.terminal-header {
    background: linear-gradient(90deg, #333 0%, #444 100%);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

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

.btn-close { background: #ff5f57; }
.btn-minimize { background: #ffbd2e; }
.btn-maximize { background: #28ca42; }

.terminal-title {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 500;
}

.terminal-body {
    padding: 2rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    opacity: 0;
    transform: translateX(-10px);
    animation: typeIn 0.5s ease-out forwards;
    margin-bottom: 0.5rem;
}

@keyframes typeIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prompt {
    color: #00ff88;
    font-weight: bold;
}

.output {
    color: #88ccff;
}

.flag-count {
    color: #ffaa00;
    font-weight: bold;
}

.boom {
    animation: boom 0.5s ease-out;
}

@keyframes boom {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); color: #ff4444; }
    100% { transform: scale(1); }
}

.hidden-text {
    color: #ff4444;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

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

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--bg-secondary);
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s;
}

.feature:hover::before {
    left: 100%;
}

.feature:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-hover {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: bottom 0.3s ease;
}

.feature:hover .feature-hover {
    bottom: 0;
}

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

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

/* Interactive Demo */
.interactive-demo {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    position: relative;
}

.interactive-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.interactive-demo h2 {
    position: relative;
    z-index: 1;
}

.interactive-demo h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-primary);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.demo-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.demo-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.demo-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.demo-btn:hover::before {
    left: 100%;
}

.create-btn {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.create-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.flag-btn {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.flag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 68, 68, 0.4);
}

.check-btn {
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, var(--accent-primary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

.check-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.4);
}

.reset-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-icon {
    font-size: 1.1rem;
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
    border-radius: 3px;
    width: 0%;
    transition: width 0.5s ease;
}

.terminal-demo {
    background: #1e1e1e;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    overflow: hidden;
}

.demo-log {
    background: #1e1e1e;
    padding: 1.5rem;
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.demo-log::-webkit-scrollbar {
    width: 8px;
}

.demo-log::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.demo-log::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.demo-log::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* API Reference */
.api-reference {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.api-reference h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.api-section {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.api-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

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

.api-section table {
    width: 100%;
    border-collapse: collapse;
}

.api-section td {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.api-section td:first-child {
    font-family: monospace;
    background: var(--bg-secondary);
    border-radius: 3px;
    width: 60%;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--border-color);
}

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

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

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

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

.footer-section code {
    background: var(--bg-primary);
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--border-color);
}

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

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .navbar {
        position: relative;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        transition: left 0.3s ease;
        z-index: 100;
        box-shadow: 2px 0 10px var(--shadow);
    }
    
    .nav-links.active {
        left: 0;
        display: flex;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 1.5rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }
    
    .theme-toggle {
        margin-top: 2rem;
        font-size: 1.5rem;
        padding: 12px 16px;
    }

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .navbar .container {
        padding: 0.75rem 15px;
    }
    

    
    .mobile-menu-toggle {
        display: block !important;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .badges {
        gap: 0.25rem;
        margin-bottom: 1.5rem;
    }
    
    .badges img {
        height: 18px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .quick-start,
    .magic-demo,
    .features,
    .interactive-demo,
    .api-reference {
        padding: 2.5rem 0;
    }
    
    .quick-start h2,
    .magic-demo h2,
    .features h2,
    .interactive-demo h2,
    .api-reference h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .code-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .step pre {
        font-size: 0.8rem;
        overflow-x: auto;
    }
    
    .code-terminal {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .terminal-body {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .features-grid {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
    
    .feature {
        padding: 1.5rem;
        width: 100%;
        margin-bottom: 0;
    }
    
    .demo-container {
        margin: 0 -15px;
        border-radius: 0;
        padding: 1.5rem;
    }
    
    .demo-controls {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .demo-btn {
        width: 100%;
        justify-content: center;
    }
    
    .demo-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    

    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .api-grid {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
    }
    
    .api-section {
        width: 100%;
        margin-bottom: 0;
    }
    

    
    .api-section table {
        font-size: 0.9rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
    
    .quick-start h2,
    .magic-demo h2,
    .features h2,
    .interactive-demo h2,
    .api-reference h2 {
        font-size: 1.5rem;
    }
    
    .step {
        padding: 1rem;
    }
    
    .terminal-body {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
    
    .feature {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        font-size: 2.5rem;
    }
    
    .demo-container {
        padding: 1rem;
        margin: 0 -10px;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .api-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .api-section table {
        font-size: 0.8rem;
    }
    
    .api-section td {
        padding: 0.25rem;
    }
    
    .mobile-menu-toggle {
        font-size: 1.8rem !important;
        padding: 10px !important;
    }
}