/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --red:          #D42B2B;
  --red-dark:     #A01E1E;
  --red-light:    #F5DADA;
  --cream:        #FFFFFF;
  --cream-dark:   #F5EDD0;
  --green:        #4A9B3F;
  --green-light:  #7BC67F;
  --gold:         #B8710A;
  --gold-light:   #E8A020;
  --brown:        #2C1A0E;
  --brown-mid:    #5C3A1E;
  --brown-light:  #8B5E3C;

  --font-en-display: 'Inter', -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
  --font-zh-display: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
  --font-body:       'Inter', -apple-system, 'SF Pro Display', BlinkMacSystemFont, sans-serif;
  --font-zh-body:    'Noto Sans SC', 'PingFang SC', sans-serif;

  --radius-card: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 4px 24px rgba(44, 26, 14, 0.10);
  --shadow-lift: 0 8px 40px rgba(212, 43, 43, 0.20);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-h:       72px;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
img  { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
a { text-decoration: none; color: inherit; }
section[id] { scroll-margin-top: var(--nav-h); }

/* ============================================================
   GLOBAL UTILITIES
   ============================================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Eyebrow labels */
.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-eyebrow--light { color: var(--gold-light); }

/* Section titles */
.section-title {
  font-family: var(--font-en-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
  color: var(--brown);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.section-title--light { color: var(--cream); }

/* Section subheadings */
.section-sub {
  text-align: center;
  color: var(--brown-mid);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 1.75;
}
.section-sub--light { color: rgba(253, 246, 227, 0.78); }

/* Colour helpers */
.text-red  { color: var(--red); }
.text-gold { color: var(--gold-light); }

/* ─── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: var(--transition);
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
}
.btn--red {
  background: var(--red);
  color: #fff;
  padding: 0.75rem 1.75rem;
  font-size: 0.95rem;
}
.btn--red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

/* App-store style buttons */
.btn--store {
  background: var(--brown);
  color: #fff;
  padding: 0.65rem 1.3rem;
  border-radius: 12px;
  font-size: 0.88rem;
  align-items: center;
}
.btn--store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(44, 26, 14, 0.30);
}
.btn--store svg { flex-shrink: 0; }
.btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.btn--store small {
  font-size: 0.62rem;
  opacity: 0.72;
  font-weight: 400;
}
.btn--store-light {
  background: #fff;
  color: var(--brown);
}
.btn--store-light:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

/* ─── Scroll-triggered fade-in ─────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Wave section dividers ────────────────────────────────── */
.wave-sep {
  line-height: 0;
  display: block;
}
.wave-sep svg {
  width: 100%;
  height: 70px;
  display: block;
}
.wave-sep--cream-to-creamy  { background: var(--cream); }
.wave-sep--creamy-to-brown  { background: var(--cream-dark); }
.wave-sep--brown-to-cream   { background: var(--brown); }
.wave-sep--creamy-to-cream  { background: var(--cream-dark); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  height: var(--nav-h);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(44, 26, 14, 0.10);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}
.nav__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav__name {
  font-family: var(--font-en-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--red);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}
.nav__links a {
  color: var(--brown-mid);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--red); }

.nav__cta { margin-left: 0.5rem; }

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  z-index: 101;
  position: relative;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav__links {
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    font-size: 1.3rem;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__cta  { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

/* Floating family-title words */
.hero__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__char {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-family: var(--font-en-display);
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--red);
  opacity: 0.08;
  animation: floatChar 7s ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform;
  user-select: none;
  white-space: nowrap;
}
@keyframes floatChar {
  0%, 100% { transform: translateY(0px)   rotate(-4deg); }
  50%       { transform: translateY(-18px) rotate( 4deg); }
}

/* Hero content */
.hero__content { position: relative; z-index: 1; }

.hero__eyebrow {
  font-family: var(--font-body);
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1.25rem;
}

.hero__headline {
  font-family: var(--font-en-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--brown);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero__zh {
  font-family: var(--font-zh-display);
  color: var(--red);
  font-style: normal;
}

.hero__sub {
  font-size: 1.2rem;
  color: var(--brown-mid);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 500px;
}

.hero__dialect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}
.hero__dialect-chips span {
  background: var(--red-light);
  color: var(--red-dark);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.hero__free {
  font-size: 0.78rem;
  color: var(--brown-light);
  letter-spacing: 0.05em;
}

/* App screenshot */
.hero__mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero__mockup-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,43,43,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero__app-screenshot {
  width: 380px;
  max-width: 100%;
  filter:
    drop-shadow(0 32px 64px rgba(44, 26, 14, 0.18))
    drop-shadow(0 8px 24px rgba(212, 43, 43, 0.10));
  position: relative;
  z-index: 1;
  display: block;
}

@media (max-width: 767px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 3rem 1.5rem 2rem;
    min-height: auto;
    gap: 2.5rem;
  }
  .hero__app-screenshot {
    width: 290px;
  }
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem {
  background: var(--cream-dark);
  padding: 5rem 0;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.problem__card {
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.problem__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(44, 26, 14, 0.14);
}

.problem__emoji {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 0.75rem;
}
.problem__zh-deco {
  position: absolute;
  top: -0.6rem;
  right: 0.6rem;
  font-family: var(--font-zh-display);
  font-size: 7.5rem;
  color: var(--red);
  opacity: 0.055;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-weight: 900;
}
.problem__card h3 {
  font-family: var(--font-en-display);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.problem__card p {
  font-size: 0.93rem;
  color: var(--brown-mid);
  line-height: 1.65;
}

/* Staggered delays for problem cards */
.problem__cards .problem__card:nth-child(1) { transition-delay: 0s; }
.problem__cards .problem__card:nth-child(2) { transition-delay: 0.12s; }
.problem__cards .problem__card:nth-child(3) { transition-delay: 0.24s; }

.problem__bridge {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(44, 26, 14, 0.08);
}
.problem__bridge p {
  font-size: 1.1rem;
  color: var(--brown-mid);
  margin-bottom: 1.25rem;
}
.problem__bridge strong { color: var(--brown); }

/* ============================================================
   VIDEO SECTION
   ============================================================ */
.videos {
  background-color: var(--brown);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 2L38 20L20 38L2 20Z' fill='none' stroke='%23D42B2B' stroke-width='1.2' opacity='0.18'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  color: var(--cream);
  padding: 5rem 0;
}

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

.video-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(253, 246, 227, 0.10);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.video-card__thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: rgba(44, 26, 14, 0.6);
}
.video-card__thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(44,26,14,0.92) 0%, rgba(160,30,30,0.72) 100%);
}
.video-card__play-ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  padding-left: 4px;
  transition: var(--transition);
}
.video-card:hover .video-card__play-ring {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.08);
}
.video-card__coming {
  color: var(--gold-light);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

.video-card__info { padding: 1.25rem; }
.video-card__info h3 {
  font-family: var(--font-en-display);
  font-size: 1rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.video-card__info p {
  font-size: 0.83rem;
  color: rgba(253, 246, 227, 0.60);
  line-height: 1.6;
}

/* Staggered delays for video cards */
.videos__grid .video-card:nth-child(1) { transition-delay: 0s; }
.videos__grid .video-card:nth-child(2) { transition-delay: 0.1s; }
.videos__grid .video-card:nth-child(3) { transition-delay: 0.2s; }
.videos__grid .video-card:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   DIALECT SHOWCASE
   ============================================================ */
.dialects {
  background: var(--cream);
  padding: 5rem 0;
}

.dialect-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.dialect-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.4rem;
  border: 2px solid var(--red-light);
  border-radius: var(--radius-pill);
  background: white;
  cursor: pointer;
  font-family: var(--font-zh-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown-mid);
  transition: var(--transition);
  line-height: 1.3;
  gap: 1px;
}
.dialect-tab small {
  font-size: 0.58rem;
  font-family: var(--font-body);
  font-weight: 500;
  opacity: 0.65;
  letter-spacing: 0.06em;
}
.dialect-tab.active,
.dialect-tab:hover {
  background: var(--red);
  border-color: var(--red);
  color: white;
  box-shadow: var(--shadow-lift);
}
.dialect-tab:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.dialect-panel { display: none; }
.dialect-panel.active {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
  background: white;
  border-radius: var(--radius-card);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  animation: panelFadeIn 0.4s ease;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dialect-panel__word {
  text-align: center;
  padding-right: 2.5rem;
  border-right: 2px solid var(--cream-dark);
}
.dp-zh {
  font-family: var(--font-zh-display);
  font-size: clamp(4rem, 10vw, 7.5rem);
  color: var(--red);
  line-height: 1;
  display: block;
  font-weight: 900;
}
.dp-roman {
  display: block;
  font-family: var(--font-en-display);
  font-size: 1.25rem;
  color: var(--brown-mid);
  margin-top: 0.5rem;
  font-style: italic;
}
.dp-meaning {
  display: block;
  font-size: 0.72rem;
  color: var(--brown-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.4rem;
  font-weight: 600;
}

.dialect-panel__fact {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.fact-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }
.dialect-panel__fact strong {
  display: block;
  font-family: var(--font-en-display);
  font-size: 1.1rem;
  color: var(--brown);
  margin-bottom: 0.6rem;
}
.dialect-panel__fact p {
  color: var(--brown-mid);
  font-size: 0.93rem;
  line-height: 1.75;
}

@media (max-width: 640px) {
  .dialect-panel.active {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.75rem;
    gap: 1.5rem;
  }
  .dialect-panel__word {
    padding-right: 0;
    border-right: none;
    border-bottom: 2px solid var(--cream-dark);
    padding-bottom: 1.5rem;
  }
  .dialect-panel__fact {
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  background: var(--cream-dark);
  padding: 5rem 0;
}

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

.feature-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  border-top: 4px solid var(--red);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
/* Paper-cut triangular corner accent */
.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  background: var(--red-light);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.feature-card__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 1rem;
}
.feature-card h3 {
  font-family: var(--font-en-display);
  font-size: 1.2rem;
  color: var(--brown);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--brown-mid);
  line-height: 1.7;
}
.feature-card p .term-phonetic {
  font-style: italic;
  font-weight: 700;
  color: var(--red);
}

/* Staggered delays */
.features__grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features__grid .feature-card:nth-child(2) { transition-delay: 0.10s; }
.features__grid .feature-card:nth-child(3) { transition-delay: 0.20s; }
.features__grid .feature-card:nth-child(4) { transition-delay: 0.30s; }

/* Stats bar */
.features__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(44,26,14,0.08);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.stat {
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1rem;
  gap: 0.25rem;
}
.stat__num {
  font-family: var(--font-en-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.stat__label {
  font-size: 0.75rem;
  color: var(--brown-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  text-align: center;
}

/* Staggered stat delays */
.features__stats .stat:nth-child(1) { transition-delay: 0s; }
.features__stats .stat:nth-child(2) { transition-delay: 0.1s; }
.features__stats .stat:nth-child(3) { transition-delay: 0.2s; }
.features__stats .stat:nth-child(4) { transition-delay: 0.3s; }

@media (max-width: 600px) {
  .features__stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--cream);
  padding: 5rem 0;
}

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

.testimonial-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
}
.testimonial-card:hover { transform: translateY(-3px); }

.testimonial-card__quote {
  font-family: var(--font-en-display);
  font-size: 7.5rem;
  line-height: 0.8;
  color: var(--red);
  opacity: 0.09;
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  pointer-events: none;
  user-select: none;
}
.testimonial-card__text {
  font-size: 0.93rem;
  color: var(--brown-mid);
  line-height: 1.8;
  position: relative;
  z-index: 1;
  font-style: italic;
}
.testimonial-card__text em {
  font-style: normal;
  font-weight: 700;
  color: var(--brown);
}
.testimonial-card__text .term-phonetic {
  font-style: italic;
  font-weight: 700;
  color: var(--red);
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cream-dark);
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}
.avatar--red   { background: var(--red); }
.avatar--green { background: var(--green); }
.avatar--gold  { background: var(--gold); }
.testimonial-card__author strong {
  display: block;
  color: var(--brown);
  font-size: 0.88rem;
}
.testimonial-card__author span {
  font-size: 0.73rem;
  color: var(--brown-light);
}

/* Staggered delays */
.testimonials__grid .testimonial-card:nth-child(1) { transition-delay: 0s; }
.testimonials__grid .testimonial-card:nth-child(2) { transition-delay: 0.12s; }
.testimonials__grid .testimonial-card:nth-child(3) { transition-delay: 0.24s; }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.cta-download {
  background: var(--red);
  color: white;
  padding: 7rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* CSS Lanterns */
.cta-download__lanterns {
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 6%;
  pointer-events: none;
}
.lantern {
  width: 28px;
  height: 48px;
  background: var(--gold);
  border-radius: 50% 50% 58% 58% / 40% 40% 60% 60%;
  position: relative;
  box-shadow: 0 0 18px rgba(232, 160, 32, 0.55);
  animation: lanternSway 3.2s ease-in-out infinite alternate;
  transform-origin: top center;
}
.lantern--tall  { height: 58px; width: 30px; }
.lantern--short { height: 40px; width: 24px; }
/* Cap */
.lantern::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 11px;
  height: 7px;
  background: var(--brown);
  border-radius: 3px 3px 0 0;
}
/* Tassel */
.lantern::after {
  content: '';
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: var(--gold-light);
  border-radius: 0 0 2px 2px;
}
.lantern:nth-child(2) { animation-delay: 0.5s; }
.lantern:nth-child(3) { animation-delay: 1s;   }
.lantern:nth-child(4) { animation-delay: 0.25s; }
.lantern:nth-child(5) { animation-delay: 0.75s; }
@keyframes lanternSway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate( 6deg); }
}

