/* =========================================================
   Coming Soon — flying cube field
   ========================================================= */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Sora", system-ui, -apple-system, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
  position: relative;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;        /* let mouse reach the canvas */
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 26px;
  padding-left: 0.4em; /* compensate letter-spacing */
}

.headline {
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.headline span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.sub {
  margin-top: 28px;
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Draggable 3D cube ---------- */
.scene {
  margin-top: 54px;
  perspective: 900px;
  pointer-events: auto;          /* cube is interactive (hero is not) */
  /* slowly drift the whole cube along a circular orbit */
  animation: orbit 12s linear infinite;
}
@keyframes orbit {
  from { transform: rotate(0deg)   translateX(26px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(26px) rotate(-360deg); }
}
.cube {
  position: relative;
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(28deg);
  animation: spin 18s linear infinite reverse;
  cursor: grab;
  will-change: transform;
}
.cube:active { cursor: grabbing; }
.cube.paused { animation: none; }

@keyframes spin {
  from { transform: rotateX(-22deg) rotateY(0deg); }
  to   { transform: rotateX(-22deg) rotateY(360deg); }
}

.cube__face {
  position: absolute;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.12);
}
.cube__face span {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
  user-select: none;
}
.cube__face--front  { transform: rotateY(  0deg) translateZ(60px); }
.cube__face--back   { transform: rotateY(180deg) translateZ(60px); }
.cube__face--right  { transform: rotateY( 90deg) translateZ(60px); }
.cube__face--left   { transform: rotateY(-90deg) translateZ(60px); }
.cube__face--top    { transform: rotateX( 90deg) translateZ(60px); }
.cube__face--bottom { transform: rotateX(-90deg) translateZ(60px); }

@media (prefers-reduced-motion: reduce) {
  .cube, .scene { animation: none; }
}
