/* ===== VARIABLES ===== */
:root {
  /* Colors - Soft and organic */
  --primary: #ff6b9d;
  --secondary: #a78bfa;
  --accent: #60a5fa;
  --success: #34d399;

  /* Background */
  --bg: #0f0f1e;
  --bg-light: #1a1a2e;
  --surface: rgba(255, 255, 255, 0.05);

  /* Text */
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Fonts */
  --font-main: "Plus Jakarta Sans", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html.reduce-motion *,
html.reduce-motion *::before,
html.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

main {
  position: relative;
  z-index: 1;
}

/* Skip link for accessibility & SEO */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-md);
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-4);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

/* ===== BACKGROUND ===== */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 107, 157, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 50%,
      rgba(167, 139, 250, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at 50% 80%,
      rgba(96, 165, 250, 0.15),
      transparent 50%
    );
  animation: meshMove 20s ease-in-out infinite;
}

@keyframes meshMove {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(20px, -20px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.3;
}

/* ===== CONTAINER - Mobile First ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-3);
  width: 100%;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 30, 0.95) 0%,
    rgba(15, 15, 30, 0.85) 100%
  );
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 107, 157, 0.08);
  transition: all 0.3s ease;
}

.nav::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 157, 0.3),
    rgba(167, 139, 250, 0.3),
    transparent
  );
  opacity: 0.6;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
}

.logo-pokeball {
  width: 32px;
  height: 32px;
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.pokeball-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, var(--primary), #ff8ab8);
}

.pokeball-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
}

.pokeball-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Nav links - Mobile: slide panel. Desktop: inline (see min-width: 768px) */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.mobile-menu-panel {
  display: none;
}

.nav-link-desktop,
.nav-btn-desktop {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-link {
  position: relative;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-full);
  font-weight: 600;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.3);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 107, 157, 0.2) 20%,
    rgba(167, 139, 250, 0.3) 50%,
    rgba(255, 107, 157, 0.2) 80%,
    transparent 100%
  );
  margin: var(--space-2) auto;
  max-width: 600px;
  opacity: 0.5;
}

/* ===== HERO - Mobile First ===== */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: calc(var(--space-6) + 56px) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  max-width: 900px;
  height: 80%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 157, 0.12) 0%,
    rgba(167, 139, 250, 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 250px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 107, 157, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

.hero-right {
  max-width: 280px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.2),
    rgba(167, 139, 250, 0.15)
  );
  border: 1px solid rgba(255, 107, 157, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-4);
  animation: fadeInUp 0.6s ease-out;
  box-shadow:
    0 0 24px rgba(255, 107, 157, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(1.875rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.3);
}

.title-word {
  display: inline-block;
  animation: fadeInUp 0.6s ease-out backwards;
}

.title-word[data-word="1"] {
  animation-delay: 0.1s;
}
.title-word[data-word="2"] {
  animation-delay: 0.2s;
}
.title-word[data-word="3"] {
  animation-delay: 0.3s;
}
.title-word[data-word="4"] {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gradient-text {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    #ff8ab8 30%,
    var(--secondary) 70%,
    var(--accent) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 5s ease infinite;
}

@keyframes gradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

/* Buttons - Mobile first */
.primary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
}

.btn-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform 0.3s;
}

.btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255, 107, 157, 0.4);
}

.primary-btn:hover .btn-bg {
  transform: scale(1.05);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 1rem 2rem;
  width: 100%;
  max-width: 320px;
  min-height: 48px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all 0.3s;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  animation: fadeInUp 0.6s ease-out 0.7s backwards;
}

.stat {
  text-align: center;
  min-width: 70px;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat:hover {
  background: rgba(255, 107, 157, 0.08);
  border-color: rgba(255, 107, 157, 0.15);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Phone Mockup */
.phone-container {
  position: relative;
  animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
  from {
    opacity: 1;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.phone-device {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: linear-gradient(
    145deg,
    #32324a 0%,
    #222238 50%,
    #18182a 100%
  );
  border-radius: 2.5rem;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255, 107, 157, 0.25),
    0 0 0 8px rgba(255, 255, 255, 0.02),
    0 30px 90px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(255, 107, 157, 0.12);
  animation: phoneFloat 6s ease-in-out infinite;
}

.phone-device::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 2.6rem;
  padding: 2px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.4),
    transparent,
    rgba(167, 139, 250, 0.3),
    transparent
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}

@keyframes phoneFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 2rem;
  overflow: hidden;
  background: var(--bg);
}

