/* =========================================================
   세미오터에듀 웹사이트 공통 스타일
   색상 변수는 nav/nav.css 의 :root 에 정의되어 있습니다.
   nav.css 를 먼저 불러온 뒤 이 파일을 불러 주십시오.
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--so-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--so-text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--so-blue); }

h1, h2, h3, h4 { margin: 0; letter-spacing: -.025em; color: var(--so-navy); line-height: 1.3; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
h2 { font-size: clamp(23px, 3.2vw, 31px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p  { margin: 0; }

/* ---------- 레이아웃 ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 860px; }

.section { padding: 80px 0; }
.section--tight { padding: 52px 0; }
.section--tinted { background: #f7fafc; }
.section--sky { background: linear-gradient(160deg, #eaf6fc 0%, #f7fbfd 100%); }

.section-head { max-width: 62ch; margin-bottom: 36px; }
.section-head p { margin-top: 12px; color: var(--so-muted); font-size: 16.5px; }

.eyebrow {
  display: inline-block; margin-bottom: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--so-blue);
}

.lede { font-size: 18px; line-height: 1.75; color: #37505d; }

@media (max-width: 700px) {
  .section { padding: 56px 0; }
}

/* ---------- 히어로 ---------- */
.hero { padding: 76px 0 84px; background: linear-gradient(150deg, var(--so-sky) 0%, #eef7fc 55%, #fff 100%); }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero p { max-width: 54ch; font-size: 18px; color: #33505f; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-visual {
  display: grid; place-items: center; min-height: 260px;
  border-radius: 16px; background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(46, 122, 158, .18);
}

.hero--page { padding: 56px 0 52px; }
.hero--page .container { display: block; }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--so-accent); outline-offset: 3px; }
.btn--primary { background: var(--so-navy); color: #fff; }
.btn--primary:hover { background: var(--so-blue); }
.btn--ghost { background: transparent; border-color: rgba(18, 48, 63, .22); color: var(--so-navy); }
.btn--ghost:hover { border-color: var(--so-blue); color: var(--so-blue); }
.btn--light { background: #fff; color: var(--so-navy); }

/* ---------- 카드 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border: 1px solid var(--so-line); border-radius: 14px;
  background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.card p { color: var(--so-muted); font-size: 15px; }
a.card { text-decoration: none; }
a.card:hover { border-color: var(--so-blue); box-shadow: var(--so-shadow); }

.card--product { gap: 14px; padding: 0; overflow: hidden; }
.card--product .card-figure {
  display: grid; place-items: center; aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--so-sky), #eef7fc);
  color: var(--so-blue); font-size: 13.5px; font-weight: 600;
}
.card--product .card-body { padding: 4px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.card-tag {
  align-self: flex-start; padding: 4px 11px; border-radius: 999px;
  background: var(--so-sky); color: #1c5570; font-size: 12.5px; font-weight: 700;
}
.card-more { margin-top: auto; padding-top: 8px; font-size: 15px; font-weight: 700; color: var(--so-blue); }

/* ---------- 사양표 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.spec-table caption { margin-bottom: 12px; text-align: left; font-size: 14px; color: var(--so-muted); }
.spec-table th, .spec-table td { padding: 14px 16px; border-bottom: 1px solid var(--so-line); text-align: left; vertical-align: top; }
.spec-table thead th { background: #f2f7fa; color: var(--so-navy); font-weight: 700; white-space: nowrap; }
.spec-table tbody th { width: 210px; color: var(--so-navy); font-weight: 700; }
.spec-table td { color: #3a505c; }

/* ---------- 항목 목록 ---------- */
.feature-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before {
  content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: 10px;
  border-radius: 50%; background: var(--so-blue);
}

.download-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.download-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: 1px solid var(--so-line); border-radius: 12px;
  background: #fff; text-decoration: none; transition: border-color .16s ease, background-color .16s ease;
}
.download-list a:hover { border-color: var(--so-blue); background: #f7fbfd; }
.download-list .dl-name { font-weight: 700; color: var(--so-navy); }
.download-list .dl-meta { font-size: 13.5px; color: var(--so-muted); }
.download-list .dl-cta { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--so-blue); }

/* ---------- 연혁 / 소식 ---------- */
.timeline { margin: 0; padding: 0 0 0 26px; list-style: none; border-left: 2px solid var(--so-sky); display: grid; gap: 30px; }
.timeline li { position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -33px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--so-blue);
}
.timeline .tl-date { font-size: 13.5px; font-weight: 700; color: var(--so-blue); }
.timeline .tl-title { margin: 3px 0 5px; font-size: 17.5px; font-weight: 700; color: var(--so-navy); }
.timeline .tl-desc { font-size: 15px; color: var(--so-muted); }

