
    /* =========================
       PRELOADER
    ========================= */
    #page-loader {
      position: fixed;
      inset: 0;
      z-index: 99999;
      background: radial-gradient(circle at top, #172033, #020617 72%);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity .6s ease, visibility .6s ease;
    }

    #page-loader.hide {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .loader-wrap {
      text-align: center;
      transform: translateY(-20px);
    }

    /* =========================
       TURBINE
    ========================= */
    .turbine-loader {
      position: relative;
      width: 190px;
      height: 260px;
      margin: 0 auto 32px;
      color: rgba(255, 255, 255, .94);
      filter: drop-shadow(0 0 28px rgba(255, 255, 255, .20));
    }

    .tower {
      position: absolute;
      left: 50%;
      bottom: 0;
      width: 24px;
      height: 145px;
      transform: translateX(-50%);
      background: currentColor;
      clip-path: polygon(38% 0, 62% 0, 78% 100%, 22% 100%);
      border-radius: 16px 16px 3px 3px;
      z-index: 1;
    }

    .blade-group {
      position: absolute;
      left: 50%;
      top: 77px;
      width: 150px;
      height: 150px;
      transform: translate(-50%, -50%);
      transform-origin: center center;
      animation: spinBlade 1.2s linear infinite;
      z-index: 3;
    }

    .blade {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 18px;
      height: 76px;
      background: currentColor;
      border-radius: 100% 100% 16px 16px;
      transform-origin: 50% 100%;
    }

    .blade:nth-child(1) {
      transform: translate(-50%, -100%) rotate(0deg);
    }

    .blade:nth-child(2) {
      transform: translate(-50%, -100%) rotate(120deg);
    }

    .blade:nth-child(3) {
      transform: translate(-50%, -100%) rotate(240deg);
    }

    .hub {
      position: absolute;
      left: 50%;
      top: 77px;
      width: 38px;
      height: 38px;
      transform: translate(-50%, -50%);
      background: currentColor;
      border-radius: 50%;
      z-index: 5;
    }

    @keyframes spinBlade {
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }

      to {
        transform: translate(-50%, -50%) rotate(360deg);
      }
    }

    /* =========================
       TEXT
    ========================= */
    .loader-title {
      font-size: 36px;
      line-height: 1.2;
      font-weight: 800;
      margin-bottom: 24px;
      letter-spacing: .3px;
      color: #ffffff;
    }

    /* =========================
       PROGRESS BAR
    ========================= */
    .loader-bar {
      width: 520px;
      max-width: 74vw;
      height: 16px;
      background: rgba(255, 255, 255, .16);
      border-radius: 999px;
      overflow: hidden;
      margin: 0 auto;
    }

    .loader-progress {
      width: 0%;
      height: 100%;
      background: linear-gradient(90deg, #22c55e, #86efac);
      border-radius: 999px;
      transition: width .25s ease;
    }

    .loader-percent {
      margin-top: 18px;
      font-size: 28px;
      font-weight: 700;
      color: #cbd5e1;
    }

    /* =========================
       DEMO CONTENT
    ========================= */
    main {
      min-height: 100vh;
      padding: 80px 30px;
      text-align: center;
      background: #111827;
    }

    main h1 {
      font-size: 42px;
      margin-bottom: 12px;
    }

    main p {
      color: #cbd5e1;
      font-size: 20px;
    }

    @media (max-width: 600px) {
      .turbine-loader {
        width: 150px;
        height: 220px;
      }

      .tower {
        height: 122px;
      }

      .blade-group {
        top: 68px;
        width: 120px;
        height: 120px;
      }

      .blade {
        width: 15px;
        height: 62px;
      }

      .hub {
        top: 68px;
        width: 32px;
        height: 32px;
      }

      .loader-title {
        font-size: 26px;
      }

      .loader-percent {
        font-size: 22px;
      }
    }
