/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --paper: #f3f0e9;
  --paper-2: #e9e5db;
  --card: #fbfaf6;
  --ink: #1a1915;
  --ink-2: #45423a;
  --muted: #7c776b;
  --line: #d3cdbf;
  --accent: #e4531b;
  --accent-ink: #b63e10;
  --dark: #16150f;
  --dark-2: #22211a;
  --dark-line: #37352b;

  --blender: #d8740f;
  --unreal: #1a1915;
  --unity: #3a64c8;

  --sans: "Archivo", "IBM Plex Sans KR", system-ui, sans-serif;
  --body: "IBM Plex Sans KR", "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --gutter: 24px;
  --r: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; max-width: 18ch; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .01em; }
.muted { color: var(--muted); }
.small { font-size: .78rem; }
.right { text-align: right; }
.lead { font-size: 1.1rem; color: var(--ink-2); }

.label {
  font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent-ink); margin-bottom: 1rem;
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 섹션 번호 자동 매기기 (01 — Tools, 02 — Engines …) */
main { counter-reset: sec; }
.label.num::before { counter-increment: sec; content: counter(sec, decimal-leading-zero) " — "; }

/* 아직 정해지지 않은 값 "[...]" — 실제 값으로 바꾸면 자동으로 사라짐 */
.todo {
  background: repeating-linear-gradient(-45deg, #fde7d9 0 6px, #fbd9c4 6px 12px);
  outline: 1px dashed var(--accent); outline-offset: 1px; color: var(--accent-ink);
  font-style: normal;
}

/* ───────────────────────── Buttons ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .8em 1.35em; border: 1px solid transparent; border-radius: var(--r);
  font-family: var(--sans); font-weight: 600; font-size: .95rem; line-height: 1;
  cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: .6em 1em; font-size: .85rem; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-line { border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn:disabled { background: transparent; border: 1px dashed var(--line); color: var(--muted); cursor: not-allowed; }

.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: .9rem;
  border-bottom: 1px solid currentColor;
}
.link-btn:hover { color: var(--accent-ink); }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.logo-mark {
  width: 18px; height: 18px; background: var(--ink); position: relative;
}
.logo-mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 9px; height: 9px; background: var(--accent); }
.site-nav { display: flex; gap: 26px; margin-right: auto; }
.site-nav a { font-size: .92rem; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--ink); border-color: var(--ink); }
.header-tools { display: flex; align-items: center; gap: 14px; }

/* 언어 버튼 */
.lang-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 1px solid var(--line); border-radius: var(--r);
  padding: .42em .7em; cursor: pointer; font-family: var(--mono); font-size: .78rem; color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.lang-trigger:hover, .lang-trigger[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.lang-trigger svg { fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang-current { min-width: 2ch; text-align: center; }
.lang-trigger-wide { font-family: var(--body); font-size: .92rem; padding: .55em .9em; }

/* 로그인 / 장바구니 버튼 */
.signin { background: none; border: 0; cursor: pointer; font-size: .9rem; color: var(--ink-2); padding: 4px 2px; }
.signin:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cart-trigger {
  position: relative; display: grid; place-items: center; width: 38px; height: 34px; cursor: pointer;
  background: var(--ink); color: var(--paper); border: 0; border-radius: var(--r);
}
.cart-trigger:hover { background: #000; }
.cart-trigger svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: #fff; font-family: var(--mono); font-size: .68rem; line-height: 18px; text-align: center;
}

/* ───────────────────────── Language drawer ───────────────────────── */
body.no-scroll { overflow: hidden; }
.lang-drawer { position: fixed; inset: 0; z-index: 100; }
.lang-overlay {
  position: absolute; inset: 0; background: rgba(22, 21, 15, .45);
  opacity: 0; transition: opacity .3s ease;
}
.lang-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(400px, 100%);
  background: var(--paper); border-left: 1px solid var(--ink);
  display: flex; flex-direction: column; padding: 22px 28px 24px;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .7, .2, 1);
  overflow-y: auto;
}
.lang-drawer.open .lang-overlay { opacity: 1; }
.lang-drawer.open .lang-panel { transform: none; }

.lang-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.lang-panel-head h2 { font-size: 1.6rem; margin: 0; }
.lang-close {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  background: none; border: 1px solid var(--line);
}
.lang-close:hover { border-color: var(--ink); }

.lang-list { flex: 1; }
.lang-list li { border-bottom: 1px solid var(--line); }
/* 패널이 열릴 때 목록이 한 줄씩 밀려 들어옴 */
.lang-drawer .lang-list li { opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .3s; }
.lang-drawer.open .lang-list li { opacity: 1; transform: none; }
.lang-drawer.open .lang-list li:nth-child(1) { transition-delay: .06s; }
.lang-drawer.open .lang-list li:nth-child(2) { transition-delay: .09s; }
.lang-drawer.open .lang-list li:nth-child(3) { transition-delay: .12s; }
.lang-drawer.open .lang-list li:nth-child(4) { transition-delay: .15s; }
.lang-drawer.open .lang-list li:nth-child(5) { transition-delay: .18s; }
.lang-drawer.open .lang-list li:nth-child(6) { transition-delay: .21s; }
.lang-drawer.open .lang-list li:nth-child(7) { transition-delay: .24s; }
.lang-drawer.open .lang-list li:nth-child(8) { transition-delay: .27s; }
.lang-drawer.open .lang-list li:nth-child(9) { transition-delay: .30s; }

.lang-option {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 14px 4px; position: relative; transition: padding .2s, background .2s;
}
.lang-option:hover, .lang-option:focus-visible { padding-left: 12px; background: var(--paper-2); outline: none; }
.lang-native { font-family: var(--sans); font-weight: 700; font-size: 1.15rem; }
.lang-en { color: var(--muted); font-size: .72rem; grid-row: 2; }
.lang-check {
  grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--line);
}
.lang-option[aria-current="true"] .lang-native { color: var(--accent-ink); }
.lang-option[aria-current="true"] .lang-check { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 4px var(--paper); }
.lang-note { margin: 20px 0 0; }

