:root {
  color-scheme: light;
  --bg: #05030f;
  --bg-accent: #0a0620;
  --bg-soft: #110b2e;
  --text-primary: #f6f8ff;
  --text-secondary: #c5c8ff;
  --brand: linear-gradient(135deg, #6152ff 0%, #aa66ff 45%, #ff7ad9 90%);
  --brand-solid: #7a5bff;
  --brand-soft: rgba(122, 91, 255, 0.15);
  --accent: #00f9b6;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 24px 60px rgba(17, 16, 45, 0.45);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-secondary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent);
}

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

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section-header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  color: var(--text-primary);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 3vw, 3rem);
  margin: 1rem 0 0.75rem;
}

.eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 3, 15, 0.8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0;
}

.logo {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}


.hero {
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 680px;
  background: radial-gradient(circle at 20% 20%, rgba(102, 76, 255, 0.45), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(0, 249, 182, 0.25), transparent 55%),
    radial-gradient(circle at 50% 80%, rgba(255, 122, 217, 0.25), transparent 55%);
  filter: blur(140px);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.2rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  margin-top: -80px;
}

.hero-copy h1 {
  color: var(--text-primary);
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: rgba(230, 233, 255, 0.8);
  margin-bottom: 1.6rem;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.store-link {
  display: inline-flex;
  align-items: center;
}

.store-link img {
  height: 56px;
  width: auto;
  display: block;
}

.store-link img[src*="play.google.com"] {
  height: 83px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
  color: var(--text-primary);
  background: var(--brand);
  box-shadow: 0 18px 28px rgba(122, 91, 255, 0.4);
}

.btn.ghost {
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero-metrics {
  display: flex;
  gap: 2.4rem;
  flex-wrap: wrap;
}

.hero-metrics .metric {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 2rem;
  color: var(--text-primary);
  display: block;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: -5rem;
  margin-right: -3rem;
  z-index: 1;
}

.hero-visual img {
  position: relative;
  width: clamp(700px, 75vw, 1000px);
  max-width: none;
  border-radius: 40px;
  box-shadow: none;
  transform: perspective(1100px) rotateY(-6deg) rotateX(2deg) translateY(-30px);
  animation: heroFloat 12s ease-in-out infinite;
  z-index: 2;
}

.device-frame {
  width: min(380px, 90%);
  aspect-ratio: 9 / 16;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.6rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.device-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: rgba(7, 6, 25, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.ticker {
  display: flex;
  align-items: center;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  padding: 0 1rem;
  font-size: 0.9rem;
  overflow: hidden;
}

.ticker-item {
  white-space: nowrap;
  animation: tickerSlide 8s linear infinite;
}

@keyframes tickerSlide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

@keyframes heroFloat {
  0% {
    transform: perspective(1100px) rotateY(-6deg) rotateX(2deg) translateY(-30px);
  }
  50% {
    transform: perspective(1100px) rotateY(-4deg) rotateX(0deg) translateY(-44px);
  }
  100% {
    transform: perspective(1100px) rotateY(-6deg) rotateX(2deg) translateY(-30px);
  }
}

/* ================ ANIMATED DECORATIONS ================ */

/* Floating Geometric Elements */
.floating-elements {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-shape {
  position: absolute;
  opacity: 0.6;
  animation: floatDrift 20s ease-in-out infinite;
}

.floating-shape::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--accent), var(--brand-solid));
  border-radius: 50%;
  animation: pulse 8s ease-in-out infinite alternate;
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 5%;
  width: 8px;
  height: 8px;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 20%;
  right: 10%;
  width: 12px;
  height: 12px;
  animation-delay: -3s;
}

.floating-shape:nth-child(3) {
  bottom: 30%;
  left: 15%;
  width: 6px;
  height: 6px;
  animation-delay: -7s;
}

.floating-shape:nth-child(4) {
  top: 60%;
  right: 20%;
  width: 10px;
  height: 10px;
  animation-delay: -12s;
}

.floating-shape:nth-child(5) {
  bottom: 15%;
  right: 5%;
  width: 14px;
  height: 14px;
  animation-delay: -5s;
}

.floating-shape:nth-child(6) {
  top: 35%;
  left: 8%;
  width: 4px;
  height: 4px;
  animation-delay: -9s;
}

@keyframes floatDrift {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.5);
    opacity: 0.3;
  }
}

