:root {
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: #17151f;
  background: #f7f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #17151f;
  --muted: #676273;
  --line: #dedbe7;
  --canvas: #f7f7fb;
  --surface: #ffffff;
  --surface-soft: #eef0ff;
  --accent: #6b3df5;
  --accent-deep: #4d28d8;
  --accent-soft: #ece8ff;
  --cyan: #15c7d4;
  --coral: #ff6b5f;
  --yellow: #f4e54b;
  --shadow: 0 24px 70px rgba(67, 49, 126, 0.14);
  --shadow-sm: 0 12px 34px rgba(41, 34, 72, 0.1);
  --container: 1240px;
  --page-gutter: 48px;
  --section-space: 104px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;
  --radius-xs: 7px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 26px;
  --radius-pill: 999px;
  --font-brand: 29px;
  --font-h1: clamp(50px, 5vw, 68px);
  --font-h1-feature: clamp(48px, 4.5vw, 64px);
  --line-h1: 1;
  --font-h2: clamp(40px, 4vw, 54px);
  --line-h2: 1.04;
  --font-h3: 32px;
  --line-h3: 1.16;
  --font-h4: 24px;
  --line-h4: 1.25;
  --font-body-lg: 19px;
  --line-body-lg: 1.58;
  --font-body: 16px;
  --line-body: 1.55;
  --font-body-sm: 14px;
  --line-body-sm: 1.5;
  --font-nav: 15px;
  --line-nav: 1.5;
  --font-button: 16px;
  --line-button: 1.25;
  --font-button-small: 14px;
  --font-badge: 13px;
  --line-badge: 1.4;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--canvas); }
