/* Ajak Studio — 순백색 스튜디오 갤러리 톤
   Palette: #FFFFFF bg · #ECEDEF hairline · #0E0E10 ink · #5F6368 secondary · #9AA0A6 tertiary */

:root {
  --bg: #FFFFFF;
  --ink: #0E0E10;
  --ink-2: #5F6368;
  --ink-3: #9AA0A6;
  --line: #ECEDEF;
  --line-2: #DFE1E4;
  --soft: #F7F8F9;
  --green: #22C55E;
  --maxw: 1120px;
  --pad: 20px;
  --r-card: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 한국어는 단어 중간에서 끊기지 않게 (제목·본문 모두 어절 단위 줄바꿈) */
body { word-break: keep-all; }
h1, h2, h3, .hero-lead, .card-desc, .studio-body, .section-lead, .soon-text { overflow-wrap: break-word; }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, dt { margin: 0; }
::selection { background: #E9E9EB; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
@media (min-width: 720px) { :root { --pad: 32px; } }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; z-index: 100;
}
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }

.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 62px;
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-mark { width: 30px; height: 30px; border-radius: 9px; }
.brand-name {
  font-size: 16px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap;
}
.brand-name em { font-style: normal; font-weight: 400; color: var(--ink-2); }

.nav { display: flex; align-items: center; gap: 22px; }
.nav-link {
  font-size: 14px; color: var(--ink-2); text-decoration: none; letter-spacing: -.01em;
  padding: 6px 0; transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
@media (max-width: 719px) { .nav-link { display: none; } }

.lang { position: relative; display: inline-flex; align-items: center; }
.lang-select {
  appearance: none; -webkit-appearance: none;
  height: 32px; border: 1px solid var(--line-2); border-radius: 999px;
  background: #fff; color: var(--ink);
  font-family: inherit; font-size: 12.5px; font-weight: 500; letter-spacing: -.01em;
  padding-inline: 30px 26px;
  cursor: pointer; max-width: 168px;
  transition: border-color .2s, box-shadow .2s;
}
.lang-select:hover { border-color: #C9CCd1; }
.lang-select:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(14, 14, 16, .12); }
.lang-globe, .lang-caret {
  position: absolute; pointer-events: none;
  fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.lang-globe { width: 14px; height: 14px; inset-inline-start: 11px; }
.lang-caret { width: 10px; height: 10px; inset-inline-end: 11px; }

/* ---------- hero ---------- */
.hero {
  padding-block: 56px 44px;
  position: relative;
}
@media (min-width: 720px) { .hero { padding-block: 88px 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--ink-3); opacity: .7;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(2rem, 6.6vw, 3.9rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -.035em;
  max-width: 20ch;
  text-wrap: balance;
}
.hero-lead {
  margin-top: 20px;
  font-size: clamp(15px, 1.6vw, 17px); line-height: 1.72; color: var(--ink-2);
  max-width: 54ch; letter-spacing: -.005em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding-inline: 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .25s, color .2s;
}
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(14,14,16,.7); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: #C9CCD1; background: var(--soft); }

.hero-note {
  margin-top: 22px; font-size: 12.5px; color: var(--ink-3); letter-spacing: -.005em;
}

/* ---------- sections ---------- */
.section {
  border-top: 1px solid var(--line);
  scroll-margin-top: 76px;
  padding-top: 26px;
  margin-top: 36px;
}
@media (min-width: 720px) { .section { padding-top: 30px; margin-top: 56px; } }
.section + .section { margin-top: 52px; }

.section-head {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .section-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
}
.section-title {
  font-size: 19px; font-weight: 600; letter-spacing: -.02em;
}
.section-lead {
  font-size: 13.5px; color: var(--ink-3); letter-spacing: -.005em;
}

/* ---------- app cards ---------- */
.grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.card {
  position: relative; display: flex; flex-direction: column;
  padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card);
  background: #fff; text-decoration: none; color: inherit;
  transition: transform .3s var(--ease), border-color .25s, box-shadow .3s var(--ease);
  will-change: transform;
}
@media (min-width: 760px) { .card { padding: 26px; } }
a.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 24px 46px -30px rgba(14,14,16,.42), 0 2px 6px -3px rgba(14,14,16,.05);
}
a.card:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
a.card:active { transform: translateY(-1px); }

.card-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.app-icon {
  width: 60px; height: 60px; border-radius: 17px; flex: none;
  border: 1px solid rgba(14,14,16,.07);
  box-shadow: 0 8px 18px -12px rgba(14,14,16,.45);
  background: #fff;
}
/* 아이콘 자체가 투명 PNG일 때: 흰 사각 박스·테두리 없이 3D 모양만 남기고,
   그림자는 알파 윤곽을 따라간다. */
.app-icon--nobox {
  border: none; border-radius: 0; background: transparent; box-shadow: none;
  filter: drop-shadow(0 6px 12px rgba(14,14,16,.15));
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding-inline: 10px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; background: #fff;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); flex: none;
}
.badge--soon { color: var(--ink-3); border-style: dashed; }
.badge--soon .dot { background: #CBD0D6; box-shadow: none; }

.card-title {
  margin-top: 22px;
  font-size: 18.5px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3;
}
.card-cat {
  margin-top: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3);
}
.card-desc {
  margin-top: 12px;
  font-size: 14.2px; line-height: 1.66; color: var(--ink-2); letter-spacing: -.005em;
}
.card-foot {
  margin-top: auto; padding-top: 22px;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
}
.card-arrow {
  width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .28s var(--ease);
}
a.card:hover .card-arrow { transform: translateX(3px); }
[dir="rtl"] .card-arrow { transform: scaleX(-1); }
[dir="rtl"] a.card:hover .card-arrow { transform: scaleX(-1) translateX(3px); }

/* coming soon — wide, light, dashed */
.card--soon {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; gap: 18px;
  border-style: dashed; border-color: #E4E5E8;
  background: linear-gradient(180deg, #FCFCFD 0%, #FFFFFF 100%);
  padding-block: 22px;
}
.card--soon .soon-text { min-width: 0; }
.card--soon .card-title { margin-top: 0; font-size: 15.5px; color: var(--ink); }
.card--soon .card-desc { margin-top: 6px; font-size: 13.2px; color: var(--ink-3); line-height: 1.6; }

.ghost-icon {
  position: relative; width: 60px; height: 60px; flex: none;
}
.ghost-icon span {
  position: absolute; width: 44px; height: 44px; border-radius: 13px;
  border: 1px dashed #DEE0E4; background: #fff;
}
.ghost-icon span:first-child { inset-inline-start: 0; top: 0; }
.ghost-icon span:last-child { inset-inline-end: 0; bottom: 0; opacity: .75; }
@media (max-width: 519px) {
  .card--soon { flex-direction: column; align-items: flex-start; }
}

/* ---------- studio ---------- */
.studio {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
@media (min-width: 860px) {
  .studio { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
}
.studio-body {
  font-size: 15.5px; line-height: 1.78; color: var(--ink-2);
  max-width: 66ch; letter-spacing: -.005em;
}
@media (min-width: 720px) { .studio-body { font-size: 16px; } }

.stats {
  display: flex; flex-wrap: wrap; gap: 36px 44px;
  margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; gap: 6px; }
.stat-value {
  font-size: 27px; font-weight: 600; letter-spacing: -.035em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label { font-size: 12px; color: var(--ink-3); letter-spacing: -.005em; }

/* ---------- footer ---------- */
.footer {
  margin-top: 72px; border-top: 1px solid var(--line);
  padding-block: 26px 44px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--ink-3); line-height: 1.6;
}
@media (max-width: 519px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.footer-brand img { border-radius: 6px; opacity: .9; }
.to-top { text-decoration: none; color: var(--ink-3); transition: color .2s; white-space: nowrap; }
.to-top:hover { color: var(--ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(10px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .card, .btn, .card-arrow { transition: none; }
}

/* ---------- rtl ---------- */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .lang-select { padding-inline: 26px 30px; }
