:root {
  color-scheme: dark;
  --bg: #06060e;
  --bg-soft: #0e0e1a;
  --fg: #f0f2ff;
  --fg-muted: #9ca3c2;
  --accent: #c44dff;
  --accent-secondary: #4bc8ff;
  --accent-warm: #ff6b9d;
  --border: rgba(255, 255, 255, 0.07);
  --card-bg: rgba(255, 255, 255, 0.035);
  --glow-purple: rgba(196, 77, 255, 0.25);
  --glow-cyan: rgba(75, 200, 255, 0.2);
  --transition: 220ms ease;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ─── Background Glow ─── */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(196, 77, 255, 0.12), transparent),
    radial-gradient(ellipse 50% 40% at 20% 60%, rgba(75, 200, 255, 0.08), transparent),
    radial-gradient(ellipse 45% 35% at 80% 80%, rgba(255, 107, 157, 0.06), transparent);
}

/* ─── Container ─── */
.container {
  width: min(680px, 90vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ─── Header ─── */
.site-header {
  padding: 1.5rem 0;
  text-align: center;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 20px var(--glow-purple);
}

.logo-mark span {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Main Content ─── */
main {
  flex: 1;
  padding: 1rem 0 4rem;
}

.hero {
  text-align: center;
  display: grid;
  gap: 2rem;
  justify-items: center;
}

/* ─── Sound Wave Visual ─── */
.sound-visual {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wave-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  animation: ringPulse 3s ease-in-out infinite;
}

.wave-ring:nth-child(1) {
  width: 100%;
  height: 100%;
  border-color: rgba(196, 77, 255, 0.25);
  animation-delay: 0s;
}

.wave-ring:nth-child(2) {
  width: 80%;
  height: 80%;
  border-color: rgba(75, 200, 255, 0.3);
  animation-delay: 0.5s;
}

.wave-ring:nth-child(3) {
  width: 60%;
  height: 60%;
  border-color: rgba(255, 107, 157, 0.35);
  animation-delay: 1s;
}

.wave-ring:nth-child(4) {
  width: 40%;
  height: 40%;
  border-color: rgba(196, 77, 255, 0.4);
  animation-delay: 1.5s;
}

.sound-visual .icon-center-img {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px var(--glow-purple), 0 0 80px var(--glow-cyan);
}

/* Smaller icon variant */
.sound-visual-sm {
  width: 120px;
  height: 120px;
}

.sound-visual-sm .icon-center-img {
  width: 60px;
  height: 60px;
}

@keyframes ringPulse {
  0%, 100% {
    transform: scale(0.92);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.8;
  }
}

/* ─── Text Block ─── */
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero h1 .accent-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
}

.hero-sub strong {
  color: var(--fg);
}

/* ─── Ultra Badge ─── */
.ultra-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(196, 77, 255, 0.12), rgba(75, 200, 255, 0.1));
  border: 1px solid rgba(196, 77, 255, 0.35);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  animation: badgeGlow 2.5s ease-in-out infinite;
}

.ultra-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(196, 77, 255, 0.15);
  }
  50% {
    box-shadow: 0 0 30px rgba(196, 77, 255, 0.3);
  }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ─── Instagram CTA Button ─── */
.insta-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  border: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  background-size: 200% 200%;
  animation: instaGradient 4s ease infinite;
  box-shadow:
    0 8px 30px rgba(253, 29, 29, 0.25),
    0 2px 12px rgba(131, 58, 180, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

.insta-cta:hover,
.insta-cta:focus-visible {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 14px 40px rgba(253, 29, 29, 0.35),
    0 4px 20px rgba(131, 58, 180, 0.3);
}

.insta-cta:active {
  transform: translateY(-1px) scale(0.99);
}

.insta-cta svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  flex-shrink: 0;
}

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

/* Smaller follow button variant */
.insta-cta-sm {
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  gap: 0.6rem;
}

.insta-cta-sm svg {
  width: 18px;
  height: 18px;
}

/* ─── Feature Pills ─── */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  list-style: none;
}

.feature-pills li {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color var(--transition), background var(--transition);
}

.feature-pills li:hover {
  border-color: rgba(196, 77, 255, 0.3);
  background: rgba(196, 77, 255, 0.06);
}

.feature-pills .pill-icon {
  font-size: 1rem;
}

/* ─── Floating Particles ─── */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(196, 77, 255, 0.5);
  animation: floatUp linear infinite;
}

.particle:nth-child(2) {
  background: rgba(75, 200, 255, 0.5);
  animation-delay: 2s;
}

.particle:nth-child(3) {
  background: rgba(255, 107, 157, 0.4);
  animation-delay: 4s;
}

.particle:nth-child(4) {
  background: rgba(196, 77, 255, 0.3);
  animation-delay: 1s;
}

.particle:nth-child(5) {
  background: rgba(75, 200, 255, 0.4);
  animation-delay: 3s;
}

.particle:nth-child(6) {
  background: rgba(255, 107, 157, 0.5);
  animation-delay: 5s;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
    transform: translateY(90vh) translateX(10px) scale(1);
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-10vh) translateX(-20px) scale(0.5);
    opacity: 0;
  }
}