.screen-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Elements */
.float-element {
  position: absolute;
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.03) 100%
  );
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(255, 107, 157, 0.05);
  animation: floatAround 8s ease-in-out infinite;
}

.element-1 {
  top: 10%;
  right: -32px;
  animation-delay: 0s;
}

.element-2 {
  bottom: 25%;
  left: -32px;
  animation-delay: -2s;
}

.element-3 {
  top: 45%;
  right: -40px;
  animation-delay: -4s;
}

.element-4 {
  bottom: 10%;
  left: -24px;
  animation-delay: -6s;
}

@keyframes floatAround {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(10px, -15px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, -10px) rotate(-5deg);
  }
  75% {
    transform: translate(5px, 15px) rotate(3deg);
  }
}

.element-inner {
  animation: spin 10s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== SECTIONS - Mobile First ===== */
.features,
.screenshots,
.cta {
  padding: var(--space-8) 0;
  position: relative;
}

.features {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(88, 28, 135, 0.03) 50%,
    transparent 100%
  );
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-tag {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.12),
    rgba(167, 139, 250, 0.08)
  );
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: var(--space-3);
  box-shadow: 0 0 30px rgba(255, 107, 157, 0.08);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Features Grid - Mobile First: 1 col, then 2, then 3 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 1100px;
  margin: 0 auto;
}

.feature-box {
  position: relative;
  padding: var(--space-4);
  text-align: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  overflow: hidden;
}

.feature-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    var(--secondary),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-box.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-box[data-feature="1"] {
  transition-delay: 0.05s;
  grid-column: span 1;
}
.feature-box[data-feature="2"] {
  transition-delay: 0.1s;
  grid-column: span 1;
}
.feature-box[data-feature="3"] {
  transition-delay: 0.15s;
  grid-column: span 1;
}
.feature-box[data-feature="4"] {
  transition-delay: 0.2s;
  grid-column: span 1;
}
.feature-box[data-feature="5"] {
  transition-delay: 0.25s;
  grid-column: span 1;
}
.feature-box[data-feature="6"] {
  transition-delay: 0.3s;
  grid-column: span 1;
}

.feature-decoration {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--secondary),
    var(--accent)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.feature-box:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 107, 157, 0.2);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(255, 107, 157, 0.08);
}

.feature-box:hover .feature-decoration {
  opacity: 0.08;
}

.feature-box:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--secondary) 100%
  );
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.25);
}

.feature-box:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  box-shadow: 0 12px 32px rgba(255, 107, 157, 0.35);
}

.feature-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.feature-text {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  font-size: 0.875rem;
}

.feature-label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: linear-gradient(
    135deg,
    rgba(255, 107, 157, 0.15),
    rgba(167, 139, 250, 0.1)
  );
  color: var(--secondary);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(167, 139, 250, 0.2);
}

/* Screenshots */
.screenshots {
  overflow: hidden;
}

.screenshots-wrapper {
  overflow: hidden;
  margin: 0 calc(var(--space-2) * -1);
  padding: var(--space-3) 0;
}

.screenshots-track {
  display: flex;
  gap: var(--space-3);
  animation: scrollCarousel 45s linear infinite;
  will-change: transform;
}

@media (hover: hover) {
  .screenshots-track:hover {
    animation-play-state: paused;
  }
}

@keyframes scrollCarousel {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% - var(--space-5)));
  }
}

.screenshot-card {
  flex-shrink: 0;
  width: fit-content;
  height: fit-content;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
  .screenshot-card:hover {
    transform: scale(1.08) translateY(-8px);
    border-color: rgba(255, 107, 157, 0.25);
    box-shadow:
      0 25px 60px rgba(0, 0, 0, 0.35),
      0 0 30px rgba(255, 107, 157, 0.1);
  }
  .screenshot-card:hover img {
    transform: scale(1.03);
  }
}