.metrika-pixel { position: absolute; left: -9999px; width: 1px; height: 1px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
::selection { color: #fff; background: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.container { width: min(var(--container), calc(100% - var(--page-gutter))); margin-inline: auto; }
.surface { background: var(--surface); }
.section { padding: var(--section-space) 0; }
.section-tint { background: var(--surface-soft); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; left: var(--space-4); top: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; height: 72px; display: flex; align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent); background: color-mix(in srgb, var(--canvas) 92%, transparent); backdrop-filter: blur(16px); }
.nav-shell { display: flex; align-items: center; height: 100%; gap: var(--space-8); }
.brand { color: var(--accent); font-size: var(--font-brand); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.main-nav { display: flex; align-items: center; gap: var(--space-7); font-size: var(--font-nav); line-height: var(--line-nav); font-weight: 600; }
.main-nav a { padding: var(--space-2) 0; }
.main-nav a:hover { color: var(--accent); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.menu-toggle { display: none; border: 0; background: transparent; padding: var(--space-2); }
.menu-toggle > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px; border-radius: 2px; background: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: var(--radius-pill); font-size: var(--font-button); line-height: var(--line-button); font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button::before, .button::after { content: none !important; display: none !important; }
.button > svg, .button > [aria-hidden="true"], .button .arrow, .button [class*="arrow"] { display: none !important; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.97); transition-duration: 120ms; }
.button-primary { color: var(--surface); background: var(--accent); box-shadow: 0 12px 28px rgba(107,61,245,.23); }
.button-primary:hover { background: var(--accent-deep); box-shadow: 0 16px 34px rgba(107,61,245,.3); }
.button-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-light { color: var(--accent-deep); background: var(--surface); }
.button.compact { min-height: 44px; padding-inline: var(--space-5); font-size: var(--font-button-small); }

.hero { min-height: 720px; display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: var(--space-10); padding-block: var(--space-16) var(--space-20); }
.feature-hero { min-height: 660px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: var(--space-5); padding: 0 var(--space-3); border-radius: var(--radius-pill); color: var(--accent-deep); background: var(--accent-soft); font-size: var(--font-badge); line-height: var(--line-badge); font-weight: 700; }
.hero h1 { max-width: 650px; margin-bottom: var(--space-6); font-size: var(--font-h1); line-height: var(--line-h1); letter-spacing: -.04em; font-weight: 800; }
.feature-hero h1 { font-size: var(--font-h1-feature); }
.hero-copy > p { max-width: 580px; margin-bottom: var(--space-8); color: var(--muted); font-size: var(--font-body-lg); line-height: var(--line-body-lg); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-visual { min-height: 560px; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: var(--space-4); border-radius: var(--radius-xl); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.feature-hero .hero-visual { min-height: 500px; }
.hero-visual > img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-lg); }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 66px; padding: var(--space-4) var(--space-1) 0; color: var(--muted); background: var(--surface); font-size: var(--font-body); line-height: var(--line-body); }
.prompt-bar b { flex: 0 0 auto; padding: var(--space-3) var(--space-5); border-radius: var(--radius-sm); color: var(--surface); background: var(--accent); }

.section-heading { max-width: 760px; margin-bottom: var(--space-14); }
.section-heading h2, .split-feature h2, .faq-grid h2, .statement h2, .workbench h2 { margin-bottom: var(--space-5); font-size: var(--font-h2); line-height: var(--line-h2); letter-spacing: -.035em; font-weight: 800; }
.section-heading p, .split-feature p, .faq-grid > div > p, .statement p, .workbench-panel > p { color: var(--muted); font-size: var(--font-body-lg); line-height: var(--line-body-lg); }

.mosaic { display: grid; grid-template-columns: 1.2fr .72fr .72fr; grid-template-rows: 350px 350px; gap: var(--space-5); }
.mosaic-card { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; overflow: hidden; border-radius: var(--radius-lg); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.mosaic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mosaic-main { grid-row: 1 / 3; }
.mosaic-card:nth-child(4) { grid-column: 2 / 4; }
.mosaic-preview { order: 1; width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .35s ease; }
.mosaic-card:hover .mosaic-preview { transform: scale(1.025); }
.mosaic-copy { order: 2; width: 100%; padding: var(--space-6); color: var(--ink); background: var(--surface); }
.mosaic-card h3 { margin: var(--space-2) 0 var(--space-3); font-size: var(--font-h4); line-height: var(--line-h4); letter-spacing: -.025em; }
.mosaic-card p { max-width: 440px; margin: 0; color: var(--muted); font-size: var(--font-body); line-height: var(--line-body); }
.card-index { color: var(--accent); font-size: var(--font-badge); line-height: var(--line-badge); font-weight: 700; }

.editor-window { display: grid; grid-template-columns: 190px 1fr 230px; grid-template-rows: 64px 610px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.editor-top { grid-column: 1 / 4; display: flex; align-items: center; gap: var(--space-8); padding: 0 var(--space-5); border-bottom: 1px solid var(--line); font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.editor-top > div { margin-left: auto; display: flex; gap: var(--space-2); }
.editor-top a { padding: var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); }
.editor-top .editor-download { color: var(--surface); border-color: var(--accent); background: var(--accent); }
.editor-window aside { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6) var(--space-4); border-right: 1px solid var(--line); font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.editor-window aside span { padding: var(--space-3); border-radius: var(--radius-sm); color: var(--muted); }
.editor-window aside .active { color: var(--accent-deep); background: var(--accent-soft); font-weight: 700; }
.editor-canvas { display: grid; place-items: center; padding: var(--space-12); background-color: #f5f4f9; background-image: linear-gradient(#e9e7ef 1px,transparent 1px),linear-gradient(90deg,#e9e7ef 1px,transparent 1px); background-size: 24px 24px; }
.poster { width: min(500px,100%); aspect-ratio: 1; display: grid; grid-template-rows: auto auto minmax(0, 1fr); padding: var(--space-7); overflow: hidden; border-radius: var(--radius-md); color: var(--ink); background: var(--surface); box-shadow: 0 12px 30px rgba(35,28,63,.18); }
.poster small { font-size: var(--font-badge); font-weight: 700; color: var(--accent); }
.poster strong { display: block; margin: var(--space-2) 0 var(--space-5); font-size: var(--font-h3); line-height: var(--line-h3); }
.poster img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius-sm); }
.editor-settings { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6) var(--space-5); border-left: 1px solid var(--line); font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.editor-settings label { display: grid; gap: var(--space-2); color: var(--muted); }
.editor-settings input { width: 100%; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-size: var(--font-body); }
.color-row { display: flex; gap: var(--space-2); }
.color-row i { width: 28px; height: 28px; border-radius: var(--radius-xs); background: var(--accent); }
.color-row i:nth-child(2) { background: var(--cyan); }.color-row i:nth-child(3) { background: var(--coral); }.color-row i:nth-child(4) { background: var(--yellow); }
.settings-note { display: grid; gap: var(--space-1); margin-top: auto; padding: var(--space-4); border-radius: var(--radius-sm); color: var(--accent-deep); background: var(--accent-soft); }
.settings-note span { color: var(--muted); }

.wide-gallery { width: 100%; max-height: 700px; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.step-grid, .related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--space-5); }
.step-card { padding: var(--space-7); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.step-number { color: var(--accent); font-size: var(--font-badge); line-height: var(--line-badge); font-weight: 700; }
.step-card h3, .related-card h3 { margin: var(--space-5) 0 var(--space-3); font-size: var(--font-h4); line-height: var(--line-h4); }
.step-card p, .related-card p { margin-bottom: 0; color: var(--muted); font-size: var(--font-body); line-height: var(--line-body); }
.step-art { min-height: 118px; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-1); margin-top: var(--space-5); padding: var(--space-4); border-radius: var(--radius-sm); color: var(--ink); background: linear-gradient(135deg,#e8e2ff,#f9dce7); }
.step-art b { font-size: var(--font-body); line-height: var(--line-body); }
.step-art span { font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.art-2 { color: var(--surface); background: linear-gradient(135deg,var(--accent),#335fdb); }
.art-3 { color: var(--surface); background: linear-gradient(135deg,#25204f,#4e34af); }

.split-feature { display: grid; grid-template-columns: 1.06fr .94fr; gap: var(--space-16); align-items: center; }
.split-feature > img { width: 100%; aspect-ratio: 1.5; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.split-feature > div > p { margin-bottom: var(--space-7); }
.route-grid { display: grid; grid-template-columns: 1.15fr .75fr .75fr; gap: var(--space-5); }
.route-card { padding: var(--space-7); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.route-card.featured { color: var(--surface); border-color: transparent; background: linear-gradient(145deg,#7142fb,#4b2bd1); }
.route-card h3 { margin-bottom: var(--space-5); font-size: var(--font-h4); line-height: var(--line-h4); }
.route-card a { display: block; margin-top: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); font-size: var(--font-body); line-height: var(--line-body); font-weight: 600; background: #f4f3f8; }
.route-card a:hover { background: var(--accent-soft); }
.route-card.featured a { background: rgba(255,255,255,.14); }
.route-card.featured a:hover { background: rgba(255,255,255,.22); }

.statement { max-width: 980px; text-align: center; }
.statement .eyebrow { margin-inline: auto; }
.statement h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.12; }
.statement p { max-width: 760px; margin-inline: auto; }
.workbench-section { color: var(--surface); background: var(--ink); }
.workbench { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-14); align-items: center; }
.workbench-media { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--space-4); min-height: 560px; padding: var(--space-8); border-radius: var(--radius-xl); background: #2a2635; }
.product-proof { min-width: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); color: var(--ink); background: #f7f6fb; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.proof-toolbar, .proof-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) var(--space-4); font-size: var(--font-body-sm); line-height: var(--line-body-sm); background: var(--surface); }
.proof-toolbar { border-bottom: 1px solid var(--line); }
.proof-toolbar span { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.proof-toolbar i { width: 9px; height: 9px; border-radius: var(--radius-pill); background: var(--coral); box-shadow: 15px 0 0 var(--yellow), 30px 0 0 var(--cyan); margin-right: 30px; }
.proof-stage { display: grid; grid-template-columns: 1fr .72fr 1fr; gap: var(--space-3); min-height: 360px; padding: var(--space-4); }
.proof-stage > div { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.proof-stage > div > span { display: block; padding: var(--space-3) var(--space-4); color: var(--muted); border-bottom: 1px solid var(--line); font-size: var(--font-body-sm); line-height: var(--line-body-sm); font-weight: 700; }
.proof-source img, .proof-result-canvas img { width: 100%; height: 100%; object-fit: cover; }
.proof-source { display: grid; grid-template-rows: auto minmax(0,1fr); }
.proof-operation { display: flex; flex-direction: column; }
.proof-operation strong { margin: auto var(--space-4) var(--space-4); font-size: var(--font-h4); line-height: var(--line-h4); }
.proof-control { display: grid; gap: var(--space-3); padding: var(--space-4); border-top: 1px solid var(--line); }
.proof-control i { display: block; height: 10px; border-radius: var(--radius-pill); background: var(--accent-soft); }
.proof-control i:nth-child(2) { width: 72%; background: #d9d3f5; }
.proof-control i:nth-child(3) { width: 45%; background: var(--accent); }
.proof-result { display: grid; grid-template-rows: auto minmax(0,1fr); }
.proof-result-canvas { position: relative; min-height: 0; overflow: hidden; }
.proof-result-canvas b { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); color: var(--ink); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.proof-footer { border-top: 1px solid var(--line); color: var(--muted); }
.proof-footer b { color: var(--accent-deep); }
.proof-photo .proof-result-canvas img { transform: scale(1.1); filter: saturate(1.18) contrast(1.04); }
.proof-prompt .proof-source img { filter: saturate(.62) brightness(.94); }
.proof-prompt .proof-result-canvas img { filter: saturate(1.2); }
.proof-slides .proof-result-canvas img, .proof-design .proof-result-canvas img { object-fit: contain; padding: var(--space-3); background: #e9e8f0; }
.proof-collage .proof-result-canvas img { transform: scale(.92); border-radius: var(--radius-sm); }
.proof-motion .proof-result-canvas::after { content: ''; position: absolute; inset: 20% 12%; border: 2px solid rgba(255,255,255,.84); border-radius: var(--radius-pill); box-shadow: 0 0 0 10px rgba(107,61,245,.22); }
.result-status { display: grid; gap: var(--space-1); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); color: var(--ink); background: var(--surface); }
.result-status span { color: var(--muted); font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.workbench-panel .eyebrow { color: var(--surface); background: rgba(255,255,255,.12); }
.workbench-panel > p { color: #c8c3d1; }
.tool-list { display: grid; gap: var(--space-3); margin: var(--space-7) 0; }
.tool-list > div { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4); border-radius: var(--radius-sm); background: #2a2635; }
.tool-list > div > span { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: var(--radius-xs); color: var(--accent-deep); background: var(--accent-soft); font-weight: 700; }
.tool-list > div > div { display: grid; gap: var(--space-1); }
.tool-list small { color: #aaa4b4; font-size: var(--font-body-sm); line-height: var(--line-body-sm); }

.use-case-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: var(--space-14); align-items: stretch; }
.use-case-image { min-height: 580px; overflow: hidden; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.use-case-image img { width: 100%; height: 100%; object-fit: cover; }
.use-case-list { display: grid; align-content: center; }
.use-case-list article { display: grid; grid-template-columns: 44px 1fr; gap: var(--space-4); padding: var(--space-5) 0; border-top: 1px solid var(--line); }
.use-case-list article:last-child { border-bottom: 1px solid var(--line); }
.use-case-list article > span { color: var(--accent); font-size: var(--font-badge); line-height: var(--line-badge); font-weight: 700; }
.use-case-list h3 { margin: 0 0 var(--space-2); font-size: var(--font-h4); line-height: var(--line-h4); }
.use-case-list p { margin: 0; color: var(--muted); font-size: var(--font-body); line-height: var(--line-body); }

.intent-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: var(--space-20); align-items: start; }
.intent-intro h2 { max-width: 560px; margin-bottom: var(--space-5); font-size: var(--font-h2); line-height: var(--line-h2); letter-spacing: -.035em; }
.intent-intro p { max-width: 560px; color: var(--muted); font-size: var(--font-body-lg); line-height: var(--line-body-lg); }
.intent-facts { margin: 0; border-top: 1px solid var(--line); }
.intent-facts > div { display: grid; grid-template-columns: 160px 1fr; gap: var(--space-7); padding: var(--space-6) 0; border-bottom: 1px solid var(--line); }
.intent-facts dt { color: var(--accent-deep); font-size: var(--font-body); line-height: var(--line-body); font-weight: 750; }
.intent-facts dd { margin: 0; color: var(--muted); font-size: var(--font-body); line-height: var(--line-body); }

.related-card { overflow: hidden; border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card > img { width: 100%; height: 210px; object-fit: cover; }
.related-card > div { padding: var(--space-6); }
.related-card h3 { margin-top: 0; }
.related-card b { display: block; margin-top: var(--space-5); color: var(--accent); }

.faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: var(--space-20); }
.faq-grid details { border-top: 1px solid var(--line); }
.faq-grid details:last-child { border-bottom: 1px solid var(--line); }
.faq-grid summary { display: flex; justify-content: space-between; gap: var(--space-5); padding: var(--space-6) var(--space-1); cursor: pointer; font-size: var(--font-body); line-height: var(--line-body); font-weight: 700; list-style: none; }
.faq-grid summary::after { content: '+'; display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: var(--radius-pill); color: var(--accent); background: var(--accent-soft); }
.faq-grid details[open] summary::after { content: '−'; }
.faq-grid details p { padding: 0 var(--space-12) var(--space-6) var(--space-1); color: var(--muted); font-size: var(--font-body); line-height: var(--line-body); }
.faq-grid details[open] p { animation: faq-answer-in 260ms cubic-bezier(.16,1,.3,1) both; }
.faq-grid summary::after { transition: transform 220ms cubic-bezier(.16,1,.3,1), background-color 180ms ease; }
.faq-grid details[open] summary::after { transform: rotate(180deg); }

.final-cta-section { background: #f1f1f8; }
.final-cta { min-height: 430px; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--space-14); padding: var(--space-16) var(--space-20); overflow: hidden; border-radius: var(--radius-xl); color: var(--surface); background: linear-gradient(120deg,#4c27da,#783cff 60%,#2158dc); }
.final-cta > div:first-child { max-width: 620px; }
.final-cta h2 { margin-bottom: var(--space-5); font-size: var(--font-h2); line-height: var(--line-h2); letter-spacing: -.035em; }
.final-cta p { max-width: 540px; margin-bottom: var(--space-7); color: rgba(255,255,255,.84); font-size: var(--font-body-lg); line-height: var(--line-body-lg); }
.eyebrow-light { color: var(--surface); background: rgba(255,255,255,.15); }
.floating-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); min-width: 0; }
.floating-cards img { width: 100%; height: 240px; object-fit: cover; border: 5px solid rgba(255,255,255,.84); border-radius: var(--radius-md); box-shadow: 0 20px 46px rgba(25,13,79,.28); }
.floating-cards img:nth-child(2) { margin-top: var(--space-7); }

.site-footer { padding: var(--space-16) 0 var(--space-6); color: #e7e5ef; background: #1c1924; }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(4,1fr); gap: var(--space-12); }
.brand-inverse { display: inline-block; margin-bottom: var(--space-5); color: var(--surface); }
.footer-column { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-column h2 { margin-bottom: var(--space-2); color: var(--surface); font-size: var(--font-body); line-height: var(--line-body); }
.footer-column a { color: #c1bdca; font-size: var(--font-body-sm); line-height: var(--line-body-sm); }
.footer-column a:hover { color: var(--surface); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: var(--space-14); padding-top: var(--space-5); border-top: 1px solid #37323f; color: #a39ead; font-size: var(--font-body-sm); line-height: var(--line-body-sm); }

/* Motion system: the hero assembles like a finished layout; later content reveals by role. */
@keyframes hero-copy-in {
  from { opacity: .25; transform: translateY(22px); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes hero-frame-in {
  from { opacity: .35; transform: scale(.965); clip-path: inset(0 0 18% 0 round var(--radius-xl)); filter: saturate(.7) blur(5px); }
  to { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0 round var(--radius-xl)); filter: saturate(1) blur(0); }
}

@keyframes faq-answer-in {
  from { opacity: .35; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-ready .motion-hero-copy > * { opacity: .25; transform: translateY(22px); filter: blur(7px); }
  .motion-ready .motion-hero-copy.is-visible > * { animation: hero-copy-in 620ms cubic-bezier(.16,1,.3,1) both; }
  .motion-ready .motion-hero-copy.is-visible > :nth-child(2) { animation-delay: 70ms; }
  .motion-ready .motion-hero-copy.is-visible > :nth-child(3) { animation-delay: 130ms; }
  .motion-ready .motion-hero-copy.is-visible > :nth-child(4) { animation-delay: 190ms; }
  .motion-ready .motion-hero-visual { opacity: .35; transform: scale(.965); clip-path: inset(0 0 18% 0 round var(--radius-xl)); filter: saturate(.7) blur(5px); }
  .motion-ready .motion-hero-visual.is-visible { animation: hero-frame-in 760ms 90ms cubic-bezier(.16,1,.3,1) both; }
  .motion-ready .motion-hero-visual.is-visible .prompt-bar { animation: hero-copy-in 480ms 430ms cubic-bezier(.16,1,.3,1) both; }

  .motion-ready .motion-reveal { opacity: .38; transform: translateY(26px); filter: blur(5px); clip-path: inset(0 0 8% 0 round var(--radius-lg)); transition: opacity 620ms cubic-bezier(.16,1,.3,1), transform 620ms cubic-bezier(.16,1,.3,1), filter 620ms cubic-bezier(.16,1,.3,1), clip-path 700ms cubic-bezier(.16,1,.3,1); }
  .motion-ready .motion-reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); clip-path: inset(0 0 0 0 round var(--radius-lg)); }

  .motion-ready .motion-group .motion-item { opacity: .48; transform: translateY(22px) scale(.985); filter: blur(3px); transition: opacity 520ms cubic-bezier(.16,1,.3,1), transform 520ms cubic-bezier(.16,1,.3,1), filter 520ms cubic-bezier(.16,1,.3,1); transition-delay: var(--motion-delay, 0ms); }
  .motion-ready .motion-group.is-visible .motion-item { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }

  .editor-window.is-visible .poster { animation: hero-frame-in 680ms 160ms cubic-bezier(.16,1,.3,1) both; }
  .workbench-media.is-visible .result-status { animation: hero-copy-in 480ms 260ms cubic-bezier(.16,1,.3,1) both; }
  .final-cta.is-visible { box-shadow: 0 30px 70px rgba(76,39,218,.2); }
}

@media (max-width: 980px) {
  :root { --page-gutter: 32px; --section-space: 80px; }
  .container { max-width: 760px; }
  .site-header { height: 66px; }
  .nav-shell { gap: var(--space-2); }
  .menu-toggle { display: block; order: 3; min-width: 44px; min-height: 44px; }
  .main-nav { position: absolute; left: var(--space-4); right: var(--space-4); top: 72px; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px) scale(.985); transform-origin: top right; transition: opacity 180ms ease, transform 240ms cubic-bezier(.16,1,.3,1), visibility 0s linear 240ms; }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1); transition-delay: 0s; }
  .main-nav a { padding: var(--space-3); }
  .nav-actions { flex: 0 0 auto; margin-left: auto; order: 2; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-block: var(--space-14) var(--space-16); }
  .hero-copy { max-width: 700px; }
  .hero-visual, .feature-hero .hero-visual { min-height: 500px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 430px 360px 360px; }
  .mosaic-main { grid-column: 1 / 3; grid-row: auto; }
  .mosaic-card:nth-child(4) { grid-column: 1 / 3; }
  .editor-window { grid-template-columns: 150px 1fr; grid-template-rows: 60px 520px; }
  .editor-top { grid-column: 1 / 3; }
  .editor-settings { display: none; }
  .step-grid, .related-grid { grid-template-columns: 1fr; }
  .split-feature, .workbench, .use-case-layout, .intent-layout { grid-template-columns: 1fr; gap: var(--space-10); }
  .route-grid { grid-template-columns: 1fr 1fr; }
  .route-card.featured { grid-column: 1 / 3; }
  .faq-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .final-cta { grid-template-columns: 1fr; padding: var(--space-14) var(--space-12); }
  .floating-cards { max-width: 560px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-about { grid-row: 1 / 3; }
}

@media (max-width: 640px) {
  :root { --page-gutter: 24px; --section-space: 72px; --font-h1: clamp(40px, 12vw, 52px); --font-h1-feature: clamp(38px, 11vw, 48px); --font-h2: 36px; --line-h2: 1.08; }
  .nav-shell { gap: var(--space-1); }
  .brand { font-size: 24px; }
  .nav-actions { gap: var(--space-1); }
  .nav-actions .button { min-height: 44px; padding-inline: var(--space-3); font-size: 14px; }
  .menu-toggle { padding: var(--space-2); }
  .hero { gap: var(--space-9); padding-block: var(--space-12) var(--space-14); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual, .feature-hero .hero-visual { min-height: 390px; border-radius: var(--radius-lg); }
  .prompt-bar { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); min-height: 60px; padding-left: var(--space-4); }
  .prompt-bar b { padding: var(--space-2) var(--space-3); }
  .section-heading { margin-bottom: var(--space-9); }
  .mosaic { display: flex; flex-direction: column; }
  .mosaic-card, .mosaic-main { min-height: 420px; }
  .editor-window { grid-template-columns: 1fr; grid-template-rows: 58px 440px; }
  .editor-top { grid-column: 1; gap: var(--space-2); padding: 0 var(--space-3); }
  .editor-top > div a:first-child, .editor-window aside { display: none; }
  .editor-canvas { padding: var(--space-6); }
  .poster { padding: var(--space-6); }
  .wide-gallery { min-height: 370px; object-position: center; }
  .workbench-media { min-height: 500px; padding: var(--space-4); }
  .proof-stage { grid-template-columns: 1fr 1fr; min-height: 390px; }
  .proof-operation { grid-column: 1 / -1; min-height: 130px; }
  .proof-operation strong { margin: var(--space-4); }
  .use-case-image { min-height: 430px; }
  .intent-facts > div { grid-template-columns: 1fr; gap: var(--space-2); }
  .route-grid { grid-template-columns: 1fr; }
  .route-card.featured { grid-column: auto; }
  .statement h2 { font-size: 30px; }
  .final-cta { min-height: 0; align-items: start; padding: var(--space-12) var(--space-7); }
  .proof-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; }
  .proof-source, .proof-result { min-height: 230px; grid-row: 1; }
  .proof-source { grid-column: 1; }
  .proof-result { grid-column: 2; }
  .proof-operation { grid-column: 1 / -1; grid-row: 2; min-height: 140px; }
  .proof-footer { display: none; }
  .floating-cards { grid-template-columns: 1fr 1fr; }
  .floating-cards img { height: 180px; border-width: 4px; }
  .floating-cards img:nth-child(2) { margin-top: 0; }
  .floating-cards img:last-child { grid-column: 1 / 3; height: 150px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-9) var(--space-6); }
  .footer-about { grid-column: 1 / 3; grid-row: auto; }
  .footer-bottom { flex-direction: column; gap: var(--space-2); }
}

@media (max-width: 340px) {
  :root { --page-gutter: 16px; }
  .brand { font-size: 22px; }
  .nav-actions .button { padding-inline: 10px; font-size: 14px; }
  .menu-toggle { min-width: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .button:hover, .mosaic-card:hover, .related-card:hover { transform: none; }
}
