@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@600;700&family=Chiron+Go+Round+TC:wght@400;500;700&family=Neucha&display=swap');

:root {
  --bg-midnight: #0f172a;
  --bg-deep: #11163e;
  --bg-soft: #f5f5ff;
  --accent-primary: #6366f1;
  --accent-secondary: #22d3ee;
  --accent-warm: #fb923c;
  --accent-rose: #f472b6;
  --text-primary: #0f172a;
  --text-secondary: #475569;
}

.lang-switch {
    display: flex;
    gap: 8px;
  }
  .lang-switch button {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
  }
  .lang-switch button:hover {
    background: #f3f3f3;
  }

  /* Language dropdown */
  .lang-dropdown { position: relative; flex-shrink: 0; }
  .lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.9rem;
    color: #111827;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .lang-toggle .flag { font-size: 16px; line-height: 1; }
  .lang-toggle .chevron { color: #6b7280; font-size: 12px; }
  .lang-dropdown.open .lang-toggle { border-color: #4F46E5; box-shadow: 0 0 0 3px rgba(79,70,229,0.15); }

  .lang-menu {
    position: absolute;
    right: 0;
    margin-top: 8px;
    width: 180px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    padding: 6px;
    list-style: none;
    display: none;
    z-index: 200;
  }
  .lang-dropdown.open .lang-menu { display: block; }
  .lang-menu li { margin: 2px 0; }
  .lang-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    color: #111827;
    font-size: 0.95rem;
    text-align: left;
  }
  .lang-option .flag { width: 18px; height: 18px; font-size: 16px; }
  .lang-option:hover, .lang-option:focus { background: #f3f4f6; outline: none; }
  .lang-option[aria-selected="true"] { background: #eef2ff; color: #4F46E5; }

/* Reset & base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Baloo 2',   sans-serif; color: #0F172A; background: #fff; line-height: 1.6; }
body { scroll-padding-top: 120px; }

h1, h2, h3, h4, h5, h6,
.section h2,
.hero-subtitle,
.vocab-heading,
.vocab-subheading,
.download-heading__title,
.feature-card__body h3,
.download-subtitle {
  font-family: 'Baloo 2',   sans-serif;
}
img { max-width: 100%; display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Containers */
.container { width: min(100% - 32px, 1120px); margin: 0 auto; }

/* Header */
.header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  z-index: 220;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.header-surface {
  width: min(100%, 960px);
  display: flex;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.92), rgba(243, 244, 255, 0.9));
  box-shadow: 0 16px 38px -24px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  pointer-events: auto;
  opacity: 1;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
}

.header.is-scrolled .header-surface {
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.95), rgba(224, 231, 255, 0.92));
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 24px 55px -24px rgba(15, 23, 42, 0.35);
  transform: translateY(-4px);
  opacity: 0.96;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(14, 165, 233, 0.15));
  overflow: hidden;
  transition: transform 0.25s ease;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.logo:hover { transform: scale(1.05); }

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
  justify-content: flex-end;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  text-decoration: none;
  color: #1f2937;
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #818cf8, #c7d2fe);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover { color: #4F46E5; }
.nav a:hover::after { transform: scaleX(1); }

.nav-link-download {
  padding: 0;
  background: none;
  color: inherit;
  font-weight: 500;
  box-shadow: none;
  transition: color 0.2s ease;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 16px 32px -20px rgba(99, 102, 241, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
  transform: translateY(-1px);
  box-shadow: 0 20px 36px -18px rgba(34, 211, 238, 0.55);
}

.menu-toggle:active {
  transform: translateY(0);
  opacity: 0.85;
}

.menu-icon {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 16px;
  position: relative;
}

.menu-line {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open .menu-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-open .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 16px;
  }

  .lang-dropdown {
    margin-left: auto;
  }

  .nav-wrapper {
    width: 100%;
  }

  .nav {
    width: 100%;
    justify-content: flex-end;
    gap: 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px;
    width: min(260px, 80vw);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    box-shadow: 0 24px 45px -28px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 240;
  }

  .nav-links.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a {
    width: 100%;
    padding: 6px 0;
  }

  .nav-cta {
    padding: 12px 18px;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .header-inner {
    padding: 12px 16px;
  }

  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 14px;
  }
}

