/*
  ChatMC 공개 사이트 스타일.

  다크 테마 단일 디자인. 앱의 실제 액센트 녹색(#34c759)을 브랜드 색으로 쓰고,
  밝은 앱 화면(스크린샷·목업)을 어두운 배경 위에 띄워 대비로 시선을 모은다.

  기능 소개의 스크린샷은 실제 앱 화면을 잘라내지 않고 기기 프레임에 전체로 넣는다.
*/

:root {
  --brand: #34c759;
  --brand-bright: #5ce283;
  --brand-dim: #1f9c43;

  --bg: #0a0f0c;
  --bg-raise: #0f1511;
  --card: #121a15;
  --card-raise: #16201a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #eef4ef;
  --text-soft: #9fb0a6;
  --text-faint: #6e7f75;

  /* 목업 안 밝은 앱 화면 전용. 실제 앱의 라이트 팔레트를 따른다. */
  --app-bg: #f4f5f4;
  --app-card: #ffffff;
  --app-ink: #101511;
  --app-ink-soft: #8a938d;
  --app-name-teal: #2a9d9f;
  --app-name-green: #2f9e44;
  --app-name-orange: #c07b2a;

  --on-brand: #06130a;
  --hover-wash: rgba(255, 255, 255, 0.06);
  --ghost-fill: rgba(255, 255, 255, 0.04);
  --ghost-fill-hover: rgba(255, 255, 255, 0.07);

  --radius: 20px;
  --shell: 1120px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard",
    "Noto Sans KR", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Pretendard", "Noto Sans KR", sans-serif;
}

/* 다크가 기본 디자인이고, 라이트는 같은 토큰을 밝은 값으로 다시 정의한다.
   방문자의 OS 설정을 따르며 사이트 자체 테마 토글은 두지 않는다.
   기기 프레임과 그 안의 앱 화면은 실제 기기 모습이므로 테마와 무관하게 유지한다. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --bg-raise: #f5f7f5;
    --card: #ffffff;
    --card-raise: #f7f9f7;
    --line: rgba(16, 24, 19, 0.10);
    --line-strong: rgba(16, 24, 19, 0.18);

    --text: #101511;
    --text-soft: #576259;
    --text-faint: #7d887f;

    --brand: #1f9c43;
    --brand-bright: #16803a;
    --brand-dim: #16803a;

    --on-brand: #ffffff;
    --hover-wash: rgba(16, 24, 19, 0.05);
    --ghost-fill: rgba(16, 24, 19, 0.03);
    --ghost-fill-hover: rgba(16, 24, 19, 0.06);
  }

  body { background: var(--bg); }

  ::selection { background: rgba(31, 156, 67, 0.22); }
}

/* 한국어는 어절 중간에서 끊기면 읽기 나쁘므로 어절 단위로 줄을 바꾼다.
   일본어와 중국어는 어절 구분이 없어 keep-all 을 주면 줄바꿈이 막히므로 제외한다. */
:lang(ko) h1,
:lang(ko) h2,
:lang(ko) h3,
:lang(ko) p,
:lang(ko) li,
:lang(ko) .stat span,
:lang(ko) .footer-bottom span { word-break: keep-all; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand-bright); }

::selection { background: rgba(52, 199, 89, 0.32); }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

/* ---------- 헤더 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  margin-right: auto;
}

/* 앱 아이콘과 같은 마크를 쓴다. 사이트와 앱이 같은 얼굴을 갖도록 실제
   아이콘 SVG를 그대로 불러오고, 헤더에서는 둥근 타일 크기만 맞춘다. */
.brand-mark {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background-image: url("/assets/icon-square.svg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 18px rgba(52, 199, 89, 0.35);
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

.site-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: 10px;
}

.site-nav a:hover { color: var(--text); background: var(--hover-wash); }
.site-nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/*
  언어 선택. 지원 언어가 15개까지 늘어나므로 토글 링크가 아니라 목록으로 연다.
  <details>를 써서 자바스크립트 없이 동작하고, 키보드로도 열고 닫을 수 있다.
*/
.lang-menu { position: relative; }

.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 15px; height: 15px; flex: none; }
.lang-menu summary:hover { color: var(--brand-bright); border-color: var(--brand-dim); }
.lang-menu[open] summary { color: var(--text); border-color: var(--brand-dim); }