/* ─── Social Proof ─── */
.social-proof {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

.social-proof .avatars {
  display: flex;
}

.social-proof .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.social-proof .avatar:first-child {
  margin-left: 0;
}

/* ─── Steps Section ─── */
.steps-section {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.step-card {
  display: flex;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color var(--transition);
}

.step-card:hover {
  border-color: rgba(196, 77, 255, 0.3);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}

.step-content {
  display: grid;
  gap: 1rem;
  flex: 1;
}

.step-content h2 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.3;
}

.step-content p {
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
}

.step-hint {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-style: italic;
}

/* ─── Step Connector ─── */
.step-connector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  justify-content: center;
}

.connector-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(196, 77, 255, 0.4), transparent);
}

.connector-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}

/* ─── App Search Preview (Step 2) ─── */
a.app-search-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

a.app-search-preview:hover {
  border-color: rgba(75, 200, 255, 0.35);
  background: rgba(75, 200, 255, 0.06);
}

.search-app-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.search-app-info {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.search-app-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--fg);
}

.search-app-subtitle {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.search-app-rating {
  font-size: 0.8rem;
  color: #fbbf24;
}

/* Multiple app icons side by side */
.search-app-icons {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* Install button (right side of card) */
.search-app-install {
  margin-left: auto;
  flex-shrink: 0;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c44dff, #4bc8ff);
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(196, 77, 255, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

a.app-search-preview:hover .search-app-install {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(196, 77, 255, 0.35);
}

/* Ad warning */
.ad-warning {
  font-size: 0.82rem;
  color: #f59e0b;
  font-weight: 600;
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 10px;
}

/* ─── In-App Install Modal ─── */
.inapp-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(6, 6, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.inapp-modal-card {
  max-width: 360px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  border-radius: 20px;
  background: rgba(14, 14, 26, 0.96);
  border: 1px solid rgba(196, 77, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s ease;
}

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

.inapp-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
}

.inapp-option {
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-align: left;
}

.inapp-option-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg);
}

.inapp-option-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c44dff, #4bc8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.inapp-option-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0;
}

.inapp-option-desc strong {
  color: var(--fg);
}

.inapp-option-icon {
  display: flex;
  justify-content: center;
  margin-top: 0.6rem;
}

.inapp-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.inapp-ad-warning {
  font-size: 0.76rem;
  color: #f59e0b;
  font-weight: 600;
  margin: 0.75rem 0 0;
  padding: 0.4rem 0.6rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  line-height: 1.4;
  text-align: left;
}

.inapp-modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  margin-top: 0.25rem;
  transition: background 0.2s;
}

.inapp-modal-close-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.inapp-arrow {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  animation: arrowBob 1s ease-in-out infinite;
}

.inapp-arrow-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c44dff;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(196, 77, 255, 0.5);
}

.inapp-arrow-icon {
  font-size: 2.5rem;
  line-height: 1;
  color: #c44dff;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(196, 77, 255, 0.7), 0 0 40px rgba(196, 77, 255, 0.3);
}

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

/* ─── Store Buttons ─── */
.store-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  flex: 0 0 auto;
  width: 160px;
  height: 50px;
}

.store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-badge:hover,
.store-badge:focus-visible {
  transform: translateY(-2px);
}

/* ─── Footer ─── */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.site-footer p {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fg);
}

/* ─── Scroll Nudge ─── */
.scroll-nudge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition), transform var(--transition);
  animation: nudgeBounce 2s ease-in-out infinite;
}

.scroll-nudge:hover {
  color: var(--accent-secondary);
  transform: translateY(2px);
}

.scroll-nudge svg {
  opacity: 0.7;
}

@keyframes nudgeBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ─── Mobile Steps Bar (hidden on desktop) ─── */
.mobile-steps-bar {
  display: none;
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 2rem;
  }

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

  .sound-visual,
  .sound-visual-sm {
    width: 100px;
    height: 100px;
  }

  .sound-visual-sm .icon-center-img {
    width: 50px;
    height: 50px;
  }

  .step-card {
    flex-direction: column;
    padding: 1.5rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .step-content h2 {
    font-size: 1.2rem;
  }

  .store-buttons {
    justify-content: center;
  }

  .store-badge {
    width: 140px;
    height: 44px;
  }

  /* Floating bottom bar */
  .mobile-steps-bar {
    display: block;
    position: fixed;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 0.65rem 1rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom));
    background: rgba(6, 6, 14, 0.94);
    backdrop-filter: blur(16px);
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .mobile-steps-bar.hidden {
    opacity: 0;
    transform: translateY(100%);
    pointer-events: none;
  }

  .floating-get-app {
    display: block;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(135deg, #00b4ff, #0066ff, #4bc8ff);
    background-size: 200% 200%;
    animation: blueGradient 3s ease infinite;
    box-shadow:
      0 6px 24px rgba(0, 102, 255, 0.35),
      0 2px 8px rgba(0, 180, 255, 0.2);
  }

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

  /* Extra bottom padding so footer isn't hidden behind floating bar */
  .site-footer {
    padding-bottom: 5rem;
  }
}
