/* ============================================
   COLLOON LANDING PAGE — STYLE.CSS
   Premium Single-Viewport Cosmic Design
   ============================================ */

/* === Self-Hosted Fonts === */
@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('fonts/Nunito-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DynaPuff';
  src: url('fonts/DynaPuff-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DynaPuff';
  src: url('fonts/DynaPuff-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Core Colors */
  --bg-space: #05050A;
  --bg-panel: rgba(20, 20, 35, 0.4);
  --bg-panel-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-main: #F4F4F6;
  --text-muted: #8E8F9E;

  /* Game Palette */
  --color-red: #FF6B6B;
  --color-teal: #4ECDC4;
  --color-blue: #5B8DEF;
  --color-yellow: #FBBF24;
  --color-purple: #A78BFA;

  /* Gradients */
  --gradient-master: linear-gradient(135deg, #FF6B6B 0%, #A78BFA 50%, #4ECDC4 100%);
  --gradient-glow: radial-gradient(circle at center, rgba(167, 139, 250, 0.15), transparent 70%);

  /* Typography */
  --font-ui: 'Nunito', sans-serif;
  --font-logo: 'DynaPuff', cursive;
}

/* === Reset & Setup === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Disable text selection & context menu for app-like feel */
html {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html,
body {
  width: 100%;
  height: 100%;
  background: var(--bg-space);
  color: var(--text-main);
  font-family: var(--font-ui);
  overflow: hidden;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-x: none;
  -webkit-overflow-scrolling: touch;
  /* Locks to single viewport on desktop */
}

a {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* Typography Utilities */
.gradient-text {
  background: linear-gradient(90deg, #F472B6 0%, #C084F5 28%, #A78BFA 48%, #7C9CF5 65%, #52D9CF 85%, #4ECDC4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  width: fit-content;
}

/* === Particles Canvas === */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* === Layout Architecture === */
.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
}

/* === Top Bar === */
.top-bar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  animation: slideDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile-only store buttons — hidden on desktop */
.mobile-store-btns {
  display: none;
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  margin-top: 10px;
}

.logo-text-wrapper {
  font-family: var(--font-logo);
  font-size: 40px;
  font-weight: 700;
  color: #FFF;
  display: flex;
  align-items: baseline;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

/* Individual letters for wave animation */
.logo-letter {
  display: inline-block;
  position: relative;
}

/* Colored O's — purple (5th letter) */
.logo-o-purple {
  color: #BA68C8;
  text-shadow: 0 0 12px rgba(186, 104, 200, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Colored O's — green (6th letter) */
.logo-o-green {
  color: #81C784;
  text-shadow: 0 0 12px rgba(129, 199, 132, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* White crescent shine on colored O's — game's shineRect */
.logo-o-purple::before,
.logo-o-green::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 28%;
  width: 40%;
  height: 24%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  filter: blur(1.5px);
  pointer-events: none;
}

/* Tiny white specular dot on colored O's */
.logo-o-purple::after,
.logo-o-green::after {
  content: '';
  position: absolute;
  top: 26%;
  left: 33%;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  pointer-events: none;
}

/* Wave animation — each letter has its own delay to create sine wave effect */
/* 3px amplitude, 3s period, π/3 phase offset per letter (≈0.43s delay) */
@keyframes logoWave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.wave-0 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: 0s;
}

.wave-1 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: -0.43s;
}

.wave-2 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: -0.86s;
}

.wave-3 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: -1.29s;
}

.wave-4 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: -1.71s;
}

.wave-5 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: -2.14s;
}

.wave-6 {
  animation: logoWave 3s ease-in-out infinite;
  animation-delay: -2.57s;
}

/* Decorative target orbs — matching game positions */
.logo-target {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
}

/* Shine highlight on each target */
.logo-target::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 12%;
  width: 28%;
  height: 28%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

/* Soft glow behind each target — matches game's color glow */
.logo-target::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250%;
  height: 250%;
  border-radius: 50%;
  pointer-events: none;
}

.t-red::before {
  background: radial-gradient(circle, rgba(229, 115, 115, 0.4) 0%, transparent 70%);
}

.t-green::before {
  background: radial-gradient(circle, rgba(129, 199, 132, 0.4) 0%, transparent 70%);
}

.t-blue::before {
  background: radial-gradient(circle, rgba(100, 181, 246, 0.4) 0%, transparent 70%);
}

.t-yellow::before {
  background: radial-gradient(circle, rgba(255, 213, 79, 0.5) 0%, transparent 70%);
}

/* Red — between C and O, near the top */
.logo-target.t-red {
  width: 7px;
  height: 7px;
  background: #E57373;
  top: 0px;
  left: 17px;
  box-shadow: 0 0 8px rgba(229, 115, 115, 0.5);
  animation: logoWave 3s ease-in-out infinite -0.5s;
}

/* Green — bottom of O in COL */
.logo-target.t-green {
  width: 6px;
  height: 6px;
  background: #81C784;
  bottom: -3px;
  left: 28px;
  box-shadow: 0 0 8px rgba(129, 199, 132, 0.5);
  animation: logoWave 3s ease-in-out infinite -1.5s;
}

/* Blue — top of letters, between L-L */
.logo-target.t-blue {
  width: 5px;
  height: 5px;
  background: #64B5F6;
  top: 2px;
  left: 38%;
  box-shadow: 0 0 8px rgba(100, 181, 246, 0.5);
  animation: logoWave 3s ease-in-out infinite -2s;
}

/* Yellow — bottom-right of N */
.logo-target.t-yellow {
  width: 7px;
  height: 7px;
  background: #FFD54F;
  bottom: -2px;
  right: 0px;
  box-shadow: 0 0 8px rgba(255, 213, 79, 0.5);
  animation: logoWave 3s ease-in-out infinite -1s;
}

/* === Hero Module (Center Layout) === */
.hero-module {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  margin-top: -60px;
  /* Pull the content up slightly to balance the visual weight */
}

.hero-content {
  flex: 1;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Badge */
.badge-wrapper {
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.2s both;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(160, 145, 200, 0.8);
  background: transparent;
  border: 1px solid rgba(140, 120, 210, 0.25);
  padding: 8px 20px;
  border-radius: 100px;
}

/* Headline */
.headline {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.headline-line {
  display: block;
}

.line-1 {
  animation: txtReveal 0.8s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.line-2 {
  animation: txtReveal 0.8s 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Sub-headline */
.sub-headline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.6s both;
}

/* Action Area */
.action-area {
  display: flex;
  gap: 16px;
  animation: fadeUp 0.8s 0.75s both;
}

/* Buttons */
.store-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 12px 24px;
  background: var(--bg-panel);
  border: 1px solid var(--bg-panel-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.store-button:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 30, 50, 0.6);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hover-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.store-button:hover .hover-glow {
  opacity: 1;
}

.store-icon {
  width: 28px;
  height: 28px;
  z-index: 1;
}

.store-text {
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.store-text .label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  line-height: 1;
  margin-bottom: 2px;
}

.store-text .store {
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  color: #FFF;
}

/* === Game Mockup Widget === */
.hero-visual {
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: floatIn 1.2s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  perspective: 1000px;
}

.device-frame {
  width: 320px;
  height: 660px;
  background: #1A1A24;
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1),
    0 0 100px rgba(167, 139, 250, 0.15);
  position: relative;
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


.notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 30px;
  background: #1A1A24;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}

.screen {
  width: 100%;
  height: 100%;
  background: var(--bg-space);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* Splash Screen */
.splash-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-space);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 20;
  gap: 16px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.splash-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  animation: splashPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
}

.splash-title {
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 700;
  color: #FFF;
  letter-spacing: 4px;
  opacity: 0;
  animation: splashTitleIn 0.6s 0.4s ease-out forwards;
}

@keyframes splashPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
  }

  50% {
    transform: scale(1.06);
    filter: drop-shadow(0 0 30px rgba(167, 139, 250, 0.6));
  }
}

@keyframes splashTitleIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  100% {
    opacity: 0.7;
    transform: translateY(0);
  }
}

/* Game sim — hidden until splash finishes */
.game-sim {
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

.game-sim.visible {
  opacity: 1;
}

/* Game Simulation CSS */
.game-sim {
  width: 100%;
  height: 100%;
  position: relative;
}

.sim-bg-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: radial-gradient(circle at 50% 80%, rgba(167, 139, 250, 0.15) 0%, transparent 70%);
}

.sim-hud {
  position: absolute;
  top: 48px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-logo);
  font-size: 14px;
}

