/* LayerYear — 소개 페이지 */
:root {
  color-scheme: light dark;

  --brand-deep:   #0f47c9;
  --brand:        #2f6ff0;
  --brand-sky:    #79aef8;
  --sun:          #ff9f45;
  --sun-soft:     #ffd9a8;
  --blush:        #f7d7dd;

  --bg:           #f4f3f8;
  --bg-elev:      #ffffff;
  --bg-tint:      #fdf1e4;
  --ink:          #16171c;
  --ink-2:        #4b4d57;
  --ink-3:        #797c88;
  --line:         rgba(22, 23, 28, .10);
  --line-soft:    rgba(22, 23, 28, .06);
  --shadow-sm:    0 1px 2px rgba(16, 18, 30, .06), 0 6px 18px rgba(16, 18, 30, .06);
  --shadow-lg:    0 2px 6px rgba(16, 18, 30, .08), 0 24px 60px rgba(16, 18, 30, .14);

  --radius:       20px;
  --nav-control:  34px;   /* 상단 바의 받기 버튼·언어 선택 공통 높이 */
  --maxw:         1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Pretendard",
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #0d0e13;
    --bg-elev:   #171922;
    --bg-tint:   #221b14;
    --ink:       #f2f3f7;
    --ink-2:     #b6b9c6;
    --ink-3:     #878b9b;
    --line:      rgba(255, 255, 255, .12);
    --line-soft: rgba(255, 255, 255, .07);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5), 0 6px 18px rgba(0,0,0,.35);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 24px 60px rgba(0,0,0,.55);
    --brand:     #6f9dff;
    --brand-deep:#8fb4ff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- 헤더 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav a { color: var(--ink-2); }
.nav nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 680px) { .nav nav { display: none; } }

/* ---------- 공통 ---------- */
section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 650; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 14px;
}
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.18; margin: 0; font-weight: 700; }
h1 { font-size: clamp(34px, 6.2vw, 62px); }
h2 { font-size: clamp(27px, 3.9vw, 42px); }
h3 { font-size: clamp(19px, 2.1vw, 23px); letter-spacing: -.025em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); margin: 18px 0 0; max-width: 46ch; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .lead { margin-top: 14px; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(36px, 4.5vw, 60px); padding-bottom: clamp(56px, 7vw, 92px); }
.hero::before {
  content: ""; position: absolute; inset: -30% -20% auto -20%; height: 130%;
  background:
    radial-gradient(60% 55% at 18% 8%,  color-mix(in srgb, var(--brand-sky) 40%, transparent), transparent 70%),
    radial-gradient(55% 50% at 88% 22%, color-mix(in srgb, var(--sun-soft) 55%, transparent), transparent 68%),
    radial-gradient(70% 60% at 60% 95%, color-mix(in srgb, var(--blush) 45%, transparent), transparent 72%);
  filter: blur(10px); opacity: .85; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 13.5px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 25%, transparent); }
.hero h1 { margin-top: 20px; }
.hero .lead { max-width: 42ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-size: 16px; font-weight: 600;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 38%, transparent); }
.btn-ghost { background: var(--bg-elev); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }

/* 아이콘의 겹친 레이어를 흉내낸 히어로 시각 요소 */
.stage { position: relative; display: grid; place-items: center; }
.stage .pane {
  position: absolute; width: 58%; aspect-ratio: 3 / 4; border-radius: 26px;
  border: 1px solid rgba(255,255,255,.55);
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand-sky) 55%, transparent), color-mix(in srgb, var(--sun-soft) 45%, transparent));
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}
.stage .pane.p1 { transform: translate(-32%, -5%) rotate(-6deg); opacity: .62; }
.stage .pane.p2 { transform: translate(-16%, 2%) rotate(-3deg); opacity: .78; }
.stage .phone { position: relative; z-index: 2; width: min(292px, 76vw); }

/* ---------- 기기 프레임 ---------- */
.phone {
  padding: 8px; border-radius: 42px;
  background: linear-gradient(165deg, #f6f6f9, #c9cad3 42%, #eceef3 62%, #b9bac5);
  box-shadow: var(--shadow-lg);
}
.phone picture { display: block; }
.phone img, .phone video { border-radius: 34px; width: 100%; background: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone { background: linear-gradient(165deg, #4a4c58, #23242c 42%, #3a3b45 62%, #191a20); }
}

.shot-card {
  position: relative; width: min(340px, 78vw); margin-inline: auto;
  border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-soft); background: #fff;
}
/* 잘라 낸 화면의 아래쪽을 부드럽게 흐린다 */
.shot-card picture, .shot-card img { display: block; border-radius: inherit; }
.shot-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 86px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 86%);
}

/* ---------- 기능 행 ---------- */
.feature { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
.feature + .feature { margin-top: clamp(72px, 9vw, 128px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .feature-text { order: 2; }
}
.feature-media { display: grid; place-items: center; }
.feature-media .phone { width: min(280px, 76vw); }
.feature-text h3 { margin-bottom: 14px; }
.feature-text p { color: var(--ink-2); margin: 0; max-width: 44ch; }
.tagline { font-size: 13px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--brand); margin: 0 0 10px; }
.notes { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notes li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 16px; }
.notes li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(140deg, var(--brand-sky), var(--sun));
}

