:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #5f5f64;
  --line: rgb(0 0 0 / 0.1);
  --accent: #0064e1;
  --accent-hover: #0057c4;
  --link: #0064e1;
  --on-accent: #ffffff;
  --ring: #007aff;
  --shot-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 24px 60px rgb(0 0 0 / 0.16);
  --bar: rgb(255 255 255 / 0.8);
  --chrome: #ececec;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Segoe UI Variable Text", "Malgun Gothic", sans-serif;
  --max: 1120px;
  --gutter: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161618;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a8a8ad;
    --line: rgb(255 255 255 / 0.14);
    --accent: #0a6fe0;
    --accent-hover: #0059c8;
    --link: #72a9f0;
    --ring: #0a84ff;
    --shot-shadow: 0 0 0 0.5px rgb(255 255 255 / 0.14), 0 24px 60px rgb(0 0 0 / 0.6);
    --bar: rgb(22 22 24 / 0.8);
    --chrome: #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl { margin: 0; }
h1, h2, .lead, .section-lead { text-wrap: balance; }
a { color: var(--link); text-underline-offset: 3px; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: 16px; top: -100px; z-index: 20; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* 상단 막대 */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(1.6) blur(20px);
  backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.bar nav { margin-left: auto; display: flex; gap: 24px; font-size: 14px; }
.bar nav a { color: var(--ink); text-decoration: none; transition: color 150ms; }
.bar nav a:hover { color: var(--link); }
.bar .btn { padding: 0 14px; min-height: 32px; font-size: 14px; }
@media (max-width: 640px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--accent); color: var(--on-accent);
  border-radius: 999px; font-weight: 600; font-size: 17px;
  text-decoration: none;
  transition: background-color 150ms, transform 100ms;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }

/* 히어로 */
.hero { padding: 72px 0 0; text-align: center; overflow: hidden; }
.hero h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.15; letter-spacing: -0.02em; }
.hero .lead { margin: 20px auto 0; max-width: 34em; font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-2); }
.cta { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.note { font-size: 14px; color: var(--ink-2); }

.hero-shot { position: relative; margin: 96px auto 0; max-width: 1040px; }
.hero-shot .peek {
  position: absolute; z-index: 0;
  right: 9%; top: 0;
  width: clamp(88px, 17%, 180px);
  transform: translateY(-37%);
}
.hero-shot .window { position: relative; z-index: 1; }

/* 앱 창: 녹화 화면 위에 macOS 제목 막대를 얹는다. */
.window { position: relative; margin: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--shot-shadow); background: var(--card); }
.titlebar { display: flex; gap: 8px; align-items: center; height: 28px; padding: 0 12px; background: var(--chrome); border-bottom: 0.5px solid var(--line); }
.titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.titlebar i:nth-child(2) { background: #febc2e; }
.titlebar i:nth-child(3) { background: #28c840; }
.window video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--card); }
.clip-toggle {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
  color: #fff; background: rgb(0 0 0 / 0.5);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  cursor: pointer; opacity: 0; transition: opacity 200ms, background-color 150ms;
}
.window:hover .clip-toggle, .clip-toggle:focus-visible, .window.paused .clip-toggle { opacity: 1; }
.clip-toggle:hover { background: rgb(0 0 0 / 0.7); }
@media (hover: none) { .clip-toggle { opacity: 1; } }

/* 본문 구역 */
section { padding: 112px 0; }
.alt { background: var(--bg-alt); }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.2; letter-spacing: -0.015em; }
.section-lead { margin-top: 16px; max-width: 36em; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); }
h3 { font-size: 19px; line-height: 1.4; }

.feature-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.feature-head .mascot { width: clamp(96px, 16vw, 160px); flex: none; }
@media (max-width: 640px) {
  .feature-head { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
}

.points { list-style: none; padding: 0; margin-top: 48px; display: grid; gap: 32px; }
@media (min-width: 760px) { .points { grid-template-columns: repeat(3, 1fr); } }
.points p { margin-top: 6px; color: var(--ink-2); }

.feature-shot { margin-top: 56px; }

.ai-grid { margin-top: 48px; display: grid; gap: 40px; align-items: start; }
.ai-grid .points { margin-top: 0; grid-template-columns: 1fr; }
.ai-grid figure { margin: 0; }
.ai-grid .panel { width: min(100%, 380px); margin-inline: auto; border-radius: 14px; box-shadow: var(--shot-shadow); }
@media (min-width: 860px) { .ai-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.caution { margin-top: 32px; font-size: 14px; color: var(--ink-2); }

/* 신뢰 포인트 */
.trust { padding: 88px 0; }
.trust ul { list-style: none; padding: 0; display: grid; gap: 32px; }
@media (min-width: 760px) { .trust ul { grid-template-columns: repeat(3, 1fr); } }
.trust p { margin-top: 6px; color: var(--ink-2); }

/* 요금 */
.plans { margin-top: 48px; display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); max-width: 820px; } }
.plan { background: var(--card); border: 0.5px solid var(--line); border-radius: 18px; padding: 28px; }
.plan.pick { box-shadow: inset 0 0 0 2px var(--accent); }
.plan h3 { font-size: 17px; color: var(--ink-2); font-weight: 600; }
.price { margin-top: 8px; font-size: 36px; font-weight: 700; letter-spacing: -0.01em; }
.price small { font-size: 17px; font-weight: 500; color: var(--ink-2); }
.plan ul { margin-top: 16px; padding-left: 1.1em; color: var(--ink); }
.plan li + li { margin-top: 6px; }
.fine { margin-top: 32px; padding-left: 1.1em; color: var(--ink-2); font-size: 15px; }
.fine li + li { margin-top: 6px; }

