/* 노바랩스 홈페이지 — 화면은 무채색, 색은 앱 아이콘이 냅니다 */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --card: #ffffff;
  --ink: #111114;
  --ink-2: #3c3c43;
  --muted: #6e6e76;
  --line: #e6e6eb;
  --btn: #111114;
  --btn-ink: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.82);
  --accent: #111114;
  --tint: #f5f5f7;
  --radius: 24px;
  --radius-md: 18px;
  --shadow: 0 1px 2px rgba(16, 16, 24, 0.05), 0 12px 32px rgba(16, 16, 24, 0.08);
  --max: 1120px;
  --gutter: 20px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0f;
    --bg-soft: #151519;
    --card: #141418;
    --ink: #f4f4f6;
    --ink-2: #d2d2d8;
    --muted: #a0a0aa;
    --line: #2a2a31;
    --btn: #f4f4f6;
    --btn-ink: #0c0c0f;
    --header-bg: rgba(12, 12, 15, 0.8);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid #4f7cff; outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 10px; }

/* ── 머리글 ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
/* 이름: 아이콘 없이 '스튜디오 노바랩스' ↔ 'Studio Novalabs'가 4초마다 위로 넘어가며 바뀜 */
.brand-roll { display: inline-grid; overflow: hidden; line-height: 1.5; }
.brand-roll > span { grid-area: 1 / 1; white-space: nowrap; animation: brand-roll 8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.brand-roll > span + span { animation-delay: -4s; }
@keyframes brand-roll {
  0%, 45% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-65%); opacity: 0; }
  50.01%, 95% { transform: translateY(65%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }

/* ── 버튼·배지 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform 0.15s ease, opacity 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; transition: transform 0.15s ease; }
.badge:hover { transform: translateY(-1px); }
.badge img { height: 48px; width: auto; max-width: none; }
.app-card .badge img { height: 40px; }

/* ── 홈 첫 화면 (헤드라인 한 줄 + 숫자 한 줄 → 바로 앱 목록) ── */
.hero { padding: 72px 0 44px; text-align: center; background: radial-gradient(900px 380px at 50% -140px, rgba(255, 197, 61, 0.2), rgba(255, 197, 61, 0) 70%); }
.eyebrow { display: inline-block; margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.hero h1 { margin: 0; font-size: clamp(2.4rem, 6.6vw, 4.2rem); line-height: 1.12; letter-spacing: -0.05em; font-weight: 800; }
.lead { max-width: 740px; margin: 18px auto 0; font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.75; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.stats li { padding: 6px 14px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 32px; }
.apps-section { padding: 12px 0 96px; }

/* ── 공통 섹션 ── */
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding-top: 24px; }
.section-head { max-width: 760px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2 { margin: 0; font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.28; letter-spacing: -0.04em; font-weight: 800; }
.section-head p { margin: 12px 0 0; font-size: 1.06rem; color: var(--muted); }

/* ── 앱 카드 ── */
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.app-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.app-card .top { display: flex; gap: 16px; align-items: center; }
.app-card .top img { width: 68px; height: 68px; flex: none; border-radius: 22.5%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.app-card h2 { margin: 0; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.03em; }
.app-card h2 a { text-decoration: none; }
.app-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.app-card h2 small { font-size: 0.78em; font-weight: 600; color: var(--muted); margin-left: 4px; }
.app-card .cat { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.app-card .tagline { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.app-card .stores { position: relative; z-index: 1; margin-top: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
.pill.new { background: var(--btn); color: var(--btn-ink); }

/* ── 자주 묻는 질문 ── */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 24px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.06rem; letter-spacing: -0.02em; line-height: 1.5; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; line-height: 1; color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { margin: 0; padding: 0 0 22px; color: var(--ink-2); }

/* ── 앱 상세 첫 화면 ── */
.app-hero { padding: 26px 0 72px; overflow: hidden; background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.crumbs { margin: 0 0 34px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.app-hero .grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 56px; align-items: center; }
.app-hero .icon { width: 108px; height: 108px; border-radius: 22.5%; box-shadow: var(--shadow); }
.app-hero h1 { margin: 24px 0 0; font-size: clamp(2.3rem, 5.4vw, 3.6rem); line-height: 1.12; letter-spacing: -0.05em; font-weight: 800; }
.app-hero .alt { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--muted); }
.app-hero .tagline { margin: 22px 0 0; font-size: clamp(1.22rem, 2.3vw, 1.55rem); font-weight: 700; line-height: 1.45; letter-spacing: -0.035em; }
.app-hero .summary { max-width: 620px; margin: 14px 0 0; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.app-hero .stores { margin-top: 28px; }
.platform-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.phone { justify-self: center; width: min(300px, 100%); border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06); }
.phone img { width: 100%; }

/* ── 화면 미리보기 ── */
.gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 18px; scrollbar-width: thin; }
.gallery figure { flex: none; width: clamp(170px, 21vw, 232px); margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-soft); }
.gallery figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ── 기능·상세 정보 ── */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 26px; }
.feature .dot { width: 10px; height: 10px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); }
.feature h3 { margin: 0 0 8px; font-size: 1.14rem; letter-spacing: -0.025em; line-height: 1.45; }
.feature p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 18px; }
.info-box { background: var(--bg-soft); border-radius: var(--radius-md); padding: 26px; }
.info-box h3 { margin: 0 0 14px; font-size: 1.1rem; letter-spacing: -0.02em; }
.check { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.check li { position: relative; padding-left: 26px; font-size: 15.5px; color: var(--ink-2); }
.check li::before { content: "✓"; position: absolute; left: 2px; top: 0; font-weight: 800; color: var(--accent); }
.for-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.for-who li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 22px 22px 22px 54px; position: relative; font-weight: 600; line-height: 1.55; }
.for-who li::before { content: ""; position: absolute; left: 22px; top: 25px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); opacity: 0.9; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: var(--card); }
.spec div { padding: 18px 22px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin-bottom: -1px; margin-right: -1px; }
.spec dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.spec dd { margin: 4px 0 0; font-weight: 600; }
.spec a { text-underline-offset: 3px; }

/* ── 다운로드 띠 ── */
.cta-band { border-radius: var(--radius); padding: 52px 28px; text-align: center; background: linear-gradient(135deg, var(--tint) 0%, var(--bg-soft) 100%); border: 1px solid var(--line); }
.cta-band .icon { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 22.5%; box-shadow: var(--shadow); }
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { margin: 10px 0 0; color: var(--muted); }
.cta-band .stores { justify-content: center; margin-top: 24px; }

/* ── 다른 앱 ── */
.other-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.other-apps a { display: flex; gap: 14px; align-items: center; height: 100%; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: box-shadow 0.2s ease; }
.other-apps a:hover { box-shadow: var(--shadow); }
.other-apps img { width: 52px; height: 52px; flex: none; border-radius: 22.5%; }
.other-apps b { display: block; font-size: 16px; letter-spacing: -0.02em; }
.other-apps span { display: block; font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ── 바닥글 ── */
.site-footer { padding: 0 0 44px; background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.contact-band h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.03em; color: var(--ink); }
.contact-band p { margin: 4px 0 0; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; padding-top: 40px; }
.footer-brand p { margin: 2px 0 0; max-width: 300px; }
.site-footer h2.label { margin: 0 0 12px; font-size: 14px; color: var(--ink); }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.biz { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); line-height: 1.9; }
.biz p { margin: 0; }
.biz span { display: inline-block; margin-right: 14px; }
.copy { margin-top: 10px !important; }

/* ── 404 ── */
.notfound { padding: 120px 0; text-align: center; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.04em; margin: 0; }
.notfound p { color: var(--muted); }

@media (max-width: 900px) {
  .app-hero .grid { grid-template-columns: 1fr; }
  .phone { display: none; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 52px 0 32px; }
  .apps-section { padding-bottom: 64px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
  .brand { font-size: 18px; }
  .app-card { padding: 22px; }
  .cta-band { padding: 40px 20px; }
}
@media (max-width: 340px) {
  .brand { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .brand-roll > span { animation: none; }
  .brand-roll > span + span { visibility: hidden; }
}