/* Hero */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 160px;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(120% 120% at 10% 15%, rgba(99, 102, 241, 0.25), transparent 55%),
              radial-gradient(90% 95% at 90% 15%, rgba(244, 114, 182, 0.28), transparent 60%),
              linear-gradient(140deg, #ffffff 0%, rgba(224, 231, 255, 0.96) 55%, rgba(217, 249, 250, 0.92) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.55;
  transform: translate3d(0, 0, 0);
}

.hero::before {
  inset: auto -20% 35% -15%;
  background: radial-gradient(68% 68% at 50% 50%, rgba(99, 102, 241, 0.55), transparent 78%);
}

.hero::after {
  inset: -25% -18% auto 45%;
  background: radial-gradient(65% 65% at 50% 50%, rgba(34, 211, 238, 0.6), transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(0, 260px);
  justify-content: center;
  justify-items: center;
  align-items: center;
  gap: clamp(36px, 6vw, 64px);
  width: 100%;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-size: clamp(48px, 11vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-family: 'Baloo Bhai 2', sans-serif;
  line-height: 1.05;
  background: linear-gradient(120deg, #0f172a 0%, #312e81 55%, #0ea5e9 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 20px 42px rgba(15, 23, 42, 0.2);
}

.hero-subtitle {
  font-size: clamp(20px, 3vw, 26px);
  color: #312e81;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-family: 'Baloo 2', sans-serif;
  display: inline-block;
  margin-top: 6px;
}

.k-rotate {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 4px;
  justify-content: center;
}

.badge {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-family: 'Baloo 2',  sans-serif;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.35);
}

.badge.green { background: rgba(187, 247, 208, 0.9); color: #065f46; }
.badge.pink { background: rgba(255, 228, 230, 0.92); color: #9f1239; }
.badge.purple { background: rgba(237, 233, 254, 0.95); color: #4c1d95; }
.badge.amber { background: rgba(254, 243, 199, 0.92); color: #92400e; }

.fade {
  animation: badgeFade 6s linear infinite;
}

@keyframes badgeFade {
  0% { opacity: 0; transform: translateY(6px); }
  10% { opacity: 1; transform: translateY(0); }
  40% { opacity: 1; }
  55% { opacity: 0.35; }
  100% { opacity: 0; }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
}

.phone {
  position: relative;
  width: clamp(150px, 22vw, 240px);
  height: clamp(300px, 44vw, 480px);
  border-radius: 30px;
  padding: 60px 20px 32px;
  background: linear-gradient(145deg, rgba(236, 233, 254, 0.9), rgba(254, 242, 242, 0.92));
  box-shadow: 0 38px 78px -44px rgba(15, 23, 42, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  animation: heroFloat 7s ease-in-out infinite;
  margin: 0 auto;
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
}

.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  animation: heroCardIn 0.9s forwards;
}

.card .icon {
  font-size: 20px;
}

.card.green {
  background: linear-gradient(135deg, #14b8a6, #059669);
  animation-delay: 0.2s;
}

.card.pink {
  background: linear-gradient(135deg, #f472b6, #ec4899);
  animation-delay: 0.5s;
}

.card.purple {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  animation-delay: 0.8s;
}

.card.amber {
  background: linear-gradient(135deg, #f97316, #ea580c);
  animation-delay: 1.1s;
}

@keyframes heroCardIn {
  0% { opacity: 0; transform: translateY(28px) scale(0.98); }
  50% { opacity: 1; transform: translateY(-4px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0); }
  35% { transform: translateY(-10px) rotate(-1deg); }
  70% { transform: translateY(6px) rotate(0.8deg); }
}

.hero-support {
  font-size: clamp(18px, 3vw, 22px);
  color: var(--text-primary);
  max-width: 620px;
  font-weight: 300;
  line-height: 1.65;
  font-family: 'Baloo 2',   sans-serif;
  text-align: center;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.store-btn {
  background: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
  color: #f8fafc;
  box-shadow: 0 28px 60px -30px rgba(34, 211, 238, 0.45);
  border: 1px solid rgba(248, 250, 252, 0.1);
  justify-content: flex-start;
  text-align: left;
}

.store-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 70px -34px rgba(139, 92, 246, 0.55);
}

.store-btn .store-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.store-btn svg {
  width: 28px;
  height: 28px;
}

.store-content {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}

.store-content small {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.78);
}

.store-content span:last-child {
  font-size: 18px;
  font-weight: 500;
}

.about {
  background: linear-gradient(135deg, rgba(236, 233, 254, 0.4), rgba(219, 234, 254, 0.35) 48%, #ffffff 100%);
}

.about-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  align-items: center;
}

.about-copy h2 {
  font-size: 32px;
  color: #111827;
  margin-bottom: 16px;
}

.about-copy p {
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}

.about-points {
  display: grid;
  gap: 24px;
}

.about-card {
  background: #f8fafc;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 25px 40px -30px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.about-card h3 {
  font-size: 20px;
  color: #1f2937;
  margin-bottom: 10px;
}

.about-card p {
  color: #64748b;
  font-size: 16px;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .about-copy h2 { font-size: 28px; }
  .about-copy p { font-size: 16px; }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 56px;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-subtitle {
    align-self: center;
  }

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

  .hero-support {
    text-align: center;
  }

  .k-rotate {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 120px;
    min-height: auto;
  }

  .hero-inner {
    gap: 48px;
  }

  .phone {
    width: clamp(200px, 52vw, 260px);
    height: clamp(320px, 64vw, 420px);
    padding: 54px 18px 30px;
  }

  .screen-section {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media (max-width: 540px) {
  .hero {
    padding-top: 140px;
    min-height: auto;
  }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }

  .store-btn {
    width: 100%;
    justify-content: flex-start;
  }

  .phone {
    width: min(78vw, 230px);
    height: auto;
    padding: 48px 16px 26px;
  }

  .screen-section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

@media (max-width: 640px) {
  .hero::before {
    inset: auto -40% 35% -45%;
  }

  .hero::after {
    inset: -35% -45% auto 45%;
  }
}

/* Features section */
.section { padding: 100px 0; }

.screen-section {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 120px;
}

.screen-section > .container {
  width: min(100% - 32px, 1120px);
}
.features {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(79, 70, 229, 0.85));
}

.features::before,
.features::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.3;
}

.features::before {
  inset: -20% auto 25% -15%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(56, 189, 248, 0.8), transparent 70%);
}

.features::after {
  inset: auto -15% -25% 45%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(244, 114, 182, 0.7), transparent 75%);
}

.features h2 {
  font-size: clamp(32px, 4vw, 42px);
  color: #f8fafc;
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(24px, 4vw, 40px);
}

.feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(226, 232, 240, 0.08);
  box-shadow: 0 28px 55px -38px rgba(15, 23, 42, 0.9);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.65), rgba(56, 189, 248, 0.4), rgba(244, 114, 182, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  z-index: 0;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: -30% 40% auto -20%;
  height: 120%;
  background: radial-gradient(65% 65% at 50% 50%, rgba(244, 114, 182, 0.26), transparent 70%);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 90px -42px rgba(56, 189, 248, 0.55);
}

.feature-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.feature-card__icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.25), rgba(148, 163, 184, 0.08));
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(248, 250, 252, 0.25), 0 12px 24px -16px rgba(15, 23, 42, 0.9);
}

.feature-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-card__body h3 {
  font-size: 20px;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.95);
  letter-spacing: -0.01em;
}

.feature-card__body p {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(226, 232, 240, 0.88);
}

@media (max-width: 768px) {
  .features h2 { margin-bottom: 28px; }
  .feature-card { padding: 24px; gap: 16px; }
  .feature-card__icon { width: 52px; height: 52px; font-size: 24px; }
}

/* Vocabulary demo */
.vocab-demo {
  position: relative;
  background: radial-gradient(120% 120% at 15% 10%, rgba(129, 140, 248, 0.14), transparent 60%),
              radial-gradient(80% 80% at 85% 15%, rgba(6, 182, 212, 0.14), transparent 65%),
              #f8fafc;
}

.vocab-floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.vocab-floating__cluster {
  position: absolute;
  top: 12%;
  right: clamp(24px, 8vw, 140px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: clamp(140px, 20vw, 240px);
}

.vocab-floating__orbit {
  position: relative;
  width: clamp(120px, 18vw, 200px);
  aspect-ratio: 1;
}

.vocab-orbit-flag {
  --angle: 0deg;
  --delay: 0s;
  --radius: clamp(62px, 9vw, 96px);
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(32px, 4.5vw, 40px);
  height: clamp(32px, 4.5vw, 40px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(16px, 3.5vw, 22px);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1));
  animation: vocabOrbit 16s linear infinite;
  animation-delay: var(--delay);
}

.vocab-orbit-flag:nth-child(1) { --angle: 0deg; --delay: 0s; }
.vocab-orbit-flag:nth-child(2) { --angle: 40deg; --delay: 1s; }
.vocab-orbit-flag:nth-child(3) { --angle: 80deg; --delay: 2s; }
.vocab-orbit-flag:nth-child(4) { --angle: 120deg; --delay: 3s; }
.vocab-orbit-flag:nth-child(5) { --angle: 160deg; --delay: 4s; }
.vocab-orbit-flag:nth-child(6) { --angle: 200deg; --delay: 5s; }
.vocab-orbit-flag:nth-child(7) { --angle: 240deg; --delay: 6s; }
.vocab-orbit-flag:nth-child(8) { --angle: 280deg; --delay: 7s; }
.vocab-orbit-flag:nth-child(9) { --angle: 320deg; --delay: 8s; }

.vocab-floating__flag {
  align-self: center;
  width: clamp(56px, 9vw, 102px);
  height: clamp(56px, 9vw, 102px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(26px, 6vw, 44px);
  filter: drop-shadow(0 18px 30px rgba(15, 23, 42, 0.22));
  animation: vocabFlagFloat 8s ease-in-out infinite alternate;
  transform-origin: center;
}

.vocab-floating__text {
  position: absolute;
  left: clamp(28px, 10vw, 160px);
  bottom: clamp(12%, 22vw, 32%);
  font-family: 'Baloo 2',   sans-serif;
  font-size: clamp(46px, 13vw, 108px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(51, 65, 85, 0.08);
  text-transform: uppercase;
  animation: vocabWordDrift 12s ease-in-out infinite alternate;
  transform: rotate(-10deg);
  text-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.vocab-floating__text::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 40%, rgba(79, 70, 229, 0.22), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.18;
  animation: vocabWordGlow 12s ease-in-out infinite alternate;
}

/* Keep floating decor positioned relative to content, not viewport edges */
.vocab-demo {
  --container-max: 1120px;
  --gutter: max((100vw - var(--container-max)) / 2, 16px);
}

.vocab-floating__cluster {
  right: calc(50vw - var(--container-max) / 2 + clamp(20px, 3vw, 60px));
}

.vocab-floating__text {
  left: calc(50vw - var(--container-max) / 2 + clamp(20px, 3vw, 60px));
}

@keyframes vocabFlagFloat {
  0% { transform: translate3d(0, 0, 0) rotate(-6deg) scale(0.98); }
  50% { transform: translate3d(10px, -12px, 0) rotate(4deg) scale(1.04); }
  100% { transform: translate3d(-8px, 10px, 0) rotate(-2deg) scale(1); }
}

@keyframes vocabOrbit {
  0% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1)); }
  100% { transform: translate(-50%, -50%) rotate(calc(var(--angle) + 360deg)) translateY(calc(var(--radius) * -1)) rotate(calc(var(--angle) * -1 - 360deg)); }
}

