:root {
    /* Background */
    --bg-main: #dff3e6;
    --bg-overlay: #f3faf6;
  
    /* Grid */
    --grid-color: rgba(255, 255, 255, 0.35);
    --grid-size: 32px;
  
    /* Text */
    --text-primary: #1f3d2b;
    --text-secondary: #3a5f4b;
    --text-muted: #6b8f7b;
  
    /* Accent */
    --accent-primary: #2f8f5b;
    --accent-soft: #9bd7b2;
  
    /* UI */
    --border-soft: rgba(31, 61, 43, 0.12);
  }
  
  /* Reset */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Global */
  body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    background-image:
      linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
      linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    color: var(--text-secondary);
    line-height: 1.6;
  }
  
  h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  
  a {
    color: var(--accent-primary);
    text-decoration: none;
  }
  
  /* =========================
     Preloader
  ========================= */
  #preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .preloader-inner {
    text-align: center;
  }
  
  .preloader-inner .brand {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
  }
  
  .preloader-inner .status {
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-muted);
  }
  
  /* =========================
     404 / Maintenance Page
  ========================= */
  .error-page {
    min-height: 100vh;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0; /* for GSAP */
  }
  
  /* Illustration */
  .illustration {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .character {
    width: 100%;
    max-width: 420px;
    height: auto;
  }
  
  /* Content */
  .content {
    max-width: 420px;
  }
  
  .code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 8px;
  }
  
  .headline {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 12px;
  }
  
  .subtext {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
  }
  
  .cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47, 143, 91, 0.25);
  }
  .muted {
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  
  /* =========================
     Responsive
  ========================= */
  @media (max-width: 900px) {
    .error-page {
      grid-template-columns: 1fr;
      text-align: center;
    }
  
    .content {
      margin: 0 auto;
    }
  }
  
  @media (max-width: 480px) {
    .code {
      font-size: 3rem;
    }
  
    .headline {
      font-size: 1.2rem;
    }
  
    .subtext {
      font-size: 0.9rem;
    }
  
    .character {
      max-width: 300px;
    }
  }
  