:root {
  --accent: #6d28d9;
  --accent-light: #7c3aed;
  --accent-blue: #0284c7;

  --page-text: #111827;
  --muted-text: #4b5563;

  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(17, 24, 39, 0.12);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.16), transparent 35%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #e0f2fe 100%);
  color: var(--page-text);
}

.cover-container {
  max-width: 1080px;
}

/* Header */

.site-header .navbar {
  min-height: 72px;
}

.logo-link {
  z-index: 1;
  padding: 0;
  margin: 0;
}

.site-logo {
  display: block;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}

.navbar-toggler,
.navbar-collapse {
  z-index: 2;
}

.nav-link {
  color: #374151;
  transition: color 0.2s ease;
}

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

/* Hero */

.hero {
  padding: 5rem 0 3rem;
}

.hero-title {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 900;

  background: linear-gradient(
    90deg,
    #111827 0%,
    #4c1d95 35%,
    #6d28d9 62%,
    #0369a1 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-shadow:
    0 8px 26px rgba(109, 40, 217, 0.12),
    0 12px 40px rgba(2, 132, 199, 0.10);

  animation: titleGlow 5s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    filter: drop-shadow(0 4px 10px rgba(109, 40, 217, 0.16));
  }

  to {
    filter: drop-shadow(0 6px 18px rgba(2, 132, 199, 0.18));
  }
}

.hero-intro {
  max-width: 660px;
  margin-inline: auto;
  color: #374151;
  font-size: 1.15rem;
  font-weight: 500;
}

.hero p.lead {
  max-width: 680px;
  margin-inline: auto;
  color: var(--muted-text);
  font-size: 1.15rem;
}

/* Blog cards */

.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(18px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  color: inherit;
  border-color: rgba(109, 40, 217, 0.35);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(109, 40, 217, 0.16);
}

.blog-card:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.45);
  outline-offset: 4px;
}

.blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-meta {
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-title {
  color: #111827;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-top: 0.35rem;
  margin-bottom: 0.65rem;
}

.blog-description {
  color: var(--muted-text);
  margin-bottom: 1.1rem;
}

.blog-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 700;
}

.blog-cta span {
  transition: transform 0.2s ease;
}

.blog-card:hover .blog-cta span {
  transform: translateX(4px);
}

.featured-card {
  min-height: 100%;
}

/* Sections */

.section-label {
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

/* Footer */

footer {
  color: #6b7280;
}

footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  color: #4c1d95;
  text-decoration: underline;
}

/* Buttons */

.btn-primary {
  --bs-btn-bg: #6d28d9;
  --bs-btn-border-color: #6d28d9;
  --bs-btn-hover-bg: #5b21b6;
  --bs-btn-hover-border-color: #5b21b6;
  --bs-btn-active-bg: #4c1d95;
  --bs-btn-active-border-color: #4c1d95;
}

/* Accessibility */

.nav-link:focus-visible,
.btn:focus-visible,
footer a:focus-visible {
  outline: 3px solid rgba(109, 40, 217, 0.45);
  outline-offset: 4px;
  border-radius: 999px;
}

/* Responsive layout */

@media (min-width: 768px) {
  .blog-card.horizontal {
    display: grid;
    grid-template-columns: 280px 1fr;
  }

  .blog-card.horizontal .blog-image {
    height: 100%;
  }
}

@media (max-width: 767.98px) {
  .site-header .navbar {
    min-height: 68px;
  }

  .site-logo {
    max-height: 48px;
  }

  .navbar-collapse {
    margin-top: 4rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    animation: none;
  }

  .blog-card,
  .blog-cta span {
    transition: none;
  }
}
