:root {
  --navy-deep: #13245A;
  --navy: #1F3B7B;
  --mint: #2EE6BE;
  --mint-soft: #E3FAF4;
  --sky: #5CC8FF;
  --paper: #F1F7FF;
  --white: #FFFFFF;

  --line: 2px solid var(--navy);
  --shadow: 4px 4px 0 var(--navy);
  --shadow-sky: 4px 4px 0 var(--sky);
  --radius: 12px;
  --radius-sm: 8px;
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; border: var(--line); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* 버튼: 누르면 그림자만큼 내려앉는다 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  border: var(--line); border-radius: var(--radius-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--navy); }
.btn-apply { background: var(--mint); color: var(--navy-deep); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.hero .btn-apply { border-color: var(--navy-deep); box-shadow: 4px 4px 0 var(--sky); }
.hero .btn-apply:active { box-shadow: 0 0 0 var(--sky); }

/* 첫 화면 */
.hero {
  background-color: var(--navy-deep);
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: var(--white);
  padding-bottom: 88px;
}
.nav {
  width: min(1120px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 20px 0;
  border-bottom: 2px solid rgba(255, 255, 255, .18);
}
.logo {
  flex: none; display: block;
  background: var(--white); border: var(--line); border-radius: var(--radius-sm);
  padding: 4px 10px; box-shadow: var(--shadow-sky);
}
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 28px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--sky); }

.hero-inner {
  width: min(1120px, 100% - 32px); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
  padding-top: 72px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.hero h1 em { font-style: normal; color: var(--mint); }
.lead { margin-top: 24px; max-width: 34em; font-size: 1.1rem; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.fact { margin-top: 18px; font-size: .95rem; color: rgba(255, 255, 255, .7); }

/* 영상 편집 창 */
.editor {
  margin: 0;
  background: var(--white); color: var(--navy);
  border: var(--line); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--sky);
  overflow: hidden;
}
.editor-bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--navy); }
.editor-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--white); }
.editor-bar span:nth-child(2) { background: var(--sky); }
.editor-bar span:nth-child(3) { background: var(--mint-soft); }
.editor-screen {
  display: flex; align-items: center; gap: 20px;
  margin: 16px; padding: 28px 24px;
  background: var(--mint-soft); border: var(--line); border-radius: var(--radius-sm);
}
.editor-screen p { font-size: 1.25rem; font-weight: 800; line-height: 1.4; letter-spacing: -0.02em; }
.play {
  flex: none; display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); border: var(--line);
}
.play svg { width: 28px; fill: var(--sky); margin-left: 3px; }

.timeline { position: relative; margin: 0 16px 18px; padding: 6px 0; border-top: 2px dashed rgba(31, 59, 123, .25); }
.track { display: grid; grid-template-columns: 84px 1fr; align-items: center; gap: 10px; height: 40px; }
.track-name { font-size: .85rem; font-weight: 700; }
.track::after { content: ""; grid-column: 2; grid-row: 1; height: 24px; border-radius: 6px; background: var(--paper); }
.clip {
  grid-column: 2; grid-row: 1; z-index: 1;
  height: 24px; margin-left: var(--s); width: var(--w);
  border: var(--line); border-radius: 6px;
}
.clip-ai { background: var(--sky); }
.clip-video { background: var(--navy); }
.clip-sns { background: var(--mint-soft); }
.playhead {
  position: absolute; z-index: 2; top: -8px; bottom: 0;
  left: calc(84px + 10px + (100% - 94px) * .72);
  width: 2px; background: var(--navy-deep);
  animation: play 1.8s cubic-bezier(.3, .7, .3, 1) .3s both;
}
.playhead::before {
  content: ""; position: absolute; top: 0; left: -6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sky); border: var(--line);
}
@keyframes play {
  from { left: 94px; }
}

/* 공통 구역 */
.section { padding: 96px 0; }
.section-paper { background: var(--paper); border-block: var(--line); }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }

