:root {
  --ink: #111;
  --muted: #707070;
  --line: #e6e6e6;
  --soft: #f6f6f4;
  --accent: #ff5a1f;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --pad: clamp(20px, 4vw, 56px);
  --head: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #fff; color: var(--ink); font: 400 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
em { font-style: normal; color: var(--accent); }
h1, h2, .ticker span, .stats strong, .no, .n, .d-release { font-family: "Inter Tight", var(--sans); }
/* No lonely last words: balanced headings, tidy paragraphs (all languages) */
h1, h2, h3, .d-tagline, .about-lede, .contact .lede { text-wrap: balance; }
p, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Per-language fonts and line breaking */
html:lang(ja) { --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, "Noto Sans JP", sans-serif; }
html:lang(zh-Hant) { --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", sans-serif; }
html:lang(zh-Hans) { --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html:is(:lang(ja), :lang(zh), :lang(th)) body { word-break: normal; line-break: strict; }
html:not(:lang(ko)) body { word-break: normal; }
/* Arrows point the reading direction in RTL */
[dir="rtl"] svg:has(use[href$="#i-arrow"]) { scale: -1 1; }
[dir="rtl"] .back svg { transform: rotate(-90deg); }
[dir="rtl"] [data-i18n="f_tel"] { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--pad); }
html:not(:lang(ko)) .ko-only { display: none; }
.label { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Masthead ---------- */
.masthead { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 24px; height: var(--head); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 22px; width: auto; }
.logo .logo-mark { height: 28px; }
.bar nav { display: flex; gap: 32px; margin-inline-start: auto; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bar nav a { position: relative; padding: 4px 0; }
.bar nav a::after { content: ""; position: absolute; inset-inline: 0 100%; bottom: 0; height: 1px; background: currentColor; transition: inset-inline-end .25s; }
.bar nav a:hover::after { inset-inline-end: 0; }
.bar .nav-cta { color: var(--accent); }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding-inline: 14px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; transition: border-color .2s, background .2s; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: var(--ink); }
.lang-switch summary svg { font-size: 15px; }
.lang-switch .chev { font-size: 13px; color: var(--muted); transition: transform .2s; }
.lang-switch[open] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 20; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: min(400px, calc(100vw - 2 * var(--pad))); padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.12); animation: lang-pop .16s ease-out; }
@keyframes lang-pop { from { opacity: 0; transform: translateY(-6px); } }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: 500 14px/1.2 var(--sans); text-align: start; cursor: pointer; }
.lang-menu button:hover { background: var(--soft); }
.lang-menu small { font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.lang-menu button[aria-current="true"] { font-weight: 700; color: var(--accent); }
.lang-menu button[aria-current="true"] small { color: var(--accent); }

/* ---------- Cover ---------- */
.cover { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; padding-top: clamp(56px, 9vw, 120px); padding-bottom: clamp(56px, 8vw, 104px); align-items: end; }
.cover h1 { font-weight: 500; font-size: clamp(44px, 6vw, 92px); line-height: 1; letter-spacing: -.045em; margin: 0 0 32px; }
.lede { max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); color: #333; }
.cover-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 28px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.toc { border-top: 4px solid var(--ink); padding-top: 18px; }
.toc ol { margin-top: 14px; }
.toc a { display: grid; grid-template-columns: 28px 44px 1fr; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); transition: padding-inline-start .25s; }
.toc a:hover { padding-inline-start: 8px; }
.toc .n { font-size: 15px; font-weight: 500; color: var(--muted); }
.toc img { width: 44px; height: 44px; border-radius: 11px; }
.toc .t { font-weight: 700; font-size: 15px; letter-spacing: .04em; line-height: 1.35; }
.toc small { display: block; font-weight: 400; font-size: 13px; letter-spacing: 0; color: var(--muted); }

/* ---------- Ticker ---------- */
.ticker { direction: ltr; overflow: hidden; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; }
.ticker-track { display: flex; align-items: center; gap: 40px; width: max-content; animation: ticker 32s linear infinite; }
.ticker span { font-size: clamp(24px, 2.8vw, 36px); font-weight: 500; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(calc(-50% - 20px)); } }

