/* ============================================================
   WoWoChinese — White Luxury Redesign
   Clean · minimal · generous whitespace · restrained accent
   ============================================================ */

:root {
  /* Brand accents (used sparingly) */
  --red:      #C41E3A;
  --red2:     #D8344F;
  --gold:     #B8912B;
  --gold2:    #C9A24B;

  /* Neutrals */
  --bg:       #FFFFFF;
  --bg-alt:   #F7F7F9;
  --ink:      #1D1D1F;
  --ink-2:    #3A3A3C;
  --ink-3:    #6E6E73;
  --line:     #E8E8ED;

  --dark:     #1D1D1F;   /* kept for legacy references */
  --dark2:    #1D1D1F;
  --dark3:    #3A3A3C;
  --mid:      #6E6E73;
  --light:    #F7F7F9;
  --white:    #FFFFFF;
  --border:   #E8E8ED;
  --primary:  #C41E3A;   /* base.html active-nav reference */

  --shadow-sm: 0 1px 3px rgba(16,17,20,0.06);
  --shadow-md: 0 6px 24px rgba(16,17,20,0.08);
  --shadow-lg: 0 24px 60px rgba(16,17,20,0.12);
  --radius:   14px;
  --radius2:  22px;
  --nav-h:    68px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Segoe UI", "Helvetica Neue", "Noto Sans KR", "Apple SD Gothic Neo",
          "Malgun Gothic", "Noto Sans JP", "Noto Sans SC", "PingFang SC",
          "Microsoft YaHei", sans-serif;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
}

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

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

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Utilities ─────────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; }
.section-sm { padding: 64px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.badge-red   { background: rgba(196,30,58,0.08);  color: var(--red); }
.badge-gold  { background: rgba(184,145,43,0.12); color: var(--gold); }

.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink);
}
.section-sub {
  font-size: 17px; color: var(--ink-3); font-weight: 400;
  margin-top: 16px; max-width: 600px; line-height: 1.7;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 16px auto 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 100px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .25s ease; border: none;
  font-family: inherit; white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--ink); background: var(--bg-alt); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-gold {
  background: var(--red); color: var(--white);
  box-shadow: 0 4px 16px rgba(196,30,58,0.25);
}
.btn-gold:hover { background: #a81831; transform: translateY(-1px); }

/* Hero primary CTA — brand red instead of black */
.hero-btns .btn-primary {
  background: var(--red); color: var(--white);
  box-shadow: 0 4px 16px rgba(196,30,58,0.25);
}
.hero-btns .btn-primary:hover {
  background: #a81831; transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(196,30,58,0.32);
}
/* Bottom CTA section primary — brand red instead of black */
.cta-section .btn-dark {
  background: var(--red); color: var(--white);
  box-shadow: 0 4px 16px rgba(196,30,58,0.25);
}
.cta-section .btn-dark:hover { background: #a81831; transform: translateY(-1px); }

/* Reveal animation (JS adds .visible on .fade-up) */
.fade-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ───────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  transition: box-shadow .3s, background .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 0 rgba(16,17,20,0.06), 0 8px 24px rgba(16,17,20,0.04);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 28px;
  gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--white); font-family: var(--serif);
  font-weight: 700;
}
.nav-logo-text { font-size: 19px; font-weight: 700; color: var(--red); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--ink); }