/* Animated Gradient Mesh */
.gradient-mesh {
  position: fixed;
  inset: -18vh -14vw -24vh -14vw;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(120vmax 120vmax at 50% 50%, rgba(10, 6, 32, 0.85) 0%, rgba(5, 3, 15, 0.55) 55%, transparent 75%);
}

.gradient-mesh::before,
.gradient-mesh::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150vmax;
  height: 150vmax;
  border-radius: 44% 56% 62% 38% / 52% 65% 35% 48%;
  opacity: 0.85;
  will-change: transform;
  background:
    radial-gradient(35% 35% at 28% 32%, rgba(122, 91, 255, 0.65), transparent 68%),
    radial-gradient(38% 38% at 72% 28%, rgba(0, 249, 182, 0.5), transparent 70%),
    radial-gradient(40% 40% at 42% 74%, rgba(255, 122, 217, 0.5), transparent 72%),
    radial-gradient(32% 32% at 68% 66%, rgba(47, 217, 255, 0.45), transparent 78%),
    radial-gradient(28% 28% at 52% 46%, rgba(255, 200, 87, 0.35), transparent 76%);
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

.gradient-mesh::before {
  animation: meshSpin 36s linear infinite;
}

.gradient-mesh::after {
  opacity: 0.6;
  border-radius: 58% 42% 48% 52% / 40% 62% 60% 46%;
  background:
    radial-gradient(42% 42% at 30% 35%, rgba(97, 82, 255, 0.55), transparent 70%),
    radial-gradient(36% 36% at 70% 30%, rgba(0, 249, 182, 0.4), transparent 72%),
    radial-gradient(38% 38% at 45% 70%, rgba(255, 122, 217, 0.45), transparent 74%),
    radial-gradient(36% 36% at 60% 58%, rgba(0, 191, 255, 0.42), transparent 78%),
    radial-gradient(32% 32% at 54% 48%, rgba(255, 110, 190, 0.3), transparent 76%);
  animation: meshDrift 48s ease-in-out infinite;
}

@keyframes meshSpin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(-52%, -48%) rotate(90deg) scale(1.05);
  }
  50% {
    transform: translate(-48%, -52%) rotate(180deg) scale(1.02);
  }
  75% {
    transform: translate(-51%, -49%) rotate(270deg) scale(1.06);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg) scale(1);
  }
}

@keyframes meshDrift {
  0% {
    transform: translate(-48%, -52%) rotate(360deg) scale(1.08);
  }
  30% {
    transform: translate(-51%, -48%) rotate(270deg) scale(1.03);
  }
  60% {
    transform: translate(-49%, -51%) rotate(180deg) scale(1.07);
  }
  100% {
    transform: translate(-48%, -52%) rotate(0deg) scale(1.08);
  }
}

/* Particle System */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
  animation: particleFloat 12s linear infinite;
  box-shadow: 0 0 6px var(--accent);
}

.particle:nth-child(odd) {
  background: var(--brand-solid);
  box-shadow: 0 0 6px var(--brand-solid);
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(-10px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-20px) translateX(10px) rotate(360deg);
    opacity: 0;
  }
}

/* Morphing Blob Shapes */
.blob-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  animation: blobMorph 20s ease-in-out infinite;
  z-index: -1;
}

.blob-1 {
  top: -50px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(97, 82, 255, 0.4), rgba(97, 82, 255, 0.1));
  animation-delay: 0s;
}

.blob-2 {
  bottom: -80px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 249, 182, 0.3), rgba(0, 249, 182, 0.1));
  animation-delay: -7s;
}

.blob-3 {
  top: 60%;
  right: -200px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 122, 217, 0.35), rgba(255, 122, 217, 0.1));
  animation-delay: -14s;
}

@keyframes blobMorph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    transform: translate(30px, -50px) scale(1.1) rotate(90deg);
  }
  50% {
    border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    transform: translate(-20px, 20px) scale(0.9) rotate(180deg);
  }
  75% {
    border-radius: 60% 40% 60% 40% / 40% 50% 60% 30%;
    transform: translate(50px, 10px) scale(1.05) rotate(270deg);
  }
  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: translate(0, 0) scale(1) rotate(360deg);
  }
}

/* Enhanced Hover Animations */
.logo {
  transition: all 0.3s ease;
}

