:root {
  --teal: #2e5866;
  --teal-dark: #1f3f4a;
  --teal-light: #4a7a8a;
  --green: #93be3d;
  --green-dark: #7aa22f;
  --green-soft: #eef5dd;
  --ink: #1c2b31;
  --body: #4a5a61;
  --muted: #7d8b91;
  --line: #e3e9ea;
  --bg: #ffffff;
  --bg-soft: #f6f9f8;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(46, 88, 102, 0.08);
  --shadow-lg: 0 20px 50px rgba(46, 88, 102, 0.14);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont,
    "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", system-ui, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(46, 88, 102, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  text-decoration: none;
  color: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.25s;
}
.nav a:hover { color: var(--teal); }
.nav a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(147, 190, 61, 0.32); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); }
.btn-line { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-line:hover { background: rgba(255,255,255,0.14); border-color: #fff; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-kakao { background: #fee500; color: #3c1e1e; box-shadow: 0 8px 20px rgba(254, 229, 0, 0.4); }
.btn-kakao:hover { background: #f2da00; transform: translateY(-2px); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--teal);
  border-radius: 2px;
}
.nav-toggle span + span { margin-top: 6px; }

/* ---------- hero ---------- */
.hero {
  padding: 150px 0 96px;
  background:
    radial-gradient(900px 420px at 88% -8%, rgba(147, 190, 61, 0.16), transparent 62%),
    radial-gradient(760px 400px at 4% 8%, rgba(46, 88, 102, 0.09), transparent 60%),
    var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  margin: 22px 0 20px;
  letter-spacing: -0.035em;
}
.hero h1 .accent { color: var(--green-dark); }
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  max-width: 34em;
  margin: 0 0 34px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
  background: #fff;
  border-radius: 26px;
  padding: 20px 20px 26px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  max-width: 400px;
  margin-left: auto;
}
.hero-photo {
  position: relative;
  margin: 0 0 22px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}
.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 338 / 456;
  object-fit: cover;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  color: var(--teal);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
}
.hero-stats span { font-size: 0.82rem; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 46em; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-label {
  color: var(--green-dark);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 16px; }
.section-head p { margin: 0; font-size: 1.03rem; }

/* ---------- why cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #cfe0a8; }
.card .icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.card p { margin: 0; font-size: 0.96rem; }

/* ---------- curriculum ---------- */
.levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.level {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.level:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.level-top { background: var(--teal); color: #fff; padding: 26px 28px; }
.level:nth-child(2) .level-top { background: var(--teal-light); }
.level:nth-child(3) .level-top { background: var(--green-dark); }
.level-top .stage { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.82; font-weight: 700; }
.level-top h3 { color: #fff; font-size: 1.32rem; margin: 6px 0 4px; }
.level-top .target { font-size: 0.9rem; opacity: 0.9; }
.level-body { padding: 26px 28px 30px; flex: 1; }
.level-body ul { list-style: none; margin: 0; padding: 0; }
.level-body li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 0.95rem;
}
.level-body li:last-child { margin-bottom: 0; }
.level-body li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- photo pair ---------- */
.photo-pair {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-top: 48px;
}
.photo-pair figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
}
.photo-pair img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.band-photo {
  position: relative;
  margin: 30px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.band-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.step .num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { margin: 0; font-size: 0.93rem; }

/* ---------- reading system band ---------- */
.band { background: var(--teal); color: rgba(255,255,255,0.85); }
.band h2, .band h3 { color: #fff; }
.band .section-label { color: var(--green); }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.band-list { list-style: none; margin: 0; padding: 0; }
.band-list li {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.band-list li:last-child { border-bottom: 1px solid rgba(255,255,255,0.16); }
.band-list .k {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(147, 190, 61, 0.24);
  color: var(--green);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
}
.band-list h3 { font-size: 1.05rem; margin-bottom: 4px; }
.band-list p { margin: 0; font-size: 0.94rem; }

/* ---------- links / social ---------- */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.link-card {
  display: block;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.link-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--green); }
.link-card .tag { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-dark); }
.link-card h3 { font-size: 1.12rem; margin: 8px 0 8px; }
.link-card p { margin: 0 0 14px; font-size: 0.94rem; }
.link-card .go { color: var(--teal); font-weight: 700; font-size: 0.92rem; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.info-list { list-style: none; margin: 28px 0 0; padding: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list .lbl { flex-shrink: 0; width: 84px; font-weight: 700; color: var(--ink); font-size: 0.94rem; }
.info-list .val { font-size: 0.96rem; }
.info-list a { color: var(--teal); font-weight: 600; text-decoration: none; }
.info-list a:hover { text-decoration: underline; }

.consult-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px 34px;
  box-shadow: var(--shadow);
}
.consult-badge {
  display: inline-block;
  background: #fee500;
  color: #3c1e1e;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.consult-card h3 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); margin: 16px 0 14px; }
.consult-desc { margin: 0 0 26px; font-size: 0.97rem; }
.consult-desc strong { color: var(--teal); }

.kakao-id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--green-soft);
  border: 1px dashed #b9d182;
  border-radius: 14px;
  padding: 18px 20px;
}
.kakao-id-label { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.kakao-id strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.copy-status { margin: 10px 0 0; font-size: 0.86rem; font-weight: 600; color: var(--green-dark); min-height: 1.3em; }

.consult-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.consult-actions .btn { flex: 1 1 auto; }

.consult-tips { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.consult-tips li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.consult-tips li:last-child { margin-bottom: 0; }
.consult-tips li::before {
  content: "";
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
}
.consult-tips strong { color: var(--body); }

/* ---------- footer ---------- */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,0.66); padding: 56px 0 40px; font-size: 0.9rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer-brand strong { display: block; color: #fff; font-size: 1.06rem; margin-bottom: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: 0.84rem; color: rgba(255,255,255,0.45); }

/* ---------- floating CTA ---------- */
.float-cta {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  box-shadow: 0 12px 30px rgba(147, 190, 61, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.float-cta.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- reveal ---------- */
/* Scoped to .js so the page stays readable if the script never runs. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .band-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 128px 0 72px; }
  .hero-visual { order: -1; margin: 0 auto; max-width: 330px; }
  section { padding: 72px 0; }
  .band-grid { gap: 34px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .header-inner .btn { display: none; }
  .nav {
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    margin: 0;
    display: none;
    box-shadow: 0 12px 26px rgba(46, 88, 102, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .photo-pair { grid-template-columns: 1fr; gap: 16px; margin-top: 34px; }
  .consult-card { padding: 28px 22px; }
  .consult-actions .btn { flex-basis: 100%; }
  .float-cta { right: 14px; bottom: 14px; }
}

/* ---------- 헤더 학원 관리 로그인 ---------- */
.hdr-login { position: relative; flex-shrink: 0; }
.login-toggle.is-in { border-color: var(--green); color: var(--green-dark); }

.login-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 296px;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 18px 18px 16px;
  z-index: 120;
  text-align: left;
}
.login-panel::before {
  content: "";
  position: absolute;
  top: -7px; right: 26px;
  width: 12px; height: 12px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.login-panel-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}
.login-panel form { display: grid; gap: 8px; }
.login-panel input {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  outline: none;
}
.login-panel input:focus {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 3px rgba(74, 122, 138, 0.14);
}
.login-panel form .btn { width: 100%; margin-top: 2px; }
.login-msg { margin: 9px 0 0; font-size: 0.85rem; color: var(--body); min-height: 0; }
.login-msg.bad { color: #d9534f; }
.login-msg:empty { display: none; }
.login-help {
  margin: 10px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 720px) {
  .header-inner .hdr-login .btn { display: inline-flex; }
  .hdr-login { order: 2; margin-left: auto; }
  .nav-toggle { order: 3; margin-left: 8px; }
  .login-panel {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
  }
  .login-panel::before { display: none; }
}

/* ---------- 언론 보도 / 방송 출연 ---------- */
.press-list { display: grid; gap: 14px; max-width: 900px; margin: 0 auto; }
.press-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.press-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green);
}
.press-kind {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}
.press-kind.paper { background: var(--green-soft); color: var(--green-dark); }
.press-kind.tv { background: #e8f0f3; color: var(--teal); }
.press-body { flex: 1; min-width: 0; }
.press-outlet {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
.press-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  word-break: keep-all;
}
.press-item:hover .press-title { color: var(--teal); }
.press-go { flex: none; color: var(--teal); font-size: 1.2rem; font-weight: 700; }

@media (max-width: 620px) {
  .press-item { flex-wrap: wrap; gap: 10px; padding: 18px; }
  .press-kind { order: 1; }
  .press-go { order: 2; margin-left: auto; }
  .press-body { order: 3; flex-basis: 100%; }
  .press-title { font-size: 0.98rem; }
}