/* ── NAV DROPDOWN (Plan Guide ▸ Word Study) ── */
.nav-has-sub { position: relative; }
.nav-caret { font-size: 10px; opacity: .6; margin-left: 2px; }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 8px; min-width: 190px; list-style: none; margin: 0;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-has-sub:hover .nav-sub, .nav-has-sub:focus-within .nav-sub {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-sub li { list-style: none; }
.nav-sub a {
  display: block; padding: 10px 16px; border-radius: 9px; font-size: 13.5px;
  white-space: nowrap;
}
.nav-sub a:hover { background: var(--bg-alt); color: var(--ink); }

.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-cta .btn-outline { border-color: var(--line); color: var(--ink); }
.nav-cta .btn-outline:hover { border-color: var(--ink); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; background: none; border: none; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; display: block; }

/* ── MOBILE MENU ──────────────────────────────────────── */
#mobile-menu {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(18px);
  padding: 20px 28px; z-index: 999; flex-direction: column; gap: 4px;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
#mobile-menu.open { display: flex; }
#mobile-menu > a {
  color: var(--ink-2); font-size: 16px; font-weight: 500;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
#mobile-menu .btn { width: 100%; justify-content: center; margin-top: 12px; }
#mobile-menu .mobile-sub-link { padding-left: 20px; font-size: 14.5px; color: var(--ink-3); }

#mobile-lang-section { border-bottom: 1px solid var(--line); }
#mobile-lang-header {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; cursor: pointer;
  color: var(--ink-2); font-size: 15px; font-weight: 500;
  padding: 12px 0; text-align: left;
}
#mobile-lang-header:hover { color: var(--ink); }
.mobile-lang-arrow { margin-left: auto; font-size: 11px; opacity: .6; transition: transform .2s; }
#mobile-lang-list {
  display: none; grid-template-columns: 1fr 1fr; gap: 2px;
  padding-bottom: 10px; max-height: 220px; overflow-y: auto;
}
#mobile-lang-list.open { display: grid; }
.mobile-lang-item {
  color: var(--ink-3); font-size: 13px;
  padding: 8px 10px; cursor: pointer; border-radius: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-lang-item:hover { color: var(--ink); background: var(--bg-alt); }
.mobile-lang-item.active { color: var(--red); font-weight: 700; }

/* ── HERO ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  background: var(--bg);
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero-glow { display: none; } /* heavy glow removed for white-luxury */

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px;
  align-items: center; padding: 60px 0 80px; width: 100%;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-alt); border: 1px solid var(--line);
  color: var(--ink-3); padding: 7px 16px; border-radius: 100px;
  font-size: 12.5px; font-weight: 600; margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(32px, 4.1vw, 46px);
  font-weight: 700; line-height: 1.12; color: var(--ink);
  letter-spacing: -0.02em;
}
.hero-title .accent { color: var(--red); }
.hero-title .cn {
  font-family: var(--serif);
  display: block; font-size: 0.32em; color: var(--ink-3);
  letter-spacing: 6px; margin-top: 14px; font-weight: 400;
}
.hero-desc {
  font-size: 16px; color: var(--ink-3); font-weight: 400;
  margin: 22px 0 32px; line-height: 1.65; max-width: 460px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex; gap: 40px; margin-top: 52px;
  padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stat-num { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.hero-stat-num span { color: var(--red); }
.hero-stat-label { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* Hero right visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-img {
  width: 100%; max-width: 440px; height: auto;
  border-radius: 28px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-badge {
  position: absolute; background: var(--white); border-radius: 14px;
  padding: 12px 16px; box-shadow: var(--shadow-md);
  font-size: 13px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
}
.hero-badge-icon { font-size: 18px; }
.hero-badge-1 { top: 30px; right: -8px; }
.hero-badge-2 { bottom: 50px; left: -18px; }
.hero-badge-sub { font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

/* (legacy phone mockup classes kept for safety, hidden in new design) */
.hero-phone, .phone-screen, .phone-top, .phone-logo, .phone-level,
.phone-word, .phone-cn, .phone-pinyin, .phone-kr, .phone-options,
.phone-opt, .phone-progress, .phone-prog-label, .phone-prog-bar, .phone-prog-fill { display: none; }

/* ── HOW IT WORKS ──────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 64px;
}
.steps-grid::before { display: none; } /* connecting line removed */
.step {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius2); padding: 36px 26px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: var(--white); }
.step-num {
  width: 60px; height: 60px; border-radius: 16px;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 0 20px;
}
.step-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.step-desc { font-size: 14px; color: var(--ink-3); line-height: 1.7; }

/* ── STATS ──────────────────────────────────────────────── */
.stats-section { background: var(--bg-alt); padding: 84px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat-num { font-size: 52px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.stat-num sup { font-size: 24px; }
.stat-label { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

/* ── TESTIMONIALS ──────────────────────────────────────── */
.testimonials-section { background: var(--bg-alt); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px;
}
.testimonial {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius2); padding: 36px 32px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--gold); font-size: 16px; margin-bottom: 18px; letter-spacing: 2px; }
.testimonial-text { font-size: 15px; color: var(--ink-2); line-height: 1.8; margin-bottom: 24px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--white);
}
.testimonial-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.testimonial-level { font-size: 12.5px; color: var(--ink-3); }

/* ── NOTICE ─────────────────────────────────────────────── */
.notice-grid { display: flex; flex-direction: column; gap: 10px; margin-top: 44px; }
.notice-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; transition: all .25s;
  display: flex; align-items: center; gap: 14px;
}
.notice-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.notice-cat { font-size: 12px; font-weight: 600; color: var(--red); white-space: nowrap; flex-shrink: 0; margin: 0; }
.notice-title {
  font-size: 15px; font-weight: 500; margin: 0; line-height: 1.4; color: var(--ink);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-date { font-size: 13px; color: var(--ink-3); white-space: nowrap; flex-shrink: 0; }
.notice-new {
  display: inline-block; background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; margin-left: 8px;
}

/* ── APP DOWNLOAD ────────────────────────────────────────── */
.app-section { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.app-title { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin: 18px 0 20px; letter-spacing: -0.02em; line-height: 1.15; }
.app-desc { font-size: 16px; color: var(--ink-3); line-height: 1.7; margin-bottom: 36px; max-width: 460px; }
.app-btns { display: flex; flex-wrap: wrap; gap: 14px; }
.app-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 22px;
  transition: all .25s; cursor: pointer;
}
.app-btn:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.app-btn-icon { font-size: 28px; width: 28px; height: 28px; object-fit: contain; display: inline-block; }
.app-btn-store { font-size: 11px; color: var(--ink-3); }
.app-btn-name { font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.app-qr-group { display: flex; gap: 20px; margin-top: 32px; }
.app-qr {
  background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px; text-align: center; width: 120px;
}
.qr-code {
  width: 88px; height: 88px; background: var(--ink);
  border-radius: 10px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,0.5); text-align: center;
}
.app-qr-label { font-size: 12px; font-weight: 600; color: var(--ink); }
.app-phones { position: relative; height: 460px; display: flex; justify-content: center; }
.app-phone-img {
  width: 200px; background: var(--ink);
  border-radius: 36px; border: 5px solid #2a2a2e;
  padding: 16px; box-shadow: var(--shadow-lg);
  position: absolute;
}
.app-phone-img:first-child { left: 40px; top: 20px; z-index: 1; }
.app-phone-img:last-child { right: 40px; top: 60px; transform: rotate(5deg); }
.phone-screen-mini {
  background: linear-gradient(135deg, #1d1d1f, #000);
  border-radius: 24px; height: 320px; padding: 16px;
}

/* ── CTA BANNER ─────────────────────────────────────────── */
.cta-section {
  background: var(--bg-alt); padding: 110px 0; text-align: center;
  border-top: 1px solid var(--line);
}
.cta-title { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; color: var(--ink); margin-bottom: 16px; letter-spacing: -0.02em; }
.cta-sub { font-size: 17px; color: var(--ink-3); margin-bottom: 40px; }
.cta-btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── WORD STUDY PAGE ────────────────────────────────────── */
.words-hero {
  background: var(--bg); padding: 150px 0 60px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.words-badge {
  display: inline-block; background: rgba(196,30,58,0.08); color: var(--red);
}
.words-title {
  font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; color: var(--ink);
  letter-spacing: -0.02em; margin: 18px 0 16px; line-height: 1.15;
}
.words-sub {
  font-size: 16px; color: var(--ink-3); max-width: 620px; margin: 0 auto; line-height: 1.7;
}
.words-section { padding: 64px 0 100px; background: var(--white); }
.level-select {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 44px;
}
.level-chip {
  padding: 9px 18px; border-radius: 100px; cursor: pointer;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  transition: all .2s ease;
}
.level-chip:hover { border-color: var(--ink-2); color: var(--ink); }
.level-chip.active {
  background: var(--red); border-color: var(--red); color: var(--white);
  box-shadow: 0 4px 14px rgba(196,30,58,0.25);
}
.level-chip .chip-hsk { display: block; font-size: 10.5px; font-weight: 500; opacity: .75; margin-top: 1px; }
.word-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.word-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 22px 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
}
.word-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border-color: rgba(196,30,58,0.25);
}
.word-zh {
  font-size: 26px; font-weight: 700; color: var(--ink);
  font-family: var(--serif); letter-spacing: 1px; line-height: 1.2;
}
.word-pinyin { font-size: 13px; color: var(--red); margin-top: 3px; font-weight: 500; }
.word-en { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 12px; }
.word-example {
  font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 6px;
  padding-top: 10px; border-top: 1px solid var(--line);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,0.55); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand .nav-logo-text { color: var(--white); }
.footer-brand .nav-logo-text span { color: var(--gold2); }
.footer-desc { font-size: 14px; line-height: 1.8; }
.footer-sns { display: flex; gap: 12px; margin-top: 24px; }
.footer-sns a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 16px; transition: all .2s;
}
.footer-sns a:hover { background: var(--red); color: var(--white); }
.footer-col h4 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center; font-size: 13px;
}
.footer-bottom a:hover { color: var(--white); }

/* ── LANGUAGE SELECTOR ──────────────────────────────────── */
.lang-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: transparent; border: 1px solid var(--line);
  border-radius: 100px; padding: 8px 14px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap; font-family: inherit;
}
.lang-btn:hover { border-color: var(--ink); color: var(--ink); }
.lang-globe { font-size: 14px; }
.lang-arrow { font-size: 10px; opacity: .6; transition: transform .2s; }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px;
  min-width: 200px; max-height: 360px; overflow-y: auto;
  box-shadow: var(--shadow-lg); z-index: 1100;
}
.lang-menu.open { display: grid; grid-template-columns: 1fr 1fr; }
.lang-item {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: var(--ink-2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.lang-item:hover { background: var(--bg-alt); color: var(--ink); }
.lang-item.active { color: var(--red); font-weight: 700; }

/* ── MODAL base styles (shared with auth.css) ────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 2000; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius2);
  padding: 40px; width: 90%; max-width: 480px;
  box-shadow: var(--shadow-lg); position: relative;
  max-height: 90vh; overflow-y: auto;
  min-height: 300px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--bg-alt); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 15px; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--line); color: var(--ink); }
.modal-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--ink); letter-spacing: -0.02em; }
.modal-sub { font-size: 14px; color: var(--ink-3); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; color: var(--ink-2); }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s; outline: none;
}
.form-input:focus { border-color: var(--ink); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236E6E73' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--ink-3); }
.form-check input { margin-top: 3px; accent-color: var(--red); }
.tab-btns { display: flex; gap: 0; margin-bottom: 28px; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.tab-btn { flex: 1; padding: 12px; border: none; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; color: var(--ink-3); font-family: inherit; }
.tab-btn.active { background: var(--ink); color: var(--white); }

.modal-brand { display: flex; align-items: center; gap: 8px; justify-content: center; margin-bottom: 20px; }
.modal-brand-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); font-family: var(--serif); font-weight: 700;
}
.modal-brand-text { font-size: 18px; font-weight: 800; color: var(--ink); }
.modal-brand-text span { color: var(--red); }

.modal-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0 16px; color: var(--ink-3); font-size: 13px; }
.modal-divider::before, .modal-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.btn-outline-modal {
  width: 100%; padding: 13px;
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; transition: all .2s; text-align: center; display: block;
  font-family: inherit;
}
.btn-outline-modal:hover { background: var(--bg-alt); border-color: var(--ink); color: var(--ink); }

.modal-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--ink-3); font-size: 13px; font-weight: 600;
  padding: 0; margin-bottom: 18px; transition: color .2s; font-family: inherit;
}
.modal-back:hover { color: var(--ink); }

.form-link { font-size: 12px; color: var(--ink-3); text-decoration: underline; transition: color .2s; }
.form-link:hover { color: var(--red); }

.auth-error {
  background: rgba(196,30,58,0.07);
  border: 1px solid rgba(196,30,58,0.2);
  color: var(--red);
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; margin-bottom: 12px; line-height: 1.5;
  display: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .word-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .lang-selector { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding-top: 110px; }
  .hero-visual { order: -1; }
  .hero-img { max-width: 320px; }
  .hero-badge { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 24px; margin-top: 36px; }
  .section { padding: 70px 0; }
  .steps-grid, .stats-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; gap: 48px; }
  .app-phones { height: 320px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .word-grid { grid-template-columns: 1fr; gap: 14px; }
  .words-hero { padding: 130px 0 44px; }
  /* pricing 3-col inline grid → 1 col */
  #pricing > .container > div[style*="repeat(3,1fr)"],
  #pricing > .container > div[style*="grid-template-columns:repeat"] {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
  }
}
