/* 모든 요소의 크기 계산 방식을 통일해 예측 가능한 레이아웃을 만듭니다. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-main), sans-serif;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
  background: var(--white);
}

button,
input,
textarea,
select {
  font-family: var(--font-main), sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

body p {
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(22, 60, 104, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(16, 47, 81, 0.12);
}

.site-header.is-scrolled .brand-logo,
.site-header.is-open .brand-logo {
  background: var(--white);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
}

.brand small {
  margin-top: -2px;
  color: currentColor;
  font-size: 0.73rem;
  opacity: 0.72;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.7vw, 24px);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 600;
}

.main-nav > a {
  position: relative;
}

.main-nav > a::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav > a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: currentColor;
  background: rgba(255, 255, 255, 0.14);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.24);
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link svg path:last-child {
  fill: currentColor;
  stroke: none;
}

.site-header.is-scrolled .social-link,
.site-header.is-open .social-link {
  border-color: var(--line);
  color: var(--blue-900);
  background: var(--surface-cool);
}

/* 첫 화면을 채우는 메인 비주얼 영역입니다. */
.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 140px clamp(20px, 7vw, 96px) 96px;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(14, 44, 75, 0.84) 0%,
      rgba(14, 44, 75, 0.56) 42%,
      rgba(14, 44, 75, 0.16) 100%
    ),
    var(--hero-image) center / cover;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  background: linear-gradient(
    90deg,
    rgba(14, 44, 75, 0.84) 0%,
    rgba(14, 44, 75, 0.56) 42%,
    rgba(14, 44, 75, 0.16) 100%
  );
  pointer-events: none;
}

/* 유튜브 영상은 배너 전체를 채우고 텍스트와 장식 요소는 영상 위에 유지합니다. */
.hero-video {
  background: #dce8e8;
}

.hero-video iframe,
.hero-video video {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 100vw;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-500);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bfe8ff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: var(--type-page-title);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  word-break: keep-all;
}

.hero-actions,
.section {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 16px 36px rgba(31, 95, 157, 0.3);
}

.hero .button.primary {
  background: #62b9f2;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.48);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  right: clamp(20px, 6vw, 82px);
  bottom: 38px;
  display: grid;
  width: 46px;
  height: 72px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.scroll-cue span {
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: var(--white);
  animation: cue 1.5s ease-in-out infinite;
}

@keyframes cue {
  0%,
  100% {
    transform: translateY(-8px);
    opacity: 0.45;
  }
  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}

/* 콘텐츠의 hidden 상태는 grid/flex 같은 레이아웃보다 우선합니다. */
[hidden] {
  display: none !important;
}

html {
  scroll-padding-top: 96px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 18px;
  color: #fff;
  background: #173142;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

body :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid #2f78a8;
  outline-offset: 4px;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

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