.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 190px;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--card-raise);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.lang-menu ul a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}

.lang-menu ul a:hover { background: var(--hover-wash); color: var(--text); }

.lang-menu ul a[aria-current="true"] {
  color: var(--brand-bright);
  font-weight: 600;
}

/* ---------- 히어로 ---------- */

.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
}

/* 위쪽 녹색 광원과 미세한 픽셀 그리드로 배경에 깊이를 준다. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(56% 48% at 72% 30%,
      rgba(52, 199, 89, 0.16) 0%, transparent 70%),
    radial-gradient(40% 36% at 18% 12%,
      rgba(52, 199, 89, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  align-items: center;
  gap: clamp(32px, 4.5vw, 60px);
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h1 .accent {
  color: var(--brand-bright);
  text-shadow: 0 0 34px rgba(52, 199, 89, 0.4);
}

.lede {
  margin-top: 24px;
  max-width: 32em;
  font-size: clamp(1.02rem, 2vw, 1.15rem);
  color: var(--text-soft);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 13px;
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button-primary {
  color: var(--on-brand);
  background: linear-gradient(160deg, var(--brand-bright), var(--brand));
  box-shadow: 0 8px 28px rgba(52, 199, 89, 0.32);
}

.button-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(52, 199, 89, 0.42); }

.button-ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: var(--ghost-fill);
}

.button-ghost:hover { border-color: var(--text-faint); background: var(--ghost-fill-hover); }

.hero-note { margin-top: 20px; font-size: 0.84rem; color: var(--text-faint); }

/* 배지는 위쪽 설명에 이어지는 행동이고 아래 고지 문구와는 별개다.
   아래 간격이 위보다 좁으면 배지가 고지 문구와 한 덩어리로 보인다. */
.store-badges + .hero-note { margin-top: 28px; }

/* ---------- 스토어 배지 ----------

   Apple 이 제공하는 배지 이미지만 쓸 수 있고 직접 그리거나 색과 모양을 바꿀 수
   없다. 그래서 배지는 이미지 한 장으로 넣고, 여기서는 놓일 자리와 크기만 정한다.

   높이를 기준으로 잡고 가로는 배지 비율(약 1:3.375)을 따라간다. 아직 실제
   배지 이미지가 없어 자리만 잡아둔 상태이며, App Store 링크가 정해지면
   _build/store.json 의 값이 채워진다. */

.store-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* 배지마다 가로세로 비율이 다르다(App Store 2.99, Google Play 3.37).
   높이만 맞추고 가로는 이미지 자체 비율을 따르게 두어야 찌그러지지 않는다.
   화면에서는 두 스토어 모두 최소 40px 높이를 요구한다. */
.store-badge {
  display: inline-flex;
  height: 52px;
}

.store-badge img {
  display: block;
  height: 100%;
  width: auto;
}

/* ---------- 히어로 폰 목업 ----------

   실제 앱의 채팅 화면을 CSS로 재현한다. Demo 캡처는 채팅이 세 줄뿐이라
   히어로에 쓰면 허전하므로, 같은 디자인 언어로 더 살아있는 장면을 구성한다. */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
}

.hero-visual .halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(52, 199, 89, 0.22) 0%,
    rgba(52, 199, 89, 0.05) 45%,
    transparent 70%);
  filter: blur(4px);
}

.phone {
  position: relative;
  z-index: 2;
  width: 292px;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(165deg, #2a3630, #141b17 60%);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.6);
  transform: rotate(-1.5deg);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1178 / 2556;
  border-radius: 38px;
  background: var(--app-bg);
}

/* 다이나믹 아일랜드. 시뮬레이터 캡처에는 담기지 않으므로 프레임에서 그린다. */
.phone::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 22px;
  border-radius: 999px;
  background: #0b0d0c;
  z-index: 3;
}

.shot-frame { position: relative; }

.shot-frame::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 19px;
  border-radius: 999px;
  background: #0b0d0c;
  z-index: 3;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 16px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--card-raise) 82%, transparent);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.float-chip small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--text-faint); letter-spacing: 0.06em; text-transform: uppercase; }

