/* ============================================================
   WoWoChinese - 공통 스타일
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800;900&family=Noto+Serif+SC:wght@400;700;900&display=swap');

:root {
  --red:     #C41E3A;
  --red2:    #E02A4A;
  --gold:    #D4AF37;
  --gold2:   #F0C94A;
  --dark:    #0F172A;
  --dark2:   #1E293B;
  --dark3:   #334155;
  --mid:     #64748B;
  --light:   #F1F5F9;
  --white:   #FFFFFF;
  --border:  #E2E8F0;
  --grad1:   linear-gradient(135deg, #C41E3A 0%, #8B0000 100%);
  --grad2:   linear-gradient(135deg, #D4AF37 0%, #C41E3A 100%);
  --shadow:  0 4px 24px rgba(0,0,0,0.08);
  --shadow2: 0 8px 48px rgba(196,30,58,0.15);
  --radius:  12px;
  --radius2: 20px;
  --nav-h:   72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── 유틸 ─────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
}
.badge-red { background: rgba(196,30,58,0.1); color: var(--red); }
.badge-gold { background: rgba(212,175,55,0.15); color: #9a7a10; }

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; line-height: 1.25;
  color: var(--dark);
}
.section-sub {
  font-size: 16px; color: var(--mid);
  margin-top: 14px; max-width: 560px;
}
.text-center { text-align: center; }
.text-center .section-sub { margin: 14px auto 0; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .25s; border: none;
}
.btn-primary {
  background: var(--grad1); color: var(--white);
  box-shadow: 0 4px 20px rgba(196,30,58,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(196,30,58,0.45); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }
.btn-dark { background: var(--dark2); color: var(--white); }
.btn-dark:hover { background: var(--dark3); transform: translateY(-2px); }
.btn-gold { background: var(--grad2); color: var(--white); box-shadow: 0 4px 20px rgba(212,175,55,0.35); }
.btn-gold:hover { transform: translateY(-2px); }

/* 애니메이션 */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.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;
  transition: all .3s;
}
.nav.scrolled {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--white); font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}
.nav-logo-text {
  font-size: 20px; font-weight: 800; color: var(--white);
  letter-spacing: -0.5px;
}
.nav-logo-text span { color: var(--gold2); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-links a {
  font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.8);
  transition: color .2s; position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--gold2); border-radius: 2px;
  transform: scaleX(0); transition: transform .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); 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(15,23,42,0.98); backdrop-filter: blur(12px);
  padding: 24px; z-index: 999; flex-direction: column; gap: 16px;
  max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
#mobile-menu.open { display: flex; }
#mobile-menu > a {
  color: rgba(255,255,255,0.8); font-size: 16px; font-weight: 600;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
#mobile-menu .btn { width: 100%; justify-content: center; }

/* Mobile language section (collapsible) */
#mobile-lang-section { border-bottom: 1px solid rgba(255,255,255,0.08); }
#mobile-lang-header {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 600;
  padding: 10px 0; text-align: left;
}
#mobile-lang-header:hover { color: #fff; }
.mobile-lang-arrow {
  margin-left: auto; font-size: 11px; opacity: 0.7;
  transition: transform .2s;
}
#mobile-lang-list {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 2px; padding-bottom: 8px;
  max-height: 200px; overflow-y: auto;
}
#mobile-lang-list.open { display: grid; }
.mobile-lang-item {
  color: rgba(255,255,255,0.7); font-size: 13px;
  padding: 6px 8px; cursor: pointer; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mobile-lang-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mobile-lang-item.active { color: var(--gold2); font-weight: 700; }

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E1035 40%, #3B0A14 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-glow {
  position: absolute; width: 800px; height: 800px;
  border-radius: 50%; pointer-events: none;
  filter: blur(120px); opacity: 0.25;
}
.hero-glow-1 { background: var(--red); top: -200px; right: -200px; }
.hero-glow-2 { background: var(--gold); bottom: -200px; left: -100px; }