.hud-score {
  color: #FFF;
}

.hud-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.hud-target {
  color: var(--color-teal);
  text-shadow: 0 0 8px rgba(78, 205, 196, 0.4);
}

/* Combo Bar — matching game's ComboBarComponent */
.hud-combo {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.combo-multiplier {
  font-size: 9px;
  font-weight: 800;
  color: rgba(78, 205, 196, 0.8);
}

.combo-bar {
  width: 64px;
  height: 6px;
  border-radius: 3px;
  background: rgba(78, 205, 196, 0.15);
  position: relative;
  overflow: hidden;
}

.combo-fill {
  width: 70%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #4ECDC4, rgba(78, 205, 196, 0.6));
  box-shadow: 0 0 4px rgba(78, 205, 196, 0.3);
}

.combo-count {
  font-size: 9px;
  font-weight: 700;
  color: rgba(78, 205, 196, 0.6);
}

.entity-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Platform System — centered */
.sim-platform {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Will be updated via JS */
  background: radial-gradient(circle, rgba(167, 139, 250, 0.8) 0%, rgba(167, 139, 250, 0.1) 70%);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.4);
  transition: all 0.4s ease;
}

.platform-core {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #A78BFA;
  /* JS Target */
  box-shadow: inset 2px 2px 4px rgba(255, 255, 255, 0.4), inset -2px -2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.4s ease;
}

