@layer base {
  .page {
    min-height: 100vh;
    font-family: var(--font-family-base);
  }

  /* Hero Section */
  .hero {
    padding: var(--spacing-16) 0;
    background: linear-gradient(135deg, 
      color-mix(in srgb, var(--primary) 8%, transparent), 
      color-mix(in srgb, var(--secondary) 5%, transparent)
    );
    position: relative;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
  }

  .heroContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--spacing-12);
    align-items: center;
    position: relative;
    z-index: 1;
  }

  .heroContent {
    max-width: 600px;
  }

  .heroTitle {
    font-family: var(--font-family-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-6);
    line-height: 1.1;
  }

  .heroSubtitle {
    font-size: 1.25rem;
    color: var(--muted-foreground);
    margin-bottom: var(--spacing-8);
    line-height: 1.6;
  }

  .heroActions {
    display: flex;
    gap: var(--spacing-4);
    flex-wrap: wrap;
  }

  .heroVisual {
    display: grid;
    gap: var(--spacing-4);
  }

  .heroCard {
    background: var(--card);
    padding: var(--spacing-6);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    text-align: center;
    min-width: 200px;
    transition: transform var(--animation-duration-normal) ease;
  }

  .heroCard:hover {
    transform: translateY(-4px);
  }

  .cardIcon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-4);
  }

  .heroCard h3 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--spacing-2);
  }

  .heroCard p {
    color: var(--muted-foreground);
    font-size: 0.9375rem;
  }

  /* Call to Action Section */
  .cta {
    padding: var(--spacing-16) 0;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    position: relative;
    overflow: hidden;
  }

  .cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
  }

  .ctaContainer {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .ctaContent {
    max-width: 600px;
    margin: 0 auto;
  }

  .ctaTitle {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-4);
    color: inherit;
  }

  .ctaSubtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-8);
    opacity: 0.9;
    line-height: 1.6;
  }

  .ctaActions {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .heroContainer {
      grid-template-columns: 1fr;
      gap: var(--spacing-8);
      text-align: center;
    }

    .heroTitle {
      font-size: 2.5rem;
    }

    .heroSubtitle {
      font-size: 1.125rem;
    }

    .heroActions {
      justify-content: center;
    }

    .heroVisual {
      grid-template-columns: repeat(2, 1fr);
    }

    .heroCard {
      min-width: auto;
      padding: var(--spacing-4);
    }

    .cardIcon {
      width: 3rem;
      height: 3rem;
    }

    .heroCard h3 {
      font-size: 1.25rem;
    }

    .ctaTitle {
      font-size: 2rem;
    }

    .ctaSubtitle {
      font-size: 1.125rem;
    }

    .ctaActions {
      flex-direction: column;
      align-items: center;
    }

    .ctaActions > * {
      width: 100%;
      max-width: 300px;
    }
  }

  @media (max-width: 480px) {
    .hero {
      padding: var(--spacing-12) 0;
    }

    .heroTitle {
      font-size: 2rem;
    }

    .heroSubtitle {
      font-size: 1rem;
    }

    .heroVisual {
      grid-template-columns: 1fr;
    }

    .heroCard {
      padding: var(--spacing-3);
    }

    .cta {
      padding: var(--spacing-12) 0;
    }

    .ctaTitle {
      font-size: 1.75rem;
    }

    .ctaSubtitle {
      font-size: 1rem;
    }
  }

  /* Animation enhancements */
  @media (prefers-reduced-motion: no-preference) {
    .heroCard {
      animation: fadeInUp 0.6s ease-out;
    }

    .heroCard:nth-child(2) {
      animation-delay: 0.2s;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }

  /* Dark mode adjustments */
  :global(.dark) .hero::before {
    opacity: 0.3;
  }

  :global(.dark) .cta::before {
    opacity: 0.2;
  }
}