/* ===========================
   SayKorean — Global Styles
   =========================== */

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f7fb;
  color: #1a1a2e;
}

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

/* ---- NAV ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: #fff;
  border-bottom: 1px solid #e4eaf3;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo { font-size: 22px; font-weight: 600; color: #185FA5; letter-spacing: -0.5px; }
.logo span { color: #D85A30; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 14px; color: #555; transition: color 0.15s; }
.nav-links a:hover { color: #185FA5; }
.nav-btn {
  background: #185FA5;
  color: #fff !important;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.nav-btn:hover { background: #0C447C; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: #185FA5;
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: #0C447C; }

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: #185FA5;
  border: 2px solid #185FA5;
  padding: 12px 26px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover { background: #E6F1FB; }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 60px 40px 50px;
  text-align: center;
  background: #E6F1FB;
  overflow: hidden;
  min-height: 420px;
}
.hero-inner { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: #B5D4F4;
  color: #0C447C;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 38px;
  font-weight: 600;
  color: #042C53;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero h1 em { color: #D85A30; font-style: normal; }
.hero p {
  font-size: 16px;
  color: #185FA5;
  max-width: 440px;
  margin: 0 auto 26px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; }

/* hangul chars row */
.hangul-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hangul-char {
  width: 46px; height: 46px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #B5D4F4;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #185FA5; font-weight: 600;
}

/* ---- WORD BUBBLES ---- */
.word-bubble {
  position: absolute;
  background: #fff;
  border: 1px solid #B5D4F4;
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
}
.word-syllables { display: flex; gap: 3px; align-items: flex-end; }
.syl { display: flex; flex-direction: column; align-items: center; }
.syl-kr { font-size: 16px; font-weight: 600; color: #185FA5; line-height: 1; }
.syl-rom { font-size: 10px; color: #378ADD; line-height: 1.5; }
.word-dash { font-size: 11px; color: #B5D4F4; margin-bottom: 5px; }
.word-eng { font-size: 10px; color: #888; margin-top: 2px; }

.w1 { top: 20px;  left: 30px;  transform: rotate(-5deg); }
.w2 { top: 100px; left: 20px;  transform: rotate(4deg); }
.w3 { top: 20px;  right: 30px; transform: rotate(4deg); }
.w4 { top: 100px; right: 20px; transform: rotate(-4deg); }
.w5 { bottom: 60px; left: 25px;  transform: rotate(3deg); }
.w6 { bottom: 60px; right: 25px; transform: rotate(-3deg); }
.w7 { bottom: 16px; left: 50%;  transform: translateX(-50%) rotate(2deg); }

/* ---- LEVELS ---- */
.levels { padding: 48px 40px; max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.section-title { font-size: 22px; font-weight: 600; color: #1a1a2e; margin-bottom: 22px; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.level-card {
  background: #fff;
  border: 1px solid #e4eaf3;
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.level-card:hover { border-color: #378ADD; transform: translateY(-2px); }
.level-num { font-size: 11px; font-weight: 600; margin-bottom: 5px; }
.level-name { font-size: 15px; font-weight: 600; color: #1a1a2e; margin-bottom: 5px; }
.level-desc { font-size: 12px; color: #777; line-height: 1.5; }
.level-lock { font-size: 11px; margin-top: 10px; color: #3B6D11; }
.level-lock.pro { color: #BA7517; }

.lv1 .level-num { color: #D85A30; }
.lv2 .level-num { color: #BA7517; }
.lv3 .level-num { color: #3B6D11; }
.lv4 .level-num { color: #185FA5; }
.lv5 .level-num { color: #533AB7; }
.lv6 .level-num { color: #993556; }

/* ---- STATS ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 40px 48px;
  max-width: 1100px;
  margin: 0 auto;
}
.stat-card { background: #fff; border-radius: 10px; padding: 16px; text-align: center; border: 1px solid #e4eaf3; }
.stat-num { font-size: 26px; font-weight: 700; color: #185FA5; }
.stat-label { font-size: 13px; color: #888; margin-top: 3px; }

/* ---- CTA ---- */
.cta {
  margin: 0 40px 40px;
  background: #E6F1FB;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
  border: 1px solid #B5D4F4;
}
.cta p { font-size: 18px; font-weight: 600; color: #042C53; margin-bottom: 8px; }
.cta-sub { display: block; font-size: 14px; color: #185FA5; margin-bottom: 18px; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid #e4eaf3;
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}
.footer-logo { font-size: 16px; font-weight: 600; color: #185FA5; }
.footer-logo span { color: #D85A30; }
.footer-copy { font-size: 12px; color: #aaa; }
