html, body {
  overscroll-behavior-y: contain;
  overscroll-behavior: none;
  touch-action: pan-y;
  }
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(black, #050505);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    position: relative;
  }
  
  /* Grid background */
  .background-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(white 1px, transparent 1px),
      linear-gradient(90deg, white 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.05;
    z-index: 0;
  }
  
  /* Rubik's cube - positioned where the old spinning box was */
  #rubik-scene {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    perspective: 700px;
    z-index: 2;
  }
  
  #rubik-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-rotate 9s linear infinite;
  }
  
  @keyframes cube-rotate {
    from { transform: rotateX(-18deg) rotateY(0deg); }
    to   { transform: rotateX(-18deg) rotateY(360deg); }
  }
  
  /* holo-style cubie (matches the sign-up / identity-scan page) */
  .cubie {
    position: absolute;
    width: 36px;
    height: 36px;
    top: 50%;
    left: 50%;
    margin-top: -18px;
    margin-left: -18px;
    transform-style: preserve-3d;
  }
  
  .cubie-face {
    position: absolute;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(0,255,127,0.8);
    background: rgba(0,255,127,0.03);
    box-shadow: 0 0 18px rgba(0,255,127,0.3), inset 0 0 20px rgba(0,255,127,0.1);
  }
  .cubie-face::before, .cubie-face::after {
    content: '';
    position: absolute;
    background: rgba(0,255,127,0.3);
  }
  .cubie-face::before { top: 50%; left: 0; width: 100%; height: 1px; }
  .cubie-face::after  { left: 50%; top: 0; width: 1px; height: 100%; }
  
  /* filled white faces - solid panel instead of near-transparent */
  .cubie-face.face-white {
    border: 1px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 0 18px rgba(255,255,255,0.5), inset 0 0 22px rgba(255,255,255,0.22);
  }
  .cubie-face.face-white::before,
  .cubie-face.face-white::after {
    background: rgba(255,255,255,0.5);
  }
  
  /* Projection light beam */
  .projection {
    position: absolute;
    top: 10%;
    left: 50%;
    width: clamp(100px, 30vw, 220px);
    height: clamp(100px, 30vw, 220px);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 80%);
    transform: translate(-50%, 0%) rotateX(90deg);
    filter: blur(50px);
    opacity: 0.6;
    animation: beamPulse 2.5s infinite ease-in-out;
    z-index: 0;
  }
  
  @keyframes beamPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, 0%) rotateX(90deg) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, 0%) rotateX(90deg) scale(1.2); }
  }
  
  /* Title - responsive sizing */
  .blackbox-title {
    font-family: 'Orbitron', sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(32px, 8vw, 60px);
    font-weight: 900;
    letter-spacing: clamp(1px, 0.3vw, 3px);
    text-transform: uppercase;
    text-align: center;
    z-index: 3;
  }
  
  .blackbox-title .black {
    color: #b1b2be;
    text-shadow:
      1px 1px 2px #333,
      2px 2px 4px #222,
      3px 3px 6px rgba(0, 0, 0, 0.6);
  }
  
  .blackbox-title .box {
    color: #00ff7f;
    text-shadow:
      1px 1px 2px #007a3d,
      2px 2px 4px #006633,
      3px 3px 6px rgba(0, 0, 0, 0.6);
  }
  
  /* Typewriter intro text - responsive */
  .intro-text {
    position: absolute;
    top: 58%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(14px, 3vw, 18px);
    color: #bfbfbf;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: clamp(0.5px, 0.15vw, 1px);
    text-align: center;
    width: 90%;
    max-width: 500px;
    white-space: pre-line;
    border-right: 3px solid #00ff7f;
    animation: blinkCursor 0.7s steps(1) infinite;
    z-index: 3;
    padding: 0 15px;
  }
  
  @keyframes blinkCursor {
    50% { border-color: transparent; }
  }
  
  /* Button - responsive */
  #enterBtn {
    position: absolute;
    top: 72%;
    left: 50%;
    transform: translateX(-50%);
    padding: clamp(10px, 2vw, 12px) clamp(20px, 4vw, 28px);
    font-size: clamp(14px, 3vw, 18px);
    font-weight: bold;
    color: #00ff7f;
    background: transparent;
    border: 2px solid #00ff7f;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s, color 0.3s;
    font-family: 'Orbitron', sans-serif;
    z-index: 3;
    white-space: nowrap;
  }
  
  #enterBtn:hover {
    transform: translateX(-50%) scale(1.05);
    background: rgba(0, 255, 127, 0.1);
    color: #00ffcc;
  }
  
  /* Tablet adjustments */
  @media (max-width: 768px) {
    #rubik-scene {
      top: 8%;
    }
  
    .projection {
      top: 8%;
    }
  
    .blackbox-title {
      top: 46%;
    }
  
    .intro-text {
      top: 58%;
      width: 85%;
    }
  
    #enterBtn {
      top: 75%;
    }
  }
  
  /* Mobile adjustments */
  @media (max-width: 480px) {
    body {
      perspective: 600px;
    }
  
    .background-grid {
      background-size: 40px 40px;
    }
  
    #rubik-scene {
      top: 6%;
      transform: translateX(-50%) scale(0.7);
    }
  
    .projection {
      top: 6%;
    }
  
    .blackbox-title {
      top: 42%;
      width: 90%;
    }
  
    .intro-text {
      top: 56%;
      width: 85%;
      line-height: 1.5;
    }
  
    #enterBtn {
      top: 74%;
      width: auto;
      max-width: 80%;
    }
  }
  
  /* Very small mobile devices */
  @media (max-width: 360px) {
    #rubik-scene {
      top: 4%;
      transform: translateX(-50%) scale(0.55);
    }
  
    .blackbox-title {
      top: 38%;
    }
  
    .intro-text {
      top: 54%;
      font-size: 12px;
    }
  
    #enterBtn {
      top: 72%;
    }
  }
  
  /* Landscape mobile orientation */
  @media (max-height: 500px) and (orientation: landscape) {
    #rubik-scene {
      top: 10%;
      transform: translateX(-50%) scale(0.5);
    }
  
    .blackbox-title {
      top: 35%;
      font-size: clamp(24px, 6vw, 40px);
    }
  
    .intro-text {
      top: 52%;
      font-size: clamp(11px, 2vw, 14px);
    }
  
    #enterBtn {
      top: 75%;
      padding: 8px 16px;
      font-size: clamp(12px, 2.5vw, 14px);
    }
  }
  
      .already-account {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #555;
  position:absolute;
  bottom:90px;
  
  }
  
  .already-account a {
  color: #ff6b81; /* accent pink */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  }
  
  .already-account a:hover {
  color: #ff3366;
  text-decoration: underline;
  }
  /* get app*/
  
  .get-app {
  position: absolute;
  top: 20px;
  right: 25px;
  z-index: 999;
  }
  
  .get-app a {
  display: inline-flex;
  align-items: center;          /* vertically center icon + text */
  justify-content: center;      /* keeps spacing clean */
  gap: 8px;                     /* space between icon & text */
  padding: 10px 18px;
  background: none;
  border-radius: 10px;
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  border:2px solid #888;
  }
  
  
  
  .get-app svg {
  width: 18px;
  height: 18px;
  display: block;
  }
  
  .tagline {
      position: absolute;
      top: 62%;
      left: 50%;
      transform: translateX(-50%);
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(11px, 2.5vw, 14px);
      color: rgba(0, 255, 127, 0.5);
      letter-spacing: 3px;
      text-transform: uppercase;
      text-align: center;
      z-index: 3;
      white-space: nowrap;
    }