/* HYUK LAB · dark studio theme. 제품(EverySays 다크 UI·데님)과 같은 세계관.
   VARIANCE 6 (비대칭 스플릿 히어로) · MOTION 3 (로드 페이드+호버) · DENSITY 3.
   순흑·순백 금지, 외곽 네온 금지(보더 라이트닝 + 미세 리프트만). */
:root {
  --bg: #0d1220;
  --surface: #141c2e;
  --card: #161f33;
  --line: rgba(255, 255, 255, 0.09);
  --ink: #e8ebf2;
  --muted: #9aa3b6;
  --accent: #5e8fd6;
  --accent-deep: #194e9e;
  --col: 1140px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Schibsted Grotesk", Pretendard, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--col); margin: 0 auto; padding: 0 24px; }

/* header */
header { border-bottom: 1px solid var(--line); position: relative; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; padding-bottom: 26px; /* 좌우는 .wrap의 24px 유지(덮어쓰기 금지) */
}
.menu-btn {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; color: var(--muted); cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px;
}
.menu-btn svg { width: 19px; height: 19px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 18px; letter-spacing: 0.03em; color: var(--ink);
}
.brand span { color: var(--accent); }
.mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; gap: 22px; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* hero — 테제 타이포그래피가 곧 비주얼(37signals·Bending Spoons 계열).
   바로 아래 제품 캐러셀이 테제의 증거 역할을 한다 */
.hero {
  position: relative;
  padding: 92px 24px 84px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(720px 420px at 82% -12%, rgba(25, 78, 158, 0.28), transparent 65%);
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(40px, 6vw, 74px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em;
  max-width: 17em;
}
.hero h1 .hl { color: var(--accent); }
.hero p {
  margin-top: 26px; font-size: 19px; color: var(--muted); max-width: 36em;
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p, .shelf { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero p { animation-delay: 0.08s; }
  .shelf { animation-delay: 0.12s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* sections */
section { padding: 80px 0; text-align: left; border-top: 1px solid var(--line); }
section h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }

/* products — 심플 엔트리 카드 캐러셀 (아이콘+이름+태그+한 줄) */
.sec-head { display: flex; align-items: center; justify-content: space-between; }
.car-btns { display: flex; gap: 8px; }
.car-btn {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.car-btn:hover { border-color: var(--accent); color: var(--ink); }
.car-btn:active { transform: scale(0.95); }
.car-btn svg { width: 16px; height: 16px; }
.carousel {
  margin-top: 28px; display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 4px;
}
.carousel::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 360px; scroll-snap-align: start;
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  padding: 26px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.pcard:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.pcard .appicon { width: 56px; height: 56px; border-radius: 14px; display: block; }
.pcard .pname { margin-top: 14px; font-size: 19px; font-weight: 700; }
.pcard .pname .says { color: var(--accent); }
.pcard .pname.muted { color: var(--muted); }
.pcard .ptag { font-size: 13px; color: var(--muted); margin-top: 2px; }
.pcard .pdesc { margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.pcard .go {
  display: inline-block; margin-top: 16px;
  font-size: 14px; font-weight: 600; color: #fffdf8;
  background: var(--accent-deep);
  border: 1px solid transparent; border-radius: 999px; padding: 8px 18px;
  transition: filter 0.15s, transform 0.15s;
}
.pcard .go:hover { filter: brightness(1.25); }
.pcard .go:active { transform: scale(0.98); }
.pcard.lab { background: var(--surface); border-style: dashed; }
.pcard.lab .pname { margin-top: 0; }

/* about — 데스크톱 2컬럼, 모바일 스택 */
.about { text-align: left; }
.about h2 { text-align: left; }
.about .cols {
  margin-top: 30px; display: grid; grid-template-columns: 1fr 430px;
  gap: 64px; align-items: start;
}
.about h3 { font-size: 21px; font-weight: 700; }
.about p { margin: 16px 0 0; font-size: 15.5px; color: var(--muted); max-width: 38em; }
.factcard {
  border: 1px solid var(--line); border-radius: 18px; background: var(--card);
  padding: 26px 26px 24px;
}
.factcard .mark-lg { width: 40px; height: 40px; display: block; }
.facts {
  margin-top: 20px; display: grid; gap: 12px; font-size: 14.5px; text-align: left;
}
.facts div { display: flex; gap: 12px; }
.facts dt { width: 88px; flex: none; color: var(--muted); font-size: 13px; padding-top: 1px; }
.facts dd { color: var(--ink); }
@media (max-width: 980px) {
  .about .cols { grid-template-columns: 1fr; gap: 30px; }
  .factcard { max-width: 420px; }
}

/* contact — 안내 한 줄 + 메일은 옆에 이탤릭 볼드 텍스트 */
.contact-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.mail-inline {
  margin-left: 10px; font-style: italic; font-weight: 700;
  color: var(--accent); letter-spacing: 0.01em;
}
.mail-inline:hover { text-decoration: underline; }

/* subpages (support, terms, privacy) */
.page { padding: 56px 0 90px; text-align: left; }
.page h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; }
.page .upd { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.page h2 { margin-top: 38px; font-size: 19px; font-weight: 700; }
.page p, .page li { color: var(--muted); font-size: 15.5px; max-width: 44em; }
.page p { margin-top: 12px; }
.page ul { margin: 12px 0 0 20px; }
.page li { margin-top: 6px; }
.page a.tx { color: var(--accent); }

/* footer */
footer { border-top: 1px solid var(--line); padding: 38px 0 46px; }
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.foot-brand { font-size: 16px; }
.foot-links {
  display: flex; gap: 22px; font-size: 14px; color: var(--muted); flex-wrap: wrap;
}
.foot-links a:hover { color: var(--ink); }
.biz { margin-top: 22px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.copy { margin-top: 8px; font-size: 12.5px; color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding: 64px 24px 64px; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .wrap { padding: 0 28px; }
  .hero { padding-left: 28px; padding-right: 28px; }
  .pcard { flex-basis: 80%; }
  /* 좁은 화면: 상단 고정 헤더 + 햄버거 드롭다운 + 헤드라인 자연 줄바꿈 */
  header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(13, 18, 32, 0.94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  /* 앵커 이동 시 고정 헤더가 섹션 제목을 덮지 않게 */
  section { scroll-margin-top: 84px; }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .brand { font-size: 16px; gap: 8px; }
  .mark { width: 20px; height: 20px; }
  .menu-btn { display: inline-flex; width: 36px; height: 36px; border-radius: 10px; }
  .menu-btn svg { width: 17px; height: 17px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 6px 24px 10px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    font-size: 15.5px; z-index: 20;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .hero h1 br { display: none; }
  .mail-inline { display: block; margin-left: 0; margin-top: 8px; }
  .facts dt { width: 80px; }
}

/* 초소형 화면(<=380px): 타이포 비례 축소 */
@media (max-width: 380px) {
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16.5px; }
  .pcard { flex-basis: 92%; padding: 20px; }
  .page h1 { font-size: 26px; }
}
