/* =========================
   Global Theme
   ========================= */
   :root {
    --bg-body: #f7f6fb;
    --bg-hero: #ffffff;
    --bg-section: #ffffff;
    --bg-section-alt: #f1eef9;
    --bg-card: #ffffff;
    --bg-footer: #0f172a;
  
    --accent: #6366f1;
    --accent-soft: #e0e7ff;
    --accent-dark: #4f46e5;
  
    --text-main: #111827;
    --text-muted: #6b7280;
  
    --border-soft: #e5e7eb;
  
    --radius-lg: 18px;
    --radius-xl: 24px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
    --shadow-subtle: 0 8px 20px rgba(15, 23, 42, 0.06);
  
    --max-width: 1120px;
  }
  
  /* =========================
     Reset & Base
     ========================= */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
      sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
  }
  
  /* Links */
  a {
    color: var(--accent-dark);
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
  }
  
  /* Images */
  img {
    max-width: 100%;
    display: block;
  }
  
  /* Containers */
  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
  }
  
  .container.narrow,
  .narrow {
    max-width: 760px;
    margin: 0 auto;
  }
  
  /* =========================
     Header
     ========================= */
  .site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 40;
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
  }
  
  .logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    color: #111827;
  }
  .logo span {
    color: var(--accent);
  }
  
  /* Nav */
  .main-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    font-size: 0.95rem;
  }
  
  .main-nav a {
    color: #374151;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
  }
  
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: width 0.18s ease-out;
  }
  
  .main-nav a:hover::after {
    width: 100%;
  }
  
  /* =========================
     Hero Section
     ========================= */
  .hero {
    background: radial-gradient(circle at top left, #eef2ff, #ffffff 55%);
    padding: 3rem 0 2.5rem;
  }
  
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
    gap: 2.5rem;
    align-items: center;
  }
  
  .hero-text h1 {
    font-size: clamp(2rem, 3vw + 1rem, 2.7rem);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
  }
  
  .hero-text p {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
    max-width: 32rem;
  }
  
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  
  .hero-image {
    justify-self: center;
  }
  
  .hero-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    object-fit: cover;
  }
  
  /* Buttons */
  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
      background 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
    white-space: nowrap;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-subtle);
  }
  .btn-primary:hover {
    background: var(--accent-dark);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
  }
  
  .btn-secondary {
    background: #ffffff;
    color: var(--accent-dark);
    border-color: var(--accent-soft);
  }
  .btn-secondary:hover {
    background: var(--accent-soft);
    text-decoration: none;
  }
  
  /* =========================
     Sections
     ========================= */
  .section {
    padding: 2.75rem 0;
    background: var(--bg-section);
  }
  
  .section-alt {
    background: var(--bg-section-alt);
  }
  
  .section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.7rem;
  }
  
  .section-intro {
    margin: 0 0 2rem;
    color: var(--text-muted);
    max-width: 34rem;
  }
  
  /* =========================
     Cards Grid
     ========================= */
  .cards-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .cards-grid.three-col {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  }
  
  .card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.25rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
  }
  
  .card h3 {
    margin: 0 0 0.2rem;
    font-size: 1.1rem;
  }
  
  .card p {
    margin: 0 0 0.4rem;
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  .card-link {
    margin-top: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    text-decoration: none;
  }
  
  .card-link:hover {
    text-decoration: underline;
  }
  
  /* Highlighted Card */
  .card-highlight {
    border-color: var(--accent-soft);
    background: linear-gradient(
      135deg,
      rgba(224, 231, 255, 0.75),
      #ffffff 40%,
      rgba(239, 246, 255, 0.9)
    );
  }
  
  /* Badges */
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent-dark);
    margin-bottom: 0.15rem;
  }
  
  /* =========================
     Article Pages
     ========================= */
  .page-hero {
    padding: 2.5rem 0 2rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-soft);
  }
  
  .page-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.8rem, 2.6vw + 1rem, 2.3rem);
  }
  
  .page-hero p {
    margin: 0;
    max-width: 40rem;
    color: var(--text-muted);
  }
  
  .article-img {
    border-radius: var(--radius-lg);
    margin: 0.75rem 0 0.5rem;
    object-fit: cover;
    max-height: 260px;
  }
  
  /* Article text */
  .section article {
    margin-bottom: 1.7rem;
  }
  
  .section article h3 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
  }
  
  .section article p {
    margin: 0 0 0.5rem;
  }
  
  .list {
    margin: 0.2rem 0 0.7rem 1.2rem;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
  }
  
  /* =========================
     Ads Section
     ========================= */
  .ad-section {
    padding: 0.75rem 0;
  }
  .ad-section .container {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* =========================
     Footer
     ========================= */
  .site-footer {
    background: var(--bg-footer);
    color: #e5e7eb;
    padding: 2.25rem 0 1.75rem;
    margin-top: 2rem;
  }
  
  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: flex-start;
  }
  
  .footer-brand .logo {
    color: #f9fafb;
  }
  .footer-brand .logo span {
    color: #a5b4fc;
  }
  .footer-brand p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: #cbd5f5;
  }
  
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
  }
  
  .footer-links a {
    color: #cbd5f5;
  }
  .footer-links a:hover {
    color: #e5e7eb;
    text-decoration: underline;
  }
  
  .footer-copy {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: #9ca3af;
  }
  
  /* =========================
     Utilities
     ========================= */
  .cta-inner {
    margin-top: 1.7rem;
  }
  
  /* =========================
     Responsive
     ========================= */
  @media (max-width: 900px) {
    .hero-inner {
      grid-template-columns: 1fr;
    }
  
    .hero-image {
      order: -1;
    }
  
    .header-inner {
      flex-wrap: wrap;
      gap: 0.75rem;
    }
  
    .main-nav {
      flex-wrap: wrap;
      justify-content: flex-end;
    }
  }
  
  @media (max-width: 640px) {
    .header-inner {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .main-nav {
      justify-content: flex-start;
    }
  
    .hero {
      padding-top: 2.25rem;
    }
  
    .section {
      padding: 2.1rem 0;
    }
  
    .card {
      padding: 1.1rem 1rem 1.2rem;
    }
  }
  