/* 국문(/)·영문(/en/) 홈페이지 공용 — 문안만 다르고 이 CSS를 같이 씁니다(이전 style.css는 약관·방침 화면용으로 남음).
 *
 * ⛔ 이 파일의 제약은 CSS가 아니라 호스팅이 겁니다(firebase.json 「default-src 'none'; style-src 'self'; img-src 'self'」).
 *   - 스크립트가 없습니다. 움직임은 전부 CSS 애니메이션입니다.
 *   - 인라인 style 속성을 못 씁니다.
 *   - **도입 문장·글자별 등장은 뺐습니다**(총괄 10-01 — 새로고침마다 보게 되는데 「방문 기록」은 스크립트·저장이 있어야 해서 연출 자체를 뺌). 페이지는 처음부터 다 보입니다.
 *   - 글꼴은 시스템 글꼴입니다(외부 글꼴 요청이 0이어야 방침·국외 이전 물음이 안 생깁니다 — 법무 131차 권고).
 *   - 링크 색(--link)은 본문색(--text)과 대비돼야 합니다(CalOPPA § 22577(b)(3)(C) · testHomepage가 잠급니다).
 *
 * 레이아웃: 히어로(좌 헤드라인 · 우 폰 시연 루프) → 예시 문장 마르키 → 타일 → 실제 화면 → 약관·문의.
 */
:root {
  color-scheme: dark;
  --bg: #0b0e14; --card: #131824; --line: rgba(255, 255, 255, .1);
  --text: #f1f5f9; --muted: #a3b1c4; --link: #38bdf8;
  --sky: #38bdf8; --brand: #0284c7; --amber: #fbbf24; --ok: #34d399;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; text-wrap: balance; }
a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
ul { list-style: none; margin: 0; padding: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)); }