/* ---------- Section ---------- */
.section { padding-top: clamp(72px, 10vw, 140px); }
.sec-head { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 8px 24px; padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 120px; height: 4px; background: var(--ink); }
.sec-head h2 { font-weight: 500; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.03em; margin-top: 10px; }
.sec-note { color: var(--muted); font-size: 15px; }
.sec-count { font-family: "Inter Tight", var(--sans); font-size: clamp(28px, 3vw, 40px); font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--muted); }

/* ---------- App grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 5vw, 64px) clamp(20px, 2.4vw, 32px); }
.tile { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--c); overflow: hidden; }
.tile img { width: 34%; border-radius: 22%; box-shadow: 0 24px 48px rgba(0,0,0,.25); transition: transform .4s; }
.card { display: block; }
.card:hover .tile img { transform: translateY(-8px) scale(1.04); }
.meta { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tags { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink); }
.stats .tags { display: flex; margin-top: 10px; font-size: 18px; color: var(--ink); }
.card h3 { display: flex; align-items: center; font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -.005em; margin: 14px 0 6px; }
.card h3 > b { font-weight: inherit; }
.card h3 > span { font-size: .55em; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-inline-start: 6px; }
.card h3 .go { margin-inline-start: auto; font-size: 22px; transition: transform .25s, color .25s; }
.card:hover h3 .go { transform: translate(3px, -3px); color: var(--accent); }
.no { font-size: 15px; font-weight: 500; color: var(--accent); }
.card > p { color: #444; font-size: 15px; max-width: 560px; }

/* Pills: outline by default, solid for store buttons */
.links { display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid #cfcfcf; border-radius: 999px; font-size: 13px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.links a:hover { border-color: var(--ink); background: var(--soft); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding-inline: 12px 18px; border-radius: 12px; background: #000; color: #fff; transition: background .2s, transform .2s; }
.badge:hover { background: #262626; transform: translateY(-1px); }
.badge svg { font-size: 28px; }
.badge span { font-size: 17px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.badge small { display: block; font-size: 10px; font-weight: 500; letter-spacing: .02em; opacity: .8; }

/* ---------- App detail ---------- */
.detail { padding-top: 36px; padding-bottom: clamp(72px, 10vw, 140px); }
.d-layout { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.d-aside { container-type: inline-size; position: sticky; top: calc(var(--head) + 32px); max-height: calc(100vh - var(--head) - 48px); overflow-y: auto; scrollbar-width: none; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.back:hover { color: var(--ink); }
.back svg { transform: rotate(90deg); }
.d-aside h1 { font-weight: 500; font-size: clamp(32px, 14.5cqi, 64px); line-height: 1.02; letter-spacing: -.04em; margin: 10px 0 18px; }
.d-aside h1 span { display: block; margin-top: 12px; font-family: var(--sans); font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.d-tagline { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.d-meta { margin-top: 32px; }
.d-meta > div { padding: 18px 0; border-top: 1px solid var(--line); }
.d-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.d-meta .d-sub { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; background: #3a3a3a; color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.chips svg { font-size: 15px; }
.d-release { font-size: 17px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.d-main { min-width: 0; }
.d-main .tile { aspect-ratio: 16 / 9; }
.d-main .tile img { width: 22%; }
.d-row { padding: clamp(40px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); }
.d-row > .label { margin-bottom: 24px; }
.d-overview { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.75; color: #222; }
.d-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 40px; }
.d-features li { border-top: 1px solid var(--ink); padding-top: 18px; }
.d-features .n { font-size: 15px; font-weight: 500; color: var(--accent); }
.d-features h3 { font-size: 19px; font-weight: 700; margin: 16px 0 6px; }
.d-features p { font-size: 15px; color: #555; }
.d-shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.d-shots img { width: 100%; border-radius: 24px; background: var(--soft); }
.d-next { display: flex; align-items: center; gap: 20px; margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--ink); }
.d-next .label { margin-inline-end: 12px; }
.d-next img { width: 56px; height: 56px; border-radius: 14px; }
.d-next strong { font-family: "Inter Tight", var(--sans); font-weight: 500; font-size: clamp(32px, 4.6vw, 64px); letter-spacing: -.03em; line-height: 1; }
.d-next .go { margin-inline-start: auto; font-size: 40px; transition: transform .25s, color .25s; }
.d-next:hover .go { transform: translate(4px, -4px); color: var(--accent); }

/* ---------- About ---------- */
.about-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 64px; }
.about-lede { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.about-body > p:not(.about-lede) { color: #444; align-self: end; }
.stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 48px; border-top: 1px solid var(--ink); }
.stats li { padding-top: 28px; padding-inline-end: 24px; }
.stats li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.stats strong { display: block; font-weight: 300; letter-spacing: -.05em; font-size: clamp(64px, 8vw, 112px); line-height: 1; }
.stats span { display: block; margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); margin-top: clamp(56px, 7vw, 96px); }
.services li { padding-top: 28px; padding-inline-end: 24px; }
.services li + li { padding-inline-start: 24px; border-inline-start: 1px solid var(--line); }
.services .n { font-size: 15px; font-weight: 500; color: var(--accent); }
.services h3 { font-size: 19px; font-weight: 700; margin: 36px 0 10px; }
.services p { font-size: 15px; color: #555; }

/* ---------- Contact ---------- */
.contact { text-align: center; padding-bottom: clamp(72px, 10vw, 140px); }
.contact h2 { font-weight: 500; font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -.03em; margin-bottom: 20px; }
.contact .lede { margin: 0 auto; max-width: 780px; }
.contact .ct-hi { color: var(--ink); font-weight: 600; margin-bottom: 6px; }
/* Liquid-glass pills */
.ct-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; max-width: 760px; margin: 36px auto 0; padding: 14px 0; }
.ct-list li { padding: 13px 24px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .38));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 1), inset 0 -2px 4px rgba(17, 17, 17, .05), 0 10px 28px -8px rgba(17, 17, 17, .18), 0 1px 2px rgba(17, 17, 17, .06);
  -webkit-backdrop-filter: blur(16px) saturate(1.7); backdrop-filter: blur(16px) saturate(1.7);
  transition: transform .25s, box-shadow .25s; }
.ct-list li:hover { transform: translateY(-2px); box-shadow: inset 0 1px 1px #fff, inset 0 -2px 4px rgba(17, 17, 17, .05), 0 16px 32px -10px rgba(17, 17, 17, .22), 0 1px 2px rgba(17, 17, 17, .06); }
.mail { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; border-bottom: 2px solid var(--ink); padding-bottom: 6px; transition: color .2s, border-color .2s; }
.mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--ink); padding: 36px 0 40px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-logo { display: inline-flex; align-items: center; gap: 9px; }
.foot-top img { height: 20px; width: auto; }
.foot-top .logo-mark { height: 25px; }
.foot-top nav { display: flex; gap: 28px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.foot-top nav a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 40px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot-bottom span { margin: 0 8px; color: var(--line); }
.foot-info p + p { margin-top: 4px; }
.foot-bottom .copy { margin-inline-start: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cover, .about-body, .d-layout { grid-template-columns: 1fr; }
  .d-aside { position: static; max-height: none; overflow: visible; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cover { gap: 48px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .services li:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .d-shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .d-shots img { flex: none; width: auto; height: 420px; scroll-snap-align: start; }
}
@media (max-width: 680px) {
  .bar { height: auto; flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .lang-switch { margin-inline-start: auto; }
  .bar nav { order: 3; width: 100%; margin-inline-start: 0; }
  .bar nav, .foot-top nav { gap: 6px 16px; flex-wrap: wrap; font-size: 11px; letter-spacing: .1em; }
  .grid, .services, .stats, .d-features { grid-template-columns: 1fr; }
  .d-next .label { display: none; }
  .services li, .stats li { padding-inline-start: 0 !important; border-inline-start: 0 !important; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .sec-head { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation-duration: 90s; }
  * { transition: none !important; }
}
.foot-bottom b { font-weight: inherit; }
