:root {
  --bg: #0a0a0c; --panel: #131317; --panel-2: #1a1a20; --line: #26262e; --text: #f2f2f5; --muted: #9a9aa6;
  --accent: #4d9bff; --accent-2: #7db8ff; --ok: #3ddc97; --bad: #ff7a7a; --radius: 14px; --p: 0;
  --mono: "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "PingFang SC", "Apple SD Gothic Neo", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

/* Moving from tab to tab fades instead of flashing. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }

/* Top bar. On the first page it starts clear and settles as the page scrolls. */
header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid transparent; transition: background 0.25s, border-color 0.25s; background: rgba(10, 10, 12, calc(0.82 * var(--bar, 1))); backdrop-filter: blur(calc(14px * var(--bar, 1))); -webkit-backdrop-filter: blur(calc(14px * var(--bar, 1))); border-bottom-color: rgba(38, 38, 46, var(--bar, 1)); }
header .wrap { display: flex; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tab { position: relative; padding: 8px 12px; border-radius: 9px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.tab:hover { color: var(--text); text-decoration: none; background: var(--panel); }
.tab.on { color: var(--text); }
.tab.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--accent); }
select.lang { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; font-size: 14px; max-width: 132px; }

/* The first page: the big icon shrinks into the bar as the page scrolls (--p goes 0 to 1). */
body[data-page="features"] header { --bar: var(--p); }
body[data-page="features"] .brand img { opacity: var(--p); transform: scale(calc(0.6 + 0.4 * var(--p))); }
body[data-page="features"] .brand span { opacity: calc(0.25 + 0.75 * var(--p)); }
#hero-icon { transform: translateY(calc(var(--p) * -70px)) scale(calc(1 - 0.72 * var(--p))); opacity: calc(1 - var(--p)); will-change: transform, opacity; }

/* The one glossy thing on a matte page. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font: inherit; font-weight: 650; font-size: 17px; color: #fff; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(180deg, #5aa6ff 0%, #2f7fe6 48%, #1d68cc 52%, #2a78e0 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 26px rgba(45, 125, 230, 0.35); transition: transform 0.15s, filter 0.15s; }
.button:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.small { padding: 8px 16px; font-size: 14px; border-radius: 9px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); white-space: nowrap; }
.button.ghost { background: var(--panel); box-shadow: none; border-color: var(--line); color: var(--text); }
.button[disabled] { opacity: 0.6; cursor: default; }

.hero { text-align: center; padding: 64px 0 30px; }
/* Korean breaks lines between words, never inside one. */
:lang(ko) { word-break: keep-all; }
.icon { width: 132px; height: 132px; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.7)); }
.icon.small { width: 96px; height: 96px; }
h1 { font-size: clamp(34px, 5.6vw, 58px); line-height: 1.14; letter-spacing: -0.02em; margin: 24px auto 16px; max-width: 900px; text-wrap: balance; }
/* On a wide window the first page's heading stays on one line: its size follows the room there is. */
@supports (font-size: 1cqw) {
  .hero .wrap { container-type: inline-size; }
  @media (min-width: 760px) { .hero h1 { max-width: none; white-space: nowrap; font-size: clamp(26px, calc(100cqw / var(--ems, 24)), 58px); } }
}
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 740px; margin: 0 auto 30px; text-wrap: pretty; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta.center { margin-top: 40px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); }
.badge { display: inline-block; margin-right: 8px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ok); border: 1px solid rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.08); }
.shot { margin: 52px auto 0; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75); background: #000; }
.shot img, .film video { display: block; width: 100%; height: auto; }

section { padding: 84px 0; border-top: 1px solid var(--line); }
section.hero, section.top { border-top: 0; }
section.top { padding: 64px 0 96px; }
section.center { text-align: center; }
section.top h1 { margin-top: 12px; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
.sub { color: var(--muted); max-width: 720px; margin: 0 0 40px; font-size: 18px; }
section.center .sub { margin-left: auto; margin-right: auto; margin-bottom: 28px; }

/* Three reasons, each beside its film. */
.reason { display: grid; grid-template-columns: 5fr 8fr; gap: 44px; align-items: center; margin-top: 64px; }
.reason.flip { grid-template-columns: 8fr 5fr; }
.reason.flip .words { order: 2; }
.reason h3 { font-size: 26px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.01em; }
.reason p { margin: 0; color: var(--muted); font-size: 17px; }
.film { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #000; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.item b { display: block; font-size: 17px; margin-bottom: 2px; }
.item span { color: var(--muted); font-size: 15.5px; }
.soon { margin-top: 30px; color: var(--muted); font-size: 15.5px; }
.soon b { color: var(--text); }

/* Download */
.steps { text-align: left; max-width: 760px; margin: 48px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; }
.steps h3 { margin: 0 0 8px; font-size: 20px; }
.steps p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; }
.steps ol { margin: 0; padding-left: 22px; }
.steps li { margin: 8px 0; }
.steps .alt { margin: 18px 0 0; }
code { font-family: var(--mono); font-size: 13.5px; background: #000; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: #d7d7df; overflow-wrap: anywhere; }

/* FAQ */
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; font-size: 18px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform 0.2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }
.more { margin-top: 30px; }

/* Contact */
.form { display: grid; gap: 10px; }
.form > label { font-size: 15px; font-weight: 600; margin-top: 12px; }
.kinds { display: flex; gap: 10px; flex-wrap: wrap; }
.kind { display: inline-flex; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind span { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 15px; cursor: pointer; transition: all 0.15s; }
.kind input:checked + span { color: var(--text); border-color: var(--accent); background: rgba(77, 155, 255, 0.12); }
.kind input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea, .form input[type="text"] { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; }
textarea:focus, .form input[type="text"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(77, 155, 255, 0.18); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.warn { margin: 6px 0 8px; color: var(--muted); font-size: 14px; }
.form .button { justify-self: start; }
.status { min-height: 26px; margin: 6px 0 0; font-size: 15.5px; }
.status.ok { color: var(--ok); }
.status.bad { color: var(--bad); }

footer { border-top: 1px solid var(--line); padding: 34px 0 60px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

/* Things rise into place as they come into view. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
/* Without scripts, and for still pictures of the page, everything is simply there. */
.still .reveal { opacity: 1; transform: none; transition: none; }
.still .hero h1, .still .hero .lead, .still .hero .cta, .still .hero .fine, .still section.top h1, .still section.top .sub { animation: none; }
.hero h1, .hero .lead, .hero .cta, .hero .fine, section.top h1, section.top .sub { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .lead, section.top .sub { animation-delay: 0.08s; }
.hero .cta { animation-delay: 0.16s; }
.hero .fine { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero .lead, .hero .cta, .hero .fine, section.top h1, section.top .sub { animation: none; }
  #hero-icon { transform: none; opacity: 1; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
@media (max-width: 900px) {
  .reason, .reason.flip { grid-template-columns: 1fr; gap: 20px; margin-top: 48px; }
  .reason.flip .words { order: 0; }
  .grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (max-width: 720px) {
  header .wrap { gap: 8px; padding: 0 12px; }
  .brand span { display: none; }
  .tab { padding: 8px 8px; font-size: 14px; }
  header .button.small { display: none; }
  select.lang { max-width: 96px; }
  .steps { padding: 22px 20px; }
}