/* 배경: 천천히 떠다니는 빛 두 덩이 */
body::before, body::after { content: ""; position: fixed; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
body::before { width: 520px; height: 520px; background: rgba(2, 132, 199, .22); top: -160px; right: -80px; animation: fl1 18s ease-in-out infinite alternate; }
body::after { width: 420px; height: 420px; background: rgba(56, 189, 248, .11); top: 46vh; left: -140px; animation: fl2 22s ease-in-out infinite alternate; }
@keyframes fl1 { to { transform: translate(-120px, 90px); } }
@keyframes fl2 { to { transform: translate(160px, -60px); } }

/* ── 상단 · 히어로 ── */
.nav { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -.03em; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav a { font-size: 13px; padding: 10px 4px; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-block: 36px 64px; }
.eyebrow { font: 500 12px var(--mono); color: var(--sky); letter-spacing: .08em; margin-bottom: 18px; }
h1 { font-size: clamp(40px, 7vw, 78px); line-height: 1.06; font-weight: 900; letter-spacing: -.05em; }
h1 .ln { display: block; padding-bottom: .06em; }
html[lang="en"] h1 { font-size: clamp(38px, 6.2vw, 68px); }
h1 em { font-style: normal; color: var(--sky); text-shadow: 0 0 32px rgba(56, 189, 248, .5); }
.lead { margin-top: 22px; color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 28em; }
.sub-en { margin-top: 8px; color: var(--muted); font-size: 13px; opacity: .85; }
.btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; background: var(--sky); color: #0b0e14; font: 700 15px var(--sans); padding: 15px 24px; border-radius: 12px; text-decoration: none; position: relative; transition: transform .25s, box-shadow .25s; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ping 2.5s infinite; animation-delay: 2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(56, 189, 248, .6); }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(56, 189, 248, 0); } }

/* ── 폰: 15초 루프를 키프레임 백분율로 짠다(스크립트 없이). ──
 * 0.4~1.6초 첫 문장 입력 · 2.0 카드1 · 3.0~4.8 둘째 문장 · 5.2 카드2 · 6.2~7.4 셋째 문장 · 7.8 카드3
 * 9.2 알림(+벨) · 14.0 알림 내림 · 14.2~14.8 비움. 몸체의 기본값은 「다 끝난 모습」이라 애니메이션이 꺼지면 그 모습이 남는다. */
.stage { display: flex; justify-content: center; perspective: 1000px; }
.phone { width: min(290px, 100%); aspect-ratio: 9 / 18.6; border-radius: 38px; padding: 9px; background: #05070b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 90px -20px rgba(56, 189, 248, .35); transform: rotateY(-8deg) rotateX(3deg); transition: transform .5s; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
.screen { --d: .6s; position: relative; height: 100%; border-radius: 30px; background: var(--bg); padding: 38px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; font-size: 12px; }
.notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 64px; height: 7px; border-radius: 9px; background: #1b2130; }
.hd { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; }
.bell { width: 14px; height: 14px; transform-origin: 50% 0; animation: ring 15s var(--d) linear infinite both; }
.odo { font: 500 24px var(--mono); letter-spacing: -.03em; }
.odo small { font: 400 11px var(--sans); color: var(--muted); margin-left: 4px; }
.typed { position: relative; display: grid; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 13px; min-height: 42px; }
.typed > span { grid-area: 1 / 1; display: block; white-space: nowrap; width: max-content; }
.typed .t2, .typed .t3 { opacity: 0; }
.typed i { position: absolute; right: 12px; top: 12px; width: 1.5px; height: 15px; background: var(--sky); animation: bl 1s steps(1) infinite; }
.list { display: flex; flex-direction: column; gap: 7px; }
.rec { background: var(--card); border-radius: 12px; padding: 9px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.rec .tag { font-size: 10.5px; font-weight: 700; color: var(--sky); }
.rec b { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 500 13px var(--mono); }
.rec .s { color: var(--muted); font-size: 11px; }
.rec.m .tag { color: var(--amber); } .rec.w .tag { color: var(--ok); }
.sum { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: 11px; padding: 0 2px; }
.sum .v { display: grid; justify-items: end; }
.sum .v b { grid-area: 1 / 1; font: 500 16px var(--mono); color: var(--text); opacity: 0; }
.sum .v .s3 { opacity: 1; }
.warn { border: 1px solid rgba(251, 191, 36, .35); background: rgba(251, 191, 36, .08); border-radius: 12px; padding: 9px 12px; font-size: 11px; color: var(--amber); }
@keyframes bl { 50% { opacity: 0; } }
.typed .t1 { animation: ty1 15s var(--d) linear infinite both; }
.typed .t2 { animation: ty2 15s var(--d) linear infinite both; }
.typed .t3 { animation: ty3 15s var(--d) linear infinite both; }
.rec.r1 { animation: cd1 15s var(--d) linear infinite both; }
.rec.r2 { animation: cd2 15s var(--d) linear infinite both; }
.rec.r3 { animation: cd3 15s var(--d) linear infinite both; }
.sum .s0 { animation: sm0 15s var(--d) linear infinite both; }
.sum .s1 { animation: sm1 15s var(--d) linear infinite both; }
.sum .s2 { animation: sm2 15s var(--d) linear infinite both; }
.sum .s3 { animation: sm3 15s var(--d) linear infinite both; }
.warn { animation: wn 15s var(--d) linear infinite both; }
@keyframes ty1 { 0%, 2.67% { clip-path: inset(0 100% 0 0); animation-timing-function: steps(9, end); } 10.67%, 17.2% { clip-path: inset(0); opacity: 1; } 17.4%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; } }
@keyframes ty2 { 0%, 20% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: steps(13, end); } 32%, 38.5% { clip-path: inset(0); opacity: 1; } 38.7%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; } }
@keyframes ty3 { 0%, 41.33% { clip-path: inset(0 100% 0 0); opacity: 1; animation-timing-function: steps(8, end); } 49.33%, 55.8% { clip-path: inset(0); opacity: 1; } 56%, 100% { clip-path: inset(0 100% 0 0); opacity: 0; } }
@keyframes cd1 { 0%, 13.3% { opacity: 0; transform: translateY(-12px) scale(.96); } 16.7%, 94.7% { opacity: 1; transform: none; } 98.7%, 100% { opacity: 0; transform: none; } }
@keyframes cd2 { 0%, 34.6% { opacity: 0; transform: translateY(-12px) scale(.96); } 38%, 94.7% { opacity: 1; transform: none; } 98.7%, 100% { opacity: 0; transform: none; } }
@keyframes cd3 { 0%, 52% { opacity: 0; transform: translateY(-12px) scale(.96); } 55.3%, 94.7% { opacity: 1; transform: none; } 98.7%, 100% { opacity: 0; transform: none; } }
@keyframes sm0 { 0%, 13.3% { opacity: 1; } 13.6%, 98% { opacity: 0; } 99%, 100% { opacity: 1; } }
@keyframes sm1 { 0%, 13.3% { opacity: 0; } 13.6%, 34.6% { opacity: 1; } 34.9%, 100% { opacity: 0; } }
@keyframes sm2 { 0%, 34.6% { opacity: 0; } 34.9%, 52% { opacity: 1; } 52.3%, 100% { opacity: 0; } }
@keyframes sm3 { 0%, 52% { opacity: 0; } 52.3%, 98% { opacity: 1; } 98.7%, 100% { opacity: 0; } }
@keyframes wn { 0%, 61.3% { transform: translateY(130%); opacity: 0; animation-timing-function: cubic-bezier(.2, .9, .3, 1.1); } 65.3%, 93.3% { transform: none; opacity: 1; } 96%, 100% { transform: translateY(130%); opacity: 0; } }
@keyframes ring { 0%, 61.3% { rotate: 0deg; } 62.3% { rotate: 18deg; } 63.3% { rotate: -16deg; } 64.3% { rotate: 12deg; } 65.3% { rotate: -8deg; } 66.3% { rotate: 4deg; } 67.3%, 100% { rotate: 0deg; } }

/* ── 마르키 ── */
.marq { border-block: 1px solid var(--line); overflow: hidden; padding-block: 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: run 34s linear infinite; }
.marq:hover .track { animation-play-state: paused; }
.chip { font: 500 13px var(--mono); color: var(--muted); border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.chip em { font-style: normal; color: var(--sky); }
@keyframes run { to { transform: translateX(-50%); } }

/* ── 타일 · 실제 화면 ── */
.sec { padding-block: 72px 24px; }
.sec h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -.04em; line-height: 1.25; margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 56px; }
.tile { position: relative; overflow: hidden; display: grid; gap: 10px; align-content: start; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; transition: transform .3s, border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, .4); }
.tile .n { font: 500 12px var(--mono); color: var(--sky); }
.tile h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.tile p { color: var(--muted); line-height: 1.7; font-size: 14px; }
.wide { grid-column: span 2; }
.stat { font: 500 42px var(--mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat small { font: 400 14px var(--sans); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.meter { height: 8px; border-radius: 9px; background: #1f2736; overflow: hidden; }
.meter i { display: block; height: 100%; width: 18%; border-radius: 9px; background: linear-gradient(90deg, var(--brand), var(--sky)); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; }
.bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--sky), var(--brand)); }
.b1 { height: 38%; } .b2 { height: 56%; } .b3 { height: 44%; } .b4 { height: 72%; } .b5 { height: 50%; } .b6 { height: 100%; }
.tl { display: grid; gap: 8px; margin-top: 4px; }
.tl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; }
.tl b { font: 500 13px var(--mono); color: var(--text); white-space: nowrap; }
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 12px; }
.shots img { width: 100%; height: auto; display: block; border-radius: 16px; border: 1px solid var(--line); }
.note { color: var(--muted); font-size: 13px; line-height: 1.7; padding-bottom: 48px; }