/* ---------- 신뢰 배지 ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: #fff; border: 1px solid var(--so-line);
  font-size: 14.5px; font-weight: 600; color: var(--so-navy);
}

/* ---------- 전환 유도 띠 ---------- */
.cta-band { padding: 62px 0; background: var(--so-navy); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 12px; color: #b9d3e0; font-size: 16.5px; }
.cta-band .hero-actions { margin-top: 26px; }

/* ---------- 측정 결과 갤러리 ----------
   그림마다 종횡비가 다릅니다. 로그 축을 쓰는 전달 특성은 세로로 길고 나머지는
   가로로 깁니다. 늘려 맞추면 데이터가 왜곡되고, 가로로 긴 것을 반 칸에 넣으면
   3배로 줄어들어 축 숫자가 읽히지 않습니다. 그래서 세로로 긴 것만 설명과 나란히
   두고, 가로로 긴 것은 한 단을 다 씁니다. 어느 그림이든 축소율이 1.4배 안쪽입니다. */
.meas-pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
}
.meas-duo {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start;
}
.meas-stack { display: grid; gap: 30px; margin-top: 30px; }
.meas-frame { border: 1px solid var(--so-line); border-radius: 12px; background: #fff;
              overflow: hidden; display: grid; place-items: center; }
.meas-frame img { display: block; width: 100%; height: auto; }
/* 그림마다 원본 폭이 달라 그대로 두면 한 장이 지나치게 커집니다.
   전체 균형을 위해 폭을 묶고 가운데 둡니다. 설명도 같은 폭으로 좁아집니다.
   세로로 긴 전달 특성은 624px (원본 892px 대비 1.43배 축소),
   가로로 긴 I-t 는 840px (원본 1702px 대비 2.03배 축소)입니다. */
.meas-narrow { max-width: 624px; margin-inline: auto; }
.meas-mid    { max-width: 840px; margin-inline: auto; }

