/* 이트랜씨엔씨(etrancnc.kr) 사이트와 같은 토큰 */
:root {
  --header-height: 80px;
  --blue: #1673e8;
  --ink: #333d4b;
  --muted: #6b7684;
  --line: #e7ebf0;
  --soft: #f7f9fc;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 20px); }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-synthesis: none;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { word-break: keep-all; letter-spacing: -0.045em; }
p { word-break: keep-all; letter-spacing: -0.025em; }
a { color: inherit; text-decoration: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; width: 24px; height: 24px; flex-shrink: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 5px; }

.section-width { width: min(1280px, 100% - 144px); margin-inline: auto; }
.eyebrow { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
h2 { font-size: clamp(30px, 3.1vw, 48px); font-weight: 700; line-height: 1.4; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px;
  max-width: 1780px; height: 100%; margin-inline: auto; padding-inline: 48px;
}
.brand { justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.brand svg { color: var(--blue); width: 26px; height: 26px; stroke-width: 2.2; }
.desktop-nav { display: flex; gap: 44px; }
.desktop-nav a { padding: 14px 4px; font-size: 14px; font-weight: 500; transition: color 200ms ease; }
.header-cta { justify-self: end; font-size: 14px; font-weight: 700; color: var(--blue); padding: 10px 4px; }
.reading-progress {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--blue); transform-origin: 0 50%; transform: scaleX(0);
}
@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover { color: var(--blue); }
}

/* hero: etrancnc.kr 처럼 둥근 프레임 안의 영상 */
.hero { padding: 0 20px; }
.hero-frame {
  position: relative; overflow: hidden;
  height: calc(100svh - var(--header-height) - 20px); min-height: 520px; max-height: 900px;
  border-radius: 28px; background: #1f2731;
}
.hero-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: auto 0 0; height: 45%;
  background: linear-gradient(to top, rgba(20, 26, 33, 0.62), rgba(20, 26, 33, 0));
}
.hero-copy { position: absolute; z-index: 1; left: 0; right: 0; bottom: 44px; color: #fff; }
.hero-line {
  display: flex; align-items: center; justify-content: center; gap: 28px;
  font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; letter-spacing: -0.045em;
  margin-bottom: 40px; padding-inline: 24px;
}
.hero-line i { width: clamp(60px, 10vw, 180px); height: 1px; background: rgba(255, 255, 255, 0.7); }
.scroll-cue { display: flex; width: fit-content; margin-inline: auto; align-items: center; gap: 12px; font-size: 12px; color: rgba(255, 255, 255, 0.86); }
.scroll-cue svg { width: 16px; height: 16px; }
.hero-note { position: absolute; z-index: 1; top: 20px; right: 24px; font-size: 11px; color: rgba(255, 255, 255, 0.6); }

/* about */
.about { padding-block: 150px 140px; }
.about h2 { max-width: 15em; }
.about-text { max-width: 640px; margin-top: 30px; font-size: 18px; line-height: 1.9; color: var(--muted); }

/* 주문 순서: etrancnc.kr '서비스 원칙' 목록 형식 */
.principles { background: var(--soft); padding-block: 150px; }
.principles-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; align-items: start; }
.principles-heading { position: sticky; top: calc(var(--header-height) + 40px); }
.principles-heading > p:last-child { margin-top: 30px; font-size: 18px; line-height: 1.9; color: var(--muted); }
.principles-list { list-style: none; margin: 0; padding: 0; }
.principles-list li { display: grid; grid-template-columns: 28px 1fr; gap: 24px; padding-block: 34px; border-top: 1px solid #dce3ec; }
.principles-list li:first-child { border-top: 0; padding-top: 0; }
.principles-list li:last-child { padding-bottom: 0; }
.num { color: var(--blue); font-size: 12px; letter-spacing: 0.03em; line-height: 38px; }
.principles-list h3 { font-size: 27px; font-weight: 650; line-height: 1.4; }
.principles-list p { max-width: 380px; margin-top: 13px; font-size: 17px; line-height: 1.8; color: var(--muted); }

/* 담당자 화면 */
.admin { padding-block: 150px 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 58px; }
.admin-text { max-width: 420px; font-size: 17px; line-height: 1.8; color: var(--muted); }
.media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 24px; background: #f0f3f6; }
.media figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.spec { margin-top: 72px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.spec div { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line); }
.spec dt { font-size: 14px; font-weight: 700; }
.spec dd { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* 도입 상담 */
.quote { background: var(--soft); padding-block: 150px; }
.quote-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 9%; align-items: start; }
.quote-heading > p:not(.eyebrow) { margin-top: 30px; font-size: 18px; line-height: 1.9; color: var(--muted); }
.quote-heading .mail { margin-top: 16px; font-size: 15px; }
.quote-heading .mail a { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }

.form { display: grid; gap: 18px; background: #fff; border-radius: 24px; padding: 40px; }
.form label { display: grid; gap: 8px; }
.form label > span { font-size: 14px; font-weight: 600; }
.form em { color: var(--blue); font-style: normal; }
.form input:not([type="radio"]):not([type="checkbox"]), .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color 160ms ease;
}
.form input::placeholder, .form textarea::placeholder { color: #a5aeb8; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--blue); }
.form [aria-invalid="true"] { border-color: #e5484d; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #f2f4f6; }
.seg label { display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 10px 4px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); transition: background-color 160ms ease, color 160ms ease; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(51, 61, 75, 0.12); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); }
.form .agree { display: flex; gap: 10px; align-items: flex-start; }
.form .agree span { font-size: 13px; font-weight: 400; line-height: 1.6; color: var(--muted); }
.agree input { margin-top: 3px; accent-color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.submit {
  margin-top: 6px; padding: 17px; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 200ms ease;
}
.submit:active { transform: scale(0.98); }
.submit:disabled { opacity: 0.6; cursor: default; }
@media (hover: hover) and (pointer: fine) { .submit:hover { background: #0f62cc; } }
.form-msg { min-height: 1.6em; font-size: 14px; }
.form-msg.ok { color: var(--blue); font-weight: 600; }
.form-msg.err { color: #e5484d; }

.site-footer { padding-block: 48px 64px; font-size: 13px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner b { color: var(--ink); margin-right: 8px; }
.footer-inner a { text-decoration: underline; text-underline-offset: 3px; }

/* 스크롤 등장: 한 번만 */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.principles-list li.reveal:nth-child(2) { transition-delay: 60ms; }
.principles-list li.reveal:nth-child(3) { transition-delay: 100ms; }
.principles-list li.reveal:nth-child(4) { transition-delay: 130ms; }
.principles-list li.reveal:nth-child(5) { transition-delay: 160ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .submit:active { transform: none; }
}

@media (max-width: 1100px) {
  .header-inner { padding-inline: 30px; }
  .desktop-nav { gap: 28px; }
  .section-width { width: calc(100% - 96px); }
  .principles-list h3 { font-size: 24px; }
  .principles-list p { font-size: 16px; }
}
@media (max-width: 760px) {
  :root { --header-height: 68px; }
  .header-inner { grid-template-columns: 1fr auto; padding-inline: 22px; }
  .desktop-nav { display: none; }
  .section-width { width: calc(100% - 48px); }
  .eyebrow { font-size: 14px; margin-bottom: 18px; }
  h2 { font-size: clamp(26px, 6.15vw, 34px); line-height: 1.5; }
  .hero { padding: 0 12px; }
  .hero-frame { border-radius: 22px; min-height: 480px; }
  .hero-line { flex-direction: column; gap: 14px; font-size: 24px; text-align: center; }
  .hero-line i { width: 1px; height: 28px; }
  .about { padding-block: 90px 80px; }
  .about-text, .principles-heading > p:last-child, .quote-heading > p:not(.eyebrow) { font-size: 15px; }
  .principles, .quote { padding-block: 90px; }
  .principles-inner, .quote-inner { grid-template-columns: 1fr; gap: 54px; }
  .principles-heading { position: static; }
  .principles-list li { grid-template-columns: 22px 1fr; gap: 18px; padding-block: 28px; }
  .num { font-size: 11px; line-height: 32px; }
  .principles-list h3 { font-size: 22px; }
  .principles-list p { font-size: 15px; }
  .admin { padding-block: 90px 70px; }
  .section-heading { display: block; margin-bottom: 36px; }
  .admin-text { margin-top: 22px; font-size: 15px; }
  .media video { border-radius: 20px; }
  .spec { grid-template-columns: 1fr; margin-top: 48px; }
  .form { padding: 26px 20px; border-radius: 20px; }
  .row { grid-template-columns: 1fr; }
  .footer-inner { display: block; }
  .footer-inner p + p { margin-top: 6px; }
}
