/* ===== 나쏭클래스 - 기본 토큰 ===== */
:root {
  --navy: #1b1f3b;
  --navy-2: #2a2f5a;
  --accent: #6c4cf5;
  --accent-dark: #5536e0;
  --gold: #f2b84b;
  --text: #1d1f27;
  --muted: #5f6475;
  --line: #e6e7ee;
  --tint: #f6f5fd;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(27, 31, 59, 0.08);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 999; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1.5px solid transparent; transition: background .2s, color .2s, transform .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

/* ===== 헤더 ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--navy); }
.logo__mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--navy-2)); color: #fff; font-size: 17px;
}
.nav { flex: 1; }
.nav ul { display: flex; gap: 28px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--muted); }
.nav a:hover { color: var(--accent); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ===== 히어로 ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(108,76,245,.18), transparent 60%),
    radial-gradient(700px 360px at -10% 110%, rgba(242,184,75,.16), transparent 60%),
    linear-gradient(180deg, #fbfaff, #fff);
}
.hero__inner { padding: 100px 20px 90px; text-align: center; }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(108,76,245,.1); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 20px;
}
.hero__title { font-size: clamp(34px, 5.6vw, 60px); font-weight: 800; color: var(--navy); }
.hero__title strong {
  background: linear-gradient(90deg, var(--accent), #a45cf0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 18px; font-size: clamp(15px, 2vw, 19px); font-weight: 700; color: var(--navy-2); }
.hero__desc { margin-top: 14px; font-size: 17px; color: var(--muted); }
.hero__cta { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stats {
  margin: 64px auto 0; max-width: 820px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stats li { padding: 26px 12px; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { font-size: clamp(22px, 3vw, 30px); color: var(--navy); font-weight: 800; }
.stats span { font-size: 14px; color: var(--muted); }

/* ===== 공통 섹션 ===== */
.section { padding: 110px 0; }
.section--tint { background: var(--tint); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 48px; }
.section__head--center { justify-content: center; text-align: center; }
.section h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; color: var(--navy); }
.link-more { font-weight: 700; color: var(--accent); white-space: nowrap; }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* 레슨 카드 */
.card {
  padding: 30px 26px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; background: var(--tint); margin-bottom: 22px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; color: var(--navy); }
.card p { font-size: 15px; color: var(--muted); }

/* 커리큘럼 스텝 */
.step { background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.step__num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .06em; }
.step h3 { font-size: 24px; margin: 10px 0 10px; color: var(--navy); }
.step p { font-size: 15px; color: var(--muted); }

/* 스플릿 */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center; }
.split__text h2 { margin-bottom: 32px; }
.features { display: grid; gap: 24px; margin-bottom: 36px; }
.features li { padding-left: 22px; border-left: 3px solid var(--accent); }
.features h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 15px; }

.mock { border-radius: 22px; overflow: hidden; background: var(--navy); box-shadow: 0 30px 60px rgba(27,31,59,.25); }
.mock__bar { display: flex; gap: 6px; padding: 14px 16px; background: #14172e; }
.mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3f6b; }
.mock__body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock__video {
  aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2f3566, #23284d); color: rgba(255,255,255,.6); font-weight: 700;
}
.mock__video--teacher { background: linear-gradient(135deg, var(--accent), #3d2aa3); color: #fff; }
.mock__wave { grid-column: 1 / -1; height: 54px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.mock__wave i { width: 6px; border-radius: 3px; background: var(--gold); animation: wave 1.2s ease-in-out infinite; }
.mock__wave i:nth-child(odd) { animation-delay: .2s; }
.mock__wave i:nth-child(3n) { animation-delay: .4s; }
.mock__wave i:nth-child(4n) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { height: 10px; } 50% { height: 46px; } }
.mock__note {
  grid-column: 1 / -1; background: rgba(255,255,255,.08); color: #fff; border-radius: 12px;
  padding: 12px 16px; font-size: 14px;
}

/* 후기 */
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.7; color: var(--text); }
.review figcaption { display: flex; flex-direction: column; font-size: 14px; }
.review figcaption strong { color: var(--navy); }
.review figcaption span { color: var(--muted); }

/* 강사 */
.teacher { display: grid; grid-template-columns: 0.8fr 1fr; gap: 70px; align-items: center; }
.teacher__photo {
  aspect-ratio: 4 / 5; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--tint), #e4defd); color: #b3a8e8; font-weight: 800; letter-spacing: .2em;
}
.teacher__text h2 { margin-bottom: 26px; }
.teacher__career { display: grid; gap: 10px; margin-bottom: 32px; }
.teacher__career li { position: relative; padding-left: 20px; color: var(--muted); }
.teacher__career li::before { content: "♪"; position: absolute; left: 0; color: var(--accent); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 14px; border: 1px solid var(--line); padding: 0 24px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 30px 20px 0; font-weight: 700; font-size: 17px;
  color: var(--navy); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* CTA */
.cta { background: linear-gradient(135deg, var(--navy), #3a2a8f); color: #fff; }
.cta__inner { padding: 100px 20px; text-align: center; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.cta p { margin-top: 14px; color: rgba(255,255,255,.75); font-size: 17px; }
.cta__buttons { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 푸터 */
.footer { background: #12152a; color: rgba(255,255,255,.6); font-size: 14px; }
.footer__inner { padding: 60px 20px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.logo--footer { color: #fff; margin-bottom: 10px; }
.footer__nav { display: flex; gap: 60px; justify-self: end; }
.footer__nav h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.footer__nav a { display: block; margin-bottom: 8px; }
.footer__nav a:hover { color: #fff; }
.footer__info { grid-column: 1 / -1; font-style: normal; line-height: 1.9; border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px; }
.footer__copy { grid-column: 1 / -1; font-size: 13px; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split, .teacher { gap: 44px; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .header__inner { gap: 12px; justify-content: space-between; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
  .nav a { display: block; padding: 12px 0; font-size: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { padding: 70px 16px 60px; }
  .stats { grid-template-columns: 1fr; }
  .stats li + li { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 76px 0; }
  .container { padding: 0 16px; }
  .section__head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .section__head--center { align-items: center; }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .split, .teacher { grid-template-columns: 1fr; }
  .teacher__photo { max-width: 360px; }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-self: start; gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