@keyframes vocabWordDrift {
  0% { transform: translate3d(0, 0, 0) rotate(-10deg); }
  50% { transform: translate3d(18px, -14px, 0) rotate(-6deg); }
  100% { transform: translate3d(-12px, 12px, 0) rotate(-11deg); }
}

@keyframes vocabWordGlow {
  0% { opacity: 0.16; }
  50% { opacity: 0.32; }
  100% { opacity: 0.18; }
}


.vocab-demo__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(32px, 6vw, 72px);
  text-align: left;
  z-index: 1;
}

.vocab-demo__copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 540px;
  align-items: flex-start;
  text-align: left;
}

.vocab-label {
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(76, 29, 149, 0.1);
  color: #4338ca;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vocab-heading {
  font-family: 'Baloo 2',   sans-serif;
  font-size: clamp(30px, 4.8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1f2937;
}

.vocab-subheading {
  font-family: 'Baloo 2',   sans-serif;
  font-size: 18px;
  color: #374151;
  line-height: 1.75;
}

.vocab-language-hint {
  font-size: 16px;
  color: #6366f1;
}

.vocab-card-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  perspective: 1000px;
}

.vocab-card-wrapper {
  position: relative;
  width: min(110vw, 180px);
  aspect-ratio: 7 / 10;
  transform-style: preserve-3d;
  animation: cardIdle 10s ease-in-out infinite;
}

