/* ===== 기본 변수 ===== */
:root {
  --orange: #f26b1d;
  --orange-dark: #d95a0f;
  --orange-soft: #fff1e8;
  --black: #111318;
  --black-2: #1b1e25;
  --ink: #16181d;
  --text: #4b5160;
  --muted: #8b909c;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-warm: #f7f6f4;
  --radius-lg: 24px;
  --radius: 16px;
  --shadow: 0 24px 48px -24px rgba(17, 19, 24, .22);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.035em; line-height: 1.3; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.pc-only { display: inline; }

/* ===== 공통 요소 ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ff9a5c; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 30px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); }
.btn--outline-light { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--orange); }
.btn--block { width: 100%; }

.text-link { display: inline-flex; gap: 8px; margin-top: 28px; font-weight: 700; color: #fff; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }

.section { padding: 130px 0; }
.section--warm { background: var(--bg-warm); }
.section--dark { background: var(--black); color: #b4b9c4; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 64px; }
.section__head h2, .join h2, .contact h2 { font-size: clamp(30px, 3.8vw, 46px); }
.section__lead { margin-top: 22px; font-size: 18px; line-height: 1.75; }

/* 스크롤 등장 효과 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== 헤더 ===== */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  transition: background .3s ease, border-color .3s ease;
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: #fff; transition: color .3s ease; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav a { font-weight: 600; font-size: 16px; color: rgba(255, 255, 255, .88); transition: color .2s ease; }
.nav a:hover { color: #fff; }
.nav .nav__cta { padding: 10px 20px; border-radius: 10px; background: var(--orange); color: #fff; }
.nav .nav__cta:hover { background: var(--orange-dark); }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, top .3s ease, background .3s ease; }
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 25px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* 스크롤 후 · 모바일 메뉴 열림: 흰 배경 + 검은 글자 */
.header.is-scrolled,
.header.menu-open {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header.is-scrolled .logo__text,
.header.menu-open .logo__text { color: var(--ink); }
.header.is-scrolled .nav a,
.header.menu-open .nav a { color: var(--ink); }
.header.is-scrolled .nav a:hover { color: var(--orange); }
.header.is-scrolled .nav .nav__cta,
.header.menu-open .nav .nav__cta { color: #fff; }
.header.is-scrolled .menu-btn span,
.header.menu-open .menu-btn span { background: var(--ink); }

/* ===== 메인 비주얼 ===== */
.hero { position: relative; overflow: hidden; background: var(--black); padding: calc(var(--header-h) + 110px) 0 130px; }
.hero__bg { position: absolute; inset: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); }
.glow--a { width: 560px; height: 560px; background: rgba(242, 107, 29, .38); top: -220px; right: -120px; animation: drift 16s ease-in-out infinite alternate; }
.glow--b { width: 420px; height: 420px; background: rgba(242, 107, 29, .14); bottom: -240px; left: 10%; animation: drift 20s ease-in-out infinite alternate-reverse; }
.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
@keyframes drift { to { transform: translate(-50px, 40px) scale(1.06); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 64px; }
.hero__title { color: #fff; font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.2; }
.hero__title em { color: var(--orange); }
.hero__desc { margin-top: 30px; font-size: clamp(17px, 1.5vw, 19px); color: #b4b9c4; line-height: 1.8; }
.hero__actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__panel {
  padding: 36px 32px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.panel__title { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 24px; }
.panel__list { position: relative; display: grid; gap: 22px; }
.panel__list::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--orange), rgba(242, 107, 29, .1)); }
.panel__list li { position: relative; display: flex; align-items: center; gap: 18px; }
.panel__list b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--black-2); border: 1px solid rgba(242, 107, 29, .5); color: var(--orange); font-size: 14px; }
.panel__list strong { display: block; color: #fff; font-size: 17px; font-weight: 700; }
.panel__list span { font-size: 14px; color: var(--muted); }

/* ===== 교육 분야 띠 ===== */
.marquee { overflow: hidden; background: var(--orange); padding: 20px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee__track span { color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; padding: 0 26px; }
.marquee__track span::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 52px; border-radius: 50%; background: rgba(255, 255, 255, .6); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===== 회사소개 ===== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.value { padding: 40px 36px 8px 0; }
.value + .value { padding-left: 36px; border-left: 1px solid var(--line); }
.value__en { font-size: 14px; font-weight: 700; color: var(--orange); letter-spacing: .04em; }
.value h3 { font-size: 26px; margin: 10px 0 14px; }

/* ===== 사업분야 ===== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { padding: 36px 32px 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; }
.service:hover { border-color: var(--orange); transform: translateY(-4px); box-shadow: var(--shadow); }
.service__num { display: inline-block; font-size: 15px; font-weight: 800; color: var(--orange); margin-bottom: 48px; }
.service h3 { font-size: 22px; margin-bottom: 12px; }
.service--accent { background: var(--orange); border-color: var(--orange); color: rgba(255, 255, 255, .88); }
.service--accent h3, .service--accent .service__num { color: #fff; }
.service--dark { background: var(--black); border-color: var(--black); color: #b4b9c4; display: flex; flex-direction: column; justify-content: flex-end; }
.service--dark h3 { color: #fff; }

/* ===== 협력구조 ===== */
.flow { display: grid; grid-template-columns: 1fr 64px 1.1fr 64px 1fr; align-items: center; }
.flow__node { padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.flow__node--main { background: var(--black); border-color: var(--black); color: #b4b9c4; padding: 48px 36px; box-shadow: 0 30px 60px -30px rgba(17, 19, 24, .5); }
.flow__node--main h3 { color: #fff; }
.flow__en { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.flow__node h3 { font-size: 24px; margin: 8px 0 18px; }
.flow__node li { position: relative; padding-left: 16px; margin-top: 8px; }
.flow__node li::before { content: ""; position: absolute; left: 0; top: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.flow__link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--orange) 0 6px, transparent 6px 12px); }
.flow__link span { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); }

/* ===== 강사지원 ===== */
.join { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.benefits { margin-top: 40px; display: grid; gap: 16px; }
.benefits li { display: flex; align-items: center; gap: 14px; color: #e4e6eb; font-weight: 600; }
.benefits li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.steps { padding: 40px 36px; border-radius: var(--radius-lg); background: var(--black-2); border: 1px solid rgba(255, 255, 255, .08); }
.steps h3 { font-size: 22px; margin-bottom: 28px; }
.steps ol { display: grid; gap: 22px; margin-bottom: 36px; }
.steps li { display: flex; gap: 18px; }
.steps b { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(242, 107, 29, .14); color: var(--orange); font-size: 14px; }
.steps strong { display: block; color: #fff; font-size: 17px; font-weight: 700; }
.steps span { font-size: 15px; color: var(--muted); }

/* ===== 문의 ===== */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; padding: 72px 64px; border-radius: 32px; background: var(--bg-warm); }
.contact__info dl { margin: 0 0 32px; display: grid; gap: 24px; }
.contact__info dt { font-size: 14px; font-weight: 700; color: var(--orange); margin-bottom: 4px; }
.contact__info dd { margin: 0; font-size: 18px; color: var(--ink); font-weight: 600; line-height: 1.6; }
.contact__info dd a:hover { color: var(--orange); }

/* ===== 푸터 ===== */
.footer { padding: 56px 0 64px; background: var(--black); }
.footer__inner { display: flex; gap: 56px; align-items: flex-start; }
.footer__info { font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.footer__info span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: #3a3e48; }
.footer__copy { margin-top: 12px; color: #5d626e; }

/* ===== 반응형 ===== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 56px; }
  .hero__panel { max-width: 520px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow__link { width: 2px; height: 48px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--orange) 0 6px, transparent 6px 12px); }
  .join, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .pc-only { display: none; }
  .section { padding: 96px 0; }
  .section__head { margin-bottom: 48px; }
  .section__lead { font-size: 17px; }
  .container { padding: 0 20px; }

  .logo__mark { width: 30px; height: 30px; }
  .logo__text { font-size: 20px; }

  .menu-btn { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .nav.is-open { transform: none; }
  .header.menu-open { background: #fff; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .nav__cta { margin-top: 16px; text-align: center; border: 0; padding: 14px; }

  .hero { padding: calc(var(--header-h) + 72px) 0 96px; }
  .hero__actions .btn { flex: 1; padding: 0 16px; }
  .hero__panel { padding: 28px 24px; }

  .marquee__track span { font-size: 17px; }

  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 32px 0; border-left: 0; }
  .value + .value { border-top: 1px solid var(--line); }

  .services { grid-template-columns: 1fr; }
  .service__num { margin-bottom: 28px; }

  .steps { padding: 32px 24px; }
  .contact { padding: 44px 24px; border-radius: 24px; }
  .contact__info .btn { width: 100%; }

  .footer__inner { flex-direction: column; gap: 24px; }
  .footer__info span { display: block; }
  .footer__info span + span::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