.platform-ring {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Target Base */
.sim-target {
  position: absolute;
  border-radius: 50%;
  box-shadow: inset -4px -4px 10px rgba(0, 0, 0, 0.3), inset 4px 4px 10px rgba(255, 255, 255, 0.4), 0 10px 20px rgba(0, 0, 0, 0.2);
}

.sim-target::after {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 30%;
  height: 30%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  filter: blur(2px);
}

/* Size classes */
.bl-s {
  width: 28px;
  height: 28px;
}

.bl-m {
  width: 40px;
  height: 40px;
}

.bl-l {
  width: 52px;
  height: 52px;
}

/* Game-accurate colors */
.b-red {
  background: #fe8181;
}

.b-green {
  background: #9de2a6;
}

.b-blue {
  background: #b3cde0;
}

.b-yellow {
  background: #FFDC73;
}

.b-purple {
  background: #cca4c4;
}

/* Target positions — clock-based scatter around center platform */
/* Top zone (18-28%) */
.b1 {
  top: 18%;
  left: 10%;
  animation: float 5.2s ease-in-out -0.3s infinite alternate;
}

/* Red L — top-left anchor */
.b2 {
  top: 20%;
  left: 52%;
  animation: float 4.8s ease-in-out -2.1s infinite alternate;
}

/* Blue S — top-center */
.b3 {
  top: 18%;
  right: 8%;
  animation: float 5.6s ease-in-out -1.0s infinite alternate;
}

/* Green M — top-right */

/* Upper-mid (28-40%) */
.b4 {
  top: 30%;
  left: 5%;
  animation: float 4.2s ease-in-out -0.8s infinite alternate;
}

/* Yellow S */
.b5 {
  top: 26%;
  right: 5%;
  animation: float 5.8s ease-in-out -3.5s infinite alternate;
}

/* Purple L — right anchor */
.b6 {
  top: 35%;
  left: 35%;
  animation: float 4.5s ease-in-out -1.6s infinite alternate;
}

/* Green S */

/* Mid zone — flanking platform (42-58%) */
.b7 {
  top: 42%;
  right: 12%;
  animation: float 5.0s ease-in-out -2.5s infinite alternate;
}

/* Red M */
.b8 {
  top: 55%;
  left: 5%;
  animation: float 5.4s ease-in-out -0.5s infinite alternate;
}

/* Blue L — left anchor */
.b9 {
  top: 52%;
  right: 5%;
  animation: float 4.6s ease-in-out -3.0s infinite alternate;
}

/* Yellow M */
.b10 {
  top: 44%;
  left: 18%;
  animation: float 5.0s ease-in-out -1.8s infinite alternate;
}

/* Purple S */

/* Lower-mid (60-72%) */
.b11 {
  top: 64%;
  right: 18%;
  animation: float 4.3s ease-in-out -2.8s infinite alternate;
}

/* Red S */
.b12 {
  top: 62%;
  left: 20%;
  animation: float 5.2s ease-in-out -0.9s infinite alternate;
}

/* Blue M */
.b13 {
  top: 68%;
  left: 45%;
  animation: float 5.8s ease-in-out -3.8s infinite alternate;
}

/* Green L — bottom-center anchor */

/* Bottom zone (75-88%) */
.b14 {
  top: 78%;
  right: 10%;
  animation: float 4.8s ease-in-out -1.4s infinite alternate;
}

/* Yellow L — bottom-right anchor */
.b15 {
  top: 80%;
  left: 8%;
  animation: float 5.5s ease-in-out -2.3s infinite alternate;
}

/* Purple M */
.b16 {
  top: 85%;
  left: 42%;
  animation: float 4.0s ease-in-out -0.6s infinite alternate;
}

/* Red S */

@keyframes float {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-20px);
  }
}