@media (max-width: 760px) { .meas-duo { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .meas-pair { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- AI friendly 띠 ---------- */
.ai-band {
  padding: 80px 0;
  background: linear-gradient(150deg, var(--so-navy) 0%, #17415a 58%, #1d5474 100%);
  color: #fff;
}
.ai-band .eyebrow { color: var(--so-sky); }
.ai-band h2 { color: #fff; }
.ai-band .section-head { max-width: 70ch; }
.ai-band .section-head p { color: #c6dcea; }
.ai-band .card {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .17);
}
.ai-band .card h3 { color: #fff; }
.ai-band .card p { color: #c6dcea; }
.ai-band .ai-tagline {
  margin-top: 14px;
  font-size: clamp(17px, 2vw, 20px); font-weight: 700;
  letter-spacing: -.01em; color: var(--so-sky);
}
.ai-band .ai-note {
  margin-top: 26px; max-width: 78ch;
  font-size: 14.5px; line-height: 1.8; color: #9dbdd0;
}
.ai-band .btn--light:hover { background: var(--so-sky); }
.ai-band .ai-split {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 48px; align-items: center;
}
.ai-term {
  margin: 0; padding: 22px 24px; overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .17); border-radius: 14px;
  background: rgba(4, 22, 33, .48);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.9; color: #cfe6f3; white-space: pre;
}
.ai-term .c { color: #7fb2cc; }
.ai-term .p { color: #6f9cb5; }
.ai-term b { color: #fff; font-weight: 700; }

@media (max-width: 700px) { .ai-band { padding: 56px 0; } }
@media (max-width: 900px) { .ai-band .ai-split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- 문의 양식 ---------- */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; gap: 7px; }
.form-row label { font-size: 14.5px; font-weight: 700; color: var(--so-navy); }
.form-row input, .form-row select, .form-row textarea {
  padding: 13px 15px; border: 1px solid var(--so-line); border-radius: 9px;
  font: inherit; font-size: 15.5px; color: var(--so-text); background: #fff;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--so-blue); outline-offset: 1px; border-color: transparent;
}
.form-row textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 13.5px; color: var(--so-muted); }
@media (min-width: 700px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 푸터 ---------- */
.site-footer { padding: 56px 0 34px; background: #f2f7fa; border-top: 1px solid var(--so-line); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 780px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; text-decoration: none; }
.footer-brand img { width: 42px; height: 42px; }
.footer-brand strong { font-size: 17px; font-weight: 800; color: var(--so-navy); }
.footer-brand em { display: block; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .1em; color: var(--so-blue); }

.footer-info { font-size: 14px; line-height: 1.85; color: var(--so-muted); }
.footer-info a { color: var(--so-muted); }

.footer-col h4 { margin-bottom: 12px; font-size: 14.5px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 14.5px; color: var(--so-muted); text-decoration: none; }
.footer-col a:hover { color: var(--so-blue); }

.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--so-line);
  font-size: 13px; color: #7b8b95;
}

/* ---------- 이미지와 본문의 조합 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split--wide-media { grid-template-columns: .9fr 1.1fr; }
.split--wide-text  { grid-template-columns: 1.1fr .9fr; }
@media (max-width: 820px) {
  .split, .split--wide-media, .split--wide-text { grid-template-columns: 1fr; gap: 32px; }
}

/* 테두리가 있는 화면 캡처 등 */
.media-frame {
  border: 1px solid var(--so-line); border-radius: 12px;
  background: #fff; overflow: hidden;
}
.media-frame img { display: block; width: 100%; }

/* 배경이 투명한 제품 사진 */
.media-plain img { display: block; width: 100%; }
.media-plain--pad { padding: 12px 8px; }

figure { margin: 0; }
.figure-cap { margin-top: 11px; font-size: 13.5px; line-height: 1.6; color: var(--so-muted); }

.hero-visual { padding: 22px; }
.hero-visual img { display: block; width: 100%; }

/* 폭이 넓은 일러스트를 쓰는 히어로는 좌우 배치 대신 위아래로 쌓습니다 */
.hero--illust .container { display: block; }
.hero--illust .hero-copy { max-width: 60ch; }
.hero-illust {
  margin: 42px 0 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(18, 48, 63, .16);
}
.hero-illust img { display: block; width: 100%; }
/* 좁은 화면에서는 너무 납작해지므로 높이를 조금 확보하고 좌우를 살짝 잘라 냅니다 */
@media (max-width: 700px) {
  .hero-illust { margin-top: 30px; border-radius: 12px; aspect-ratio: 16 / 9; }
  .hero-illust img { height: 100%; object-fit: cover; object-position: center; }
}

/* 제품 카드 안의 사진 */
.card--product .card-figure { padding: 22px; }
.card--product .card-figure img { display: block; width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- 영상 ---------- */
.video-card { display: flex; flex-direction: column; gap: 12px; }
.video-card video,
.video-card .yt {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 12px; background: #0d1c25;
}
/* YouTube 카드. 누르기 전에는 poster 한 장이고, 누르면 같은 자리에 iframe 이
   들어옵니다. 그래서 두 상태의 크기가 위 규칙 하나로 같이 정해집니다. */
.video-card .yt { position: relative; overflow: hidden; }
.video-card .yt iframe { display: block; width: 100%; height: 100%; border: 0; }
.yt__play {
  display: block; width: 100%; height: 100%; padding: 0;
  border: 0; background: none; cursor: pointer; position: relative;
}
.yt__play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt__icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(13, 28, 37, 0.72);
  transition: background 0.15s ease, transform 0.15s ease;
}
.yt__icon::after {
  content: ""; position: absolute; left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.yt__play:hover .yt__icon { background: var(--so-accent); transform: translate(-50%, -50%) scale(1.06); }
.yt__play:focus-visible { outline: 3px solid var(--so-accent); outline-offset: 3px; }
.yt__link { font-size: 13.5px; margin-top: -4px; }
.video-card h3 { margin-top: 4px; }
.video-card p { font-size: 14.5px; color: var(--so-muted); }

/* ---------- 이메일 주소 ---------- */
/* 링크가 아니라 글자다. mailto 를 누르면 메일 프로그램이 열리는데, 그것이
   실제로는 연락으로 이어지지 않아 주소만 보여 주기로 했다. 그래서 밑줄이나
   색으로 누를 수 있다는 신호를 주지 않는다. */
.email { font-weight: 600; }
.email--lead { font-size: 19px; letter-spacing: .01em; }
.contact-hints { margin: 12px 0 0; padding-left: 20px; line-height: 1.9; }
.contact-hints li { color: var(--so-muted); }
