/* ============================================
   PLAVLER — Professional Landing Page Styles
   ============================================ */

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

:root {
  /* Shared tokens */
  --primary: #6C63FF;
  --primary-dark: #5A52E0;
  --primary-light: #8B83FF;
  --accent: #3B82F6;
  --accent-2: #06B6D4;
  --gradient-1: linear-gradient(135deg, #6C63FF 0%, #3B82F6 50%, #06B6D4 100%);
  --gradient-2: linear-gradient(135deg, #F472B6 0%, #A855F7 50%, #6C63FF 100%);
  --gradient-3: linear-gradient(135deg, #F59E0B 0%, #EF4444 50%, #EC4899 100%);
  --gradient-mixtape: linear-gradient(135deg, #10B981 0%, #06B6D4 50%, #3B82F6 100%);
  --gradient-ai: linear-gradient(135deg, #A855F7 0%, #6C63FF 50%, #3B82F6 100%);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Dark theme (default) */
  --bg: #0A0A0F;
  --bg-card: #12121A;
  --bg-card-hover: #1A1A25;
  --surface: #16161F;
  --surface-2: #1E1E2A;
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text: #F8F8FF;
  --text-secondary: #A0A0B8;
  --text-muted: #6B6B80;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.15);
  --navbar-scrolled-bg: rgba(10, 10, 15, 0.85);
  --nav-mobile-bg: rgba(10, 10, 15, 0.97);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.03);
  --btn-ghost-hover-border: rgba(255, 255, 255, 0.2);
  --card-glow-color: rgba(108, 99, 255, 0.06);
  --orb-1-color: rgba(108, 99, 255, 0.3);
  --orb-2-color: rgba(59, 130, 246, 0.25);
  --orb-3-color: rgba(6, 182, 212, 0.2);
  --grid-line-color: rgba(255, 255, 255, 0.02);
  --marquee-bg: rgba(255, 255, 255, 0.01);
}

/* Light theme */
[data-theme="light"] {
  --bg: #F8F9FC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F3F8;
  --surface: #EEF0F6;
  --surface-2: #E4E7EF;
  --border: rgba(0, 0, 0, 0.07);
  --border-light: rgba(0, 0, 0, 0.1);
  --text: #1A1A2E;
  --text-secondary: #555570;
  --text-muted: #8888A0;
  --primary-light: #5A52E0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
  --navbar-scrolled-bg: rgba(248, 249, 252, 0.85);
  --nav-mobile-bg: rgba(248, 249, 252, 0.97);
  --btn-ghost-hover-bg: rgba(0, 0, 0, 0.03);
  --btn-ghost-hover-border: rgba(0, 0, 0, 0.15);
  --card-glow-color: rgba(108, 99, 255, 0.04);
  --orb-1-color: rgba(108, 99, 255, 0.12);
  --orb-2-color: rgba(59, 130, 246, 0.1);
  --orb-3-color: rgba(6, 182, 212, 0.08);
  --grid-line-color: rgba(0, 0, 0, 0.03);
  --marquee-bg: rgba(0, 0, 0, 0.015);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* === UTILITY === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-ai {
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-mixtape {
  background: var(--gradient-mixtape);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === SECTION HEADER === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.2);
  margin-bottom: 20px;
}

.section-tag--ai {
  background: rgba(168, 85, 247, 0.1);
  color: #C084FC;
  border-color: rgba(168, 85, 247, 0.2);
}

.section-tag--mixtape {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

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

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.1), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity var(--transition);
}

.btn:hover::before {
  opacity: 1;
}

.btn--primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 99, 255, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: var(--btn-ghost-hover-border);
  background: var(--btn-ghost-hover-bg);
}

.btn--white {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.3);
}

.btn--sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 14px 32px;
  font-size: 1rem;
}

/* === REVEAL ANIMATION === */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features__grid .reveal-up:nth-child(1) { transition-delay: 0s; }
.features__grid .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.features__grid .reveal-up:nth-child(3) { transition-delay: 0.2s; }
.features__grid .reveal-up:nth-child(4) { transition-delay: 0.3s; }

.additional__grid .reveal-up:nth-child(1) { transition-delay: 0s; }
.additional__grid .reveal-up:nth-child(2) { transition-delay: 0.1s; }
.additional__grid .reveal-up:nth-child(3) { transition-delay: 0.2s; }
.additional__grid .reveal-up:nth-child(4) { transition-delay: 0.3s; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: var(--navbar-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.logo-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
  font-weight: 500;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width var(--transition);
  border-radius: 1px;
}

.navbar__link:hover {
  color: var(--text);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(5px) translateX(4px);
}

.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.navbar__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-5px) translateX(4px);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero__bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--orb-1-color) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: orbFloat1 8s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--orb-2-color) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: orbFloat2 10s ease-in-out infinite;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--orb-3-color) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat3 12s ease-in-out infinite;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 70%);
}

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

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.1); }
  66% { transform: translate(-15px, 15px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -55%) scale(1.15); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.08);
  border: 1px solid rgba(108, 99, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

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

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 16px 32px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
}