.vocab-card {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 22px;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.55s ease;
}

.vocab-card:focus-visible {
  outline: 3px solid rgba(79, 70, 229, 0.45);
  outline-offset: 6px;
}

.vocab-card.is-flipped {
  transform: rotateY(180deg);
}

.vocab-card-wrapper:hover {
  animation-play-state: paused;
}

.vocab-card-wrapper:hover .vocab-card:not(.is-flipped) {
  transform: translateY(-6px) rotateY(-4deg);
}

.vocab-card__face {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 26px;
  backface-visibility: hidden;
  box-shadow: 0 20px 50px -30px rgba(15, 23, 42, 0.32);
}

.vocab-card__face--front {
  background: linear-gradient(155deg, rgba(248, 250, 252, 0.92), rgba(224, 231, 255, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.vocab-card__face--back {
  background: linear-gradient(155deg, rgba(79, 70, 229, 0.16), rgba(59, 130, 246, 0.14));
  border: 1px solid rgba(79, 70, 229, 0.2);
  transform: rotateY(180deg);
}

.vocab-word {
  font-size: clamp(20px, 4.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #312e81 0%, #1d4ed8 45%, #14b8a6 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.vocab-translation {
  font-size: clamp(20px, 3.8vw, 26px);
  font-weight: 600;
  color: #0f172a;
  padding: 6px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 16px 32px -28px rgba(79, 70, 229, 0.6);
}

.vocab-hint {
  font-size: 13px;
  color: #6b7280;
}

.vocab-controls {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-items: center;
  gap: 16px;
  margin-top: 6px;
  width: min(260px, 100%);
}

.vocab-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: none;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(59, 130, 246, 0.1));
  color: #312e81;
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.vocab-nav:hover:not([disabled]) {
  transform: translateY(-4px);
  box-shadow: 0 18px 32px -24px rgba(59, 130, 246, 0.58);
}

.vocab-nav[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.vocab-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
}

.vocab-progress__counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2937;
}

.vocab-progress__divider {
  font-size: 14px;
  opacity: 0.5;
}

.confetti-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 12px;
  height: 18px;
  opacity: 0;
  border-radius: 4px;
  animation: confettiFall 1.6s ease-in forwards;
}

.firework {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fire-color, #facc15);
  animation: fireworkPop 1.2s ease-out forwards;
  pointer-events: none;
}

.firework::before,
.firework::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--fire-color, #facc15);
  opacity: 0.65;
  animation: fireworkRing 1.2s ease-out forwards;
}