.screenshot-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: 166px;
  transition: transform 0.5s ease;
}

/* CTA */
.cta .container {
  position: relative;
}

.cta-box {
  position: relative;
  padding: var(--space-8) var(--space-4);
  background: linear-gradient(
    160deg,
    rgba(88, 28, 135, 0.35) 0%,
    rgba(45, 35, 95, 0.5) 40%,
    rgba(25, 22, 55, 0.6) 100%
  );
  border: 1px solid rgba(255, 107, 157, 0.2);
  border-radius: var(--radius-xl);
  text-align: center;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 40px 80px rgba(0, 0, 0, 0.4);
}

.cta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 10%,
    rgba(255, 107, 157, 0.5) 30%,
    rgba(167, 139, 250, 0.5) 70%,
    transparent 90%
  );
  opacity: 1;
}

.cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.06) 1px,
    transparent 1px
  );
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

.cta-glow {
  position: absolute;
  inset: -80%;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(255, 107, 157, 0.2) 0%,
    rgba(167, 139, 250, 0.1) 25%,
    transparent 50%
  );
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(1.5rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--space-2);
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.cta-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

/* CTA Download Button - Prominent */
.cta-button-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-4);
  width: 100%;
}

.cta-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 1.5rem;
  font-size: 0.9375rem;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  white-space: nowrap;
  font-weight: 700;
  color: white;
  background: linear-gradient(
    135deg,
    #ff6b9d 0%,
    #e8558a 50%,
    #a78bfa 100%
  );
  border: none;
  border-radius: var(--radius-full);
  overflow: hidden;
  text-decoration: none;
  box-shadow:
    0 4px 20px rgba(255, 107, 157, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cta-btn-glow {
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.3),
    transparent,
    rgba(255, 255, 255, 0.1)
  );
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s;
}

.cta-download-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 12px 40px rgba(255, 107, 157, 0.5),
    0 0 60px rgba(167, 139, 250, 0.2);
}

.cta-download-btn:hover .cta-btn-glow {
  opacity: 1;
}

.cta-btn-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.cta-btn-inner svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Divider between button and badges */
.cta-divider {
  width: 80px;
  height: 1px;
  margin: 0 auto var(--space-4);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
}

.cta-badges {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-2);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.cta-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
}

.cta-check {
  color: var(--success);
  font-weight: 700;
  font-size: 0.875rem;
}

.cta-badges span:hover {
  background: rgba(255, 107, 157, 0.12);
  border-color: rgba(255, 107, 157, 0.25);
  color: var(--text);
}

/* Footer - Mobile First */
.footer {
  padding: var(--space-6) 0 var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 15, 30, 0.5) 100%
  );
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 400px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 107, 157, 0.3),
    rgba(167, 139, 250, 0.3),
    transparent
  );
  opacity: 0.8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
  text-align: center;
}

.footer-brand {
  padding-right: 0;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-3);
  color: var(--text);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  text-align: center;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  color: var(--primary);
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
  transition: all 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.disclaimer {
  margin-top: var(--space-3);
  font-size: 0.75rem;
  opacity: 0.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== RESPONSIVE - Mobile First (min-width) ===== */

/* Mobile: Base styles above. Nav links as slide panel. */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-5);
  }
  .screenshots-wrapper {
    margin: 0;
  }

  .nav-content {
    padding: var(--space-3) 0;
  }

  .nav-link-desktop,
  .nav-btn-desktop {
    display: none !important;
  }

  .mobile-menu-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(
      180deg,
      rgba(20, 18, 35, 0.99) 0%,
      rgba(15, 13, 28, 0.99) 100%
    );
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    z-index: 999;
    border-left: 1px solid rgba(255, 107, 157, 0.12);
    overflow-y: auto;
  }

  .nav-links::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
      90deg,
      var(--primary),
      var(--secondary)
    );
    opacity: 0.9;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links.active .mobile-nav-link,
  .nav-links.active .mobile-nav-download {
    animation: mobileMenuItemIn 0.4s ease forwards;
  }

  .nav-links.active .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
  .nav-links.active .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
  .nav-links.active .mobile-nav-download { animation-delay: 0.2s; }

