:root {
  --bg: #ECE8E1;
  --paper: #F7F5F1;
  --ink: #141210;
  --ink-2: #3A3530;
  --muted: #6B655D;
  --line: #D8D2C8;
  --accent: #F04A1E;
  --panel: #0E0D0C;
  --panel-ink: #F2EEE8;
  --panel-muted: #A9A197;
  --panel-cell: #161412;
  --panel-line: #2A2724;
  --shadow: 0 30px 60px -24px rgba(20, 18, 16, .38);
  --radius: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0F0E0D;
  --paper: #191715;
  --ink: #F2EEE8;
  --ink-2: #D6D0C7;
  --muted: #9C948A;
  --line: #2E2A26;
  --panel: #1B1816;
  --panel-ink: #F2EEE8;
  --panel-muted: #A9A197;
  --panel-cell: #221F1C;
  --panel-line: #332E2A;
  --shadow: 0 30px 70px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Pretendard, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  word-break: keep-all; overflow-wrap: break-word;
  transition: background-color .25s ease, color .25s ease;
}
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* 상단 */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; text-decoration: none; }
.logo span { color: var(--accent); }
.links { display: flex; gap: 24px; font-size: 15px; color: var(--muted); margin-left: auto; }
.links a { text-decoration: none; }
.links a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.links + .tools { margin-left: 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); }
.lang a { font-size: 12.5px; font-weight: 700; text-decoration: none; padding: 4px 10px; border-radius: 999px; color: var(--muted); letter-spacing: .02em; }
.lang a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.theme { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme .i-moon { fill: currentColor; stroke: none; }
:root[data-theme="light"] .theme .i-sun, :root[data-theme="dark"] .theme .i-moon { display: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 첫 화면 */
.hero { padding: 80px 24px 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; background: var(--paper); }
.dot, .live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.live { background: #2BB673; box-shadow: 0 0 0 0 rgba(43, 182, 115, .5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(43,182,115,.5); } 70% { box-shadow: 0 0 0 7px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }
h1 { font-size: clamp(44px, 6.4vw, 78px); line-height: 1.04; letter-spacing: -0.05em; margin: 22px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.sub { color: var(--muted); font-size: 18px; margin: 0 0 10px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 30px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 16px; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.ghost { border: 1px solid var(--ink); }
.btn.accent { background: var(--accent); color: #fff; }

/* 폰 시연 */
.phone { margin: 0; justify-self: center; width: min(330px, 100%); }
.screen { position: relative; aspect-ratio: 9 / 18.5; border-radius: 38px; overflow: hidden; border: 9px solid #0B0A09; box-shadow: var(--shadow); background: var(--paper); }
.screen::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 30%; height: 20px; transform: translateX(-50%); background: #0B0A09; border-radius: 999px; }
.screen::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; z-index: 1; background: linear-gradient(to top, color-mix(in srgb, var(--paper) 70%, transparent), transparent); pointer-events: none; }
.track { will-change: transform; padding-top: 34px; }
.track img { display: block; width: 100%; height: auto; }
:root[data-theme="light"] .th-dark, :root[data-theme="dark"] .th-light { display: none; }
.phone figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
  .screen { overflow-y: auto; }
  .live { animation: none; }
  html { scroll-behavior: auto; }
}

/* 섹션 공통 */
section { padding: 72px 0; }
.label { font-size: 13.5px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 16px; font-weight: 800; }
.lede { color: var(--muted); max-width: 660px; margin: 0 0 36px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step b { display: block; font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.step h3 { margin: 0 0 8px; font-size: 21px; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.panel { background: var(--panel); color: var(--panel-ink); border-radius: 32px; padding: 64px 48px; }
:root[data-theme="dark"] .panel { border: 1px solid var(--line); }
:root[data-theme="dark"] .screen { box-shadow: 0 0 0 1px #3A3430, var(--shadow); }
.panel .lede { color: var(--panel-muted); }
.panel.center { text-align: center; }
.panel.center .lede { margin: 0 auto 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--panel-cell); padding: 28px; }
.feature h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--panel-muted); font-size: 15.5px; }
.tag { display: inline-block; font-size: 12px; color: var(--accent); border: 1px solid #4A2A1F; border-radius: 999px; padding: 2px 10px; margin-bottom: 14px; }

.demo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.demo .phone { width: min(310px, 100%); }
.cards { display: grid; gap: 12px; }
.card { display: block; text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--ink); }
.card small { color: var(--muted); font-size: 14px; }
.card strong { display: block; font-size: 18px; letter-spacing: -0.02em; margin: 4px 0; line-height: 1.4; }
.card .open { color: var(--accent); }

/* 서비스 라인업 */
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.product h3 { margin: 18px 0 6px; font-size: 22px; letter-spacing: -0.03em; }
.product h3 small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.product p { margin: 0 0 10px; color: var(--muted); font-size: 15.5px; }
.product p.h { color: var(--ink); font-weight: 600; font-size: 16.5px; }
.product .note { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.product .more { margin-top: auto; padding-top: 12px; font-weight: 600; color: var(--accent); text-decoration: none; font-size: 15px; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.badge { flex-shrink: 0; white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; }
.badge.beta { background: var(--accent); color: #fff; }
.badge.alpha { border: 1px solid var(--muted); color: var(--muted); }
.badge.released { background: #2BB673; color: #fff; }
.art-vp { background: radial-gradient(ellipse at 50% 120%, #1d1f2a 0%, #050506 60%); display: grid; place-items: center; perspective: 600px; }
.vp-screen { width: 62%; aspect-ratio: 16 / 9; border-radius: 6px; background: linear-gradient(135deg, #2c3e66, #8a5a9e 55%, #e0866a); box-shadow: 0 0 60px rgba(140, 120, 220, .35); transform: rotateX(4deg); display: grid; place-items: center; }
.vp-play { width: 0; height: 0; border-left: 16px solid rgba(255,255,255,.9); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.vp-floor { position: absolute; bottom: 18px; width: 50%; height: 12px; border-radius: 50%; background: rgba(140,120,220,.18); filter: blur(6px); }
.art { position: relative; margin-top: 16px; height: 190px; border-radius: 16px; overflow: hidden; padding: 18px; }
.art-yt { background: linear-gradient(140deg, #2a1209, #0E0D0C 60%, #3a2a14); display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.yt-line { height: 10px; border-radius: 6px; background: rgba(255,255,255,.18); }
.w90 { width: 90%; } .w70 { width: 70%; } .w80 { width: 80%; }
.yt-sum { display: flex; gap: 8px; margin-top: 8px; }
.yt-sum i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); background: rgba(255,255,255,.07); border-radius: 8px; padding: 10px 12px; flex: 1; }
.art-trip { background: linear-gradient(160deg, #E9DFC9, #D8C7A4); color: #2A2116; }
.art-trip .day { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.art-trip .day b { font-size: 12px; background: #2A2116; color: #F3E9D2; border-radius: 6px; padding: 2px 7px; }
.art-trip .day span { flex: 1; height: 9px; border-radius: 6px; background: rgba(42,33,22,.22); }
.art-trip .day:nth-child(2) span { flex: .7; } .art-trip .day:nth-child(3) span { flex: .85; }
.art .stats { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; gap: 8px; }
.art .stats div { flex: 1; background: rgba(255,255,255,.55); border-radius: 10px; padding: 8px 10px; line-height: 1.2; }
.art .stats strong { display: block; font-size: 20px; letter-spacing: -0.03em; }
.art .stats small { font-size: 11.5px; opacity: .75; }
.art-studio { background: #1B1A22; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 8px; padding: 14px 14px 74px; }
.art-studio i { border-radius: 10px; }
.art-studio i:nth-child(1) { background: linear-gradient(135deg, #F7C6A3, #E46F5E); }
.art-studio i:nth-child(2) { background: linear-gradient(135deg, #9FD3C7, #3C7A89); }
.art-studio i:nth-child(3) { background: linear-gradient(135deg, #F3E3B5, #C9A24B); }
.art-studio i:nth-child(4) { background: linear-gradient(135deg, #C6B8F0, #6F5BC9); }
.art-studio i:nth-child(5) { background: linear-gradient(135deg, #F5B5C8, #C2507A); }
.art-studio i:nth-child(6) { background: linear-gradient(135deg, #BFD9A8, #5E8B45); }
.art-studio .stats div { background: rgba(255,255,255,.1); color: #EDEAF5; }

/* 회사 */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.about .lede { margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; align-content: start; }
.fact { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.fact dt { color: var(--muted); font-size: 13px; }
.fact dd { margin: 0; font-weight: 700; font-size: 17px; }

.legal { background: var(--paper); border-radius: var(--radius); padding: 36px; border: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.legal h3 { margin: 0 0 10px; font-size: 19px; color: var(--ink); }
.legal ul { margin: 0 0 24px; padding-left: 20px; }
.legal ul:last-child { margin-bottom: 0; }

footer { padding: 40px 0 56px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-content: center; text-align: center; padding: 40px 16px; }
.nf h1 { font-size: clamp(36px, 6vw, 56px); }

@media (max-width: 960px) {
  .lineup { grid-template-columns: 1fr; }
  .links { display: none; }
  .tools { margin-left: auto; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .hero { grid-template-columns: 1fr; padding: 40px 16px 48px; gap: 44px; }
  .demo, .about { grid-template-columns: 1fr; }
  .demo .phone { order: 2; }
  .steps, .features { grid-template-columns: 1fr; }
  .panel { padding: 44px 22px; border-radius: 24px; }
  .facts { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .legal { padding: 26px 22px; }
}

.more-link { font-size: 13.5px; font-weight: 600; color: var(--accent); text-decoration: none; margin-left: 8px; }

/* 법적 고지 페이지 */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 24px; }
.doc .back { font-size: 14px; color: var(--muted); text-decoration: none; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 18px 0 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc .intro { color: var(--ink-2); font-size: 17px; margin: 0 0 32px; }
.doc h2 { font-size: 20px; letter-spacing: -0.02em; margin: 32px 0 10px; }
.doc ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.doc li { margin-bottom: 6px; }

.more-row { margin-top: auto; padding-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline; font-size: 15px; }
.more-row a { text-decoration: none; }
.more-row a:first-child { font-weight: 600; color: var(--accent); }
.more-row a + a { color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* 회사 우선 개편: 첫 화면 수치, 주력 제품 머리, 연혁 */
.stats-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 30px; }
.stats-row div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; min-width: 120px; flex: 1; }
.stats-row dt { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.stats-row dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.flagship { display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: end; margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.flagship h2 small { display: block; font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.flagship .lede { margin-bottom: 0; }
.flagship-side { display: grid; gap: 16px; justify-items: start; }
.flagship-side .p-head { gap: 12px; }
.sub-h { font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.about .sub-h { margin-top: 28px; margin-bottom: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 16px 22px; display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline time { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.timeline span { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 860px) {
  .flagship { grid-template-columns: 1fr; gap: 20px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
}

/* 알파 화면 슬라이드 */
.product .note + .more-row { margin-top: 0; }
.view-btn { font: inherit; font-weight: 600; font-size: 15px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }
.view-btn::after { content: " →"; }
.gallery { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.gallery::backdrop { background: rgba(10, 9, 8, .62); backdrop-filter: blur(3px); }
.g-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.g-head p { margin: 0; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-head strong { color: var(--ink); }
.g-close, .g-prev, .g-next { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; cursor: pointer; flex-shrink: 0; }
.g-stage { margin: 0; padding: 16px 18px 4px; }
.g-img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.g-cap { margin-top: 10px; color: var(--ink-2); font-size: 15px; min-height: 2.6em; }
.g-foot { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 4px 18px 18px; }
.g-count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; min-width: 48px; text-align: center; }