.hero__stat-row {
  display: flex;
  align-items: baseline;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
}

.hero__stat-plus {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-light);
}

.hero__stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero__stat-divider {
  display: none;
}

/* Phone mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 300px;
}

.phone-mockup__frame {
  background: var(--surface);
  border: 2px solid var(--border-light);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(108, 99, 255, 0.08);
  position: relative;
}

.phone-mockup__notch {
  width: 120px;
  height: 28px;
  background: var(--bg);
  border-radius: 0 0 16px 16px;
  margin: 0 auto 12px;
}

.phone-mockup__screen {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 20px 16px;
  min-height: 420px;
  overflow: hidden;
  position: relative;
}

.phone-card {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  position: absolute;
  left: 16px;
  right: 16px;
  top: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: phoneCardCycle 9s ease-in-out infinite;
}

.phone-card--word { animation-delay: 0s; }
.phone-card--sentence { animation-delay: 3s; }
.phone-card--ai { animation-delay: 6s; }

@keyframes phoneCardCycle {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  5% { opacity: 1; transform: translateY(0) scale(1); }
  28% { opacity: 1; transform: translateY(0) scale(1); }
  33% { opacity: 0; transform: translateY(-20px) scale(0.95); }
  100% { opacity: 0; transform: translateY(20px) scale(0.95); }
}

.phone-card__lang {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.phone-card__word {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.phone-card__translation {
  font-size: 0.95rem;
  color: var(--primary-light);
  margin-bottom: 10px;
}

.phone-card__example {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 6px;
}

.phone-card__context {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(108, 99, 255, 0.08);
  border-radius: 100px;
  display: inline-block;
}

/* Floating badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.floating-badge--1 {
  top: 60px;
  right: -30px;
  animation: floatBadge1 6s ease-in-out infinite;
}

.floating-badge--2 {
  bottom: 120px;
  left: -20px;
  animation: floatBadge2 7s ease-in-out infinite;
}

.floating-badge--3 {
  bottom: 40px;
  right: -20px;
  animation: floatBadge3 5s ease-in-out infinite;
}

@keyframes floatBadge1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes floatBadge2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-2deg); }
}

@keyframes floatBadge3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 1s ease 1.5s both;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-mouse__wheel {
  width: 3px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 3px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* === LANGUAGES MARQUEE === */
.languages-marquee {
  padding: 40px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--marquee-bg);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  gap: 16px;
  padding: 0 8px;
}

.lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  white-space: nowrap;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.lang-chip:hover {
  border-color: var(--primary);
  color: var(--text);
  background: rgba(108, 99, 255, 0.08);
}

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

/* === FEATURES === */
.features {
  padding: 48px 0 40px;
  position: relative;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--card-glow-color) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.feature-card__icon--words {
  background: rgba(108, 99, 255, 0.1);
  color: var(--primary-light);
}

.feature-card__icon--sentences {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent);
}

.feature-card__icon--convos {
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
}

.feature-card__icon--stories {
  background: rgba(245, 158, 11, 0.1);
  color: #FBBF24;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
}

.feature-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
  position: relative;
}

.feature-card__stat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(108, 99, 255, 0.08);
  color: var(--primary-light);
  border: 1px solid rgba(108, 99, 255, 0.12);
  position: relative;
}

/* === AI SECTION === */
.ai-section {
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.ai-section__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.ai-orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 70%);
  top: -100px;
  left: -200px;
  animation: orbFloat1 10s ease-in-out infinite;
}

.ai-orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  bottom: -100px;
  right: -100px;
  animation: orbFloat2 12s ease-in-out infinite;
}

