/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-900: #111827;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.brand-name {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -23px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-outline {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-primary-nav {
    padding: 10px 20px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.user-menu {
    position: relative;
}

.user-avatar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid var(--gray-200);
    background: white;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s;
}

.user-avatar:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.user-avatar i {
    font-size: 1.4rem;
    color: var(--primary);
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 8px;
    border: 1px solid var(--gray-200);
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: var(--gray-100);
    color: var(--primary);
}

.user-dropdown hr {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 8px 0;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: right 0.3s ease;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu-links {
    padding: 20px;
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 40px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

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

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 16px 40px;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-lg);
}

.btn-cta:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary-hero {
    padding: 16px 40px;
    background: transparent;
    color: white;
    border: 2px solid white;
    border-radius: var(--radius);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary-hero:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-4px);
}

.floating-keys {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 20px;
}

.key {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    animation: float 3s ease-in-out infinite;
}

.key:nth-child(2) { animation-delay: 0.2s; }
.key:nth-child(3) { animation-delay: 0.4s; }
.key:nth-child(4) { animation-delay: 0.6s; }

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

/* ===== CONTAINER ===== */
.container {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
}

.app-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.app-header h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.app-header i {
    color: var(--primary);
    margin-right: 12px;
}

.subtitle {
    color: var(--gray-600);
    font-size: 1rem;
}

/* ===== CONFIG SECTION ===== */
.config-section {
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.config-section h3 {
    color: var(--primary);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.config-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.config-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.config-group select:hover {
    border-color: var(--primary);
}

.config-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.config-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ===== BUTTONS ===== */
button {
    font-family: inherit;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
}

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

.btn-secondary {
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-danger {
    padding: 12px 24px;
    background: var(--danger);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-success {
    padding: 12px 24px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-info {
    padding: 12px 24px;
    background: #06b6d4;
    color: white;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

/* ===== TEST SECTION ===== */
.test-header {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.timer-container {
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    min-width: 180px;
    color: white;
}

.timer-label {
    font-size: 0.75rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

#timer {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
}

.time-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-top: 12px;
    overflow: hidden;
}

.time-progress-fill {
    height: 100%;
    background: white;
    width: 100%;
    transition: width 0.1s linear;
}

#timer.warning {
    color: var(--warning);
    animation: pulse 1s infinite;
}

#timer.critical {
    color: var(--danger);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.test-stats {
    display: flex;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border: 2px solid var(--gray-200);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 120px;
    flex: 1;
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.typing-display {
    background: var(--gray-100);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    line-height: 1.8;
    font-family: 'JetBrains Mono', monospace;
    min-height: 100px;
}

.char.correct {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
}

.char.incorrect {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.2);
}

.char.current {
    background: rgba(37, 99, 235, 0.2);
    border-bottom: 3px solid var(--primary);
}

.cursor {
    display: inline-block;
    width: 2px;
    height: 1.5rem;
    background: var(--primary);
    animation: blink 1s infinite;
}

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

#typing-input {
    width: 100%;
    min-height: 80px;
    padding: 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'JetBrains Mono', monospace;
    resize: vertical;
    transition: all 0.3s;
}

#typing-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.test-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* ===== RESULTS / CERTIFICATE ===== */
.certificate-card {
    background: white;
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: var(--shadow-xl);
}

.certificate-header {
    text-align: center;
    margin-bottom: 30px;
}

.cert-seal {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.certificate-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.cert-name {
    font-size: 3rem;
    color: var(--danger);
    margin: 20px 0;
    font-weight: 800;
}

.cert-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.cert-metric {
    background: var(--gray-100);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
    border: 2px solid var(--gray-200);
}

.metric-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
}

.results-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 80px 24px;
    background: white;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--dark);
}

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

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== LEADERBOARD ===== */
.leaderboard-section {
    padding: 80px 24px;
    background: var(--gray-100);
}

.leaderboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.leaderboard-table {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 20px;
    background: var(--primary);
    color: white;
    font-weight: 700;
}

.leaderboard-content {
    padding: 10px;
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 120px;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.leaderboard-row:hover {
    background: var(--gray-100);
}

.leaderboard-rank {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark);
    color: white;
    padding: 60px 24px 20px;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.2s;
}

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

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

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

/* ===== AUTH MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark);
}

.auth-form-container h2 {
    margin-bottom: 30px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    color: var(--gray-600);
}

.auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .floating-keys {
        display: none;
    }
    
    .container {
        padding: 24px;
        margin: 30px 16px;
    }
    
    .test-header {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .leaderboard-header, .leaderboard-row {
        grid-template-columns: 60px 1fr 80px 80px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cert-name {
        font-size: 2rem;
    }
    
    .cert-metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ADDITIONAL SECTIONS ===== */
.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-top: -40px;
    margin-bottom: 40px;
}

.about-section {
    padding: 80px 24px;
    background: white;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    margin-top: 40px;
}

.about-text h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.about-text p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    padding: 12px 0;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.features-list i {
    color: var(--secondary);
    margin-right: 12px;
    font-size: 1.2rem;
}

.blog-section {
    padding: 80px 24px;
    background: var(--gray-100);
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.blog-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.blog-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 20px;
}

.blog-card h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 12px;
}

.blog-card p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--gray-600);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Additional responsive styles */
@media (max-width: 768px) {
    .about-section, .blog-section {
        padding: 60px 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== FEATURES STRIP ===== */
.features-strip {
    background: var(--primary);
    padding: 14px 24px;
    overflow: hidden;
}

.features-strip-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.feature-badge i {
    color: #fbbf24;
}

/* ===== PERFORMANCE LEVELS TABLE ===== */
.levels-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0 24px;
}

.level-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.95rem;
    color: var(--gray-600);
}

.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
}

.level-badge.beginner   { background: #dbeafe; color: #1d4ed8; }
.level-badge.intermediate { background: #d1fae5; color: #065f46; }
.level-badge.advanced   { background: #fef3c7; color: #92400e; }
.level-badge.expert     { background: #ede9fe; color: #5b21b6; }

/* ===== FAQ SECTION ===== */
.faq-section {
    padding: 80px 24px;
    background: var(--white);
}

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

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
}

@media (max-width: 700px) {
    .faq-grid { grid-template-columns: 1fr; }
    .features-strip-inner { gap: 16px; justify-content: flex-start; }
}

.faq-item {
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: box-shadow 0.2s;
    overflow: hidden;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item[open] {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 18px;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== SECTION SUBTITLES ===== */
.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-top: 8px;
    font-size: 1rem;
}