/* 지원 */
.support-grid { margin-top: 48px; display: grid; gap: 48px; }
@media (min-width: 860px) { .support-grid { grid-template-columns: 1fr 320px; align-items: start; } }
.faq details { border-bottom: 0.5px solid var(--line); }
.faq details:first-child { border-top: 0.5px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-size: 19px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 250ms var(--ease-out);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 40em; }
.contact { background: var(--card); border: 0.5px solid var(--line); border-radius: 18px; padding: 28px; text-align: center; }
.contact img { width: 120px; margin: 0 auto 12px; }
.contact p { color: var(--ink-2); }
.contact a.mail { display: inline-block; margin-top: 12px; font-size: 19px; font-weight: 600; }

/* 소개 영상 */
.film { padding: 120px 0 112px; }
.film h2 { text-align: center; font-size: clamp(24px, 3vw, 32px); }
.film-frame { position: relative; margin: 32px auto 0; max-width: 1040px; border-radius: 18px; overflow: hidden; box-shadow: var(--shot-shadow); background: #0b3f9e; }
.film-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film-play {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 12px;
  padding: clamp(14px, 3vw, 28px); border: 0; background: linear-gradient(to top, rgb(0 20 60 / 0.35), transparent 40%);
  color: #fff; font: 600 17px/1.4 var(--font); cursor: pointer; transition: background-color 200ms;
}
.film-play .pill { display: flex; align-items: center; gap: 12px; }
.film-play .label { text-shadow: 0 1px 8px rgb(0 0 0 / 0.35); }
.film-play .disc {
  display: grid; place-items: center; width: clamp(48px, 6vw, 64px); height: clamp(48px, 6vw, 64px); border-radius: 50%; flex: none;
  background: rgb(255 255 255 / 0.22); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.25); transition: transform 300ms var(--ease-out), background-color 200ms;
}
.film-play .disc svg { margin-left: 4px; }
.film-play:hover { background-color: rgb(0 20 60 / 0.12); }
.film-play:hover .disc { transform: scale(1.08); background: rgb(255 255 255 / 0.3); }
.film-play:active .disc { transform: scale(0.96); transition-duration: 100ms; }
.film-play:focus-visible { outline-offset: -6px; border-radius: 18px; }
.film-frame.playing .film-play { display: none; }

/* 내려받기 */
.downloads { list-style: none; padding: 0; margin-top: 40px; display: grid; gap: 12px; }
@media (min-width: 860px) { .downloads { grid-template-columns: repeat(3, 1fr); } }
.dl {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name icon" "note icon"; align-items: center; column-gap: 16px;
  padding: 20px 22px; border-radius: 14px; background: var(--card); border: 0.5px solid var(--line);
  color: var(--ink); text-decoration: none;
  transition: border-color 150ms, box-shadow 200ms var(--ease-out), transform 100ms;
}
.dl:hover { text-decoration: none; border-color: var(--accent); box-shadow: 0 6px 20px rgb(0 0 0 / 0.08); }
.dl:active { transform: scale(0.985); }
.dl-name { grid-area: name; font-weight: 600; font-size: 19px; }
.dl-note { grid-area: note; margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.dl-icon { grid-area: icon; color: var(--link); transition: transform 200ms var(--ease-out); }
.dl:hover .dl-icon { transform: translateY(3px); }

/* 마무리 */
.closing { text-align: center; }
.closing h2 { margin-top: 0; }
.closing .cta { margin-top: 28px; }

.extras { padding: 56px 0; border-top: 0.5px solid var(--line); }
.extras h2 { font-size: 15px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin: 0; }
.extras ul { margin-top: 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: var(--ink-2); }

footer { padding: 32px 0 48px; border-top: 0.5px solid var(--line); font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--ink-2); }
footer a:hover { color: var(--ink); }

/* 404 */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 64px 0; }
.lost img { width: 160px; margin: 0 auto; }
.lost h1 { font-size: clamp(32px, 5vw, 44px); }
.lost p { color: var(--ink-2); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 움직임: 앱 창이 떠오르고, 창 뒤에서 오리너구리가 얼굴을 내민다. */
@media (prefers-reduced-motion: no-preference) {
  .hero-shot .window { animation: window-rise 900ms var(--ease-out) 150ms both; }
  .hero-shot .peek { animation: peek 800ms var(--ease-out) 900ms both; }
}
@keyframes window-rise {
  from { opacity: 0; transform: translateY(48px) scale(0.97); filter: blur(10px); }
}
@keyframes peek {
  from { opacity: 0; transform: translateY(40%) rotate(-6deg); }
  15% { opacity: 1; }
  65% { transform: translateY(-41%) rotate(2deg); }
}

/* FAQ는 열고 닫을 때 높이를 이어 준다(지원하는 브라우저만). */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content {
      block-size: 0; overflow: clip;
      transition: block-size 300ms var(--ease-out), content-visibility 300ms allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; }
  }
}