@keyframes mobileMenuItemIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .nav-overlay.active {
    display: block;
    opacity: 1;
  }

  .mobile-menu-header {
    padding: var(--space-6) var(--space-5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .mobile-menu-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
  }

  .mobile-menu-logo .logo-pokeball {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-body {
    flex: 1;
    padding: var(--space-6) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-3);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    opacity: 0;
  }

  .mobile-nav-link:hover,
  .mobile-nav-link:active {
    background: rgba(255, 107, 157, 0.1);
    color: var(--text);
  }

  .mobile-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 157, 0.12);
    border-radius: var(--radius-md);
    color: var(--primary);
    flex-shrink: 0;
  }

  .mobile-menu-divider {
    height: 1px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent
    );
    margin: var(--space-4) 0;
  }

  .mobile-nav-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.875rem 1.25rem;
    margin-top: var(--space-2);
    font-size: 0.9375rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(255, 107, 157, 0.35);
    transition: all 0.25s ease;
    opacity: 0;
  }

  .mobile-nav-download:hover,
  .mobile-nav-download:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.45);
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
    padding: var(--space-2);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: calc(var(--space-8) + 60px) 0 var(--space-8);
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    min-height: 48px;
  }

  .hero-stats {
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  .features,
  .screenshots,
  .cta {
    padding: var(--space-8) 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .feature-box {
    padding: var(--space-4);
  }

  .feature-box[data-feature="1"],
  .feature-box[data-feature="2"],
  .feature-box[data-feature="3"],
  .feature-box[data-feature="4"],
  .feature-box[data-feature="5"],
  .feature-box[data-feature="6"] {
    grid-column: span 1;
  }

  .section-tag {
    font-size: 0.7rem;
    padding: var(--space-1) var(--space-3);
  }

  .section-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .section-desc {
    font-size: 1rem;
  }

  .screenshots-wrapper {
    margin: 0 calc(var(--space-2) * -1);
    padding: var(--space-3) 0;
  }

  .screenshots-track {
    gap: var(--space-3);
  }

  .cta-box {
    padding: var(--space-6) var(--space-4);
  }

  .cta-title {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
  }

  .cta-text {
    font-size: 1rem;
    margin-bottom: var(--space-4);
  }

  .cta-button-wrap {
    margin-bottom: var(--space-4);
  }

  .cta-download-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    width: 100%;
    min-height: 48px;
  }

  .cta-badges {
    margin-top: var(--space-4);
  }

  .cta-badges span {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .footer {
    padding: var(--space-6) 0 var(--space-5);
  }

  .footer-grid {
    margin-bottom: var(--space-6);
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: center;
  }

  .footer-col a {
    margin-bottom: var(--space-2);
  }

  .footer-bottom {
    padding-top: var(--space-5);
    font-size: 0.8125rem;
  }

  .section-divider {
    margin: var(--space-2) var(--space-4);
  }
}

/* Tablet and up - Progressive enhancement */
@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

  .nav-link-desktop {
    display: block !important;
  }

  .nav-btn-desktop {
    display: inline-flex !important;
    align-items: center;
  }

  .mobile-menu-panel {
    display: none !important;
  }

  .mobile-menu-btn {
    display: none !important;
  }

  .nav-links {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    overflow: visible;
  }

  .nav-links::before {
    display: none;
  }

  .hero {
    padding: calc(var(--space-8) + 60px) 0 var(--space-8);
    min-height: 80vh;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .primary-btn,
  .secondary-btn {
    width: auto;
    max-width: none;
    min-height: auto;
  }

  .hero-actions {
    flex-direction: row;
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-card img {
    max-width: 194px;
  }

  .cta-badges {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-badges span {
    width: auto;
    max-width: none;
  }

  .footer-links-group {
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }
}

/* Desktop - Full layout */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
    max-width: 360px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero {
    min-height: 100vh;
    padding: calc(var(--space-12) + 64px) 0 var(--space-12);
  }

  .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
  }

  .stat {
    text-align: center;
    padding: var(--space-4) var(--space-5);
    min-width: 90px;
  }

  .stat-value {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.8125rem;
  }

  .features,
  .screenshots,
  .cta {
    padding: var(--space-12) 0;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .feature-box {
    padding: var(--space-5);
  }

  .feature-name {
    font-size: 1.25rem;
  }

  .feature-text {
    font-size: 0.9375rem;
  }

  .section-header {
    margin-bottom: var(--space-8);
  }

  .section-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .section-desc {
    font-size: 1.125rem;
  }

  .screenshots-wrapper {
    margin: 0 calc(var(--space-4) * -1);
    padding: var(--space-4) 0;
  }

  .screenshot-card img {
    max-width: 240px;
  }

  .screenshots-track {
    gap: var(--space-5);
  }

  .cta-box {
    padding: var(--space-12) var(--space-8);
  }

  .cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .cta-text {
    font-size: 1.125rem;
    margin-bottom: var(--space-6);
  }

  .cta-download-btn {
    width: auto;
    max-width: none;
    padding: 1.25rem 2.75rem;
    font-size: 1.25rem;
  }

  .cta-btn-inner {
    gap: var(--space-3);
  }

  .cta-btn-inner svg {
    width: 24px;
    height: 24px;
  }

  .cta-badges {
    margin-top: var(--space-5);
    font-size: 0.9375rem;
  }

  .cta-badges span {
    padding: var(--space-2) var(--space-4);
  }

  .footer {
    padding: var(--space-10) 0 var(--space-6);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 2fr;
    gap: var(--space-10);
    margin-bottom: var(--space-8);
    text-align: center;
  }

  .footer-brand {
    padding-right: 0;
  }

  .footer-tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-logo {
    justify-content: center;
    font-size: 1.25rem;
  }

  .phone-device {
    max-width: 320px;
  }

  .float-element {
    width: 64px;
    height: 64px;
  }
}

/* Small mobile refinements */
@media (max-width: 480px) {
  :root {
    --space-12: 4rem;
    --space-8: 3rem;
    --space-6: 2.5rem;
  }

  .container {
    padding: 0 var(--space-4);
  }

  .nav-logo span {
    font-size: 1rem;
  }

  .logo-pokeball {
    width: 28px;
    height: 28px;
  }

  .hero {
    padding: calc(var(--space-6) + 56px) 0 var(--space-6);
  }

  .hero-title {
    font-size: 1.875rem;
    line-height: 1.2;
  }

  .hero-description {
    font-size: 1rem;
  }

  .stat {
    min-width: 70px;
    padding: var(--space-2) var(--space-3);
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }

  .float-element {
    width: 44px;
    height: 44px;
    font-size: 1.125rem;
  }

  .element-1 { right: -16px; }
  .element-2 { left: -16px; }
  .element-3 { right: -20px; }
  .element-4 { left: -12px; }

  .phone-device {
    max-width: 260px;
    padding: 10px;
  }

  .feature-box {
    padding: var(--space-4);
  }

  .feature-name {
    font-size: 1.125rem;
  }

  .feature-text {
    font-size: 0.875rem;
  }

  .screenshot-card img {
    max-width: 166px;
  }

  .cta .container {
    padding: 0 var(--space-4);
  }

  .cta-box {
    padding: var(--space-5) var(--space-4);
  }

  .cta-title {
    font-size: 1.375rem;
  }

  .cta-text {
    font-size: 0.875rem;
  }

  .cta-download-btn {
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
  }

  .cta-badges span {
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .footer-logo {
    font-size: 1.125rem;
  }

  .footer-tagline {
    font-size: 0.875rem;
  }
}

/* Small mobile & safe areas */
@media (max-width: 380px) {
  .container {
    padding: 0 var(--space-3);
  }

  .hero-title {
    font-size: 1.625rem;
  }

  .screenshot-card img {
    max-width: 147px;
  }
}

/* Safe area for notched devices (iPhone X+, etc.) */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .mobile-menu-header {
      padding-top: max(var(--space-6), env(safe-area-inset-top));
    }
    .mobile-menu-body {
      padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
    }
    .nav-links {
      padding-right: max(0px, env(safe-area-inset-right));
    }
  }
}