.firework::after {
  inset: -20px;
  opacity: 0.35;
  filter: blur(0.5px);
}

@keyframes confettiFall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  60% { transform: translate3d(var(--cx), 160px, 0) rotate(220deg); opacity: 1; }
  100% { transform: translate3d(calc(var(--cx) * 1.5), 260px, 0) rotate(360deg); opacity: 0; }
}

@keyframes fireworkPop {
  0% { transform: scale(0.35); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.2); opacity: 0; }
}

@keyframes fireworkRing {
  0% { transform: scale(0.6); opacity: 0; }
  45% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes cardIdle {
  0%, 100% { transform: translateY(0) rotateY(0deg) rotateX(0deg); }
  30% { transform: translateY(-4px) rotateY(-3deg) rotateX(1deg); }
  60% { transform: translateY(4px) rotateY(3deg) rotateX(-1deg); }
}

@media (max-width: 960px) {
  .vocab-demo__inner {
    flex-direction: column;
    gap: clamp(26px, 5vw, 40px);
    text-align: center;
  }

  .vocab-demo__copy {
    align-items: center;
    text-align: center;
  }

  .vocab-floating__cluster {
    top: 6%;
    right: clamp(18px, 12vw, 96px);
  }

  .vocab-floating__text {
    left: 50%;
    bottom: clamp(18%, 30vw, 40%);
    transform: translateX(-50%) rotate(-8deg);
  }

}

@media (max-width: 768px) {
  .vocab-controls {
    gap: 14px;
    width: min(240px, 100%);
  }
  .vocab-nav { width: 44px; height: 44px; font-size: 20px; }

  .vocab-orbit-flag { --radius: clamp(56px, 10vw, 80px); }

  .vocab-floating__text {
    font-size: clamp(36px, 18vw, 72px);
  }
}

@media (max-width: 540px) {
  .vocab-demo__inner { gap: 30px; }
  .vocab-card-wrapper { width: min(82vw, 220px); }
  .vocab-controls {
    gap: 12px;
    width: min(220px, 100%);
  }
  .vocab-progress__counter { font-size: 15px; }

  .vocab-floating__cluster { top: 4%; right: 24px; }
  .vocab-orbit-flag { --radius: clamp(48px, 18vw, 70px); }

  .vocab-floating__text {
    bottom: 20%;
    font-size: clamp(32px, 20vw, 58px);
  }

}

/* More features / text + image blocks */
.more-features { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.more-features .more-img { flex: 1; min-width: 280px; }
.more-features h2 { font-size: 28px; color: #111827; margin-bottom: 16px; }
.more-features p { color: #6B7280; }

/* Testimonials */
.testimonials h2 { font-size: 32px; text-align: center; margin-bottom: 24px; }
.testi-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.testi-item { background: #F9FAFB; padding: 24px; border-radius: 12px; }
.testi-item p { font-style: italic; color: #374151; margin-bottom: 12px; }
.testi-item span { font-weight: 600; color: #4F46E5; }

/* FAQ */
.faq {
  position: relative;
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.35), rgba(236, 233, 254, 0.4));
}

.faq h2 {
  font-size: 34px;
  text-align: center;
  margin-bottom: 36px;
  color: var(--text-primary);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(100% - 32px, 960px);
  margin: 0 auto;
}

.faq-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 60px -42px rgba(15, 23, 42, 0.6);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  animation: faqFadeIn 0.6s ease both;
}

.faq-item:nth-child(1) { animation-delay: 0.05s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.15s; }
.faq-item:nth-child(4) { animation-delay: 0.2s; }
.faq-item:nth-child(5) { animation-delay: 0.25s; }

.faq-item summary {
  position: relative;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  padding: 24px 28px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question {
  flex: 1;
  font-size: 19px;
  line-height: 1.4;
  color: var(--text-primary);
}

.faq-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  transition: transform 0.35s ease, background 0.35s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: #4338ca;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  padding: 0 28px;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease, padding-top 0.35s ease, padding-bottom 0.35s ease;
}

.faq-answer > div {
  overflow: hidden;
  transform: translateY(-8px);
  padding-top: 0;
  transition: transform 0.35s ease, padding-top 0.35s ease;
}

.faq-answer p {
  font-family: 'Baloo 2',   sans-serif;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 600;
}

.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 36px 70px -46px rgba(79, 70, 229, 0.65);
  transform: translateY(-4px);
}

.faq-item summary:hover {
  background: rgba(79, 70, 229, 0.08);
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  padding-top: 0;
  padding-bottom: 26px;
}

.faq-item[open] .faq-answer > div {
  transform: translateY(0);
  padding-top: 12px;
}

.faq-item[open] .faq-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: rotate(180deg);
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: rotate(90deg) scaleX(0);
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.32);
  border-radius: 18px;
}

@media (min-width: 768px) {
  .faq-list {
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .faq h2 {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .faq-item summary {
    padding: 20px 22px;
  }

  .faq-question {
    font-size: 17px;
  }

  .faq-answer {
    padding: 0 22px;
  }
}

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

/* Download section */
.download {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 10% 10%, rgba(79, 70, 229, 0.22), rgba(79, 70, 229, 0) 55%),
              radial-gradient(120% 120% at 90% 10%, rgba(34, 211, 238, 0.2), rgba(34, 211, 238, 0) 60%),
              linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(224, 231, 255, 0.9));
  border-top: 1px solid rgba(99, 102, 241, 0.12);
}

.download::before {
  content: "";
  position: absolute;
  inset: 10% -35% auto -30%;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(129, 140, 248, 0.24), transparent 70%);
  filter: blur(12px);
  opacity: 0.8;
}