.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; padding: var(--nav-h) 0 60px;
}
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,175,55,0.15); border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold2); padding: 8px 18px; border-radius: 100px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 900; line-height: 1.15; color: var(--white);
  letter-spacing: -1px;
}
.hero-title .accent { color: var(--gold2); }
.hero-title .cn {
  font-family: 'Noto Serif SC', serif;
  display: block; font-size: 0.6em; color: rgba(255,255,255,0.5);
  letter-spacing: 4px; margin-top: 8px;
}
.hero-desc {
  font-size: 17px; color: rgba(255,255,255,0.7);
  margin: 24px 0 36px; line-height: 1.8; max-width: 500px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-num {
  font-size: 28px; font-weight: 900; color: var(--white);
}
.hero-stat-num span { color: var(--gold2); }
.hero-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* Hero Right - Phone Mockup */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
}
.hero-phone {
  width: 280px; background: var(--dark2);
  border-radius: 40px; border: 6px solid #334155;
  padding: 24px 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  position: relative;
}
.hero-phone::before {
  content: ''; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 6px; background: #475569; border-radius: 3px;
}
.phone-screen {
  background: linear-gradient(135deg, #1E293B, #0F172A);
  border-radius: 28px; padding: 20px 16px; min-height: 420px;
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.phone-logo { font-size: 14px; font-weight: 800; color: var(--white); }
.phone-logo span { color: var(--gold2); }
.phone-level {
  background: rgba(212,175,55,0.2); color: var(--gold2);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.phone-word {
  text-align: center; padding: 24px 16px; margin-bottom: 16px;
  background: rgba(255,255,255,0.04); border-radius: 16px;
}
.phone-cn { font-family: 'Noto Serif SC',serif; font-size: 48px; color: var(--white); font-weight: 700; }
.phone-pinyin { font-size: 16px; color: var(--red2); margin: 8px 0 4px; }
.phone-kr { font-size: 14px; color: rgba(255,255,255,0.6); }
.phone-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.phone-opt {
  background: rgba(255,255,255,0.06); border-radius: 10px;
  padding: 12px; text-align: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all .2s;
}
.phone-opt.correct { background: rgba(5,150,105,0.25); color: #34D399; }
.phone-progress { margin-top: 20px; }
.phone-prog-label { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.phone-prog-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.phone-prog-fill { height: 100%; background: var(--grad2); border-radius: 2px; width: 65%; }
.hero-badge {
  position: absolute; background: var(--white); border-radius: 16px;
  padding: 12px 16px; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  font-size: 13px; font-weight: 700; color: var(--dark);
  display: flex; align-items: center; gap: 8px;
}
.hero-badge-icon { font-size: 20px; }
.hero-badge-1 { top: 40px; right: -20px; }
.hero-badge-2 { bottom: 60px; left: -30px; }
.hero-badge-sub { font-size: 11px; font-weight: 400; color: var(--mid); }

/* ── FEATURES ──────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius2); padding: 32px;
  transition: all .3s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad1); transform: scaleX(0); transition: transform .3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow2); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  background: rgba(196,30,58,0.08);
}
.feature-title { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-desc { font-size: 14px; color: var(--mid); line-height: 1.8; }

/* ── LEVELS ────────────────────────────────────────────────── */
.levels-section { background: var(--dark); }
.levels-section .section-title { color: var(--white); }
.levels-section .section-sub { color: rgba(255,255,255,0.5); }
.levels-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 60px;
}
.level-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 24px 20px;
  transition: all .3s; cursor: pointer;
}
.level-card:hover { background: rgba(196,30,58,0.15); border-color: rgba(196,30,58,0.4); transform: translateY(-4px); }
.level-num { font-size: 32px; font-weight: 900; color: var(--red2); margin-bottom: 6px; }
.level-name { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.level-hsk { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.level-bar { height: 3px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.level-fill { height: 100%; background: var(--grad1); border-radius: 2px; }
.level-words { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 8px; }

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 60px; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 40px; left: 12%; right: 12%;
  height: 2px; background: linear-gradient(90deg, var(--red), var(--gold));
}
.step { text-align: center; padding: 0 16px; }
.step-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 20px; position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(196,30,58,0.2);
}
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 13px; color: var(--mid); }

/* ── STATS ─────────────────────────────────────────────────── */
.stats-section {
  background: var(--grad1); padding: 80px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat-num { font-size: 48px; font-weight: 900; color: var(--white); line-height: 1; }
.stat-num sup { font-size: 24px; }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-top: 8px; }

/* ── PRICING ───────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px; align-items: start;
}
.pricing-card {
  border: 2px solid var(--border); border-radius: var(--radius2);
  padding: 36px 28px; transition: all .3s; position: relative;
}
.pricing-card.popular {
  border-color: var(--red); transform: scale(1.04);
  box-shadow: var(--shadow2);
}
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad1); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 18px; border-radius: 100px;
}
.pricing-name { font-size: 15px; font-weight: 700; color: var(--mid); margin-bottom: 12px; }
.pricing-price { font-size: 44px; font-weight: 900; color: var(--dark); line-height: 1; }
.pricing-price span { font-size: 16px; font-weight: 400; color: var(--mid); }
.pricing-period { font-size: 13px; color: var(--mid); margin: 8px 0 24px; }
.pricing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.pricing-features { display: flex; flex-direction: column; gap: 12px; }
.pricing-feat {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--dark3);
}
.pricing-feat .check { color: var(--red); font-size: 16px; font-weight: 700; }
.pricing-feat .cross { color: #CBD5E1; }
.pricing-btn { width: 100%; margin-top: 28px; justify-content: center; }

/* ── APP DOWNLOAD ──────────────────────────────────────────── */
.app-section {
  background: linear-gradient(135deg, #0F172A, #1E1035);
  color: var(--white);
}
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.app-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin: 16px 0 20px; }
.app-desc { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 36px; }
.app-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.app-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius); padding: 16px 24px;
  transition: all .3s; cursor: pointer;
}
.app-btn:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.app-btn-icon { font-size: 32px; }
.app-btn-store { font-size: 11px; color: rgba(255,255,255,0.5); }
.app-btn-name { font-size: 17px; font-weight: 700; color: var(--white); margin-top: 2px; }
.app-qr-group { display: flex; gap: 24px; margin-top: 32px; }
.app-qr {
  background: var(--white); border-radius: 12px; padding: 16px;
  text-align: center; width: 120px;
}
.qr-code {
  width: 88px; height: 88px; background: var(--dark);
  border-radius: 8px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: rgba(255,255,255,0.4); text-align: center;
}
.app-qr-label { font-size: 12px; font-weight: 700; color: var(--dark); }
.app-phones { position: relative; height: 480px; display: flex; justify-content: center; }
.app-phone-img {
  width: 200px; background: var(--dark2);
  border-radius: 36px; border: 5px solid #334155;
  padding: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  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, #1E293B, #0F172A);
  border-radius: 24px; height: 320px; padding: 16px;
}

/* ── NOTICE ────────────────────────────────────────────────── */
.notice-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 48px; }
.notice-card {
  background: var(--light); border-radius: var(--radius); padding: 16px 20px;
  transition: all .3s; border: 1px solid transparent;
  display: flex; align-items: center; gap: 12px;
}
.notice-card:hover { background: var(--white); border-color: var(--red); box-shadow: var(--shadow); }
.notice-cat {
  font-size: 11px; font-weight: 700; color: var(--red);
  white-space: nowrap; flex-shrink: 0; margin: 0;
}
.notice-title {
  font-size: 14px; font-weight: 600; margin: 0; line-height: 1.3;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notice-date { font-size: 12px; color: var(--mid); 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: 4px; margin-left: 6px;
}

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-section { background: var(--light); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.testimonial {
  background: var(--white); border-radius: var(--radius2); padding: 32px;
  box-shadow: var(--shadow); transition: all .3s;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.testimonial-stars { color: var(--gold); font-size: 18px; margin-bottom: 16px; }
.testimonial-text { font-size: 14px; color: var(--dark3); line-height: 1.8; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad1); display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; color: var(--white);
}
.testimonial-name { font-size: 14px; font-weight: 700; }
.testimonial-level { font-size: 12px; color: var(--mid); }

/* ── CTA BANNER ────────────────────────────────────────────── */
.cta-section {
  background: var(--grad2); padding: 100px 0; text-align: center;
}
.cta-title { font-size: clamp(28px, 4vw, 48px); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.cta-sub { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }
.cta-btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,0.5); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.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.08);
  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: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px; padding: 7px 14px;
  color: var(--white); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-globe { font-size: 14px; }
.lang-arrow { font-size: 10px; opacity: 0.7; transition: transform .2s; }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px; padding: 8px;
  min-width: 200px; max-height: 360px; overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4); z-index: 1100;
  column-count: 1;
}
.lang-menu.open { display: grid; grid-template-columns: 1fr 1fr; }
.lang-item {
  padding: 8px 12px; border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,0.8);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.lang-item:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.lang-item.active { color: var(--gold2); font-weight: 700; }

/* ── MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 2000; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius2);
  padding: 40px; width: 90%; max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3); position: relative;
  max-height: 90vh; overflow-y: auto;
  /* 탭 전환 시 높이 변화 방지: 가입 폼은 충분한 높이 유지 */
  min-height: 300px;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--light); border: none; border-radius: 50%;
  width: 32px; height: 32px; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.modal-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-sub { font-size: 14px; color: var(--mid); margin-bottom: 28px; }
.form-group { margin-bottom: 18px; }
.form-label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 8px; }
.form-input {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s; outline: none;
}
.form-input:focus { border-color: var(--red); }
.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='%2364748B' 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(--mid); }
.form-check input { margin-top: 3px; accent-color: var(--red); }
.tab-btns { display: flex; gap: 0; margin-bottom: 28px; border: 1.5px solid var(--border); 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(--mid); }
.tab-btn.active { background: var(--red); color: var(--white); }

/* ── MODAL LOGIN/REGISTER EXTRAS ───────────────────────────── */
.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(--grad1);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); font-family: 'Noto Serif SC', serif;
  font-weight: 700;
}
.modal-brand-text {
  font-size: 18px; font-weight: 800; color: var(--dark);
}
.modal-brand-text span { color: var(--red); }

.modal-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 16px; color: var(--mid); font-size: 13px;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-outline-modal {
  width: 100%; padding: 13px;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 10px; font-size: 14px; font-weight: 700;
  color: var(--dark); cursor: pointer; transition: all .2s;
  text-align: center; display: block;
}
.btn-outline-modal:hover {
  background: var(--light); border-color: var(--red); color: var(--red);
}

