* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    font-size: 14px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 2rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Sections */
section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header .section-title {
    margin-bottom: 0;
}

/* Overview */
.overview {
    background: var(--surface);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.overview p {
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: center;
    font-size: 0.95rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.feature {
    text-align: center;
    padding: 20px 15px;
    background: var(--background);
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Buttons */
.toggle-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-btn.compact {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.download-btn {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
}

.download-btn:hover {
    background: var(--primary);
    color: white;
}

/* Code Blocks */
.code-block {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 20px;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    overflow-x: auto;
    box-shadow: var(--shadow);
    border: 1px solid #2d2d2d;
    max-height: 300px;
    overflow-y: auto;
}

.hidden {
    display: none;
}

/* Video Section */
.video-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.video-box {
    background: var(--surface);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.video-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
}

video {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 6px;
    box-shadow: var(--shadow-md);
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.stat {
    background: var(--surface);
    padding: 20px 15px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header {
        padding: 20px 0;
        margin-bottom: 20px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .features,
    .video-container,
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .overview,
    .video-box,
    .stat {
        padding: 20px;
    }
}

/* Ripple effect animation */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}