:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e3a8a;
  --color-accent: #3b82f6;
  --color-surface: #ffffff;
  --color-bg: #0f172a;
  --color-text: #e2e8f0;
  --color-on-surface: #0f172a;
  --rgb-primary: 37, 99, 235;
  --rgb-accent: 59, 130, 246;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08), 0 0 16px rgba(var(--rgb-accent), 0.3);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.12), 0 0 24px rgba(var(--rgb-accent), 0.4);
  --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.18), 0 0 32px rgba(var(--rgb-accent), 0.6);
  --space-section: 2rem;
  --space-card: 1rem;
  --space-gap: 0.75rem;
  --transition: 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  --heading-weight: 600;
  --body-line-height: 1.7;
}

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

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: var(--color-surface);
  color: var(--color-on-surface);
  animation: cardGlow 4s ease-in-out infinite;
}

.btn, button[class*="btn"], a[class*="btn"] {
  border-radius: var(--radius-md);
  transition: var(--transition);
  color: #f8fafc;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  box-shadow: var(--shadow-sm);
}

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

.news-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-gap);
}

.news-grid .card {
  display: grid;
  grid-template-columns: 280px 1fr;
}

.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-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-list {
  column-count: 2;
  column-gap: var(--space-gap);
}

.testimonial-list > * {
  break-inside: avoid;
  margin-bottom: var(--space-gap);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(var(--space-gap) * 1.5);
  align-items: center;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-gap);
  text-align: center;
}

.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: #f8fafc;
  padding: 4rem 2rem;
  box-shadow: 0 0 40px rgba(var(--rgb-accent), 0.4);
}

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

.card:hover, [class*="card"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  animation: none;
  border-color: rgba(var(--rgb-accent), 0.4);
}

.hero, [class*="hero"], section:first-of-type {
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.25), transparent 60%), linear-gradient(135deg, #1e293b, #0f172a);
}

.card {
  border: 1px solid rgba(var(--rgb-accent), 0.15);
}

header, .header, .navbar {
  background: transparent;
}

@keyframes cardGlow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12), 0 0 16px rgba(var(--rgb-accent), 0.25);
  }
  50% {
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.16), 0 0 32px rgba(var(--rgb-accent), 0.45);
  }
}

@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; }
}