.download::after {
  content: "";
  position: absolute;
  inset: auto -30% -40% 45%;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(56, 189, 248, 0.18), transparent 70%);
  filter: blur(18px);
}

.download-inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}


.download-inner--minimal {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-items: center;
  text-align: center;
  gap: clamp(28px, 5vw, 56px);
}

.download-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  max-width: clamp(280px, 60vw, 540px);
}

.download-heading__glow {
  display: none;
}

.download-heading__title {
  position: relative;
  font-size: clamp(36px, 6.5vw, 58px);
  font-family: 'Baloo 2',   sans-serif;
  font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.08;
  background: linear-gradient(135deg, #0f172a 0%, #4338ca 50%, #22d3ee 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px rgba(79, 70, 229, 0.22);
  animation: downloadTitleShimmer 7s ease-in-out infinite;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: clamp(22px, 5vw, 30px);
  align-items: center;
}

.download-actions__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.download-actions__stores .store-btn {
  min-width: 220px;
}

.download-floating {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(260px, 40vw, 340px);
  overflow: visible;
}

.download-floating::before,
.download-floating::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.65;
  pointer-events: none;
}

.download-floating::before {
  inset: -30% -28% auto -32%;
  height: 220px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(99, 102, 241, 0.28), transparent 72%);
}

