/* 새근 소개 사이트 — 앱과 같은 '밤하늘' 테마 */
:root {
  --bg: #070a16;
  --bg-top: #141b3d;
  --surface: #121831;
  --surface-2: #1a2142;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4fa;
  --text-2: #a3abc6;
  --text-3: #636d8e;
  --accent: #9aa8ff;
  --accent-strong: #7584f5;
  --moon: #f6e7b8;
  --good: #62d6aa;
  --danger: #f2647a;
  --radius: 22px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }

/* 배경 별하늘 */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1.5px 1.5px at 12% 8%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 22%, #fff6 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 46% 6%, #fff7 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 18%, #fff5 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 9%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 26%, #fff5 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 34%, #fff4 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 54% 31%, #fff5 50%, transparent 51%),
    radial-gradient(ellipse at 70% -10%, #1e2758 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-top) 0%, #0a0e22 45%, var(--bg) 100%);
}

/* 상단 메뉴 */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 10, 22, 0.55);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  color: #0b0f24;
  background: linear-gradient(135deg, #a9b5ff, var(--accent-strong));
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
}

main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { color: #0b0f24; background: linear-gradient(135deg, #a9b5ff, var(--accent-strong)); box-shadow: 0 10px 30px rgba(117, 132, 245, 0.35); }
.btn-ghost { color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); }
.btn-block { width: 100%; }

/* 히어로 */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 70px);
  padding: 40px 0 60px;
}
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--moon);
  background: rgba(246, 231, 184, 0.1);
  border: 1px solid rgba(246, 231, 184, 0.25);
}
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); margin: 20px 0 18px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--moon); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 30em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { display: flex; gap: 18px; flex-wrap: wrap; list-style: none; padding: 0; margin: 26px 0 0; color: var(--text-3); font-size: 14px; }
.hero-points li::before { content: '✓'; color: var(--good); margin-right: 6px; }

.hero-phones { position: relative; height: 640px; }
.phone {
  margin: 0;
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(160deg, #2b3360, #0d1026);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { border-radius: 30px; width: 100%; height: auto; }
.hero-phones .phone { position: absolute; width: 270px; }
.phone-back { right: 0; top: 0; transform: rotate(5deg); opacity: 0.9; }
.phone-front { left: 6%; top: 70px; transform: rotate(-4deg); z-index: 2; }
.moon-glow {
  position: absolute;
  inset: 10% 5% auto auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 231, 184, 0.22), rgba(154, 168, 255, 0.08) 45%, transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* 섹션 공통 */
.section { padding: 80px 0; scroll-margin-top: 64px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; margin-bottom: 10px; }
.section h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; margin-bottom: 36px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }

/* 기능 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 15px; }

/* 화면 갤러리 */
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 230px;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
}
.shot { margin: 0; scroll-snap-align: start; }
.shot .phone { border-radius: 32px; padding: 6px; }
.shot .phone img { border-radius: 26px; }
.shot figcaption { display: flex; flex-direction: column; margin-top: 14px; }
.shot figcaption span { color: var(--text-2); font-size: 14px; }

/* 사용 방법 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(154, 168, 255, 0.14);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.steps h3 { font-size: 18px; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: 15px; }

/* 개인정보 */
.privacy {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
  border-top: 1px solid var(--border);
}
.privacy-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.privacy-list li {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(98, 214, 170, 0.06);
  border: 1px solid rgba(98, 214, 170, 0.18);
}
.privacy-list span { color: var(--text-2); font-size: 15px; }

