:root {
  --bg: #0b1020;
  --bg-2: #16204a;
  --text: #e7ecf7;
  --muted: #a9b4cf;
  --accent: #5eead4;
  --accent-2: #3b82f6;
  --cube-size: 96px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(94, 234, 212, 0.10) 0, transparent 35%),
    radial-gradient(circle at 80% 85%, rgba(59, 130, 246, 0.16) 0, transparent 40%),
    radial-gradient(circle at 50% 40%, var(--bg-2) 0%, var(--bg) 70%);
  background-color: var(--bg);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 24px;
}

/* Вращающийся куб — как в тестовой сцене Unity */
.scene {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 600px;
  margin-bottom: 40px;
}

.cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin 9s linear infinite;
}

.face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.55), rgba(59, 130, 246, 0.75));
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.15);
}

.front  { transform: translateZ(calc(var(--cube-size) / 2)); }
.back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.right  { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.top    { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

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

.badge {
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid rgba(94, 234, 212, 0.4);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 10vw, 84px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 520px;
  margin: 18px 0 36px;
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 700;
  color: #06121f;
  text-decoration: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.play:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(59, 130, 246, 0.5);
}

.play:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 4px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.facts li::before {
  content: "✓ ";
  color: var(--accent);
}

.footer {
  padding: 20px 16px 28px;
  text-align: center;
  font-size: 13px;
  color: rgba(169, 180, 207, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .cube { animation: none; transform: rotateX(-20deg) rotateY(35deg); }
  .play { transition: none; }
}