.float-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
  flex: none;
}

.chip-status { top: 148px; right: -72px; }
.chip-quick { bottom: 120px; left: -26px; flex-direction: column; align-items: flex-start; gap: 3px; }
.chip-quick code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: var(--brand-bright); }

/* ---------- 스탯 스트립 ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 34px 24px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat span { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- 공통 섹션 ---------- */

section { padding: 104px 0; }

.section-head { max-width: 44em; margin-bottom: 56px; }

.kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 14px;
}

h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }

.section-head p { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; }

h3 { font-size: 1.08rem; margin-bottom: 8px; }

/* ---------- 기능 패널 ----------

   기능마다 어두운 유리 패널 하나. 문구와 스크린샷 프레임을 나란히 두고
   행마다 좌우를 뒤집는다. */

.features { padding-top: 96px; }

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
  background: linear-gradient(170deg, var(--card-raise), var(--card) 70%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 4.5vw, 56px);
  overflow: hidden;
  position: relative;
}

.feature-copy { align-self: center; }

.feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(48% 62% at 84% 20%, rgba(52, 199, 89, 0.09), transparent 70%);
  pointer-events: none;
}

.feature-panel + .feature-panel { margin-top: 26px; }

.feature-panel.flip { grid-template-columns: 232px minmax(0, 1fr); }
.feature-panel.flip .feature-copy { order: 2; }
.feature-panel.flip .shot-frame { order: 1; }
.feature-panel.flip::before { background: radial-gradient(48% 62% at 16% 20%, rgba(52, 199, 89, 0.09), transparent 70%); }

.feature-copy { position: relative; min-width: 0; }
.feature-copy h2 { font-size: clamp(1.45rem, 2.9vw, 1.95rem); margin-bottom: 16px; }
.feature-copy p { color: var(--text-soft); max-width: 30em; text-wrap: pretty; }

/*
  스크린샷 프레임. 실제 Demo 캡처를 잘라내지 않고 화면 전체를 그대로 보여준다.
  기기 비율(1178x2556)을 aspect-ratio로 잡아 어떤 폭에서도 왜곡되지 않는다.
*/
.shot-frame {
  position: relative;
  width: 100%;
  max-width: 232px;
  border-radius: 42px;
  padding: 9px;
  background: linear-gradient(165deg, #26312b, #10160f 65%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.09);
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1178 / 2556;
  border-radius: 34px;
  background: var(--app-bg);
}

/* ---------- 카드 그리드 ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover { border-color: rgba(52, 199, 89, 0.3); background: var(--card-raise); }

.card p { color: var(--text-soft); font-size: 0.94rem; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(52, 199, 89, 0.12);
  border: 1px solid rgba(52, 199, 89, 0.22);
  color: var(--brand-bright);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 21px; height: 21px; }

/* ---------- 언어 ---------- */

.languages { padding-top: 0; }

.lang-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 56em;
}

.lang-cloud span {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text-soft);
  font-size: 0.88rem;
  white-space: nowrap;
}

.lang-cloud span:nth-child(3n) { border-color: rgba(52, 199, 89, 0.24); color: var(--text); }

/* ---------- CTA ---------- */

.cta { padding-top: 0; }

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(52, 199, 89, 0.22);
  background:
    radial-gradient(90% 130% at 50% -30%, rgba(52, 199, 89, 0.2), transparent 60%),
    var(--card);
  padding: clamp(44px, 6vw, 76px);
  text-align: center;
}

.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.cta-band p { margin: 16px auto 0; max-width: 34em; color: var(--text-soft); }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- 본문 페이지 ---------- */

.page-head {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 130% at 50% -40%, rgba(52, 199, 89, 0.1), transparent 70%);
}

.page-head h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.page-head p { margin-top: 14px; color: var(--text-soft); }

.prose { padding: 52px 24px 104px; max-width: calc(46em + 48px); }
.prose h2 { margin: 44px 0 14px; font-size: 1.32rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.04rem; }
.prose p { margin-bottom: 14px; color: var(--text-soft); }
.prose ul { margin: 0 0 16px 1.15em; color: var(--text-soft); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 650; }

