  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  ::selection {
    background: #059669;
    color: #fefdf8;
  }

  /* Scroll reveal — progressive enhancement, only activates with JS */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
    .reveal {
      opacity: 0;
      transform: translateY(24px);
    }
  }

  /* Mobile menu transition */
  #mobileNav {
    transition: opacity 0.2s ease;
  }

  #mobileNav.open {
    display: flex !important;
  }

  /* Focus styles */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  textarea:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #064e3b;
  }
  ::-webkit-scrollbar-thumb {
    background: #059669;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #10b981;
  }
