/* ═══════════════════════════════════════════════════════════════
   h1 랜딩 페이지 — 히어로 단일 구성 (배경 데모 영상 + 헤드라인 + 버튼)
   브랜드 정본: docs/BRAND.md — "문서를 쉽고 간편하게."
   모든 텍스트는 Pretendard.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #000;
  --fg: #f5f5f5;
  --fg-dim: #a3a3a3;
  --hairline: rgba(255, 255, 255, 0.12);
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg-dim);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #262626; color: #fff; }

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

/* ─── 접근성 ─── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 1.5px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── 헤더: 좌 워드마크 · 우 로그인 ─── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
  font-size: 1.3rem;
  font-weight: 200;
  letter-spacing: -0.05em;
  color: #fff;
}

/* ─── 버튼 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease),
    transform 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-fill { background: #fff; color: #000; }
.btn-fill:hover { opacity: 0.82; }
.btn-ghost { border: 1px solid var(--hairline); color: var(--fg); background: rgba(0, 0, 0, 0.25); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-sm { font-size: 0.84rem; padding: 0.45rem 1.1rem; }
.btn-lg { font-size: 0.98rem; padding: 0.82rem 2rem; }

/* ─── 히어로: 전체 화면 배경 영상 ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 영상 속 문서 창이 우측-중앙에 있으므로 그대로 커버 */
  object-position: center;
  background: #000;
}

/* 텍스트 가독성을 위한 스크림 — 좌측을 어둡게, 하단을 살짝 */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 34%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  max-width: 720px;
}

.headline {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 2.2rem;
  word-break: keep-all;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ─── 정부지원사업 특화 섹션 ─── */
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(5rem, 13vh, 9rem) 1.25rem clamp(6rem, 15vh, 10rem);
}
.feature-title {
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 2.6rem;
  word-break: keep-all;
}
.video-frame {
  width: min(1080px, 94vw);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  background: #0a0a0c;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(255, 255, 255, 0.03);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── 등장 모션 ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--stagger, 0) * 0.15s);
}
.reveal.in-view { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ─── 모바일 ─── */
@media (max-width: 640px) {
  .hero { align-items: flex-end; }
  .hero-content {
    padding-bottom: 4.5rem;
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  .hero-actions { justify-content: center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0.82) 100%);
  }
}