.ai-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition);
}

.ai-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.06);
}

/* AI mobile icon & back btn - hidden on desktop */
.ai-card__mobile-icon {
  display: none;
}

.ai-card__back-btn {
  display: none;
}

/* AI Scroll Dots (mobile only) */
.ai-dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ai-dot.active {
  background: transparent;
  border: 2px solid var(--primary);
  width: 28px;
  height: 8px;
  border-radius: 4px;
}

.ai-dot.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 2px;
  animation: dotFill 3.5s linear forwards;
}

@keyframes dotFill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes bounceHint {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 0.8; }
}

@keyframes bounceHintRight {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(3px); opacity: 0.8; }
}

/* Overlay hidden on desktop */
.ai-expanded-overlay {
  display: none;
}

.ai-card__number {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--gradient-ai);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  letter-spacing: 1px;
}

.ai-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.ai-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.ai-card__demo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: auto;
}

/* AI Demo - Typing input */
.ai-demo-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border: 1px solid var(--border);
}

.ai-demo-input__icon {
  font-size: 1rem;
}

.ai-typing-text {
  font-size: 0.9rem;
  color: var(--text);
  min-width: 80px;
}

.ai-demo-input__cursor {
  width: 2px;
  height: 16px;
  background: var(--primary-light);
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ai-demo-output__line {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 4px 0;
  line-height: 1.5;
}

.ai-demo-output__line strong {
  color: var(--text);
}

.ai-demo-output__line--context {
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* AI Demo - Sentence */
.ai-demo-sentence {
  text-align: center;
}

.ai-demo-sentence__en {
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 10px;
}

.ai-demo-sentence__arrow {
  color: var(--primary-light);
  margin-bottom: 10px;
}

.ai-demo-sentence__translated {
  font-size: 0.9rem;
  color: var(--primary-light);
  font-weight: 500;
  margin-bottom: 12px;
}

.ai-demo-sentence__grammar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.grammar-tag {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  background: rgba(168, 85, 247, 0.1);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.15);
}

/* AI Demo - Chat */
.ai-demo-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-demo-chat__msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.ai-demo-chat__avatar {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.ai-demo-chat__avatar--ai {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
}

.ai-demo-chat__text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ai-demo-chat__text small {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* AI Demo - Roleplay */
.ai-demo-roleplay {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.roleplay-scenario {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.roleplay-scenario:hover {
  border-color: rgba(108, 99, 255, 0.3);
  color: var(--text);
}

.roleplay-scenario__icon {
  font-size: 1.2rem;
}

/* === MIXTAPE === */
.mixtape {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.mixtape__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.mixtape__vinyl {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
  filter: blur(60px);
}

.mixtape__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mixtape__visual {
  position: relative;
}

/* Mixtape Player */
.mixtape-player-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 40px;
  position: relative;
}

.mixtape-player__disc {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
  animation: discSpin 8s linear infinite;
  animation-play-state: paused;
}

.mixtape-player__disc.spinning {
  animation-play-state: running;
}

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

.mixtape-player__disc-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    var(--bg) 15%,
    var(--surface) 16%,
    var(--surface) 40%,
    var(--surface-2) 41%,
    var(--surface-2) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border-light);
}

.mixtape-player__disc-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mixtape-player__disc-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.mixtape-player__disc-count {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.mixtape-player__disc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.mixtape-player__disc-ring--1 {
  inset: 25%;
}

.mixtape-player__disc-ring--2 {
  inset: 35%;
}

.mixtape-player__disc-ring--3 {
  inset: 45%;
}

.mixtape-player__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.mixtape-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.mixtape-btn:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.mixtape-btn--play {
  width: 56px;
  height: 56px;
  background: var(--gradient-mixtape);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
}

.mixtape-btn--play:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.4);
}

.mixtape-player__track {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.mixtape-player__track-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mixtape-player__track-word {
  font-size: 0.85rem;
  font-weight: 500;
}

.mixtape-player__track-lang {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.mixtape-player__progress {
  height: 4px;
  background: var(--bg);
  border-radius: 2px;
  overflow: hidden;
}

.mixtape-player__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-mixtape);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Floating playlist items */
.mixtape-float {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  color: var(--text-secondary);
  white-space: nowrap;
}

.mixtape-float--1 {
  top: -10px;
  right: -20px;
  animation: floatBadge1 5s ease-in-out infinite;
}

.mixtape-float--2 {
  bottom: 80px;
  left: -40px;
  animation: floatBadge2 6s ease-in-out infinite;
}

.mixtape-float--3 {
  bottom: 20px;
  right: -30px;
  animation: floatBadge3 7s ease-in-out infinite;
}

.mixtape__desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.mixtape__list {
  list-style: none;
  margin-bottom: 36px;
}

.mixtape__list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

.mixtape__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  color: #34D399;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* === LANGUAGES GRID === */
.languages {
  padding: 80px 0 40px;
}

.lang-group {
  margin-bottom: 36px;
}

.lang-group__title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-group__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.lang-group__dot--eu {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(108, 99, 255, 0.4);
}

.lang-group__dot--asia {
  background: #F59E0B;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.lang-group__dot--in {
  background: #10B981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lang-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: default;
  transition: all var(--transition);
}

.lang-pill:hover {
  border-color: rgba(108, 99, 255, 0.25);
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.lang-pill--featured {
  background: var(--surface);
  border-color: var(--border-light);
}

.lang-pill--featured:hover {
  background: var(--surface-2);
}

.lang-pill__flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.lang-pill__info {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.lang-pill__name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.lang-pill__region {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.languages__more {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* === ADDITIONAL FEATURES === */
.additional {
  padding: 40px 0 80px;
}

.additional__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.add-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.add-card:hover {
  border-color: rgba(108, 99, 255, 0.15);
  transform: translateY(-4px);
}

.add-card__icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.add-card__icon-wrap--fav {
  background: rgba(239, 68, 68, 0.1);
  color: #F87171;
}

.add-card__icon-wrap--quiz {
  background: rgba(245, 158, 11, 0.1);
  color: #FBBF24;
}

.add-card__icon-wrap--spaced {
  background: rgba(6, 182, 212, 0.1);
  color: #22D3EE;
}

.add-card__icon-wrap--feedback {
  background: rgba(168, 85, 247, 0.1);
  color: #C084FC;
}

.add-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.add-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* === GETTING STARTED (inside Smart Learning) === */
.getting-started {
  margin-top: 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
}

.getting-started__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  text-align: center;
}

.getting-started__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.getting-started__step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.getting-started__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.getting-started__step strong {
  font-size: 0.9rem;
  display: block;
  margin-bottom: 4px;
}

.getting-started__step p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .getting-started__steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .getting-started {
    padding: 24px 20px;
  }
}

/* === CTA === */
.cta {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta__orb--1 {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
}

.cta__orb--2 {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(80px);
}

.cta__inner {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(108, 99, 255, 0.08) 0%, transparent 60%);
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}

.cta__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 36px;
  position: relative;
}

.cta__actions {
  position: relative;
  margin-bottom: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  transition: all var(--transition);
  border-radius: 8px;
  overflow: hidden;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.store-badge svg {
  display: block;
}

.cta__note {
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

/* === SUBPAGES === */
.page-content {
  min-height: calc(100vh - 160px);
  padding: 120px 0 80px;
}

.page-header {
  margin-bottom: 48px;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.page-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 720px;
}

.page-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 12px;
}

.page-body p {
  margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.page-body li {
  margin-bottom: 8px;
}

.page-body a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-body a:hover {
  color: var(--primary);
}

/* === SUPPORT FORM === */
.support-form {
  max-width: 520px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* === WARNING / SUCCESS / ERROR BOXES === */
.warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  color: #FBBF24;
  font-size: 0.9rem;
  line-height: 1.6;
}

.success-message {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  color: #34D399;
}

.success-message h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #34D399;
}

.success-message p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.error-message {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 24px 0;
  color: #F87171;
  font-size: 0.9rem;
  line-height: 1.6;
}

.error-message a {
  color: #F87171;
}

/* === FOOTER === */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-items: end;
}

.footer__col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 4px 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.83rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .ai-section {
    padding: 40px 0;
  }

  .ai-section .container {
    padding: 0 24px;
  }

  .ai-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .ai-card {
    padding: 14px 16px;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .ai-card__number {
    display: none;
  }

  .ai-card__mobile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    flex-shrink: 0;
  }

  .ai-card__mobile-icon--word {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
  }

  .ai-card__mobile-icon--sentence {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
  }

  .ai-card__mobile-icon--chat {
    background: rgba(168, 85, 247, 0.1);
    color: #C084FC;
  }

  .ai-card__mobile-icon--roleplay {
    background: rgba(245, 158, 11, 0.1);
    color: #FBBF24;
  }

  .ai-card__content {
    flex: 1;
    min-width: 0;
  }

  .ai-card__title {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }

  .ai-card__desc {
    font-size: 0.75rem;
    line-height: 1.4;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .ai-demo-roleplay .roleplay-scenario:nth-child(n+3) {
    display: none;
  }

  /* Tap indicator arrow on AI cards */
  .ai-features > .ai-card::after {
    content: '→';
    font-size: 0.9rem;
    color: var(--primary-light);
    opacity: 0.5;
    flex-shrink: 0;
    animation: bounceHintRight 2s ease-in-out infinite;
  }

  .ai-features > .ai-card .ai-card__demo {
    display: none;
  }

  .ai-card__back-btn {
    display: none;
  }

  /* Normal state: all cards visible */
  .ai-features {
    position: relative;
    overflow: hidden;
  }

  .ai-features.ai-expanded {
    overflow: visible;
  }

  .ai-card {
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease;
  }

  .ai-features > .ai-card > .ai-card__demo {
    display: none;
  }

  /* When expanded, hide original cards visually but keep their space */
  .ai-features.ai-expanded > .ai-card {
    opacity: 0;
    pointer-events: none;
  }

  /* Expanded card panel - overlays on top of the cards area */
  .ai-expanded-overlay {
    display: none;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ai-expanded-overlay.active {
    opacity: 1;
    transform: translateY(0);
  }

  .ai-expanded-overlay .ai-card {
    flex-direction: column;
    gap: 14px;
    text-align: left;
    align-items: stretch;
    border: none;
    padding: 0;
    background: none;
    opacity: 1;
    max-height: none;
    pointer-events: auto;
  }

  .ai-expanded-overlay .ai-card .ai-card__mobile-icon {
    display: none;
  }

  .ai-expanded-overlay .ai-card .ai-card__demo {
    display: block !important;
    opacity: 0;
    transform: translateY(12px);
    animation: aiDemoFadeIn 0.4s ease 0.25s forwards;
  }

  .ai-expanded-overlay .ai-card .ai-card__desc {
    font-style: normal;
    font-size: 0.88rem;
    line-height: 1.6;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  .ai-expanded-overlay .ai-card .ai-card__title {
    font-size: 1.1rem;
  }

  .ai-expanded-overlay .ai-card .ai-card__number {
    display: none;
  }

  .ai-expanded-overlay__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    padding: 8px 0;
    margin-top: 16px;
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .ai-expanded-overlay {
    -webkit-tap-highlight-color: transparent;
  }

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

  .ai-dots {
    display: none;
  }

  .mixtape__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .mixtape__visual {
    display: none;
  }

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

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nav-mobile-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 100;
    backdrop-filter: blur(20px);
  }

  .navbar__links.active {
    display: flex;
  }

  .navbar__link {
    font-size: 1.2rem;
  }

  .navbar__hamburger {
    display: flex;
    z-index: 200;
  }

  .navbar__actions .btn {
    display: none;
  }

  .hero__cta .btn--ghost {
    display: none;
  }

  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero__visual {
    display: none;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__stats {
    justify-content: center;
    gap: 12px 24px;
  }

  .hero__stat-number {
    font-size: 1.3rem;
  }

  .hero__stat-plus {
    font-size: 1.3rem;
  }

  .hero__stat-label {
    font-size: 0.75rem;
  }

  .phone-mockup {
    width: 250px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .feature-card {
    padding: 0;
    perspective: 600px;
    background: none;
    border: none;
    min-height: 200px;
    position: relative;
    border-radius: var(--radius-lg);
  }

  .feature-card:hover {
    transform: none;
    box-shadow: none;
  }

  .feature-card::before {
    display: none;
  }

  .feature-card__front,
  .feature-card__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .feature-card__front::after {
    content: '→';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.85rem;
    color: var(--primary-light);
    opacity: 0.5;
    animation: bounceHintRight 2s ease-in-out infinite;
  }

  .feature-card.flipped .feature-card__front::after {
    content: none;
  }

  .feature-card__back::after {
    content: '←';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.5;
  }

  .feature-card__back {
    transform: rotateY(180deg);
  }

  .feature-card.flipped .feature-card__front {
    transform: rotateY(180deg);
  }

  .feature-card.flipped .feature-card__back {
    transform: rotateY(0deg);
  }

  .feature-card__icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
  }

  .feature-card__icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-card__title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .feature-card__stat {
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .feature-card__desc {
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 0;
  }

  .lang-group {
    margin-bottom: 20px;
  }

  .lang-group__title {
    font-size: 0.75rem;
    margin-bottom: 10px;
  }

  .lang-row {
    gap: 6px;
  }

  .lang-pill {
    padding: 6px 12px 6px 8px;
    gap: 6px;
  }

  .lang-pill__flag {
    width: 20px;
    height: 14px;
  }

  .lang-pill__name {
    font-size: 0.78rem;
  }

  .lang-pill__region {
    display: none;
  }

  .additional__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .add-card {
    padding: 0;
    perspective: 600px;
    background: none;
    border: none;
    min-height: 130px;
  }

  .add-card:hover {
    transform: none;
  }

  .add-card__front,
  .add-card__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 18px;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .add-card__front::after {
    content: '→';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.85rem;
    color: var(--primary-light);
    opacity: 0.5;
    animation: bounceHintRight 2s ease-in-out infinite;
  }

  .add-card.flipped .add-card__front::after {
    content: none;
  }

  .add-card__back::after {
    content: '←';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.5;
  }

  .add-card {
    position: relative;
  }

  .add-card__back {
    transform: rotateY(180deg);
  }

  .add-card.flipped .add-card__front {
    transform: rotateY(180deg);
  }

  .add-card.flipped .add-card__back {
    transform: rotateY(0deg);
  }

  .add-card__icon-wrap {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
  }

  .add-card__icon-wrap svg {
    width: 18px;
    height: 18px;
  }

  .add-card__title {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .add-card__desc {
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
  }

  .getting-started {
    display: none;
  }

  .footer__links {
    display: flex;
    gap: 24px;
    justify-content: space-between;
  }

  .footer__col h4 {
    font-size: 0.75rem;
    margin-bottom: 8px;
  }

  .footer__col a {
    font-size: 0.78rem;
    padding: 2px 0;
  }

  .floating-badge {
    display: none;
  }

  .mixtape-float {
    display: none;
  }

  .cta__inner {
    padding: 48px 24px;
  }
}

@media (max-width: 480px) {
  .ai-demo-roleplay {
    grid-template-columns: 1fr;
  }

  .footer__links {
    display: flex;
    gap: 24px;
    justify-content: space-between;
  }
}

/* === SMOOTH SCROLL OFFSET FOR FIXED NAVBAR === */
section[id] {
  scroll-margin-top: 80px;
}

/* === SELECTION === */
::selection {
  background: rgba(108, 99, 255, 0.3);
  color: #fff;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: var(--surface-2);
  transform: rotate(15deg);
}

.theme-toggle__icon {
  position: absolute;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark mode: show sun (to switch to light), hide moon */
.theme-toggle__icon--sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

/* Light mode: show moon (to switch to dark), hide sun */
[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Light theme - CTA button becomes dark */
[data-theme="light"] .btn--white {
  background: var(--gradient-1);
  color: #fff;
}

/* Light theme - selection color */
[data-theme="light"] ::selection {
  background: rgba(108, 99, 255, 0.2);
  color: #1A1A2E;
}

/* Light theme - gradient text readability boost */
[data-theme="light"] .gradient-text,
[data-theme="light"] .gradient-text-ai,
[data-theme="light"] .gradient-text-mixtape {
  filter: brightness(0.85) saturate(1.2);
}

/* Smooth theme transition on all elements */
body,
.navbar,
.feature-card,
.ai-card,
.add-card,
.lang-pill,
.phone-mockup__frame,
.phone-mockup__screen,
.phone-card,
.mixtape-player,
.cta__inner,
.footer,
.mini-word-card,
.mini-sentence,
.mini-chat__bubble,
.mini-story,
.floating-badge,
.mixtape-float,
.mixtape-btn,
.mixtape-player__track,
.ai-demo-input,
.ai-card__demo,
.roleplay-scenario,
.lang-chip,
.section-tag,
.hero__badge,
.scroll-mouse,
.theme-toggle {
  transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}
}