/* ═══════════════════════════════════════════════════════════════
   bluelemonade 랜딩 페이지 — 히어로 단일 구성 (배경 데모 영상 + 헤드라인 + 버튼)
   브랜드 정본: 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);
}
.site-header nav { display: flex; align-items: center; gap: .9rem; }
.header-link, .runtime-badge {
  color: var(--fg-dim);
  font-size: .76rem;
}
.header-link:hover { color: var(--fg); }
.runtime-badge {
  padding: .34rem .65rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.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(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 38%);
  pointer-events: none;
}

/* 헤드라인·버튼을 좌하단 구석으로 — 영상이 주인공 */
.hero {
  align-items: flex-end;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 1rem clamp(2rem, 6vh, 3.6rem) clamp(1.5rem, 4vw, 3.5rem);
  max-width: 620px;
}

.headline {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  font-weight: 200;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 1.4rem;
  word-break: keep-all;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.7);
}

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

/* ─── 특화 섹션: 히어로와 같은 풀블리드 영상 + 좌상단 한 줄 헤드라인 ─── */
.feature {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: #000;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 24%);
}
.feature-title {
  position: absolute;
  top: clamp(1.6rem, 5vh, 3rem);
  left: clamp(1.5rem, 4vw, 3.5rem);
  z-index: 2;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem);
  font-weight: 200;
  letter-spacing: -0.035em;
  color: #fff;
  word-break: keep-all;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.8);
  margin: 0;
}
.video-frame {
  position: absolute;
  inset: 0;
  margin: 0;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

/* ─── 실제 제품 프리뷰 진입 ─── */
.demo-cta {
  min-height: 82vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.25rem;
  padding: clamp(4rem, 10vw, 9rem) 1.5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(185, 255, 102, .09), transparent 26rem),
    #050505;
}
.demo-kicker {
  margin: 0;
  color: #b9ff66;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.demo-cta h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 5.6rem);
  font-weight: 200;
  letter-spacing: -.06em;
  line-height: 1.03;
  word-break: keep-all;
}
.demo-cta > p:not(.demo-kicker) {
  max-width: 560px;
  margin: 0 0 .75rem;
  color: var(--fg-dim);
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  background: #050505;
  font-size: .74rem;
}
.site-footer p { margin-top: .45rem; color: var(--fg-dim); }
.footer-meta {
  max-width: 620px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .75rem 1rem;
  text-align: right;
}
.footer-meta p { flex-basis: 100%; }

/* ─── 등장 모션 ─── */
.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) {
  .header-link, .runtime-badge { display: none; }
  .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%);
  }
  .site-footer { flex-direction: column; }
  .footer-meta { justify-content: flex-start; text-align: left; }
}
