:root {
      --white: #ffffff;
      --light: #f8fafc;
      --light-gray: #e2e8f0;
      --medium-gray: #94a3b8;
      --dark-gray: #64748b;
      --black: #0f172a;
      --blue: #3b82f6;
      --blue-light: #dbeafe;
      --blue-medium: #3b82f6;
      --blue-dark: #1e40af;
      --ice: #dbeafe;
      --teal: #3b82f6;
      --navy: #1e3a5f;
      --dark: #0f172a;
      --gold: #f59e0b;
      --font-heading: Georgia, 'Times New Roman', Times, serif;
      --font-body: "DM Sans", sans-serif;
      --nav-h: 72px;
      --radius: 12px;
      --radius-lg: 20px;
      --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
 
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
    html {
      height: 100%;
      width: 100%;
    }
 
    body {
      font-family: var(--font-body);
      background-color: var(--dark);
      color: var(--light);
      height: 100vh;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      position: relative;
    }
 
    /* Background grid */
    body::before {
      content: '';
      position: fixed;
      inset: 0;
      background-image:
        linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
      background-size: 60px 60px;
      pointer-events: none;
      z-index: 0;
    }
 
    /* Glowing orb — blue theme */
    body::after {
      content: '';
      position: fixed;
      width: 650px;
      height: 650px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(59,130,246,0.10) 0%, transparent 70%);
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 0;
      animation: pulse-orb 4s ease-in-out infinite;
    }
 
    @keyframes pulse-orb {
      0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
      50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.1); }
    }
 
    /* NAV */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      height: var(--nav-h);
      padding: 0 2.5rem;
      display: flex;
      align-items: center;
      z-index: 10;
      border-bottom: 1px solid rgba(59,130,246,0.12);
      background: rgba(15,23,42,0.85);
      backdrop-filter: blur(14px);
    }
 
    .logo-img {
      height: 36px;
      width: auto;
      display: block;
    }
 
    /* MAIN CONTAINER */
    .container {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 2rem 1.5rem;
      margin-top: var(--nav-h);
    }
 
    /* 404 */
    .big-404 {
      font-family: var(--font-heading);
      font-size: clamp(7rem, 18vw, 14rem);
      font-weight: 700;
      letter-spacing: -0.05em;
      line-height: 1;
      background: linear-gradient(135deg, var(--white) 0%, var(--blue-medium) 55%, var(--blue-dark) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 0.5rem;
      user-select: none;
    }
 
    /* CHARACTER SCENE */
    .scene {
      width: 220px;
      height: 220px;
      margin: 0.5rem 0 1.5rem;
    }
    .scene svg { width: 100%; height: 100%; overflow: visible; }
 
    .char-group {
      animation: bob 2.2s ease-in-out infinite;
      transform-origin: 110px 160px;
    }
    @keyframes bob {
      0%, 100% { transform: translateY(0px); }
      50%       { transform: translateY(-6px); }
    }
 
    .magnifier-group {
      animation: swing 2.2s ease-in-out infinite;
      transform-origin: 95px 120px;
    }
    @keyframes swing {
      0%, 100% { transform: rotate(-12deg); }
      50%       { transform: rotate(14deg); }
    }
 
    .eye-l { animation: blink 3s ease-in-out infinite; }
    .eye-r { animation: blink 3s ease-in-out infinite 0.1s; }
    @keyframes blink {
      0%, 90%, 100% { transform: scaleY(1); }
      95%            { transform: scaleY(0.1); }
    }
 
    .q1 { animation: floatQ 3s ease-in-out infinite; }
    .q2 { animation: floatQ 3s ease-in-out infinite 1s; }
    .q3 { animation: floatQ 3s ease-in-out infinite 2s; }
    @keyframes floatQ {
      0%, 100% { opacity: 0; transform: translateY(0px) scale(0.6); }
      30%       { opacity: 0.9; }
      60%       { opacity: 0.5; transform: translateY(-28px) scale(1); }
      100%      { opacity: 0;   transform: translateY(-50px) scale(0.8); }
    }
 
    .shadow-ellipse {
      animation: shadow-pulse 2.2s ease-in-out infinite;
      transform-origin: 110px 210px;
    }
    @keyframes shadow-pulse {
      0%, 100% { transform: scaleX(1);    opacity: 0.3; }
      50%       { transform: scaleX(0.85); opacity: 0.15; }
    }
 
    .mag-shine {
      animation: shine 2.2s ease-in-out infinite;
    }
    @keyframes shine {
      0%, 100% { opacity: 0.6; }
      50%       { opacity: 0.15; }
    }
 
    /* TEXT */
    .tagline {
      font-size: 0.72rem;
      font-weight: 600;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--blue-medium);
      margin-bottom: 0.75rem;
    }
 
    .headline {
      font-size: clamp(1.05rem, 3vw, 1.35rem);
      font-weight: 400;
      color: var(--medium-gray);
      line-height: 1.6;
      max-width: 420px;
      margin-bottom: 2.5rem;
    }
 
    .headline em {
      font-style: normal;
      color: var(--white);
      font-weight: 600;
    }
 
    /* BUTTON */
    .btn-home {
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      background: var(--blue-medium);
      color: var(--white);
      font-family: var(--font-body);
      font-size: 0.95rem;
      font-weight: 600;
      text-decoration: none;
      padding: 0.85rem 2rem;
      border-radius: 100px;
      border: none;
      cursor: pointer;
      transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
      box-shadow: 0 0 32px rgba(59,130,246,0.35);
      letter-spacing: 0.01em;
    }
 
    .btn-home:hover {
      background: var(--blue-dark);
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 0 48px rgba(59,130,246,0.55);
    }
 
    .btn-home:active {
      transform: translateY(0) scale(0.98);
    }
 
    .btn-home svg {
      width: 18px;
      height: 18px;
      transition: transform var(--transition);
    }
 
    .btn-home:hover svg { transform: translateX(3px); }
 
    .error-code {
      margin-top: 2.5rem;
      font-size: 0.75rem;
      color: var(--dark-gray);
      letter-spacing: 0.1em;
    }
 
    /* Decorative dots */
    .dot {
      position: fixed;
      border-radius: 50%;
      background: var(--blue-medium);
      opacity: 0.12;
      pointer-events: none;
      z-index: 0;
    }
 
    @media (max-width: 480px) {
      .scene { width: 170px; height: 170px; }
    }