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

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

  body {
    overflow-x: hidden;
  }

  /* NAV */
  #nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
  }

  #nav.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 20px rgba(10, 22, 40, 0.08);
    backdrop-filter: blur(10px);
  }

  .nav-link {
    position: relative;
  }

  #nav:not(.scrolled) .nav-link {
    color: rgba(255, 255, 255, 0.8);
  }

  #nav:not(.scrolled) .nav-link:hover {
    color: #6ee7b7;
  }

  #nav:not(.scrolled) .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6ee7b7;
    transition: width 0.3s ease;
  }

  #nav:not(.scrolled) .nav-link:hover::after {
    width: 100%;
  }

  #nav.scrolled .nav-link {
    color: #1e3a5f;
  }

  #nav.scrolled .nav-link:hover {
    color: #10b981;
  }

  #nav.scrolled .nav-link::after {
    background: #10b981;
  }

  #nav.scrolled .mobile-link {
    color: #1e3a5f;
  }

  /* MOBILE MENU */
  #mobile-menu {
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .mobile-link {
    color: #1e3a5f;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(10, 22, 40, 0.08);
    display: block;
  }

  .mobile-link:last-child {
    border-bottom: none;
  }

  /* HERO */
  .hero-gradient-orb {
    animation: orbFloat 8s ease-in-out infinite;
  }

  .hero-gradient-orb:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 10s;
  }

  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
  }

  .hero-grid-pattern {
    background-size: 60px 60px;
  }

  .scroll-indicator {
    display: block;
    opacity: 0.7;
    transition: opacity 0.3s;
  }

  .scroll-indicator:hover {
    opacity: 1;
  }

  /* REVEAL ANIMATION */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }

  /* PRODUCT CARDS */
  .group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
  }

  /* BUTTON HOVER EFFECTS */
  a, button {
    -webkit-tap-highlight-color: transparent;
  }

  /* FOCUS STYLES */
  input:focus, textarea:focus, button:focus {
    outline: none;
  }

  /* FORM INPUTS */
  input::placeholder, textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
  }

  /* SELECTION */
  ::selection {
    background: rgba(110, 231, 183, 0.3);
    color: #0a1628;
  }

  /* SCROLLBAR */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #0a1628;
  }

  ::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
  }

  /* RESPONSIVE */
  @media (max-width: 640px) {
    .font-serif {
      font-size: 2.25rem;
      line-height: 1.1;
    }

    section {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
  }

  @media (min-width: 641px) and (max-width: 1023px) {
    section {
      padding-left: 2rem;
      padding-right: 2rem;
    }
  }
