:root {
    --color-primary: #4f46e5;
    --color-primary-dark: #3730a3;
    --color-accent: #f59e0b;
    --color-surface: #f8fafc;
    --color-text: #1e293b;
    --color-sidebar: #252e3a;
    --color-sidebar-light: #2f3a48;
    --rgb-primary: 79,70,229;
    --rgb-accent: 245,158,11;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 6px rgba(30,41,59,.08), 0 1px 2px rgba(79,70,229,.06);
    --shadow-md: 0 8px 24px rgba(30,41,59,.10), 0 2px 6px rgba(79,70,229,.08), 0 0 0 1px rgba(255,255,255,.5);
    --shadow-lg: 0 20px 48px rgba(30,41,59,.16), 0 6px 16px rgba(79,70,229,.12), 0 0 0 1px rgba(255,255,255,.7);
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    --gradient-surface: linear-gradient(160deg, #f8fafc 0%, #eef2ff 100%);
    --gradient-sidebar: linear-gradient(145deg, #1e293b 0%, #252e3a 55%, #2f3a48 100%);
    --space-section: 2rem;
    --space-card: 1rem;
    --space-gap: 0.75rem;
    --transition: 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.65;
}

body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: var(--gradient-surface);
}

h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
}

section, .section {
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}

.card, [class*="card"] {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-card);
    transition: var(--transition);
    background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(238,242,255,.78));
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: #fff;
    box-shadow: 0 6px 18px rgba(79,70,229,.28);
}

a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: var(--space-gap);
}

.news-grid > *:first-child {
    grid-row: span 2;
}

.feature-list {
    display: flex;
    gap: var(--space-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.feature-list > * {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.testimonial-list {
    display: flex;
    overflow: hidden;
}

.testimonial-list > * {
    flex: 0 0 100%;
}

.partner-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

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

.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.stats-grid .stat-value {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-inner {
    background: linear-gradient(145deg, #f8fafc 0%, #e0e7ff 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.page-main {
    max-width: 1400px;
    margin: 0 auto;
}

.card:hover, [class*="card"]:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.hero, [class*="hero"], section:first-of-type {
    background: linear-gradient(135deg, #252e3a 0%, #312e81 50%, #4f46e5 100%);
    color: #f8fafc;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.12);
}

header, .header, .navbar {
    background: linear-gradient(180deg, rgba(37,44,58,.96), rgba(37,44,58,.88));
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(30,41,59,.12), 0 2px 6px rgba(30,41,59,.08);
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .feature-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .partner-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .hero-inner {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 640px) {
    :root {
        --space-section: 2rem;
        --space-card: 1rem;
        --space-gap: 0.75rem;
    }
    .news-grid {
        grid-template-columns: 1fr !important;
    }
    .feature-list {
        grid-template-columns: 1fr !important;
    }
    .faq-list {
        grid-template-columns: 1fr !important;
    }
    .testimonial-list {
        column-count: 1 !important;
    }
    .partner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .cta-inner {
        grid-template-columns: 1fr !important;
    }
}