/* CJK 언어: 전용 폰트 + 자간 조정 */
html:lang(ja) { --sans: "Archivo", "Noto Sans JP", sans-serif; --body: "Noto Sans JP", system-ui, sans-serif; }
html:lang(zh-CN) { --sans: "Archivo", "Noto Sans SC", sans-serif; --body: "Noto Sans SC", system-ui, sans-serif; }
html:lang(zh-TW) { --sans: "Archivo", "Noto Sans TC", sans-serif; --body: "Noto Sans TC", system-ui, sans-serif; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-TW) h1, html:lang(zh-TW) h2 { letter-spacing: 0; line-height: 1.25; }
/* 단어 중간에서 줄이 바뀌지 않도록 */
html:lang(ko) body { word-break: keep-all; }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3 { word-break: auto-phrase; }
.lang-option[lang="ja"] .lang-native { font-family: "Noto Sans JP", var(--sans); }
.lang-option[lang="zh-CN"] .lang-native { font-family: "Noto Sans SC", var(--sans); }
.lang-option[lang="zh-TW"] .lang-native { font-family: "Noto Sans TC", var(--sans); }

@media (prefers-reduced-motion: reduce) {
  .lang-panel, .lang-overlay, .lang-drawer .lang-list li { transition: none; }
}

.nav-toggle { display: none; background: none; border: 0; width: 36px; height: 36px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: .2s; }
.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { top: 21px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

/* ───────────────────────── Hero ───────────────────────── */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.035em; margin-bottom: .45em; }
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 72%, color-mix(in srgb, var(--accent) 18%, transparent) 72%);
}
.hero .lead { max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero-note { color: var(--muted); }

.hero-figure { position: relative; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.hero-figure figcaption { margin-top: 10px; color: var(--muted); }
.update-card {
  position: absolute; left: -28px; bottom: 44px; max-width: 290px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 14px 16px; display: grid; gap: 4px; font-size: .9rem; line-height: 1.4;
  box-shadow: 0 10px 30px -12px rgba(26, 25, 21, .35);
}
.update-card:hover { border-color: var(--ink); }
.update-label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3aa65b; box-shadow: 0 0 0 3px rgba(58, 166, 91, .18); }

.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.photo-strip img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); filter: saturate(.9); transition: filter .2s; }
.photo-strip li:hover img { filter: saturate(1.1); }
.photo-strip .mono { display: block; margin-top: 8px; color: var(--ink-2); }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding: 104px 0; }
.section-paper2 { background: var(--paper-2); }
.section-sub { color: var(--ink-2); max-width: 52ch; margin-bottom: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }

/* ───────────────────────── Filter ───────────────────────── */
.filter-bar { display: flex; border: 1px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.filter-btn { background: none; border: 0; padding: .55em 1.1em; cursor: pointer; font-size: .88rem; }
.filter-btn + .filter-btn { border-left: 1px solid var(--ink); }
.filter-btn:hover { background: var(--paper-2); }
.filter-btn.active { background: var(--ink); color: var(--paper); }

/* ───────────────────────── Free / Paid groups ───────────────────────── */
.tool-group + .tool-group { margin-top: 64px; }
.group-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--ink); }
.group-head h3 { margin: 0; }
.group-head p { margin: 0; }
.group-badge {
  display: inline-block; font-family: var(--mono); font-size: .8rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  padding: .35em .8em; border-radius: 2px;
}
.badge-free { background: #dcebd9; color: #22582f; }
.badge-paid { background: var(--ink); color: var(--paper); }
.badge-soon { background: transparent; color: var(--muted); border: 1px dashed var(--muted); }
[data-grid="soon"] .card-media img { filter: grayscale(.6) brightness(.95); }

.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-title h3 { margin-bottom: .4em; }
.price { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.price-free { color: #2f7a43; }
.price-soon { font-family: var(--mono); font-weight: 400; font-size: .78rem; color: var(--muted); }
.btn-done { background: #dcebd9 !important; color: #22582f !important; }
.section-dark .price-free { color: #7fd398; }

/* ───────────────────────── Product cards ───────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.card-media { position: relative; display: block; padding: 0; border: 0; background: var(--paper-2); cursor: pointer; overflow: hidden; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.035); }
.card-media .status { position: absolute; top: 12px; left: 12px; }
.card-body { padding: 18px 20px 6px; flex: 1; }
.card-body p { color: var(--ink-2); font-size: .95rem; }
.card-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); margin-bottom: 8px; gap: 8px; }
.card-actions { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px 18px; border-top: 1px dashed var(--line); margin-top: 6px; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-family: var(--mono); font-size: .7rem; padding: .18em .55em;
  border: 1px solid currentColor; border-radius: 2px; line-height: 1.5;
}
.tag-blender { color: var(--blender); }
.tag-unreal { color: var(--unreal); }
.tag-unity { color: var(--unity); }

.status {
  display: inline-block; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  padding: .3em .6em; border-radius: 2px; background: var(--paper); color: var(--ink); line-height: 1.3;
}
.status-available { background: #dcebd9; color: #22582f; }
.status-beta { background: #f6e3b4; color: #6b4b06; }
.status-coming-soon { background: var(--paper-2); color: var(--muted); }

/* ───────────────────────── Featured: GMH_Remesher ───────────────────────── */
.feature h2 { max-width: 20ch; }
.feature-head { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.feature-name { color: #a19c8e; margin: -6px 0 14px; letter-spacing: .04em; }
.feature-stats { margin: 0; display: grid; gap: 0; border-top: 1px solid #ece8dd; }
.feature-stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--dark-line); }
.feature-stats dt { color: #a19c8e; text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.feature-stats dd { margin: 0; font-family: var(--sans); font-size: 1.3rem; white-space: nowrap; }
.feature-stats .stat-before { color: #a19c8e; text-decoration: line-through; text-decoration-color: rgba(161, 156, 142, .5); }
.feature-stats strong { font-size: 2rem; font-weight: 800; color: #f08a5d; letter-spacing: -.02em; }

/* 전/후 비교 */
.compare { margin-top: 48px; }
.compare-tabs { display: inline-flex; border: 1px solid var(--dark-line); border-radius: 999px; padding: 3px; margin-bottom: 14px; }
.compare-tabs button { background: none; border: 0; color: #a19c8e; cursor: pointer; padding: .45em 1.1em; border-radius: 999px; font-size: .88rem; }
.compare-tabs button[aria-selected="true"] { background: #ece8dd; color: var(--dark); }
.compare-stage { background: #3d3d3d; border: 1px solid var(--dark-line); border-radius: var(--r); display: grid; place-items: center; overflow: hidden; }
.compare-stage img { width: 100%; max-width: 1000px; height: auto; }
.compare-labels { display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; color: #a19c8e; }
.compare-labels span:last-child { color: #f08a5d; }
.compare-labels span::before { content: "↑ "; }

/* 가이드 예시 + 패널 */
.feature-detail { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; margin-top: 56px; align-items: start; }
.feature-shark img { width: 100%; border: 1px solid var(--dark-line); border-radius: var(--r); }
.feature figcaption { margin-top: 10px; color: #a19c8e; }
.feature-panel { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: start; }
.feature-panel img { width: 100%; border: 1px solid var(--dark-line); border-radius: var(--r); }
.feature-panel figcaption { font-size: .7rem; }
.feature-points { counter-reset: fp; border-top: 1px solid #ece8dd; }
.feature-points li { counter-increment: fp; padding: 14px 0 12px 34px; border-bottom: 1px solid var(--dark-line); position: relative; }
.feature-points li::before {
  content: counter(fp); position: absolute; left: 0; top: 15px; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid #f08a5d; color: #f08a5d; font-family: var(--mono); font-size: .72rem; display: grid; place-items: center;
}
.feature-points h3 { font-size: 1rem; margin-bottom: 4px; }
.feature-points p { margin: 0; font-size: .88rem; color: #a19c8e; }
.feature-actions { display: flex; align-items: center; gap: 24px; margin-top: 44px; }
.section-dark .link-btn { color: #ece8dd; }

/* 실제 스크린샷은 잘리지 않게 (상세 모달) */
.modal-main[src^="img/"] { object-fit: contain; background: #3d3d3d; }

/* ───────────────────────── Engines ───────────────────────── */
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--ink); }
.engine { padding: 28px 28px 8px 0; }
.engine + .engine { padding-left: 28px; border-left: 1px solid var(--line); }
.engine-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.engine h3 { font-size: 1.5rem; margin: 0; }
.engine-install { color: var(--accent-ink); margin: 6px 0 14px; }
.engine p:last-child { color: var(--ink-2); }

/* ───────────────────────── Workflow ───────────────────────── */
.steps { display: grid; gap: 72px; margin-top: 56px; }
.step { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.step img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: var(--r); }
.step-flip img { order: 2; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border: 1px solid var(--ink); border-radius: 50%; font-family: var(--mono); font-size: .9rem;
}
.step h3 { font-size: 1.6rem; font-weight: 800; }
.step p { color: var(--ink-2); max-width: 42ch; }

/* ───────────────────────── Studio ───────────────────────── */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.studio-copy > p:not(.label) { color: var(--ink-2); }
.values { margin-top: 40px; counter-reset: v; border-top: 1px solid var(--ink); }
.values li { counter-increment: v; display: grid; grid-template-columns: 48px 1fr; padding: 20px 0; border-bottom: 1px solid var(--line); }
.values li::before { content: "0" counter(v); font-family: var(--mono); font-size: .8rem; color: var(--accent-ink); padding-top: 3px; grid-row: span 2; }
.values h3 { font-size: 1.05rem; margin-bottom: 4px; }
.values p { margin: 0; color: var(--ink-2); font-size: .95rem; }

.studio-photos { position: relative; padding-bottom: 120px; }
.studio-photos img { width: 100%; object-fit: cover; border-radius: var(--r); }
.studio-photos figcaption { margin-top: 8px; color: var(--muted); }
.sp-1 { width: 82%; }
.sp-1 img { aspect-ratio: 9 / 11; }
.sp-2 { position: absolute; right: 0; bottom: 0; width: 56%; background: var(--paper-2); padding: 10px 0 0 10px; }
.sp-2 img { aspect-ratio: 4 / 3; }

/* ───────────────────────── Pricing ───────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--ink); }
.plan { position: relative; padding: 32px 28px 28px; display: flex; flex-direction: column; background: var(--card); }
.plan + .plan { border-left: 1px solid var(--ink); }
.plan-current { background: var(--ink); color: var(--paper); }
.plan-flag {
  position: absolute; top: -1px; right: 24px; transform: translateY(-50%);
  background: var(--accent); color: #fff; padding: .3em .7em; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
}
.plan h3 { font-size: 1.05rem; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.plan-price { font-family: var(--sans); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 20px; line-height: 1.1; }
.plan-price small { font-family: var(--body); font-size: .85rem; font-weight: 400; letter-spacing: 0; color: var(--muted); display: block; margin-top: 6px; }
.plan-current .plan-price small { color: #a19c8e; }
.plan ul { flex: 1; margin-bottom: 24px; border-top: 1px solid var(--line); }
.plan-current ul { border-color: var(--dark-line); }
.plan li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: .93rem; }
.plan-current li { border-color: var(--dark-line); }
.plan li::before { content: "+"; position: absolute; left: 2px; color: var(--accent); font-family: var(--mono); }
.plan .btn { align-self: flex-start; }
.plan-current .btn-line { border-color: var(--paper); }
.plan li a { border-bottom: 1px solid currentColor; }
.plan-product { font-size: .72rem; color: var(--muted); margin: 0 0 4px; letter-spacing: .04em; }
.plan-current .plan-product { color: #a19c8e; }
.plan-later { background: var(--paper); }
.plan-later .plan-price, .plan-later h3 { color: var(--muted); }
.plans-4 { grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.plans-4 .plan-price { font-size: 2.2rem; }

.billing-toggle { display: inline-flex; margin-top: 36px; border: 1px solid var(--ink); border-radius: 999px; padding: 3px; }
.billing-toggle button {
  background: none; border: 0; cursor: pointer; border-radius: 999px; padding: .45em 1.1em; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing-toggle .save { font-size: .7rem; color: var(--accent); }
.billing-toggle button[aria-pressed="true"] .save { color: #f6a37b; }

.pricing-notes { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 20px; color: var(--muted); }
.pricing-notes li::before { content: "※ "; color: var(--accent); }

/* ───────────────────────── Facts & team ───────────────────────── */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 88px 0 0; border-top: 1px solid var(--ink); }
.facts > div { padding: 20px 20px 0 0; }
.facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.facts dd { margin: 6px 0 0; font-family: var(--sans); font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; display: inline-block; }

.team-wrap { margin-top: 88px; }
.team-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.team-head h3 { font-size: 1.6rem; font-weight: 800; margin: 0; }
.team-head p { margin: 0; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.member { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.avatar-empty {
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line);
  font-family: var(--sans); font-weight: 800; font-size: 1.3rem; color: var(--muted);
}
.member h4 { font-size: 1.05rem; margin: 4px 0 2px; display: inline-block; }
.member .role { color: var(--accent-ink); margin: 0 0 8px; }
.member .bio { font-size: .92rem; color: var(--ink-2); margin-bottom: 8px; }

/* ───────────────────────── FAQ ───────────────────────── */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--sans); font-weight: 700; font-size: 1.08rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-weight: 400; font-size: 1.3rem; color: var(--accent); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list details p { color: var(--ink-2); margin: -4px 0 20px; max-width: 60ch; }

/* ───────────────────────── Downloads ───────────────────────── */
.section-dark { background: var(--dark); color: #ece8dd; }
.section-dark .label { color: #f08a5d; }
.section-dark .section-sub, .section-dark .muted { color: #a19c8e; }
.table-wrap { overflow-x: auto; margin: 40px 0 16px; border-top: 1px solid #ece8dd; }
.download-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.download-table th {
  text-align: left; font-family: var(--mono); font-weight: 400; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: #a19c8e; padding: 14px 16px 14px 0;
}
.download-table td { padding: 14px 16px 14px 0; border-top: 1px solid var(--dark-line); vertical-align: middle; }
.download-table tbody tr:hover { background: var(--dark-2); }
.dl-name { display: flex; align-items: center; gap: 14px; }
.dl-name img { width: 48px; height: 48px; object-fit: cover; border-radius: 2px; }
.section-dark .tag-unreal { color: #ece8dd; }
.section-dark .tag-unity { color: #8fb0ff; }
.section-dark .tag-blender { color: #f39a45; }
.section-dark .status { margin-left: 6px; }
.section-dark .status-coming-soon { background: var(--dark-2); color: #a19c8e; }
.section-dark .btn:disabled { border-color: var(--dark-line); color: #6e6a5f; }

/* ───────────────────────── Contact ───────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r); }
.contact-list { margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.contact-list dt { font-family: var(--sans); font-weight: 700; margin-bottom: 4px; }
.contact-list dd { margin: 0; color: var(--ink-2); font-size: .92rem; }
.contact-list .mail { display: block; margin-top: 4px; font-family: var(--mono); font-size: .82rem; color: var(--ink); border-bottom: 1px solid var(--line); width: fit-content; }
.contact-list .mail:hover { color: var(--accent-ink); border-color: currentColor; }
.contact-list address { font-style: normal; }
.contact-list [hidden] { display: none; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { border-top: 1px solid var(--ink); padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr auto; gap: 32px; }
.footer-grid > div > h4:not(:first-child) { margin-top: 24px; }
.social { display: flex; gap: 8px; }
.social a {
  display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--ink-2); transition: border-color .15s, color .15s;
}
.social a:hover { border-color: var(--ink); color: var(--ink); }
.social svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trademarks { margin-top: 16px; font-size: .72rem; line-height: 1.6; color: var(--muted); }
.footer-grid p { margin-top: 12px; }
.footer-grid h4 { font-weight: 500; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-bottom: 12px; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid li a:hover { color: var(--accent-ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }

/* ───────────────────────── Modal ───────────────────────── */
.modal {
  width: min(980px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow: auto;
  background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r);
}
.modal::backdrop { background: rgba(22, 21, 15, .55); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px;
  background: var(--card); border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.modal-close:hover { border-color: var(--ink); }
#modal-body { display: grid; grid-template-columns: 1.15fr 1fr; }
.modal-gallery { background: var(--paper-2); padding: 16px; }
.modal-main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.modal-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 8px; }
.thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 2px; overflow: hidden; opacity: .7; }
.thumb img { aspect-ratio: 10 / 7; object-fit: cover; width: 100%; }
.thumb.active, .thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--accent); }
.modal-info { padding: 32px 32px 28px; }
.modal-info h3 { font-size: 1.9rem; font-weight: 800; }
.modal-info .lead { font-size: 1rem; }
.modal-info h4 { font-weight: 500; text-transform: uppercase; color: var(--muted); letter-spacing: .06em; margin-top: 24px; }
.feature-list li { padding: 8px 0 8px 22px; border-bottom: 1px dashed var(--line); position: relative; font-size: .95rem; }
.feature-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 22px 0 26px; align-items: center; }
.meta dt { color: var(--muted); text-transform: uppercase; font-size: .72rem; }
.meta dd { margin: 0; font-size: .92rem; }

/* ───────────────────────── Licence picker (modal) ───────────────────────── */
.licence { border: 0; padding: 0; margin: 0 0 10px; }
.licence legend { color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; margin-bottom: 8px; }
.lic-option {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: center;
  border: 1px solid var(--line); padding: 12px 14px; cursor: pointer; margin-bottom: 6px; border-radius: var(--r);
}
.lic-option:has(input:checked) { border-color: var(--ink); background: var(--paper); }
.lic-option input { accent-color: var(--accent); margin: 0; }
.lic-name { font-family: var(--sans); font-weight: 700; }
.lic-price { font-family: var(--sans); font-weight: 800; }
.lic-price small { font-weight: 400; color: var(--muted); font-size: .75rem; }
.lic-note { grid-column: 2 / -1; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.seats { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.seats input, .ci-controls input, .ci-controls select {
  font: inherit; font-size: .85rem; padding: .35em .5em; border: 1px solid var(--line); border-radius: var(--r); background: var(--card);
}
.seats input, .ci-controls input { width: 70px; }
.modal-price { margin-bottom: 12px; }

/* ───────────────────────── Cart drawer ───────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(22, 21, 15, .45); opacity: 0; transition: opacity .3s ease; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--paper); border-left: 1px solid var(--ink);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
.drawer.open .drawer-overlay { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 18px; border-bottom: 1px solid var(--ink); }
.drawer-head h2 { font-size: 1.6rem; margin: 0; }
.drawer-close { width: 34px; height: 34px; border-radius: 50%; cursor: pointer; background: none; border: 1px solid var(--line); }
.drawer-close:hover { border-color: var(--ink); }

.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-empty { padding: 40px 0; color: var(--ink-2); }
.cart-info { background: var(--paper-2); padding: 10px 12px; font-size: .85rem; margin: 12px 0 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 2px; }
.plan-icon { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 1.8rem; border-radius: 2px; }
.ci-main strong { font-family: var(--sans); display: block; margin-bottom: 6px; }
.ci-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ci-remove { background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; font-size: .78rem; color: var(--muted); text-decoration: underline; }
.ci-remove:hover { color: var(--accent-ink); }
.ci-price { font-family: var(--sans); font-weight: 800; text-align: right; white-space: nowrap; }
.ci-price small { display: block; font-family: var(--mono); font-weight: 400; font-size: .7rem; color: var(--muted); }
.cart-upsell { margin: 16px 0; padding: 14px 16px; border: 1px dashed var(--accent); font-size: .88rem; }
.cart-upsell p { margin: 0 0 6px; }

.cart-foot { padding: 18px 24px 22px; border-top: 1px solid var(--ink); background: var(--card); }
.cart-foot:empty { display: none; }
.eligible { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--ink-2); margin-bottom: 14px; cursor: pointer; }
.eligible input { margin-top: 3px; accent-color: var(--accent); }
.cart-error { color: #b42318; font-size: .85rem; margin: 0 0 10px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--sans); }
.cart-total strong { font-size: 1.6rem; }
.cart-total + p { margin: 2px 0 14px; }
.cart-checkout { width: 100%; justify-content: center; }
.cart-secure { margin: 12px 0 0; line-height: 1.5; }

/* ───────────────────────── Notice dialog & toast ───────────────────────── */
.notice {
  width: min(460px, calc(100% - 32px)); padding: 28px; border: 1px solid var(--ink); border-radius: var(--r);
  background: var(--card); color: var(--ink);
}
.notice::backdrop { background: rgba(22, 21, 15, .55); }
.notice h3 { font-size: 1.35rem; }
.notice p { color: var(--ink-2); }
.notice-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
  max-width: min(520px, calc(100% - 32px)); background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--r); font-size: .9rem; transition: opacity .3s, transform .3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .studio-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .update-card { left: 16px; bottom: 52px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .team { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 1100px) {
  .plans-4 { grid-template-columns: 1fr 1fr; }
  .plans-4 .plan:nth-child(3) { border-left: 0; }
  .plans-4 .plan:nth-child(n + 3) { border-top: 1px solid var(--ink); }
}

@media (max-width: 1000px) {
  .feature-head, .feature-detail { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 560px) {
  .feature-panel { grid-template-columns: 110px 1fr; gap: 16px; }
  .feature-actions { flex-wrap: wrap; }
}

@media (max-width: 860px) {
  .plans, .plans-4 { grid-template-columns: 1fr; }
  .plans-4 .plan:nth-child(n + 2) { border-top: 1px solid var(--ink); }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .hide-sm { display: none; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--ink);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--line); }
  .engine-grid { grid-template-columns: 1fr; }
  .engine, .engine + .engine { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step, .step-flip { grid-template-columns: 1fr; gap: 24px; }
  .step-flip img { order: 0; }
  .steps { gap: 56px; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 36px; }
  .product-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .update-card { position: static; margin-top: 12px; max-width: none; }
  .section-head { margin-bottom: 28px; }
  .filter-bar { width: 100%; }
  .filter-btn { flex: 1; padding: .55em .4em; }
  .contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 16px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  #modal-body { grid-template-columns: 1fr; }
  .modal-info { padding: 24px 20px; }
  .studio-photos { padding-bottom: 90px; }
}