/* Bullet — JS controlled */
.sim-bullet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fe8181;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transition: none;
}

.sim-bullet.active {
  opacity: 1;
}

/* Target pop & respawn transitions */
.sim-target {
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.sim-target.popped {
  transform: scale(0) !important;
  opacity: 0 !important;
}

.sim-target.respawn {
  transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

/* Pop burst effect */
.pop-burst {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  animation: burstAnim 0.4s ease-out forwards;
}

@keyframes burstAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

/* === Minimal Bottom Bar === */
.bottom-bar {
  height: 64px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--bg-panel-border);
  animation: fadeUp 0.8s 1s both;
}

.bottom-bar a {
  transition: color 0.2s;
}

.bottom-bar a:hover {
  color: #FFF;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links .dot {
  opacity: 0.3;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-icon {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.bottom-bar a:hover .social-icon {
  color: #FFF;
  transform: scale(1.1);
}

.clb-dev .social-icon {
  width: 27px;
  height: 27px;
}



/* === Entry Animations === */
@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes txtReveal {
  0% {
    opacity: 0;
    transform: translateY(40px) skewY(5deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) skewY(0);
  }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateX(40px) rotateY(-8deg) rotateX(4deg);
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotateY(-8deg) rotateX(4deg);
  }
}

/* === Responsive Rules (Mobile) === */
@media (max-width: 1024px) {

  html,
  body {
    overflow-y: auto;
    overflow-x: hidden;
    /* Enable scroll on small screens */
    height: auto;
    min-height: 100%;
    overscroll-behavior-x: none;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
  }

  .mobile-store-btns {
    display: flex;
    gap: 8px;
  }

  .mini-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #FFF;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s ease;
  }

  .mini-store-btn svg {
    width: 20px;
    height: 20px;
  }

  .mini-store-btn:active {
    transform: scale(0.9);
  }

  .top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0 24px;
    z-index: 100;
    background: transparent;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
  }

  .top-bar.scrolled {
    background: rgba(5, 5, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .app-container {
    padding: 0 24px;
    height: auto;
  }

  .hero-module {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 120px;
    padding-bottom: 80px;
    gap: 16px;
  }

  .hero-content {
    display: contents;
    /* Allows children to participate in hero-module's flexbox */
  }

  .badge-wrapper {
    order: 1;
    text-align: center;
    width: 100%;
    margin-bottom: 0;
    margin-top: 90px;
  }

  .headline {
    order: 2;
    text-align: center;
    width: 100%;
    font-size: clamp(40px, 10vw, 48px);
    margin-bottom: 0;
  }

  .headline .gradient-text {
    margin: 0 auto;
  }

  .sub-headline {
    order: 3;
    text-align: center;
    width: 100%;
    margin-bottom: 8px;
  }

  .hero-visual {
    width: 100%;
    order: 4;
    /* Phone after text */
    perspective: 1000px;
    animation: fadeUp 1s 0.5s both;
    margin: 24px 0;
  }

  .action-area {
    order: 5;
    /* Buttons after phone */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
  }

  .device-frame {
    transform: rotateY(-8deg) rotateX(4deg);
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform;
    margin: 0 auto;
    height: 660px;
  }


  .bottom-bar {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    height: auto;
    padding: 32px 0;
  }
}

@media (max-width: 480px) {
  .store-button {
    justify-content: center;
  }

  .device-frame {
    width: 100%;
    max-width: 320px;
  }
}