/* 하는 일 */
.services {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 40px;
  border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.service { padding: 32px 28px 28px; background: var(--white); }
.service + .service { border-left: var(--line); }
.service-dark { background: var(--navy-deep); color: var(--white); }
.service-mint { background: var(--mint-soft); }
.service .icon { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-dark .icon { stroke: var(--sky); }
.service h3 { margin-top: 20px; font-size: 1.45rem; font-weight: 800; }
.service p { margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px !important; }
.tags span {
  padding: 2px 12px; font-size: .85rem; font-weight: 700;
  border: var(--line); border-radius: 999px; background: var(--white); color: var(--navy);
}
.service-dark .tags span { border-color: var(--white); }

.sub-title { margin-top: 64px; font-size: 1.3rem; font-weight: 800; }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 20px 0 0; padding: 0; list-style: none; }
.audience li { padding: 4px 24px 4px 20px; border-left: 4px solid var(--sky); }
.audience li + li { margin-left: 16px; }
.audience strong { display: block; font-size: 1.08rem; }
.audience span { display: block; margin-top: 4px; color: rgba(31, 59, 123, .8); }

/* 강의 내용 탭 */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.tabs button {
  min-height: 48px; padding: 0 20px;
  font: inherit; font-weight: 700; color: var(--navy);
  background: var(--white); border: var(--line); border-radius: 999px; cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 3px 3px 0 var(--sky); }
.panel {
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel[hidden] { display: none; }
.panel-col { padding: 28px; }
.panel-col + .panel-col { border-left: var(--line); }
.panel-col h3 { font-size: 1.1rem; font-weight: 800; }
.panel-col p { margin-top: 10px; }
.pending { color: rgba(31, 59, 123, .62); }

/* 경력과 사례 */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0 0; }
.proof div { padding: 22px 20px; border: 2px dashed rgba(31, 59, 123, .4); border-radius: var(--radius); }
.proof dt { font-weight: 800; font-size: 1.1rem; }
.proof dd { margin: 6px 0 0; }

/* 후기 */
.pending-box {
  margin-top: 28px; padding: 28px; max-width: 46em;
  background: var(--white); border: 2px dashed rgba(31, 59, 123, .4); border-radius: var(--radius);
  color: rgba(31, 59, 123, .75);
}

/* 신청 */
.apply { padding: 96px 0; background: var(--navy-deep); color: var(--white); }
.apply-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.apply h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
.apply-copy p { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 1.08rem; }
.form {
  display: grid; gap: 20px;
  padding: 32px; background: var(--white); color: var(--navy);
  border: var(--line); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--sky);
}
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 700; padding: 0; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px;
  font: inherit; color: var(--navy);
  background: var(--paper); border: var(--line); border-radius: var(--radius-sm);
}
.field input::placeholder { color: rgba(31, 59, 123, .5); }
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.choices label { position: relative; }
.choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choices span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  font-weight: 700; border: var(--line); border-radius: 999px; background: var(--white);
}
.choices input:checked + span { background: var(--navy); color: var(--white); box-shadow: 3px 3px 0 var(--sky); }
.choices input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .95rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.5em; font-weight: 700; }
.form-msg.is-error { color: #C2410C; }
.form-msg.is-ok { color: var(--navy); }
.form.is-done .field, .form.is-done .consent, .form.is-done button { display: none; }
.form.is-done .form-msg { font-size: 1.15rem; padding: 12px 0; }

.footer { padding: 32px 0; background: var(--navy-deep); color: rgba(255, 255, 255, .7); border-top: 2px solid rgba(255, 255, 255, .15); font-size: .92rem; }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer strong { color: var(--white); margin-right: 8px; }

/* 태블릿 */
@media (max-width: 960px) {
  .hero-inner, .apply-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner { padding-top: 48px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
}

/* 폰 */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; padding: 0 12px; font-size: .88rem; }
  .logo img { height: 32px; }
  .hero { padding-bottom: 64px; }
  .section, .apply { padding: 64px 0; }
  .services { grid-template-columns: 1fr; }
  .service + .service { border-left: 0; border-top: var(--line); }
  .audience { grid-template-columns: 1fr; gap: 16px; }
  .audience li + li { margin-left: 0; }
  .panel { grid-template-columns: 1fr; }
  .panel-col + .panel-col { border-left: 0; border-top: var(--line); }
  .proof { grid-template-columns: 1fr; }
  .editor-screen { padding: 20px 16px; gap: 14px; }
  .editor-screen p { font-size: 1.05rem; }
  .play { width: 52px; height: 52px; }
  .track { grid-template-columns: 72px 1fr; }
  .playhead { left: calc(72px + 10px + (100% - 82px) * .72); }
  @keyframes play { from { left: 82px; } }
  .form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .playhead { animation: none; }
  .btn { transition: none; }
}

/* 남색 구역에서는 초점 테두리를 하늘색으로 */
.hero :focus-visible, .apply-copy :focus-visible, .footer :focus-visible { outline-color: var(--sky); }
