@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #f7f5ff;
  --muted: #aaa7b7;
  --bg: #09090f;
  --panel: #13131c;
  --panel-2: #1a1924;
  --line: rgba(255,255,255,.11);
  --violet: #806cff;
  --violet-2: #b8abff;
  --acid: #c7ff5c;
  --coral: #ff7474;
  --max: 1180px;
  --radius: 26px;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: var(--bg);
  overscroll-behavior-y: none;
  scrollbar-color: rgba(184,171,255,.38) var(--bg);
}
[id] { scroll-margin-top: 110px; }
body { margin: 0; min-height:100%; overflow-x:hidden; overscroll-behavior-y:none; color: var(--ink); background: var(--bg); font-family: "DM Sans", sans-serif; line-height: 1.55; }
::-webkit-scrollbar { width:12px; height:12px; }
::-webkit-scrollbar-track { background:var(--bg); }
::-webkit-scrollbar-thumb { background:rgba(184,171,255,.3); border:3px solid var(--bg); border-radius:999px; }
::-webkit-scrollbar-thumb:hover { background:rgba(184,171,255,.5); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 99; background: var(--acid); color: #0c0c10; padding: 10px 16px; border-radius: 12px; }
.skip-link:focus { top: 16px; }
.site-shell { min-height:100vh; min-height:100dvh; overflow-x:clip; background:var(--bg); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.nav { height:76px; position:sticky; top:0; z-index:50; isolation:isolate; backdrop-filter:blur(22px); -webkit-backdrop-filter:blur(22px); background:rgba(9,9,15,.8); border-bottom:1px solid var(--line); transition:background .28s ease,border-color .28s ease; }
.nav-inner { min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:24px; position:relative; transform:translate3d(0,0,0); backface-visibility:hidden; transition:min-height .28s ease,width .28s ease,padding .28s ease,border-color .28s ease,border-radius .28s ease,background .28s ease,box-shadow .28s ease,transform .28s ease; }
.nav.is-scrolled { background:transparent; border-bottom-color:transparent; backdrop-filter:none; }
.nav.is-scrolled .nav-inner { width:min(980px,calc(100% - 28px)); min-height:60px; padding:0 14px; border:0; outline:0; border-radius:20px; background:#101018; backdrop-filter:none; -webkit-backdrop-filter:none; box-shadow:0 18px 48px rgba(0,0,0,.38); transform:translate3d(0,10px,0); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width:35px; height:35px; border-radius:12px 12px 12px 4px; background:conic-gradient(from 230deg,var(--acid),var(--violet),var(--coral),var(--acid)); position:relative; box-shadow:inset 0 0 0 1px rgba(255,255,255,.25); transition:width .28s ease,height .28s ease,border-radius .28s ease; }
.brand-mark:after { content: ""; position: absolute; inset: 9px; border: 3px solid #0b0b10; border-radius: 50%; border-right-color: transparent; }
.nav.is-scrolled .brand-mark { width:31px; height:31px; border-radius:10px 10px 10px 4px; }
.nav-links { display:flex; align-items:center; gap:28px; font-size:14px; font-weight:600; color:#cecadc; transition:gap .28s ease; }
.nav.is-scrolled .nav-links { gap:19px; }
.nav-links > a:not(.nav-cta) { position:relative; padding:9px 0; transition:color .2s ease; }
.nav-links > a:not(.nav-cta):after { content:""; position:absolute; left:0; right:0; bottom:3px; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--violet-2),var(--acid)); transform:scaleX(0); transform-origin:center; transition:transform .2s ease; }
.nav-links a:hover,.nav-links a[aria-current="page"],.nav-links a:focus-visible { color:#fff; }
.nav-links > a:not(.nav-cta):hover:after,.nav-links > a[aria-current="page"]:after,.nav-links > a:not(.nav-cta):focus-visible:after { transform:scaleX(1); }
body:has(#faq:target) .nav-links > a[aria-current="page"]:after { transform:scaleX(0); }
body:has(#faq:target) .nav-links > a[href="#faq"]:after { transform:scaleX(1); }
.nav-cta { display:inline-flex; align-items:center; gap:8px; padding:11px 18px; border:1px solid rgba(199,255,92,.42); border-radius:13px; color:var(--acid); transition:background .2s ease,color .2s ease,border-color .2s ease,padding .28s ease,box-shadow .2s ease; }
.nav-cta:hover { background:var(--acid); border-color:var(--acid); color:#101015!important; box-shadow:0 10px 28px rgba(199,255,92,.2); }
.nav.is-scrolled .nav-cta { padding:9px 15px; }
.menu-button { display:none; background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:8px 11px; cursor:pointer; }
.menu-button:focus-visible,.nav a:focus-visible { outline:2px solid var(--acid); outline-offset:3px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--acid); font-size: 12px; letter-spacing: .13em; text-transform: uppercase; font-weight: 800; }
.eyebrow:before { content: ""; width: 22px; height: 1px; background: currentColor; }
h1,h2,h3 { font-family: Manrope, sans-serif; line-height: 1.08; margin: 0; letter-spacing: -.045em; }
h1 { font-size: clamp(45px, 7vw, 82px); max-width: 950px; }
h2 { font-size: clamp(34px, 4.2vw, 58px); }
h3 { font-size: 21px; }
.lede { color: #c3bfce; font-size: clamp(17px, 2vw, 21px); max-width: 740px; }
.gradient-text { background: linear-gradient(90deg, #f3efff 15%, var(--violet-2) 62%, var(--acid)); -webkit-background-clip: text; color: transparent; }
.button { border: 0; display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 50px; padding: 0 22px; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(128,108,255,.28); }
.button-acid { background: var(--acid); color: #101015; }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button:disabled { cursor: not-allowed; opacity: .46; transform: none; box-shadow: none; }
.text-link { color: var(--violet-2); font-weight: 700; display: inline-flex; gap: 7px; align-items: center; }

.hero { padding: 78px 0 52px; position: relative; }
.hero:before { content:""; position:absolute; width:650px; height:650px; border-radius:50%; top:-360px; left:44%; background:radial-gradient(circle, rgba(128,108,255,.22), transparent 65%); pointer-events:none; }
.hero-copy { text-align: center; display: grid; justify-items: center; gap: 22px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-note { color: #85818f; font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero-note span:before { content: "✓"; color: var(--acid); margin-right: 6px; }

.workspace { margin-top: 56px; display: grid; grid-template-columns: 370px 1fr; gap: 18px; align-items: stretch; }
.workspace-panel, .preview-panel { background: linear-gradient(145deg, rgba(27,27,38,.98), rgba(17,17,24,.98)); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.workspace-panel { padding: 20px; }
.mode-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 5px; background: #0d0d14; border: 1px solid var(--line); border-radius: 15px; gap: 4px; margin-bottom: 20px; }
.mode-tab { border: 0; background: transparent; color: #85818f; border-radius: 10px; padding: 10px 5px; font-size: 12px; cursor: pointer; font-weight: 700; }
.mode-tab.active { background: var(--ink); color: #111116; }
.upload-field { margin-top: 14px; }
.field-label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.field-label small { color: #767280; font-weight: 500; }
.dropzone { min-height: 135px; border: 1px dashed rgba(184,171,255,.35); background: rgba(128,108,255,.045); border-radius: 18px; display: grid; place-items: center; text-align: center; cursor: pointer; position: relative; overflow: hidden; transition: border .2s, background .2s; }
.dropzone:hover { border-color: var(--violet-2); background: rgba(128,108,255,.09); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-icon { width: 38px; height: 38px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 12px; background: rgba(128,108,255,.18); color: var(--violet-2); font-size: 19px; }
.dropzone strong { display: block; font-size: 14px; }
.dropzone small { color: #7f7b8a; }
.upload-preview { width: 100%; height: 135px; object-fit: cover; display: none; }
.dropzone.has-file .drop-copy { display: none; }
.dropzone.has-file .upload-preview { display: block; }
.quality-row { display: flex; align-items: center; justify-content: space-between; padding: 17px 2px; font-size: 13px; }
.switch { width: 44px; height: 24px; border-radius: 99px; background: #393743; padding: 3px; border: 0; cursor: pointer; }
.switch:after { content: ""; display:block; width:18px; height:18px; border-radius:50%; background:#fff; transition:.2s; }
.switch.on { background: var(--violet); }
.switch.on:after { transform: translateX(20px); }
.generate { width: 100%; }
.face-index-fields { display:grid; grid-template-columns:1fr 1fr; gap:9px; margin-top:14px; padding:12px; border:1px solid var(--line); border-radius:14px; background:#0f0f17; }
.face-index-fields label { color:#aaa6b4; font-size:11px; font-weight:700; }
.face-index-fields input { width:100%; height:38px; margin-top:6px; padding:0 10px; color:var(--ink); background:#181722; border:1px solid var(--line); border-radius:9px; outline:none; }
.face-index-fields input:focus { border-color:var(--violet-2); box-shadow:0 0 0 3px rgba(128,108,255,.12); }
.face-index-fields small { grid-column:1/-1; color:#777381; font-size:10px; }
.consent-check { display:flex; align-items:flex-start; gap:9px; margin:0 2px 14px; color:#9995a4; font-size:11px; cursor:pointer; }
.consent-check input { width:16px; height:16px; margin:1px 0 0; accent-color:var(--acid); flex:0 0 auto; }
.editor-error { min-height:18px; margin:10px 2px 0; color:#ff9a9a; font-size:11px; text-align:center; }
.safe-note { color: #777381; font-size: 11px; text-align: center; margin: 12px 0 0; }

.preview-panel { padding: 15px; min-height: 585px; position: relative; }
.preview-toolbar { height: 39px; display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; color: #8c8994; font-size: 12px; }
.traffic { display:flex; gap:7px; }
.traffic i { width:8px; height:8px; border-radius:50%; background:#ff7474; }
.traffic i:nth-child(2) { background:#ffca55; }.traffic i:nth-child(3){background:#75dfa0;}
.frame-count { border: 1px solid var(--line); padding: 4px 9px; border-radius: 99px; }
.stage { height: calc(100% - 39px); min-height: 510px; border-radius: 20px; background: #050508; overflow: hidden; position: relative; display: grid; place-items: center; }
.stage > img { width: 100%; height: 100%; object-fit: cover; }
.stage > .live-demo-gif { object-position:center; }
.stage > video.live-demo-gif { width:100%; height:100%; object-fit:contain; background:#050508; }
.result-media { animation:result-reveal .35s ease both; }
.stage-grid { position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size:32px 32px; pointer-events:none; }
.face-chip { position:absolute; top:20px; left:20px; display:flex; align-items:center; gap:9px; padding:8px 12px 8px 8px; background:rgba(8,8,12,.78); backdrop-filter:blur(10px); border:1px solid rgba(255,255,255,.18); border-radius:999px; color:#f7f5ff; font-size:12px; }
.face-chip img { width:32px; height:32px; border-radius:50%; }
.gif-source-badge { position:absolute; right:18px; bottom:18px; padding:8px 11px; border:1px solid rgba(255,255,255,.2); border-radius:999px; background:rgba(8,8,12,.76); backdrop-filter:blur(10px); color:#eeeaf8; font-size:11px; font-weight:700; }
.gif-source-badge:hover { border-color:rgba(199,255,92,.65); color:var(--acid); }
.processing { position:absolute; inset:0; display:none; place-items:center; background:rgba(7,7,11,.78); backdrop-filter:blur(8px); z-index:5; }
.processing.show { display:grid; }
.processing-card { width:min(320px,80%); text-align:center; }
.progress { height:8px; background:#2b2935; border-radius:99px; overflow:hidden; margin-top:18px; }
.progress i { display:block; height:100%; width:0; background:linear-gradient(90deg,var(--violet),var(--acid)); transition:width .2s; }
.result-actions { position:absolute; left:18px; bottom:18px; z-index:4; display:flex; gap:8px; }
.result-button { display:inline-flex; align-items:center; min-height:38px; padding:0 13px; border-radius:11px; background:var(--acid); color:#101015; font-size:11px; font-weight:800; box-shadow:0 10px 30px rgba(0,0,0,.28); }
.result-button.secondary { color:#fff; background:rgba(15,15,22,.86); border:1px solid rgba(255,255,255,.22); backdrop-filter:blur(10px); }
.result-button:hover { transform:translateY(-1px); }

.proof-strip { display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:22px; margin:26px auto 0; overflow:hidden; background:#101018; }
.proof-item { padding:20px 22px; border-right:1px solid var(--line); }
.proof-item:last-child { border-right:0; }
.proof-item strong { display:block; font-family:Manrope,sans-serif; font-size:15px; }
.proof-item span { color:#817d8b; font-size:12px; }
.topic-nav { margin:16px auto 0; display:flex; align-items:center; justify-content:center; gap:7px; flex-wrap:wrap; }
.topic-nav a { padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:#8f8b99; font-size:12px; transition:.2s; }
.topic-nav a:hover { color:var(--ink); border-color:rgba(184,171,255,.45); background:rgba(128,108,255,.08); }

.section { padding: 108px 0; }
.section-muted { background:#0d0d14; border-top:1px solid rgba(255,255,255,.06); border-bottom:1px solid rgba(255,255,255,.06); }
.section-head { display:flex; justify-content:space-between; gap:40px; align-items:end; margin-bottom:42px; }
.section-head p { color:var(--muted); max-width:490px; margin:0; }
.popular-gif-section { padding-top:82px; }
.gif-gallery { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.gif-card { overflow:hidden; border:1px solid var(--line); border-radius:24px; background:var(--panel); transition:transform .22s,border-color .22s; }
.gif-card:hover { transform:translateY(-4px); border-color:rgba(184,171,255,.45); }
.gif-card-media { display:block; aspect-ratio:4/3; overflow:hidden; background:#07070b; }
.gif-card-media img,.gif-card-media iframe { width:100%; height:100%; object-fit:cover; border:0; display:block; }
.gif-card-copy { padding:21px; }
.gif-card-copy > span { color:var(--acid); font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.gif-card-copy h3 { margin-top:7px; }
.gif-card-copy p { min-height:66px; margin:10px 0 16px; color:var(--muted); font-size:13px; }
.gif-card-copy a { color:var(--violet-2); font-size:12px; font-weight:700; }
.gif-gallery-note { margin:17px 0 0; color:var(--muted); font-size:12px; }
.route-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.route-card { min-height:260px; border:1px solid var(--line); border-radius:24px; background:var(--panel); padding:28px; display:flex; flex-direction:column; justify-content:space-between; position:relative; overflow:hidden; transition:.25s; }
.route-card:hover { transform:translateY(-4px); border-color:rgba(184,171,255,.45); }
.route-card:after { content:""; position:absolute; width:170px; height:170px; border-radius:50%; background:var(--card-glow,var(--violet)); filter:blur(70px); opacity:.18; top:-60px; right:-40px; }
.route-meta { font-size:11px; color:#777381; text-transform:uppercase; letter-spacing:.11em; }
.route-card p { color:#9a96a5; max-width:420px; margin:12px 0 24px; }
.route-arrow { font-size:24px; color:var(--acid); }
.route-card:nth-child(2){--card-glow:var(--coral)}.route-card:nth-child(3){--card-glow:var(--acid)}.route-card:nth-child(4){--card-glow:#5de0ff}

.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; counter-reset:steps; }
.step { counter-increment:steps; border-top:1px solid var(--line); padding:28px 8px 0; }
.step:before { content:"0" counter(steps); display:block; color:var(--acid); font-family:Manrope,sans-serif; font-size:13px; margin-bottom:52px; }
.step p { color:#938f9d; }
.showcase { display:grid; grid-template-columns:1.05fr .95fr; gap:20px; align-items:stretch; }
.showcase-visual { min-height:510px; border-radius:28px; background:#171620; padding:18px; border:1px solid var(--line); position:relative; overflow:hidden; }
.showcase-visual img { width:100%; height:100%; object-fit:cover; border-radius:18px; }
.showcase-copy { padding:50px; border-radius:28px; background:var(--violet); color:white; display:flex; flex-direction:column; justify-content:space-between; }
.showcase-copy p { color:#e4e0ff; }
.bullet-list { list-style:none; padding:0; margin:30px 0 0; display:grid; gap:16px; }
.bullet-list li { display:flex; gap:12px; align-items:flex-start; }
.bullet-list li:before { content:"✓"; width:24px; height:24px; flex:0 0 24px; border-radius:50%; background:var(--acid); color:#121218; display:grid; place-items:center; font-size:12px; font-weight:800; }

.faq { max-width:850px; margin:auto; }
.faq h2 { text-align:center; margin-bottom:38px; }
details { border-top:1px solid var(--line); padding:22px 4px; }
details:last-child { border-bottom:1px solid var(--line); }
summary { cursor:pointer; font-family:Manrope,sans-serif; font-weight:700; font-size:18px; display:flex; justify-content:space-between; list-style:none; }
summary:after { content:"+"; color:var(--acid); font-size:24px; }
details[open] summary:after { content:"−"; }
details p { color:#9692a0; max-width:730px; }

.cta { margin:0 auto 100px; padding:65px; border-radius:30px; background:linear-gradient(120deg,var(--violet),#5e4ed8 60%,#4031a9); text-align:center; position:relative; overflow:hidden; }
.cta:after { content:""; position:absolute; width:300px; height:300px; background:var(--acid); filter:blur(110px); opacity:.18; right:-120px; bottom:-160px; }
.cta p { color:#e1dcff; }
.cta .button { margin-top:14px; }

.page-hero { padding:88px 0 64px; }
.page-hero .lede { margin:22px 0 30px; }
.breadcrumbs { color:#817e8c; font-size:13px; margin-bottom:34px; }
.breadcrumbs a:hover { color:var(--violet-2); }
.article-grid { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:70px; align-items:start; }
.article { max-width:760px; }
.article h2 { font-size:34px; margin:54px 0 18px; }
.article h3 { margin:30px 0 10px; }
.article p,.article li { color:#aaa6b4; }
.article img { border-radius:24px; margin:32px 0; border:1px solid var(--line); }
.toc { position:sticky; top:110px; background:var(--panel); padding:22px; border-radius:18px; border:1px solid var(--line); }
.toc strong { font-size:13px; }
.toc a { display:block; color:#8d8997; margin-top:12px; font-size:13px; }
.toc a:hover { color:var(--violet-2); }
.template-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.template-card { background:var(--panel); border:1px solid var(--line); border-radius:22px; overflow:hidden; }
.template-art { aspect-ratio:4/3; display:grid; place-items:center; position:relative; background:linear-gradient(135deg,#2a2454,#ff7474); }
.template-art img { width:58%; filter:drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.template-card:nth-child(2) .template-art{background:linear-gradient(135deg,#18291f,#c7ff5c)}.template-card:nth-child(3) .template-art{background:linear-gradient(135deg,#242033,#806cff)}
.template-card div:last-child { padding:20px; }
.template-art .gif-example { width:100%; height:100%; object-fit:cover; border:0; filter:none; }
.gif-credit { display:inline-flex; margin-top:8px; color:var(--muted); font-size:11px; }
.article-hero-gif { margin:32px 0 10px; }
.article-hero-gif img { width:100%; aspect-ratio:16/9; object-fit:cover; margin:0; }
.article-hero-gif figcaption { color:var(--muted); font-size:12px; margin-top:9px; }
.related-links { margin-top:52px; padding:28px; border:1px solid var(--line); border-radius:22px; background:var(--panel); }
.related-links h2 { font-size:28px; margin:0 0 8px; }
.related-links p { margin-top:0; }
.related-link-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.related-link { padding:16px; border:1px solid var(--line); border-radius:14px; background:var(--bg); font-weight:700; font-size:13px; }
.related-link span { display:block; margin-top:4px; color:var(--muted); font-weight:500; font-size:11px; }
.pill { display:inline-flex; border:1px solid var(--line); border-radius:999px; padding:6px 10px; color:#9995a4; font-size:11px; }
.responsibility-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.responsibility-card { border:1px solid var(--line); border-radius:22px; padding:25px; background:var(--panel); }
.responsibility-card .num { color:var(--acid); font-family:Manrope; font-weight:800; margin-bottom:40px; }

.footer { border-top:1px solid var(--line); padding:58px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.7fr repeat(3,1fr); gap:40px; }
.footer p,.footer a { color:#84808e; font-size:13px; }
.footer a { display:block; margin-top:10px; }
.footer a:hover { color:#fff; }
.footer h4 { margin:0 0 16px; font-size:13px; }
.footer-bottom { border-top:1px solid var(--line); margin-top:42px; padding-top:20px; display:flex; justify-content:space-between; color:#6f6b79; font-size:12px; }

@media (max-width: 900px) {
  .nav { height:70px; }
  .nav-inner { min-height:70px; }
  .nav.is-scrolled .nav-inner { width:calc(100% - 24px); min-height:56px; padding:0 12px; border-radius:17px; transform:translate3d(0,8px,0); }
  .nav-links { display:none; position:absolute; left:0; right:0; top:66px; padding:14px; background:rgba(21,21,29,.96); backdrop-filter:blur(24px); border:1px solid var(--line); border-radius:18px; flex-direction:column; align-items:stretch; gap:4px!important; box-shadow:0 20px 55px rgba(0,0,0,.28); }
  .nav-links > a:not(.nav-cta) { padding:11px 10px; border-radius:10px; }
  .nav-links > a:not(.nav-cta):after { display:none; }
  .nav-links > a:not(.nav-cta):hover { background:rgba(128,108,255,.1); }
  .nav-links.open { display:flex; animation:nav-menu-in .2s ease both; }.menu-button{display:block}
  .product-nav-actions .login-link { display:none; }
  .product-nav-actions .button { min-height:42px; padding:0 14px; }
  .workspace,.showcase,.article-grid { grid-template-columns:1fr; }
  .workspace-panel { order:2; }.preview-panel{min-height:520px}.stage{min-height:445px}
  .proof-strip { grid-template-columns:repeat(2,1fr); }.proof-item:nth-child(2){border-right:0}.proof-item:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .section-head { display:block; }.section-head p{margin-top:16px}
  .footer-grid { grid-template-columns:1.5fr 1fr 1fr; }.footer-grid>div:first-child{grid-column:1/-1}
  .toc { display:none; }
}

@keyframes nav-menu-in { from { opacity:0; transform:translateY(-8px) scale(.98); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes result-reveal { from { opacity:.25; transform:scale(.99); } to { opacity:1; transform:scale(1); } }

@media (max-width: 640px) {
  .container { width:min(100% - 28px,var(--max)); }
  .hero { padding-top:55px; }.hero-actions .button{width:100%}
  .workspace { margin-top:36px; }.preview-panel{min-height:390px;padding:10px}.stage{min-height:335px}
  .face-index-fields { grid-template-columns:1fr; }.face-index-fields small{grid-column:1}
  .result-actions { left:12px; bottom:12px; }
  .proof-strip,.route-grid,.steps,.template-grid,.responsibility-grid,.gif-gallery { grid-template-columns:1fr; }
  .topic-nav { justify-content:flex-start; overflow-x:auto; flex-wrap:nowrap; padding-bottom:4px; }
  .topic-nav a { white-space:nowrap; }
  .proof-item { border-right:0!important;border-bottom:1px solid var(--line); }
  .section { padding:76px 0; }
  .showcase-copy,.cta { padding:34px 24px; }
  .showcase-visual { min-height:390px; }
  .footer-grid { grid-template-columns:1fr 1fr; }.footer-grid>div:first-child{grid-column:1/-1}
  .footer-bottom { display:block; }
  .related-link-grid { grid-template-columns:1fr; }
}