/* 스크롤에 맞춘 등장(지원하는 브라우저만 · 안 되면 처음부터 다 보인다) */
@supports (animation-timeline: view()) {
  .tile, .sec h2, .end .wrap { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  .meter i, .bars i { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% entry 80%; }
  .bars i { transform-origin: bottom; animation-name: growY; }
  .meter i { transform-origin: left; }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } }
  @keyframes grow { from { transform: scaleX(0); } }
  @keyframes growY { from { transform: scaleY(0); } }
}

.end { padding-block: 72px; text-align: center; border-top: 1px solid var(--line); }
.end h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; letter-spacing: -.04em; }
.end .btn { animation: none; margin-top: 26px; }
.end .btn::after { animation: none; }
.info { padding-block: 48px 8px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.info h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.info li + li { margin-top: 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.25rem; }
.card p + p { margin-top: .35rem; }
footer { padding-block: 24px max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }

/* ── 모바일 ── */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 44px; padding-block: 28px 56px; min-height: calc(100svh - 120px); align-content: start; }
  h1 { font-size: clamp(46px, 14vw, 72px); }
  html[lang="en"] h1 { font-size: clamp(40px, 12vw, 64px); }
  .lead { font-size: 16px; }
  .btn { display: flex; justify-content: center; width: 100%; padding: 17px 24px; font-size: 16px; }
  .grid, .info { grid-template-columns: 1fr; gap: 12px; }
  .wide { grid-column: auto; }
  .tile { padding: 20px; border-radius: 18px; }
  .tile h3 { font-size: 18px; }
  .phone { transform: none; width: min(280px, 78vw); }
  .stat { font-size: 36px; }
  .sec { padding-block: 56px 20px; }
  .end { padding-block: 56px; }
  .shots { gap: 8px; }
  body::before { width: 340px; height: 340px; filter: blur(60px); }
  body::after { width: 280px; height: 280px; filter: blur(60px); }
  .info { gap: 24px; }
}
@media (hover: none) {
  .tile:hover { transform: none; border-color: var(--line); }
  .phone { transform: none; }
}

/* 동작 줄이기: 도입 없이 「다 끝난 모습」을 바로 보인다 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