.logo:hover {
  background: var(--brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.05);
  text-shadow: 0 0 20px rgba(122, 91, 255, 0.5);
}


.store-link {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.store-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent, rgba(0, 249, 182, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.store-link:hover::before {
  transform: translateX(100%);
}

.store-link:hover {
  transform: translateY(-5px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(0, 249, 182, 0.3));
}

/* Pulsing Glow Effects */

@keyframes eyebrowGlow {
  0% {
    text-shadow: 0 0 5px var(--accent);
  }
  100% {
    text-shadow: 0 0 15px var(--accent), 0 0 25px rgba(0, 249, 182, 0.3);
  }
}

.hero-copy h1 {
  animation: titleShimmer 4s ease-in-out infinite, fadeInUp 1s ease-out forwards;
  animation-delay: 0s, 0.4s;
}

@keyframes titleShimmer {
  0%, 100% {
    text-shadow: 0 0 20px rgba(246, 248, 255, 0.5);
  }
  50% {
    text-shadow: 0 0 30px rgba(246, 248, 255, 0.8), 0 0 40px rgba(122, 91, 255, 0.3);
  }
}

.feature-card .icon {
  transition: all 0.4s ease;
  animation: iconPulse 2s ease-in-out infinite alternate;
}

@keyframes iconPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px rgba(0, 249, 182, 0.3));
  }
  100% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 249, 182, 0.6));
  }
}

/* Text Reveal Animations */
.hero-copy > * {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards;
}

.hero-copy .eyebrow {
  animation: fadeInUp 1s ease-out forwards, eyebrowGlow 3s ease-in-out infinite alternate;
  animation-delay: 0.2s, 1.2s;
}

.hero-copy h1 {
  animation: fadeInUp 1s ease-out forwards, titleShimmer 4s ease-in-out infinite;
  animation-delay: 0.4s, 1.4s;
}

.hero-copy .lead {
  animation-delay: 0.6s;
}

.hero-copy .hero-actions {
  animation-delay: 0.8s;
}

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

.section-header > * {
  opacity: 0;
  animation: slideInLeft 1s ease-out forwards;
}

.section-header .eyebrow {
  animation-delay: 0.1s;
}

