:root {
    --color-primary: #fbbf24;
    --color-primary-dark: #b45309;
    --color-accent: #22d3ee;
    --color-surface: #1e293b;
    --color-text: #f8fafc;
    --rgb-primary: 251, 191, 36;
    --rgb-accent: 34, 211, 238;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 0 12px rgba(var(--rgb-accent), 0.2), 0 4px 12px rgba(2, 6, 23, 0.4);
    --shadow-md: 0 0 24px rgba(var(--rgb-accent), 0.4), 0 8px 24px rgba(2, 6, 23, 0.5);
    --shadow-lg: 0 16px 40px rgba(2, 6, 23, 0.6), 0 0 52px rgba(var(--rgb-accent), 0.55);
    --space-section: 4.5rem;
    --space-card: 1.35rem;
    --space-gap: 1.15rem;
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    --heading-weight: 800;
    --body-line-height: 1.6;
}

body {
    color: var(--color-text);
    line-height: var(--body-line-height);
    background: linear-gradient(160deg, #0b1120 0%, #101b36 55%, #0f172a 100%);
}

h1, h2, h3, h4 {
    font-weight: var(--heading-weight);
    text-shadow: 0 0 18px rgba(var(--rgb-primary), 0.25);
}

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), inset 0 0 0 1px rgba(var(--rgb-accent), 0.18);
    padding: var(--space-card);
    transition: var(--transition);
    background: linear-gradient(145deg, rgba(var(--rgb-primary), 0.08), transparent 45%), var(--color-surface);
    animation: cardGlow 4s ease-in-out infinite;
}

.btn, button[class*="btn"], a[class*="btn"] {
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: 0 0 16px rgba(var(--rgb-accent), 0.25), inset 0 0 0 1px rgba(var(--rgb-accent), 0.3);
}

a:not([class]) {
    color: var(--color-primary);
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(var(--rgb-primary), 0.35);
}

/* news: featured-left */
.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;
}

/* features: horizontal */
.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: left-aligned */
.hero-content {
    text-align: left;
    max-width: 600px;
    text-shadow: 0 0 20px rgba(var(--rgb-primary), 0.3);
}

/* testimonials: stacked */
.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-gap);
    max-width: 720px;
    margin: 0 auto;
}

/* partners: scroll */
.partner-grid {
    display: flex;
    gap: 1.8rem;
    overflow: hidden;
    animation: partnerScroll 28s linear infinite;
}

@keyframes partnerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* faq: with-sidebar */
.faq-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.8rem;
}

/* stats: inline */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
}

/* cta: card-style */
.cta-inner {
    background: linear-gradient(145deg, rgba(var(--rgb-primary), 0.14), transparent 55%), var(--color-surface);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(var(--rgb-accent), 0.2);
}

/* Page Layout: narrow-centered */
.page-main {
    max-width: 860px;
    margin: 0 auto;
}

a:not([class]):hover {
    color: var(--color-accent);
    text-shadow: 0 0 14px rgba(var(--rgb-accent), 0.8);
}

.card {
    border-left: 3px solid var(--color-accent);
}

header, .header, .navbar {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(var(--rgb-accent), 0.18);
    }
    50% {
        box-shadow: 0 0 36px rgba(var(--rgb-accent), 0.55), 0 10px 28px rgba(2, 6, 23, 0.55), inset 0 0 0 1px rgba(var(--rgb-accent), 0.35);
    }
}

@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: 1.75rem;
        --space-card: 1.125rem;
        --space-gap: 0.875rem;
    }
    .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; }
}