/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */
   html {
    scroll-behavior: smooth;
  }
  
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Disable scrollbar for cleaner cinematic look */
  ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
  }
  
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(46, 64, 54, 0.2); /* Moss color scaled down */
    border-radius: 10px;
  }
  
  /* ============================================
     TYPOGRAPHY UTILITIES
     ============================================ */
  .tracking-tight-custom {
    letter-spacing: -0.02em;
  }
  
  /* ============================================
     COMPONENTS & INTERACTIONS
     ============================================ */
  
  /* Magnetic Button Hover System */
  .magnetic-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background-color 0.4s ease,
                color 0.4s ease;
    will-change: transform;
    z-index: 1;
  }
  
  .magnetic-btn:hover {
    transform: scale(1.03) translateY(-1px);
  }
  
  /* Button Slide Animation */
  .magnetic-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--hover-color, rgba(0,0,0,0.1));
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
    border-radius: inherit;
  }
  
  .magnetic-btn:hover::after {
    transform: translateY(0);
  }
  
  /* Floating Island Nav */
  .floating-island {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid transparent;
  }
  
  .floating-island.scrolled {
    background-color: rgba(242, 240, 233, 0.85); /* Frost cream */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-color: rgba(46, 64, 54, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    color: #2E4036; /* Switch text to Moss */
  }
  
  /* Component Cards Surfaces */
  .surface-card {
    background: #F2F0E9;
    border: 1px solid rgba(46, 64, 54, 0.08);
    box-shadow: 0 20px 40px -10px rgba(46, 64, 54, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }
  
  .surface-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 50px -15px rgba(46, 64, 54, 0.1);
  }
  
  /* Diagnostic Shuffler Pattern */
  .shuffler-card {
    position: absolute;
    width: 100%;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
  }
  
  /* Typewriter Cursor */
  .typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #CC5833; /* Clay accent */
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
  }
  
  @keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }
  
  /* Blinking Status Dot */
  .status-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981; /* Green */
    border-radius: 50%;
    position: relative;
  }
  
  .status-dot::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid #10B981;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  }
  
  @keyframes pulse-ring {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
  }
  
  /* Protocol Stacking Defaults */
  .protocol-card {
    will-change: transform, opacity, filter;
  }
  
  /* Link Hover */
  a:not(.magnetic-btn) {
    transition: color 0.3s ease, transform 0.3s ease;
  }
  
  a:not(.magnetic-btn):hover {
    transform: translateY(-1px);
  }
