:root {
  --bg: #080b18;
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8ff;
  --muted: #aeb7d8;
  --accent: #7c5cff;
  --accent-2: #29d8ff;
  --accent-3: #f8cf45;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #1a2250, var(--bg) 45%);
  min-height: 100vh;
  overflow-x: hidden;
}

.background-orbs span {
  position: fixed;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.28;
  z-index: -1;
  animation: float 12s ease-in-out infinite alternate;
}
.background-orbs span:nth-child(1) { background: var(--accent); top: 6%; left: -10%; }
.background-orbs span:nth-child(2) { background: var(--accent-2); bottom: 8%; right: -12%; animation-delay: 2s; }
.background-orbs span:nth-child(3) { background: var(--accent-3); top: 35%; right: 18%; width: 16rem; height: 16rem; animation-delay: 4s; }

.site-header {
  width: min(1120px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 11, 24, 0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 16px;
  z-index: 10;
}
.brand, nav a { color: var(--text); text-decoration: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-cube { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 24px var(--accent); transform: rotate(12deg); }
nav { display: flex; gap: 20px; }
nav a { color: var(--muted); font-weight: 600; font-size: 0.94rem; }
nav a:hover { color: var(--text); }

main, footer { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.hero { min-height: 78vh; display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 44px; padding: 80px 0 46px; }
.eyebrow { color: var(--accent-2); text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800; font-size: 0.78rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); line-height: 0.92; letter-spacing: -0.08em; margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -0.05em; }
h3 { font-size: 1.6rem; }
.hero-text, .section p, .game-card p { color: var(--muted); font-size: 1.1rem; line-height: 1.8; max-width: 650px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid rgba(255,255,255,0.16); transition: transform .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { color: #07101f; background: linear-gradient(135deg, var(--accent-2), #9effe3); }
.button.ghost { color: var(--text); background: var(--panel); }

.game-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.phone { width: min(300px, 80vw); height: 570px; border-radius: 42px; padding: 18px; background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.22); box-shadow: var(--shadow); animation: phoneFloat 5s ease-in-out infinite; }
.phone-top { width: 80px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.22); margin: 0 auto 18px; }
.game-screen { height: calc(100% - 26px); border-radius: 30px; background: linear-gradient(180deg, #101943, #070a18); overflow: hidden; position: relative; display: grid; place-items: center; }
.score { position: absolute; top: 22px; font-size: .85rem; letter-spacing: .18em; color: var(--muted); font-weight: 800; }
.stack { width: 210px; height: 300px; position: relative; display: flex; flex-direction: column-reverse; align-items: center; justify-content: flex-start; padding-bottom: 20px; }
.block { display: block; height: 36px; border-radius: 10px; margin-top: 8px; box-shadow: 0 14px 28px rgba(0,0,0,.25); }
.b1 { width: 184px; background: #29d8ff; }
.b2 { width: 156px; background: #7c5cff; }
.b3 { width: 132px; background: #f8cf45; }
.b4 { width: 112px; background: #ff6ba6; }
.moving { width: 128px; background: #9effe3; position: absolute; top: 50px; animation: slideBlock 2.4s ease-in-out infinite alternate; }
.spark { position: absolute; width: 14px; height: 14px; border-radius: 4px; background: var(--accent-3); animation: sparkle 3s ease-in-out infinite; }
.s1 { top: 18%; left: 12%; } .s2 { bottom: 20%; right: 12%; animation-delay: 1s; } .s3 { top: 50%; right: 4%; animation-delay: 2s; }

.stats, .game-card, .contact-grid a, .split { background: var(--panel); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 80px; }
.stats article { padding: 28px; background: rgba(255,255,255,.04); }
.stats strong { display: block; font-size: 2rem; } .stats span { color: var(--muted); }
.section { padding: 76px 0; }
.section-heading { max-width: 740px; }
.game-card { padding: clamp(24px, 5vw, 54px); display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; color: var(--text); }
.feature-list li { padding: 12px 14px; background: rgba(255,255,255,.07); border-radius: 16px; }
.tile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-8deg); }
.tile-grid span { aspect-ratio: 1; border-radius: 20px; background: linear-gradient(135deg, rgba(124,92,255,.9), rgba(41,216,255,.9)); animation: tilePulse 2.6s ease-in-out infinite; }
.tile-grid span:nth-child(2n) { animation-delay: .35s; } .tile-grid span:nth-child(3n) { animation-delay: .7s; }
.split { padding: clamp(24px, 5vw, 54px); display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-grid a { padding: 24px; color: var(--text); text-decoration: none; transition: transform .2s ease, background .2s ease; }
.contact-grid a:hover { transform: translateY(-4px); background: var(--panel-strong); }
.contact-grid span { color: var(--muted); display: block; margin-bottom: 10px; }
footer { color: var(--muted); padding: 40px 0 60px; text-align: center; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes float { to { transform: translate3d(36px, -28px, 0) scale(1.08); } }
@keyframes phoneFloat { 50% { transform: translateY(-18px) rotate(1deg); } }
@keyframes slideBlock { from { transform: translateX(-58px); } to { transform: translateX(58px); } }
@keyframes sparkle { 50% { transform: translateY(-18px) rotate(45deg) scale(1.5); opacity: .55; } }
@keyframes tilePulse { 50% { transform: translateY(-8px) scale(.94); filter: brightness(1.25); } }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; border-radius: 24px; }
  nav { gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
  .hero, .game-card, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 54px; }
  .game-visual { min-height: 430px; }
  .phone { height: 460px; }
  .stats { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