.download-floating::after {
  inset: auto -20% -32% 18%;
  height: 250px;
  background: radial-gradient(55% 55% at 50% 50%, rgba(56, 189, 248, 0.26), transparent 78%);
}

/* Legal page */
.legal-page {
  background: #f8fafc;
  color: #0f172a;
}

.legal-main {
  padding-top: 160px;
  padding-bottom: 120px;
}

.legal-wrapper {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  display: grid;
  gap: 40px;
}

.legal-intro {
  display: grid;
  gap: 16px;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.legal-intro h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.02em;
  color: #0f172a;
}

.legal-updated {
  font-weight: 600;
  color: #1e293b;
}

.legal-section {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 20px 60px -40px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  gap: 16px;
}

.legal-section h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  color: #1e293b;
}

.legal-section h3 {
  font-size: clamp(18px, 3vw, 22px);
  color: #1d4ed8;
}

.legal-section p,
.legal-section li {
  color: #334155;
  line-height: 1.75;
}

.legal-section ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.legal-section a {
  color: #1d4ed8;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .legal-main {
    padding-top: 140px;
    padding-bottom: 100px;
  }

  .legal-section {
    border-radius: 18px;
  }
}

.download-floating__word {
  --tx: 0px;
  --ty: 0px;
  --delay: 0s;
  --duration: 18s;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  color: #1e293b;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px -24px rgba(15, 23, 42, 0.9);
  pointer-events: none;
  animation: floatWord var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
}

.download-floating__word:nth-child(odd) {
  background: rgba(99, 102, 241, 0.18);
}

@keyframes floatWord {
  0% {
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 0.6), calc(var(--ty) * 0.6)) scale(0.85);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) translate(var(--tx), var(--ty)) scale(1);
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) translate(calc(var(--tx) * 1.15), calc(var(--ty) * 1.15 - 16px)) scale(0.9);
    opacity: 0;
  }
}

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

@media (max-width: 960px) {
  .download-inner {
    grid-template-columns: 1fr;
  }

  .download-floating {
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 540px) {
  .download-actions__stores {
    gap: 12px;
  }

  .download-actions__stores .store-btn {
    width: 100%;
    min-width: unset;
    justify-content: flex-start;
    text-align: left;
  }

  .download-floating {
    min-height: 260px;
  }

  .download-floating__word {
    font-size: 15px;
    padding: 9px 18px;
  }
}

.footer {
  background: #ffffff;
  color: #0f172a;
  padding: 72px 0 32px;
  margin-top: clamp(80px, 12vw, 120px);
}

.footer .container {
  width: min(100% - 32px, 960px);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: clamp(24px, 6vw, 48px);
  margin-bottom: 48px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #4F46E5;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-column--contacts ul li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(79, 70, 229, 0.12);
  color: #4F46E5;
  flex-shrink: 0;
}

.footer-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer-column a {
  color: #475569;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: #4F46E5;
  outline: none;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer { padding: 64px 0 28px; margin-top: 80px; }
  .footer-columns { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (max-width: 560px) {
  .footer-columns {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    text-align: left;
    gap: 20px;
  }

  .footer-column h3 {
    font-size: 17px;
  }

  .footer-column ul {
    align-items: flex-start;
    gap: 10px;
  }

  .footer-column a {
    font-size: 14px;
  }

  .footer-column--contacts ul li { justify-content: flex-start; }

  .footer {
    padding: 56px 0 24px;
  }
}

.nav a:active::after,
.nav a:focus-visible::after { transform: scaleX(1); }
.nav a:focus-visible { outline: none; color: #4F46E5; }
