/* JettLabs — "미드나잇 잉크 + 제트 블루". 제품(앱) 팔레트와 일부러 다른 차가운 회사 톤. */
:root {
  --bg: #FFFFFF;
  --surface: #F6F7F9;
  --ink: #0B0D12;
  --muted: #555D6B;
  --border: #E4E7EC;
  --accent: #3355FF;
  --accent-2: #7B5CFF;
  --accent-soft: #EEF1FF;
  /* 항상 어두운 띠(헤더·히어로·CTA·푸터) */
  --night: #0B0D12;
  --night-2: #12151D;
  --night-ink: #F3F5F9;
  --night-muted: #A3ABBA;
  --night-border: #222734;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11,13,18,.04), 0 8px 24px rgba(11,13,18,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B0D12;
    --surface: #12151D;
    --ink: #EEF1F6;
    --muted: #9AA3B2;
    --border: #222734;
    --accent: #7D93FF;
    --accent-2: #A08BFF;
    --accent-soft: #171C2E;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 타이포 */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 750; }
h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 3.8vw, 40px); }
h3 { font-size: 18px; letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin: 0 0 32px; max-width: 640px; }
.muted { color: var(--muted); }
.label, .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}
.label::before, .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.grad {
  background: linear-gradient(90deg, #7D93FF, #B49BFF 55%, #6FE0FF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* 버튼 */
.stores, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: 15px;
  text-decoration: none; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #2443E6; }
.btn-secondary { border: 1px solid var(--border); color: var(--ink); background: var(--bg); }
.btn-secondary:hover { border-color: var(--ink); }
.on-night .btn-secondary { background: transparent; color: var(--night-ink); border-color: #3A4152; }
.on-night .btn-secondary:hover { border-color: var(--night-ink); }
.btn-light { background: #fff; color: var(--night); }

/* 머리 */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,13,18,.82); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--night-border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; color: var(--night-ink); text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, #3355FF, #7B5CFF); color: #fff; font-size: 15px; font-weight: 800;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.nav-links { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.nav-links a { white-space: nowrap; color: var(--night-muted); text-decoration: none; padding: 7px 12px; border-radius: 999px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--night-ink); background: rgba(255,255,255,.06); }
.nav-links .lang { border: 1px solid var(--night-border); }
.nav-links .nav-cta { background: #fff; color: var(--night); font-weight: 650; margin-left: 4px; }
.nav-links .nav-cta:hover { background: #E6E9F0; color: var(--night); }

/* 어두운 띠 공통 */
.on-night { background: var(--night); color: var(--night-ink); }
.on-night .lead, .on-night .muted { color: var(--night-muted); }
.on-night .label, .on-night .eyebrow { color: #8FA2FF; }

/* 홈 히어로: 격자 + 빛 번짐 */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--night-border); }
.hero-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero-band::after {
  content: ""; position: absolute; left: 50%; top: -220px; width: 900px; height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(51,85,255,.45), rgba(123,92,255,.18) 55%, transparent);
  filter: blur(20px); pointer-events: none;
}
.hero-center { position: relative; z-index: 1; text-align: center; padding-block: 112px 104px; }
.hero-center .lead { margin-left: auto; margin-right: auto; }
.hero-center .actions { justify-content: center; }
.hero-meta { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--night-muted); font-size: 14px; }
.hero-meta span::before { content: "✓"; color: #8FA2FF; margin-right: 8px; }

/* 섹션 */
section { padding: 96px 0 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }

/* 카드 격자 */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { width: 22px; height: 22px; }
.tag {
  display: inline-block; font: 600 11px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: 1px 7px; margin-left: 8px; vertical-align: 3px; letter-spacing: .04em;
}

/* 제품 카드(products.json). shots가 있으면 넓은 강조형 */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.product {
  display: flex; flex-direction: column; color: inherit; text-decoration: none;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s;
}
.product:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.product-body { padding: 30px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-top { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.product-top img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 0 0 1px var(--border); }
.product h3 { font-size: 22px; margin: 0; }
.product p { margin: 0; color: var(--muted); }
.platforms { font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: .04em; }
.more { margin-top: auto; padding-top: 18px; color: var(--accent); font-weight: 650; font-size: 15px; }
.product.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.product-visual {
  position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 16px;
  padding: 40px 32px 0; min-height: 320px;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(123,92,255,.35), transparent 60%),
    radial-gradient(90% 80% at 10% 100%, rgba(51,85,255,.45), transparent 60%),
    var(--night);
}
.product-visual img { width: 42%; max-width: 210px; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.35); }
.product-visual img + img { margin-bottom: -36px; }

/* 원칙 */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid var(--border); }
.principles > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--border); }
.principles .num { font: 600 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.principles h3 { margin: 14px 0 8px; }
.principles p { margin: 0; color: var(--muted); font-size: 15px; }

/* CTA 띠 */
.cta-band {
  margin-top: 104px; border-radius: 24px; padding: 64px 48px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(51,85,255,.5), transparent);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin: 0 0 8px; }
.cta-band p { margin: 0; }

/* 제품 상세 페이지 히어로(밝은 면) */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; }
.app-mark { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.app-mark img { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 0 0 1px var(--border), 0 6px 16px rgba(11,13,18,.1); }
.app-mark strong { display: block; font-size: 17px; }
.app-mark span { color: var(--muted); font-size: 14px; }
.shots { display: flex; gap: 16px; justify-content: center; padding: 32px 24px 0; border-radius: 24px; overflow: hidden;
  background: radial-gradient(100% 80% at 70% 0%, rgba(123,92,255,.3), transparent 60%), radial-gradient(90% 80% at 10% 100%, rgba(51,85,255,.4), transparent 60%), var(--night); }
.shots img { width: 46%; max-width: 220px; border-radius: 22px 22px 0 0; }
.shots img:nth-child(2) { margin-top: 36px; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.promises li { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; font-weight: 600; background: var(--surface); }
.promises li::before { content: "✓"; color: var(--accent); margin-right: 10px; }
.verse { text-align: center; }
.verse blockquote { margin: 0 auto; max-width: 760px; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.6; letter-spacing: -0.01em; font-weight: 600; }
.verse cite { display: block; margin-top: 14px; color: var(--muted); font-style: normal; font: 500 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; }

/* 문서(처리방침) */
.doc { max-width: 820px; padding-top: 56px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); }
.doc h1 + p, .doc h2 { margin-top: 36px; }
.doc h2 { font-size: 21px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--border); padding: 9px 11px; text-align: left; vertical-align: top; }
.doc th { background: var(--surface); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 56px 0; }

/* 바닥 */
.site-footer { margin-top: 104px; padding: 64px 0 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--night-border); }
.footer-grid h4 { margin: 0 0 14px; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--night-ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--night-muted); text-decoration: none; }
.site-footer a:hover { color: var(--night-ink); }
.footer-brand p { color: var(--night-muted); max-width: 320px; margin: 14px 0 0; }
.copy { margin: 24px 0 0; color: var(--night-muted); }

@media (max-width: 820px) {
  .hero, .product.featured { grid-template-columns: 1fr; }
  .product-visual { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-band { padding: 44px 28px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  section { padding-top: 72px; }
  .hero-center { padding-block: 80px 72px; }
  /* 좁은 화면: 언어 전환은 바닥에도 있으므로 머리에서 숨김 */
  .nav-links .lang { display: none; }
  .nav-links a { padding: 7px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