/* 다운로드 */
.download { border-top: 1px solid var(--border); }
.download h2 { margin-bottom: 6px; }
.download > .muted { margin-bottom: 30px; }
/* 카드 세 장은 화면 크기와 관계없이 항상 같은 너비·같은 높이 */
.dl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-items: stretch; }
.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head h3 { font-size: 20px; }
.dl-head .muted { font-size: 14px; }
.dl-os {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--surface-2) center / 24px no-repeat;
  flex: none;
}
.dl-card[data-platform='ios'] .dl-os { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23F3F4FA'%3E%3Cpath d='M16.4 12.6c0-2.4 2-3.6 2.1-3.7-1.1-1.7-2.9-1.9-3.5-1.9-1.5-.2-2.9.9-3.7.9-.8 0-1.9-.9-3.2-.8-1.6 0-3.1 1-4 2.4-1.7 3-.4 7.4 1.2 9.8.8 1.2 1.8 2.5 3 2.4 1.2 0 1.7-.8 3.1-.8 1.5 0 1.9.8 3.2.8 1.3 0 2.1-1.2 2.9-2.4.9-1.4 1.3-2.7 1.3-2.8-.1 0-2.4-.9-2.4-3.9zM14 5.5c.7-.8 1.1-1.9 1-3-1 0-2.1.6-2.8 1.4-.6.7-1.2 1.8-1 2.9 1.1.1 2.1-.5 2.8-1.3z'/%3E%3C/svg%3E"); }
.dl-card[data-platform='android'] .dl-os { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2362D6AA'%3E%3Cpath d='M17.6 9.5l1.8-3.1a.4.4 0 0 0-.7-.4l-1.8 3.1A11 11 0 0 0 12 8.2c-1.8 0-3.4.4-4.9 1L5.3 6a.4.4 0 0 0-.7.4l1.8 3.1A9.6 9.6 0 0 0 1.5 17h21a9.6 9.6 0 0 0-4.9-7.5zM7 14.3a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm10 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2z'/%3E%3C/svg%3E"); }
.dl-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--moon);
  background: rgba(246, 231, 184, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  display: none;
}
html[data-os='ios'] .dl-card[data-platform='ios'],
html[data-os='android'] .dl-card[data-platform='android'] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-os='ios'] .dl-card[data-platform='ios'] .dl-badge,
html[data-os='android'] .dl-card[data-platform='android'] .dl-badge { display: inline-block; }
html[data-os='ios'] .dl-card[data-platform='ios'],
html[data-os='android'] .dl-card[data-platform='android'] { order: -1; }

.ios-only { display: none !important; }
html[data-os='ios'] .ios-only { display: inline-flex !important; }
html:not([data-os='desktop']) .desktop-only { display: none !important; }

.guide { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; display: grid; gap: 6px; }
.guide b { color: var(--text); font-weight: 600; }
.notice {
  font-size: 15px;
  color: var(--text-2);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 16px;
}
.notice b { color: var(--text); }

.qr-card { align-items: center; text-align: center; }
.qr-card .btn { margin-top: auto; }
.qr { width: 180px; height: 180px; background: #fff; border-radius: 14px; padding: 10px; display: grid; place-items: center; }
.qr img, .qr svg { width: 100%; height: 100%; }

.notes { margin-top: 24px; padding: 22px 24px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.notes h3 { font-size: 16px; margin-bottom: 8px; }
.notes ul { margin: 0; padding-left: 20px; color: var(--text-2); }

.lock { max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; }
.lock-row { display: flex; gap: 10px; }
.lock input {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  padding: 0 16px;
  font: inherit;
}
.error { color: var(--danger); font-size: 14px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--text-2); margin-top: 10px; }

.footer { max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.footer a { color: var(--accent); }

/* 반응형 */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; text-align: left; }
  .hero-phones { height: 520px; max-width: 420px; width: 100%; margin: 0 auto; }
  .hero-phones .phone { width: 220px; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 0; }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 56px 0; }
  .hero h1 { margin-top: 16px; }
  .hero-actions .btn { flex: 1; }
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 190px; border-radius: 30px; padding: 6px; }
  .hero-phones .phone img { border-radius: 24px; }
  .phone-front { left: 0; top: 50px; }
  .features, .steps, .dl-grid { grid-template-columns: 1fr; }
  .gallery { grid-auto-columns: 72%; }
  .lock-row { flex-direction: column; }
}