.section-header h2 {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feature-card {
  opacity: 0;
  animation: cardSlideUp 0.8s ease-out forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }
.feature-card:nth-child(4) { animation-delay: 0.8s; }

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.features {
  background: linear-gradient(180deg, rgba(17, 11, 46, 0.65), rgba(5, 3, 15, 0.9));
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg,
    rgba(97, 82, 255, 0.1),
    rgba(0, 249, 182, 0.1),
    rgba(255, 122, 217, 0.1));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: auto -30% -30% -30%;
  height: 40%;
  background: radial-gradient(circle, rgba(0, 249, 182, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(0, 249, 182, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 249, 182, 0.1),
    inset 0 0 40px rgba(0, 249, 182, 0.05);
}

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

.feature-card:hover::after {
  opacity: 1;
}

.feature-card:hover .icon {
  animation: iconPulse 0.6s ease-in-out;
}

.feature-card h3 {
  color: var(--text-primary);
  margin: 0.5rem 0;
}

.feature-card .icon {
  font-size: 1.6rem;
}

.site-footer {
  padding: 4rem 0 2rem;
  background: rgba(4, 3, 14, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: center;
}

.footer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
}

.footer-main .logo {
  margin-bottom: 1rem;
}

.footer-main p {
  margin-bottom: 2rem;
}

.site-footer h4 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.footer-badges {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.footer-badges .store-link {
  min-width: 0;
  display: inline-flex;
}

.footer-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 940px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    order: -1;
    padding: 1.8rem;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-visual img {
    width: min(520px, 100%);
    max-width: 100%;
    transform: none;
    animation: none;
  }

  .blob-shape,
  .blob-1,
  .blob-2,
  .blob-3 {
    filter: blur(20px);
    animation-duration: 30s;
  }

  .particles,
  .particle {
    display: none !important;
    visibility: hidden !important;
  }

  .floating-elements,
  .floating-shape {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }


  .hero {
    padding: 4rem 0 2rem;
    overflow: hidden;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero-visual {
    padding: 1.5rem 0;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
    max-width: 100vw;
  }

  .hero-visual img {
    width: 90vw;
    max-width: 90vw;
    transform: none;
    animation: none;
  }

  .store-link img {
    height: 48px;
  }

  .store-link img[src*="play.google.com"] {
    height: 72px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .feature-card {
    padding: 1.5rem 1.2rem;
  }

  .floating-elements,
  .floating-shape {
    display: none !important;
    visibility: hidden !important;
  }

  .gradient-mesh::before,
  .gradient-mesh::after {
    animation: none;
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }

  .blob-shape,
  .blob-1,
  .blob-2,
  .blob-3 {
    filter: blur(20px);
    animation-duration: 30s;
  }

  .particles,
  .particle {
    display: none !important;
    visibility: hidden !important;
  }
}

/* Scroll-Triggered Animations */
@media (prefers-reduced-motion: no-preference) {
  .hero-visual img {
    animation: heroFloat 12s ease-in-out infinite;
  }
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  .floating-elements {
    display: none; /* Hide floating elements on mobile for performance */
  }

  .gradient-mesh::before,
  .gradient-mesh::after {
    animation: none; /* Simplify for mobile */
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(1);
  }

  .blob-shape {
    animation: blobMorph 30s ease-in-out infinite;
    filter: blur(20px);
  }

  .particles {
    display: none; /* Hide particles on mobile */
  }
}

@media (max-width: 520px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
  }

  .hero-gradient {
    inset: -30% 0 auto 0;
    max-width: 100vw;
    overflow: hidden;
    left: 0;
    right: 0;
  }

  .container {
    width: min(1100px, 86vw);
    margin: 0 auto;
    padding: 0 1rem;
    max-width: calc(100vw - 2rem);
  }

  .hero {
    padding: 2rem 0;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.4rem);
    line-height: 1.2;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.4s;
  }

  .lead {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }

  .store-link {
    width: 100%;
    max-width: 200px;
  }

  .store-link img {
    width: 100%;
    height: auto;
  }

  .hero-visual {
    padding: 1rem 0;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    max-width: 100vw;
    display: flex;
    justify-content: center;
  }

  .hero-visual img {
    width: 95vw;
    max-width: 95vw;
    height: auto;
    transform: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .feature-card {
    padding: 1.2rem 1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-header h2 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
  }

  .eyebrow {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.2s;
  }

  .feature-card .icon {
    animation: none;
  }


  .footer-content {
    padding: 0 1rem;
  }

  .footer-main {
    max-width: 100%;
  }

  .footer-badges {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .footer-badges .store-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* Optimizations for 390px and similar mobile devices */
@media (max-width: 390px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero-gradient {
    inset: -30% 0 auto 0;
    max-width: 100vw;
    overflow: hidden;
    left: 0;
    right: 0;
  }

  .container {
    width: min(1100px, 88vw);
    padding: 0 0.5rem;
    max-width: calc(100vw - 1rem);
  }


  .hero-copy h1 {
    font-size: clamp(1.9rem, 7vw, 2.3rem);
    line-height: 1.15;
  }

  .hero-visual img {
    width: 92vw;
    max-width: 92vw;
  }

  .hero-actions {
    gap: 1rem;
  }

  .store-link {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .store-link img {
    width: auto;
    max-width: 100%;
  }

  .feature-card {
    padding: 1.25rem;
    min-height: 120px;
  }

  .feature-card h3 {
    font-size: 1.1rem;
    margin: 0.75rem 0 0.5rem;
  }

  .feature-card p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .section-header h2 {
    font-size: clamp(1.7rem, 5.5vw, 2.1rem);
    line-height: 1.2;
  }

  .eyebrow {
    font-size: 0.8rem;
  }

  .lead {
    font-size: 0.95rem;
    line-height: 1.6;
  }


  /* Better spacing for very small screens */
  .hero {
    padding: 1.5rem 0;
  }

  .section {
    padding: 2.5rem 0;
  }

  .nav {
    padding: 1rem 0;
  }

  /* Force all positioned elements to stay within viewport */
  * {
    max-width: 100vw;
    box-sizing: border-box;
  }

  .hero {
    overflow-x: hidden;
  }

  .blob-1, .blob-2, .blob-3 {
    animation: blobMorph 30s ease-in-out infinite;
    filter: blur(15px);
  }

  .floating-elements,
  .gradient-mesh {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-elements,
  .particles,
  .gradient-mesh {
    display: none;
  }
}