.note {
  background: rgba(52, 199, 89, 0.07);
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 13px;
  padding: 17px 19px;
  margin: 24px 0;
}

.note p { margin: 0; font-size: 0.94rem; }

.meta { font-size: 0.86rem; color: var(--text-faint); }

/* ---------- 푸터 ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raise);
  padding: 56px 0 36px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 36px;
}

.footer-main > div:first-child { max-width: 24em; }
.footer-main p { margin-top: 14px; color: var(--text-faint); font-size: 0.9rem; }

.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links > div { display: flex; flex-direction: column; gap: 10px; }

.footer-links strong {
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-links a { color: var(--text-soft); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--brand-bright); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-bottom span { max-width: 52em; }

/* ---------- 반응형 ---------- */

@media (max-width: 960px) {
  /* 한 열로 접히면 기기를 글 위로 올린다. 무슨 앱인지 화면부터 보이는 편이 낫다.
     기기 전체를 보여주면 히어로가 지나치게 길어지므로 아래를 잘라내고,
     잘린 자리는 다음 섹션이 자연스럽게 이어받는다. */
  /* 기기가 헤더 바로 아래에서 시작하도록 위쪽 여백은 두지 않는다.
     기기 그림자를 위한 최소 여백은 .hero-visual 의 padding-top 이 담당한다. */
  .hero { padding: 0 0 56px; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-actions,
  .store-badges { justify-content: center; }

  /* 기기를 잘라 줄이는 대신 크게 두고, 글이 페이드되는 구간 위로 올라와
     겹치게 한다. 화면은 넉넉히 보이면서 첫 화면에 제목과 버튼이 함께 들어온다.

     아래를 mask 로 페이드하려면 overflow: hidden 이 필요한데, 이러면 halo 와
     기기 그림자가 나머지 세 방향에서도 직선으로 잘린다. 라이트 모드에서는 이
     경계가 사각형 자국으로 그대로 보인다.

     좌우는 컨테이너를 뷰포트 폭까지 넓혀 경계를 화면 밖으로 밀어내고,
     위쪽은 기기 그림자가 경계에 닿지 않을 만큼만(12px) 띄운다.
     남는 것은 의도한 아래쪽 페이드뿐이다.
     가로 스크롤은 body 의 overflow-x 가 막는다. */
  .hero-visual {
    order: -1;
    min-height: auto;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    padding-top: 12px;
    max-height: 352px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(#000 55%, transparent 96%);
    mask-image: linear-gradient(#000 55%, transparent 96%);
  }

  .hero-copy {
    position: relative;
    min-width: 0;
    z-index: 3;
    margin-top: -92px;
  }

  .phone { transform: none; }

  /* 컨테이너가 뷰포트 폭이 되었으므로 칩은 컨테이너 가장자리가 아니라
     가운데 놓인 기기를 기준으로 잡는다. 기기 절반(146px) 바깥에 살짝 걸치되,
     화면을 넘지 않도록 좌우 12px 여백을 하한으로 둔다. */
  .chip-status { right: max(12px, calc(50% - 146px - 40px)); }
  .chip-quick { left: max(12px, calc(50% - 146px - 20px)); }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .feature-panel,
  .feature-panel.flip { grid-template-columns: minmax(0, 1fr); }
  .feature-panel.flip .feature-copy { order: 1; }
  .feature-panel.flip .shot-frame { order: 2; }
  .shot-frame { margin: 0 auto; max-width: 250px; }
}

@media (max-width: 620px) {
  section { padding: 76px 0; }
  .header-inner {
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .brand { order: 1; margin-right: auto; }
  .lang-menu { order: 2; }
  .site-nav { order: 3; width: 100%; margin-left: -12px; }

  .phone { width: 258px; }

  /* 좁은 화면에서는 떠 있는 칩이 실제 앱 화면을 가린다.
     칩은 장식이고 스크린샷이 본체이므로 칩을 숨긴다. */
  .float-chip { display: none; }

  .stats-grid { gap: 18px; padding: 26px 24px; }
  .stat b { font-size: 1.25rem; }

  .hero .button { width: 100%; max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
