/* AXIOM AI — 가상 회사 샘플. 필살기 레이아웃 클론(스티키 히어로/모노스페이스) +
   파티클 은하 배경 컴포넌트 통합. 모든 콘텐츠 임의 작성. */

:root {
  --bg: #0a0b0c;
  --bg-2: #121416;
  --text: #f4f5f5;
  --text-dim: #9a9d9f;
  --accent: #2fd9c4;
  --border: #24272a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --spacing-sm: .75rem;
  --spacing-md: 1.25rem;
  --spacing-lg: 1.75rem;
  --spacing-xl: 2.5rem;
  --font-size-h1: clamp(32px, 6.5vw, 68px);
  --font-size-h2: 28px;
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", "Space Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { letter-spacing: -0.01em; }
h1, h2, h3 { font-family: inherit; }
a { color: inherit; }

/* --- nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px; font-size: 13px; letter-spacing: 0.04em;
  /* mix-blend-mode:difference였다가 교체 — position:fixed 라 스크롤되는 모든 섹션이 그
     아래를 지나가는데, blend가 히어로뿐 아니라 그 모든 콘텐츠에도 걸려 카드 모서리 등이
     이상하게 겹쳐 보이는 마감 결함이 있었다(2026-09-06). 다른 3개 사이트와 같은 solid+blur로 통일. */
  background: rgba(10, 11, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav__logo { font-weight: 700; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; opacity: 0.85; }
.nav__links a:hover { opacity: 1; }
.nav__right { display: flex; align-items: center; gap: 16px; }
.nav__cta { border: 1px solid var(--accent); color: var(--accent); padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: 12px; }
.nav__toggle {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  width: 34px; height: 34px; border-radius: 8px; font-size: 15px; cursor: pointer;
}
@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav.is-nav-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-top: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.is-nav-open .nav__links a { padding: 14px 24px; }
}

/* --- hero: 파티클 은하 캔버스 + 스티키 --- */
.hero {
  position: sticky; top: 0;
  height: 100vh; min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: #05060a;
}
.hero canvas.particle-galaxy { position: absolute; inset: 0; z-index: 1; }
.hero__scroll {
  position: absolute; right: 32px; bottom: 84px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #06201c; border: none;
  font-size: 16px; cursor: pointer;
}
.hero__content { position: relative; z-index: 2; padding: 0 32px 64px; max-width: 980px; }
.hero h1 {
  display: flex; flex-direction: column; gap: 2px;
  font-size: clamp(32px, 6.5vw, 68px); line-height: 1.05; margin: 0 0 14px;
  font-weight: 700; letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: 15px; color: var(--text-dim); margin: 0 0 20px; max-width: 520px; }
.hero .btn-pill {
  display: inline-block; background: var(--accent); color: #06201c;
  padding: 10px 20px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 700;
}
.hero__note {
  position: relative; z-index: 2;
  background: #1d1a0a; color: #e8c766; border-top: 1px solid #3a3416;
  font-size: 12px; padding: 8px 32px;
}

/* --- 본문 --- */
main { position: relative; z-index: 3; background: var(--bg); }
.section { max-width: 1080px; margin: 0 auto; padding: 96px 32px; }
.section-number { color: var(--accent); font-size: 12px; letter-spacing: 0.08em; }
.section h2 { font-size: 28px; margin: 8px 0 32px; }

.video-wrap video {
  width: 100%; border-radius: 14px; border: 1px solid var(--border);
  display: block; background: #000;
}
.video-caption { color: var(--text-dim); font-size: 13px; margin-top: 10px; }

.bento-grid { color: var(--text); }
.bento-grid > * {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
}
.bento-grid h3 { color: var(--text); }
.bento-grid p { color: var(--text-dim); }

/* #research·#insights 는 콘텐츠가 짧아 문서 전체 높이가 부족해지면 앵커 스크롤이
   맨 끝에서 같은 지점으로 클램프되어 두 메뉴가 같은 화면으로 보이는 문제가 있었다
   (2026-09-07 실사고) — 뷰포트 높이만큼 확보해 스크롤 공간과 마감 여백을 동시에 해결. */
.section--manifesto,
#insights {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section--manifesto { text-align: center; }
.manifesto { color: var(--text); font-size: 26px; line-height: 1.5; }

.stat-row { display: flex; gap: 40px; flex-wrap: wrap; }
.stat { min-width: 130px; }
.stat__n { font-size: 40px; font-weight: 700; color: var(--accent); }
.stat__l { font-size: 13px; color: var(--text-dim); margin-top: 4px; }

/* position:sticky 인 .hero 는 'positioned' 요소라 DOM 순서와 무관하게 static 인 .footer 위로
   올라와 그려진다 — 스크롤 맨 아래에서 히어로 파티클/버튼이 푸터 밑에 비쳐 보이던 원인
   (2026-09-06 실사고). 푸터도 z-index 를 줘서 위에 그려지게 명시적으로 고정. */
.footer {
  position: relative; z-index: 4;
  background: var(--bg);
  border-top: 1px solid var(--border); padding: 32px; text-align: center; font-size: 12px; color: var(--text-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .section { padding: 72px 24px; }
  .hero__content { padding: 0 24px 48px; }
}

@media (max-width: 560px) {
  .nav { padding: 16px 20px; }
  .section { padding: 56px 20px; }
  .hero__content { padding: 0 20px 40px; }
  .hero__note { padding: 8px 20px; }
  .stat-row { gap: 24px; }
}