/* ---------- 이것저것 ---------- */
.bits { background: var(--bg-elev); border-block: 1px solid var(--line-soft); }
.bits-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .bits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bits-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: var(--bg); display: flex; flex-direction: column; gap: 10px;
}
.card .badge {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand-sky) 40%, transparent), color-mix(in srgb, var(--sun-soft) 60%, transparent));
  font-size: 20px;
}
.card h3 { font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

.pair { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; margin-inline: auto; }
.pair .phone { width: 100%; padding: 6px; border-radius: 30px; }
.pair .phone img { border-radius: 25px; }

/* ---------- 영상 ---------- */
.reel { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .reel { grid-template-columns: 1fr 1fr; } }
.reel .phone { width: min(284px, 76vw); margin-inline: auto; }
.reel video { border-radius: 34px; width: 100%; background: #000; }
.reel .phone video { background: #000; }

/* ---------- 요약 그리드 ---------- */
.mini { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .mini { grid-template-columns: repeat(2, 1fr); } }
.mini .card { background: var(--bg-elev); }

/* ---------- 마무리 ---------- */
.closing { text-align: center; }
.closing .lead { margin-inline: auto; }
.status {
  margin: 34px auto 0; max-width: 620px; padding: 22px 26px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--bg-tint); color: var(--ink-2); font-size: 15.5px; text-align: left;
}
.status strong { color: var(--ink); }

footer { border-top: 1px solid var(--line-soft); padding-block: 40px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .sp { margin-left: auto; }

/* ---------- 등장 애니메이션 ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 개인정보 ---------- */
.privacy {
  position: relative; overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background:
    radial-gradient(70% 60% at 12% 0%,  color-mix(in srgb, var(--brand-sky) 26%, transparent), transparent 70%),
    radial-gradient(60% 55% at 92% 10%, color-mix(in srgb, var(--sun-soft) 34%, transparent), transparent 70%),
    var(--bg-elev);
}
.privacy-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.privacy-head .lead { margin-top: 16px; max-width: 48ch; }
.privacy-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px)  { .privacy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .privacy-grid { grid-template-columns: repeat(4, 1fr); } }
.pcard {
  border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elev) 72%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pcard h3 { font-size: 18px; margin-bottom: 10px; }
.pcard p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.fineprint {
  margin: clamp(26px, 3.5vw, 36px) 0 0; max-width: 78ch;
  color: var(--ink-3); font-size: 14px; line-height: 1.7;
}

/* ---------- 언어 전환 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav nav { margin-left: auto; }
.lang { display: inline-flex; align-items: center; }
.lang select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14.5px; line-height: 1; color: var(--ink-2);
  height: var(--nav-control); padding: 0 30px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background-color: var(--bg-elev);
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) calc(50% + 1px), calc(100% - 11px) calc(50% + 1px);
  background-size: 4px 4px, 4px 4px;
  background-repeat: no-repeat;
  cursor: pointer; max-width: 46vw;
}
.lang select:hover { color: var(--ink); }
.lang select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 680px) { .lang { margin-left: auto; } }

/* ---------- 방침 · 지원 문서 ---------- */
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.prose h2 {
  font-size: clamp(19px, 2.2vw, 23px); letter-spacing: -.025em;
  margin: clamp(36px, 4.5vw, 52px) 0 12px; padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--line-soft);
}
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { font-size: 17px; margin: 30px 0 6px; letter-spacing: -.015em; }
.prose p { margin: 0 0 16px; color: var(--ink-2); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose ul { margin: 0 0 16px; padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose .doc-meta {
  margin: 18px 0 28px; padding: 16px 18px; border-radius: 14px;
  background: var(--bg-elev); border: 1px solid var(--line);
  font-size: 15.5px; line-height: 1.8;
}
.table-wrap { overflow-x: auto; margin: 0 0 20px; -webkit-overflow-scrolling: touch; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 420px; }
.prose th, .prose td {
  text-align: left; vertical-align: top; padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft); color: var(--ink-2);
}
.prose th { color: var(--ink); font-weight: 650; border-bottom-color: var(--line); white-space: nowrap; }
.doc-links {
  max-width: 68ch; margin: clamp(44px, 6vw, 64px) auto 0; padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px;
}

/* ---------- 다운로드 버튼 ---------- */
.btn svg { flex: none; opacity: .9; }
.btn-primary svg { opacity: 1; }
.cta-meta { margin: 16px 0 0; font-size: 14.5px; color: var(--ink-3); }
.cta-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.cta-links a { color: var(--ink-2); }
.cta-links a:hover { color: var(--brand); }

.nav-cta {
  display: inline-flex; align-items: center;
  height: var(--nav-control); padding: 0 16px; border-radius: 999px;
  background: var(--brand); color: #fff !important;
  font-size: 14.5px; font-weight: 600; line-height: 1;
  transition: transform .18s ease;
}
.nav-cta:hover { text-decoration: none; transform: translateY(-1px); }

/* 마무리 섹션의 버튼은 가운데로 */
.closing .cta { justify-content: center; margin-top: 30px; }
.closing .req {
  margin: 28px auto 0; padding: 0; max-width: 620px;
  display: grid; gap: 12px 32px; grid-template-columns: 1fr;
  font-size: 14.5px; text-align: left;
}
@media (min-width: 620px) { .closing .req { grid-template-columns: repeat(2, 1fr); } }
.closing .req > div {
  display: flex; gap: 10px; align-items: baseline;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-elev);
}
.closing .req dt { font-weight: 650; color: var(--ink); flex: none; }
.closing .req dd { margin: 0; color: var(--ink-3); }

@media (max-width: 680px) {
  .nav nav { display: flex; margin-left: auto; }
  .nav nav a:not(.nav-cta) { display: none; }
}

/* 좁은 화면에서는 받기 버튼과 언어 선택이 먼저다. 워드마크는 접고 아이콘만 남긴다. */
@media (max-width: 460px) {
  .brand-name { display: none; }
  .nav .wrap { gap: 10px; }
  .lang select { padding: 0 26px 0 12px; font-size: 13.5px; }
  .nav-cta { padding: 0 13px; font-size: 13.5px; }
}