/* Watermark character */
.cta-download__watermark {
  position: absolute;
  font-family: var(--font-zh-display);
  font-size: 38vw;
  font-weight: 900;
  color: white;
  opacity: 0.05;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.cta-download__inner { position: relative; z-index: 1; }

.cta-download__inner h2 {
  font-family: var(--font-en-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.cta-download__inner h2 em {
  color: var(--gold-light);
  font-style: italic;
}
.cta-download__sub {
  color: rgba(253, 246, 227, 0.82);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}
.cta-download__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.cta-download__note {
  font-size: 0.88rem;
  color: rgba(253, 246, 227, 0.65);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brown);
  color: var(--cream);
  padding: 3.5rem 0 0;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(253, 246, 227, 0.10);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.footer__tagline {
  font-family: var(--font-en-display);
  font-size: 0.92rem;
  color: rgba(253, 246, 227, 0.60);
  line-height: 1.6;
  font-style: italic;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.75rem;
  align-items: flex-start;
}
.footer__links a {
  color: rgba(253, 246, 227, 0.58);
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold-light); }
.footer__social {
  display: flex;
  gap: 1rem;
}
.footer__social-link {
  color: rgba(253, 246, 227, 0.45);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer__social-link:hover { color: var(--gold-light); }
.footer__bottom {
  padding: 1.25rem 0;
  text-align: center;
}
.footer__bottom p {
  font-size: 0.76rem;
  color: rgba(253, 246, 227, 0.28);
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 767px) {
  .features__grid,
  .problem__cards,
  .videos__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
  .footer__inner {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .cta-download__badges { flex-direction: column; align-items: center; }
  .dialect-tabs { gap: 0.35rem; }
  .dialect-tab  { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
}
