/* ===== Nyanyiku Landing Page — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Brand colours (from Flutter app_theme.dart) */
  --primary: #6C5CE7;
  --primary-light: #9B8FEF;
  --accent: #FF6B9D;
  --accent-light: #FF9BBF;
  --surface: #1A1A2E;
  --surface-light: #16213E;
  --card: #0F3460;
  --card-light: #1A4A7A;
  --success: #00D2A0;
  --warning: #FFBE0B;
  --error: #FF5252;
  --text-primary: #FFFFFF;
  --text-secondary: #B8C1EC;
  --text-muted: #8892B0;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6C5CE7, #FF6B9D);
  --gradient-dark: linear-gradient(180deg, #0F0C29, #302B63, #24243E);
  --gradient-card: linear-gradient(135deg, #1A1A2E, #16213E);

  /* Service gradients */
  --gradient-karaoke: linear-gradient(135deg, #6C5CE7, #74B9FF);
  --gradient-voice: linear-gradient(135deg, #FF6B9D, #FF9A9E);
  --gradient-style: linear-gradient(135deg, #FFBE0B, #FF9F1C);
  --gradient-lyrics: linear-gradient(135deg, #00D2A0, #00B4D8);

  /* Spacing & sizing */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #0F0C29;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--gradient-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

/* Full-page animated background — overrides .hero-bg position:absolute */
.page-bg,
.page-bg.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Language Switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.25);
  border-radius: 50px;
  margin-left: 8px;
}

.lang-btn {
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  white-space: nowrap;
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 12px rgba(108, 92, 231, 0.4);
}

.lang-btn:hover:not(.active) {
  color: var(--text-primary);
  background: rgba(108, 92, 231, 0.1);
}

.lang-btn .flag {
  vertical-align: middle;
  border-radius: 2px;
  margin-right: 2px;
  flex-shrink: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: clamp(20px, 5vw, 80px);
  padding-right: clamp(20px, 5vw, 80px);
  padding-bottom: 0;
  background: rgba(15, 12, 41, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(15, 12, 41, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-logo {
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.nav-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 10px 24px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  color: white !important;
  font-weight: 600 !important;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.4);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

/* Hide mobile lang-switch on desktop, show only inside nav-links */
.navbar > div > .lang-switch { display: none; }

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) clamp(20px, 5vw, 80px) 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg .glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}

.hero-bg .glow-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.hero-bg .glow-2 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -50px;
  right: -50px;
  animation-delay: -4s;
}

.hero-bg .glow-3 {
  width: 300px;
  height: 300px;
  background: var(--success);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.15;
  animation-delay: -2s;
}

/* Floating music notes */
.hero-bg .note {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.08;
  animation: floatUp 12s linear infinite;
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.08;
  }

  90% {
    opacity: 0.08;
  }

  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(30px, -30px);
  }

  50% {
    transform: translate(-20px, 20px);
  }

  75% {
    transform: translate(20px, 10px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-text {
  animation: fadeSlideUp 1s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge .dot {
  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.5;
    transform: scale(1.3);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  font-size: 0.95rem;
}

.store-badge:hover {
  transform: translateY(-3px);
}

.store-badge.google-play {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

.store-badge.google-play:hover {
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.5);
}

.store-badge.app-store {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
}

.store-badge.app-store:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.1);
}

.store-badge .store-icon {
  font-size: 1.5rem;
}

.store-badge .store-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge .store-info small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  animation: fadeSlideUp 1s ease-out 0.3s both;
}

.phone-wrapper {
  position: relative;
  width: 300px;
}

.phone-wrapper img {
  width: 100%;
  border-radius: 28px;
  filter: drop-shadow(0 30px 60px rgba(108, 92, 231, 0.3));
  animation: phoneBob 4s ease-in-out infinite;
}

.phone-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(80px);
  opacity: 0.4;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
}

@keyframes phoneBob {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Section Shared ===== */
section {
  padding: 100px clamp(20px, 5vw, 80px);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Features Section ===== */
.features {
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  position: relative;
  padding: 36px 28px;
  background: rgba(15, 52, 96, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: var(--radius-lg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s, border-color 0.4s;
  overflow: hidden;
  /* scroll reveal */
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s, border-color 0.4s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.3);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Individual card colours */
.feature-card.karaoke::before {
  background: var(--gradient-karaoke);
}

.feature-card.karaoke:hover {
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
}

.feature-card.voice::before {
  background: var(--gradient-voice);
}

.feature-card.voice:hover {
  box-shadow: 0 20px 60px rgba(255, 107, 157, 0.15);
}

.feature-card.style-cover::before {
  background: var(--gradient-style);
}

.feature-card.style-cover:hover {
  box-shadow: 0 20px 60px rgba(255, 190, 11, 0.15);
}

.feature-card.lyrics::before {
  background: var(--gradient-lyrics);
}

.feature-card.lyrics:hover {
  box-shadow: 0 20px 60px rgba(0, 210, 160, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  opacity: 0.15;
}

.feature-card.karaoke .feature-icon {
  background: var(--gradient-karaoke);
}

.feature-card.voice .feature-icon {
  background: var(--gradient-voice);
}

.feature-card.style-cover .feature-icon {
  background: var(--gradient-style);
}

.feature-card.lyrics .feature-icon {
  background: var(--gradient-lyrics);
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.feature-card.karaoke .feature-tag {
  background: rgba(108, 92, 231, 0.15);
  color: #74B9FF;
}

.feature-card.voice .feature-tag {
  background: rgba(255, 107, 157, 0.15);
  color: #FF9A9E;
}

.feature-card.style-cover .feature-tag {
  background: rgba(255, 190, 11, 0.15);
  color: #FFBE0B;
}

.feature-card.lyrics .feature-tag {
  background: rgba(0, 210, 160, 0.15);
  color: #00D2A0;
}

/* ===== How it Works Section ===== */
.how-it-works {
  max-width: 1000px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 48px;
  left: 16.66%;
  right: 16.66%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--success));
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.step.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.step-number {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  background: rgba(15, 52, 96, 0.6);
  border: 2px solid rgba(108, 92, 231, 0.3);
  backdrop-filter: blur(10px);
}

.step-number .num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== Showcase / Stats Section ===== */
.showcase {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}

.showcase-visual .phone-wrapper {
  width: 260px;
}

.showcase-text {
  opacity: 0;
  transform: translateX(30px);
}

.showcase-text.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.showcase-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.showcase-text .desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 20px 12px;
  background: rgba(15, 52, 96, 0.3);
  border-radius: var(--radius);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

/* ===== Pricing Section ===== */
.pricing {
  max-width: 1200px;
  margin: 0 auto;
}

.credit-costs {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  padding: 20px 28px;
  background: rgba(15, 52, 96, 0.3);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(108, 92, 231, 0.1);
}

.credit-cost-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.credit-cost-icon {
  font-size: 1.1rem;
}

.credit-cost-name {
  font-weight: 500;
}

.credit-cost-value {
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.pricing-card {
  position: relative;
  padding: 36px 28px;
  background: rgba(15, 52, 96, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: var(--radius-lg);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s, border-color 0.4s;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.4s, border-color 0.4s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.15);
}

.pricing-card.popular {
  border-color: rgba(108, 92, 231, 0.4);
  background: rgba(108, 92, 231, 0.12);
  box-shadow: 0 8px 40px rgba(108, 92, 231, 0.15);
}

.pricing-card.popular:hover {
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.25);
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-primary);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.pricing-card-header {
  margin-bottom: 20px;
}

.pricing-card-header h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-amount {
  margin-bottom: 8px;
}

.pricing-amount .price {
  font-size: 1.9rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-credits {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(108, 92, 231, 0.12);
}

.pricing-credits .credit-count {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-primary);
}

.pricing-credits .credit-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  margin-bottom: 28px;
}

.pricing-perks li {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-btn {
  display: block;
  text-align: center;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--primary-light);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pricing-btn:hover {
  background: rgba(108, 92, 231, 0.25);
  transform: translateY(-2px);
}

.pricing-btn.primary {
  background: var(--gradient-primary);
  border: none;
  color: white;
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
}

.pricing-btn.primary:hover {
  box-shadow: 0 12px 35px rgba(108, 92, 231, 0.5);
}

.pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 32px;
}

.pricing-card:nth-child(1) { transition-delay: 0s; }
.pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-card:nth-child(3) { transition-delay: 0.2s; }
.pricing-card:nth-child(4) { transition-delay: 0.3s; }

/* ===== CTA Section ===== */
.cta-section {
  padding: 80px clamp(20px, 5vw, 80px);
}

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
}

.cta-card.visible {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: ctaShine 6s linear infinite;
}

@keyframes ctaShine {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.cta-card h2 {
  position: relative;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
}

.cta-card p {
  position: relative;
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  position: relative;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .store-badge.google-play {
  background: white;
  color: var(--primary) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.cta-buttons .store-badge.google-play:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-buttons .store-badge.app-store {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta-buttons .store-badge.app-store:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ===== Footer ===== */
.footer {
  padding: 60px clamp(20px, 5vw, 80px) 30px;
  border-top: 1px solid rgba(108, 92, 231, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
}

.footer-brand .brand-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.3s, padding-left 0.3s;
}

.footer-column li a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(108, 92, 231, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .phone-wrapper {
    width: 220px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .showcase-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .showcase-visual {
    order: -1;
  }

  .showcase-visual .phone-wrapper {
    width: 200px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .credit-costs {
    gap: 16px;
  }
}

@media (max-width: 640px) {
  html {
    overflow: hidden;
    height: 100%;
  }

  body {
    overflow-y: auto;
    height: 100%;
    -webkit-overflow-scrolling: touch;
  }

  .navbar,
  .navbar.scrolled {
    position: fixed;
    background: #0F0C29;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 0;
    height: var(--nav-height);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
  }

  .nav-brand {
    font-size: 1.15rem;
    gap: 8px;
  }

  .nav-logo-img {
    width: 34px;
    height: 34px;
  }

  .lang-switch {
    margin-left: 0;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .lang-btn .flag {
    width: 16px;
    height: 11px;
  }

  .nav-links {
    position: fixed;
    top: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: rgba(15, 12, 41, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    transform: translateY(-120%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s 0.4s, opacity 0.3s;
    border-bottom: 1px solid rgba(108, 92, 231, 0.15);
  }

  .nav-links.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s, opacity 0.3s;
  }

  .hamburger {
    display: flex;
  }

  /* On mobile: hide lang-switch inside nav-links, show the one next to hamburger */
  .nav-links .lang-switch { display: none !important; }
  .navbar > div > .lang-switch { display: flex !important; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .credit-costs {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 20px;
  }

  .credit-cost-item {
    justify-content: space-between;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-card {
    padding: 40px 24px;
  }
}

/* ===== Scroll reveal delays ===== */
.feature-card:nth-child(1) {
  transition-delay: 0s;
}

.feature-card:nth-child(2) {
  transition-delay: 0.1s;
}

.feature-card:nth-child(3) {
  transition-delay: 0.2s;
}

.feature-card:nth-child(4) {
  transition-delay: 0.3s;
}

.step:nth-child(1) {
  transition-delay: 0s;
}

.step:nth-child(2) {
  transition-delay: 0.15s;
}

.step:nth-child(3) {
  transition-delay: 0.3s;
}

/* AI-ku Dashboard login button in navbar */
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.2);
  border: 1px solid rgba(108, 92, 231, 0.4);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.nav-login-btn:hover {
  background: rgba(108, 92, 231, 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.4);
}