* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #03040d;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  overflow-x: hidden;
}

section {
  position: relative;
}

.hero {
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 30%, rgba(130, 90, 255, 0.35), transparent 36%),
    radial-gradient(circle at 25% 80%, rgba(0, 220, 255, 0.15), transparent 32%),
    #03040d;
}

.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation-name: twinkle;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes twinkle {
  0% {
    opacity: 0.15;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.15;
  }
}

.heroContent {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.badge {
  display: inline-block;
  margin-bottom: 28px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(20px);
  font-weight: 800;
}

h1 {
  font-size: clamp(64px, 10vw, 150px);
  line-height: 0.88;
  letter-spacing: -0.08em;
  margin: 0;
}

h2 {
  font-size: clamp(46px, 7vw, 110px);
  line-height: 0.9;
  letter-spacing: -0.07em;
  margin: 0;
}

p {
  font-size: clamp(20px, 2.2vw, 30px);
  color: rgba(255, 255, 255, 0.68);
}

.keyboardStory {
  height: 420vh;
  background:
    radial-gradient(circle at 50% 50%, rgba(110, 120, 255, 0.14), transparent 42%),
    #03040d;
}

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.storyText {
  position: absolute;
  z-index: 5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 50px rgba(120, 100, 255, 0.9);
}

.keyboard {
  display: grid;
  gap: clamp(7px, 0.8vw, 14px);
  padding: clamp(14px, 2vw, 34px);
  border-radius: clamp(22px, 3vw, 42px);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 60px 180px rgba(0, 0, 0, 0.65),
    0 0 130px rgba(110, 120, 255, 0.24);
  transform: scale(0.55);
  opacity: 0;
  transform-origin: center center;
}

.row {
  display: flex;
  gap: clamp(7px, 0.8vw, 14px);
  justify-content: center;
}

.key {
  width: clamp(34px, 4.35vw, 72px);
  height: clamp(34px, 4.35vw, 72px);
  display: grid;
  place-items: center;
  border-radius: clamp(9px, 1.3vw, 17px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  font-size: clamp(12px, 1.45vw, 26px);
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.22);
  transition: box-shadow 0.3s ease;
}

.keyBackspace {
  width: clamp(76px, 8.8vw, 146px);
  font-size: clamp(9px, 1vw, 16px);
}

.keyTab {
  width: clamp(58px, 6.4vw, 104px);
  font-size: clamp(9px, 1vw, 16px);
}

.keyCaps {
  width: clamp(74px, 8vw, 132px);
  font-size: clamp(9px, 1vw, 16px);
}

.keyEnter {
  width: clamp(88px, 9.5vw, 160px);
  font-size: clamp(9px, 1vw, 16px);
}

.keyShift {
  width: clamp(104px, 12vw, 200px);
  font-size: clamp(9px, 1vw, 16px);
}

.keySmall {
  width: clamp(48px, 5.6vw, 92px);
  font-size: clamp(9px, 1vw, 15px);
}

.keySpace {
  width: clamp(220px, 32vw, 560px);
}

.home {
  box-shadow:
    0 0 0 rgba(110, 235, 255, 0),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.xpStory {
  height: 320vh;
  background:
    radial-gradient(circle at 50% 50%, rgba(120, 80, 255, 0.22), transparent 38%),
    #050716;
}

.xpSticky {
  text-align: center;
  gap: 70px;
  padding: 8vw;
}

.xpWrap {
  position: relative;
  width: min(720px, 88vw);
}

.levelCard {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
  box-shadow: 0 50px 160px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(80px) scale(0.92);
}

.levelNumber {
  font-size: clamp(54px, 8vw, 96px);
  font-weight: 950;
  letter-spacing: -0.07em;
}

.levelTitle {
  font-size: clamp(24px, 3vw, 38px);
  color: #a98cff;
  font-weight: 800;
}

.bar {
  height: 16px;
  margin: 32px 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}

.barFill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ee7ff, #b36bff);
}

.barText {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
}

.floatingXp {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 950;
  letter-spacing: -0.06em;
  background: linear-gradient(135deg, #6ee7ff, #b36bff);
  -webkit-background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.appStory {
  height: 270vh;
  background:
    radial-gradient(circle at 70% 40%, rgba(110, 120, 255, 0.20), transparent 34%),
    #03040d;
}

.appSticky {
  grid-template-columns: 1fr 1fr;
  gap: 7vw;
  padding: 8vw;
}

.appText {
  max-width: 720px;
}

.appImage {
  width: min(680px, 42vw);
  border-radius: 36px;
  box-shadow: 0 70px 190px rgba(0, 0, 0, 0.65);
  opacity: 0;
  transform: translateX(160px) scale(0.86);
}

.final {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8vw;
  background:
    radial-gradient(circle at center, rgba(157, 120, 255, 0.35), transparent 40%),
    #03040d;
}

.spaceButton {
  margin-top: 38px;
  width: min(520px, 82vw);
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.20);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(110, 235, 255, 0.18);
  color: white;
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.pressText {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .appSticky {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .appImage {
    width: min(520px, 82vw);
  }

  .keyboard {
    transform: scale(0.42);
  }

  .keyboardStory {
    height: 380vh;
  }
}