.modal-back {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--mid); font-size: 13px; font-weight: 600;
  padding: 0; margin-bottom: 18px; transition: color .2s;
}
.modal-back:hover { color: var(--dark); }

.form-link {
  font-size: 12px; color: var(--mid); text-decoration: underline; transition: color .2s;
}
.form-link:hover { color: var(--red); }

/* Auth error message */
.auth-error {
  background: rgba(196,30,58,0.08);
  border: 1px solid rgba(196,30,58,0.25);
  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) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta, .lang-selector { display: none; }
  .hamburger { display: flex; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; padding-top: 120px; }
  .hero-visual { order: -1; }
  .hero-phone { width: 240px; }
  .features-grid, .levels-grid, .steps-grid,
  .stats-grid, .pricing-grid, .testimonials-grid,
  .app-grid, .footer-grid { grid-template-columns: 1fr; }
  /* 플랜 카드 3컬럼 → 1컬럼 */
  #pricing > .container > div[style*="repeat(3,1fr)"],
  #pricing > .container > div[style*="grid-template-columns:repeat"] {
    grid-template-columns: 1fr !important;
    max-width: 420px !important;
  }
  .pricing-card.popular { transform: scale(1); }
  .steps-grid::before { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .section { padding: 60px 0; }
  .app-phones { height: 300px; }
  .hero-badge { display: none; }
}
