/* EnFy Landing Page — design tokens and layout. No external fonts or libraries. */
:root {
  color-scheme: light;
  --white: #ffffff;
  --bg: #fcfbff;
  --lav-50: #f8f5ff;
  --lav-100: #f1ecff;
  --lav-200: #e4dbff;
  --lav-300: #cdbdff;
  --purple: #6c47f5;
  --purple-600: #5a35e0;
  --purple-400: #9b7bff;
  --ink: #15122b;
  --ink-2: #2a2645;
  --muted: #5c5874;
  --line: rgba(108, 71, 245, 0.14);
  --gold-1: #d4a24c;
  --gold-2: #a8741f;
  --gold: #b07a22;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(31, 18, 84, 0.05), 0 4px 14px rgba(76, 44, 190, 0.06);
  --shadow: 0 2px 6px rgba(31, 18, 84, 0.05), 0 18px 44px -12px rgba(76, 44, 190, 0.20);
  --shadow-lg: 0 6px 18px rgba(31, 18, 84, 0.06), 0 40px 90px -30px rgba(76, 44, 190, 0.38);
  --sans: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(155, 123, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 18%, rgba(205, 189, 255, 0.28), transparent 60%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }

:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 8px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- Typography ---------- */
.display { font-size: clamp(2.9rem, 6.2vw, 4.75rem); line-height: 1.02; letter-spacing: -0.045em; font-weight: 750; }
.h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 750; }
.h2-sm { font-size: clamp(1.75rem, 2.8vw, 2.25rem); }
.center { text-align: center; }
.accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold);
  background: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 55%, #c8953a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.06em;
}
.lead { color: var(--muted); font-size: 1.075rem; line-height: 1.6; }
.fine { color: var(--muted); font-size: 0.82rem; opacity: 0.9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  border-radius: 999px; text-decoration: none; font-weight: 650; letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.btn .icon { transition: transform 0.25s ease; }
.btn:hover .icon { transform: translateX(4px); }
.btn-dark { background: var(--ink); color: var(--white); box-shadow: 0 10px 24px -10px rgba(21, 18, 43, 0.6); }
.btn-dark:hover { background: #241f45; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(21, 18, 43, 0.55); }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-ghost { padding: 12px 22px; border: 1px solid var(--lav-300); color: var(--purple-600); background: rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { border-color: var(--purple); background: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(76, 44, 190, 0.5); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-size: 1.6rem; font-weight: 780; letter-spacing: -0.04em; }
.brand-sm .brand-mark { width: 26px; height: 26px; }
.brand-sm .brand-name { font-size: 1.3rem; }
.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 550; font-size: 0.95rem; color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.main-nav a:hover { background: var(--lav-100); color: var(--purple-600); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--lav-100); border: 1px solid var(--line); }
.lang-btn {
  border: 0; background: transparent; cursor: pointer; padding: 5px 10px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lang-btn[aria-pressed="true"] { background: var(--white); color: var(--purple-600); box-shadow: var(--shadow-sm); }
.lang-btn:hover { color: var(--purple-600); }
.nav-toggle { display: none; border: 1px solid var(--line); background: var(--white); border-radius: 12px; width: 42px; height: 42px; align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Decorative flows ---------- */
.flow { position: absolute; pointer-events: none; background: url("../img/flow.svg") no-repeat center / 100% 100%; }
.flow-hero, .flow-studio {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 70%, transparent 100%);
}
.flow-hero { inset: 0 -10% auto -10%; height: 760px; opacity: 0.95; }
.flow-studio { left: -5%; right: -5%; top: 40px; height: 560px; transform: scaleX(-1); opacity: 0.7; }
.flow-final { inset: 0; opacity: 0.9; background-size: 120% 160%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 48px; align-items: center; }
.hero-copy .display { margin-bottom: 18px; }
.hero-sub { font-size: clamp(1.25rem, 2vw, 1.6rem); color: var(--ink-2); font-weight: 450; letter-spacing: -0.02em; margin-bottom: 26px; }
.hero-copy .lead { max-width: 30em; margin-bottom: 34px; }
.hero-visual, .split-visual { margin: 0; }
.mock-note { margin-top: 10px; text-align: right; font-size: 0.74rem; color: var(--muted); opacity: 0.85; }

/* ---------- Editor mock ---------- */
.mock {
  position: relative; border-radius: var(--radius-lg); padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 247, 255, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 11px; color: var(--ink-2);
}
.mock .icon { width: 13px; height: 13px; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 4px 6px 10px; border-bottom: 1px solid var(--line); }
.mock-brand { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mock-brand img { width: 15px; height: 15px; }
.mock-brand b { font-size: 12.5px; letter-spacing: -0.02em; }
.mock-sep { width: 1px; height: 12px; background: var(--lav-300); margin: 0 4px; }
.mock-title { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-devices { margin-inline: auto; display: flex; gap: 4px; padding: 3px; border-radius: 9px; background: var(--lav-50); border: 1px solid var(--line); }
.mock-devices span { display: grid; place-items: center; width: 24px; height: 20px; border-radius: 6px; color: var(--muted); }
.mock-devices .is-on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); }
.mock-actions { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.mock-export { display: inline-flex; align-items: center; gap: 4px; background: linear-gradient(135deg, var(--purple-400), var(--purple)); color: var(--white); padding: 4px 10px; border-radius: 8px; font-weight: 650; }
.mock-export .icon { width: 11px; height: 11px; }

.mock-body { display: grid; grid-template-columns: 0.9fr 2.1fr 1.05fr; gap: 10px; padding: 10px 2px; }
.panel { background: rgba(255, 255, 255, 0.85); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-width: 0; }
.tabs { display: flex; gap: 12px; padding: 2px 4px 7px; border-bottom: 1px solid var(--line); margin-bottom: 6px; color: var(--muted); }
.tabs .is-on { color: var(--purple-600); font-weight: 650; position: relative; }
.tabs .is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--purple); }
.tree li { display: flex; align-items: center; gap: 5px; padding: 4px 5px; border-radius: 6px; white-space: nowrap; overflow: hidden; }
.tree li .icon { width: 11px; height: 11px; color: var(--muted); }
.tree .chev { width: 9px !important; height: 9px !important; }
.tree .sub { padding-left: 22px; color: var(--muted); }
.tree .is-on { background: var(--lav-100); color: var(--purple-600); }
.canvas { position: relative; border-radius: 12px; overflow: hidden; min-height: 210px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }
.canvas-mountain { background-image: url("../img/mountain.svg"); }
.canvas-villa { background-image: url("../img/villa.svg"); }
.canvas-copy { position: absolute; left: 9%; top: 18%; display: flex; flex-direction: column; gap: 14px; }
.canvas-title { font-family: var(--serif); color: var(--white); font-size: clamp(20px, 2.5vw, 30px); line-height: 1.05; font-weight: 500; text-shadow: 0 4px 20px rgba(10, 8, 40, 0.35); }
.canvas-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ink); padding: 6px 12px; border-radius: 999px; font-weight: 650; font-size: 10px; outline: 1.5px dashed rgba(255, 255, 255, 0.9); outline-offset: 4px; }
.select-box { position: absolute; inset: 12% 10% 10% 12%; border: 1.5px solid rgba(255, 255, 255, 0.95); border-radius: 4px; }
.select-box i { position: absolute; width: 7px; height: 7px; background: var(--white); border: 1.5px solid var(--purple); border-radius: 2px; }
.select-box i:nth-child(1) { left: -4px; top: -4px; } .select-box i:nth-child(2) { right: -4px; top: -4px; }
.select-box i:nth-child(3) { left: -4px; bottom: -4px; } .select-box i:nth-child(4) { right: -4px; bottom: -4px; }
.props-head { font-weight: 700; font-size: 11.5px; padding: 2px 4px 7px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; background: var(--lav-50); border-radius: 8px; margin-bottom: 8px; color: var(--muted); text-align: center; }
.seg span { padding: 3px 0; border-radius: 6px; }
.seg .is-on { background: var(--white); color: var(--purple-600); font-weight: 650; box-shadow: var(--shadow-sm); }
.field-label { font-size: 9.5px; font-weight: 650; margin: 6px 2px 4px; color: var(--ink-2); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.pair span { display: flex; gap: 8px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-variant-numeric: tabular-nums; }
.pair i { font-style: normal; color: var(--muted); }
.style-row { display: flex; align-items: center; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--purple-400), var(--purple-600)); box-shadow: 0 0 0 3px var(--lav-100); }
.pill-shape { flex: 1; height: 18px; border: 1px solid var(--line); border-radius: 7px; background: linear-gradient(var(--white), var(--white)) padding-box; position: relative; }
.pill-shape::after { content: ""; position: absolute; inset: 6px 10px; border: 1.5px solid var(--muted); border-radius: 99px; }
.radius { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.select { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); white-space: nowrap; overflow: hidden; }
.select .caret { margin-left: auto; width: 10px !important; height: 10px !important; color: var(--muted); }
.select.small { padding: 3px 6px; min-width: 56px; }
.kf-line { position: relative; height: 18px; margin: 0 4px; }
.kf-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--lav-300); }
.kf-line i { position: absolute; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; transform: rotate(45deg); border: 1.5px solid var(--purple); background: var(--white); }
.kf-line i:nth-child(1) { left: 12%; } .kf-line i:nth-child(2) { left: 52%; } .kf-line i:nth-child(3) { left: 92%; }
.kf-line i.is-on { background: var(--purple); }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }

.lines { border-top: 1px solid var(--line); padding: 8px 4px 2px; }
.lines-head { display: grid; grid-template-columns: 74px 1fr auto; align-items: center; gap: 8px; margin-bottom: 4px; }
.lines-name { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.ruler { display: flex; justify-content: space-between; color: var(--muted); font-size: 9.5px; padding-right: 8%; }
.lines-tools { display: flex; gap: 8px; color: var(--muted); }
.tracks { position: relative; }
.track { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; height: 20px; }
.track-name { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); white-space: nowrap; }
.track-name .icon { width: 10px; height: 10px; }
.bar { position: relative; height: 7px; border-radius: 99px; background: linear-gradient(90deg, rgba(155, 123, 255, 0.45), rgba(108, 71, 245, 0.55)); }
.bar i { position: absolute; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; transform: rotate(45deg); background: var(--white); border: 1.5px solid var(--purple); }
.bar i:first-child { left: 0; } .bar i:last-child { left: 100%; } .bar i:nth-child(2):not(:last-child) { left: 50%; }
.b1 { margin: 0 46% 0 2%; } .b2 { margin: 0 22% 0 16%; } .b3 { margin: 0 10% 0 4%; opacity: 0.75; }
.b4 { margin: 0 52% 0 4%; } .b5 { margin: 0 34% 0 20%; } .b6 { margin: 0 18% 0 2%; opacity: 0.6; }
.playhead { position: absolute; top: -26px; bottom: 0; left: calc(74px + 8px + 32%); width: 2px; background: var(--purple); border-radius: 2px; }
.playhead::before { content: ""; position: absolute; top: 0; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 3px rgba(108, 71, 245, 0.2); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(108, 71, 245, 0.28); }
.card h3 { font-size: 1.05rem; letter-spacing: -0.02em; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.icon-tile {
  display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 15px;
  color: var(--purple); background: linear-gradient(145deg, var(--lav-100), #ffffff); border: 1px solid var(--line);
}
.icon-tile .icon { width: 26px; height: 26px; }

/* ---------- Features ---------- */
.features { position: relative; padding: 12px 0 72px; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 22px 20px; }

/* ---------- Split sections ---------- */
.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.build { padding: 40px 0 80px; }
.split-copy .h2 { margin-bottom: 20px; }
.split-copy .lead { margin-bottom: 24px; max-width: 32em; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-weight: 500; color: var(--ink-2); }
.checks .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; color: var(--purple); background: var(--lav-100); }

/* ---------- Workflow ---------- */
.how { padding: 24px 0 88px; }
.how .h2 { margin-bottom: 40px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.step { position: relative; display: flex; gap: 16px; align-items: center; padding: 22px 18px; }
.step + .step::before {
  content: ""; position: absolute; left: -29px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border-right: 2px solid var(--purple-400); border-bottom: 2px solid var(--purple-400); transform: rotate(-45deg);
}
.step-art { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 16px; color: var(--purple); background: linear-gradient(145deg, var(--lav-100), #fff); border: 1px solid var(--line); }
.step-art .icon { width: 30px; height: 30px; }
.step h3 { display: flex; align-items: center; gap: 8px; }
.num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 0.75rem; color: var(--white); background: linear-gradient(135deg, var(--purple-400), var(--purple)); }
.step-final { background: linear-gradient(145deg, #f3edff, #e6dcff); border-color: rgba(108, 71, 245, 0.3); }
.step-final .step-art { background: var(--white); }

/* ---------- Studio ---------- */
.studio { position: relative; padding: 40px 0 88px; overflow: hidden; }
.split-studio { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
.studio-mock { padding: 0; overflow: hidden; font-size: 11.5px; }
.studio-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); }
.studio-bar b { font-size: 12.5px; }
.studio-body { display: grid; grid-template-columns: 58px 1fr; min-height: 230px; }
.studio-side { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; border-right: 1px solid var(--line); background: rgba(248, 245, 255, 0.8); }
.studio-side span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.studio-side .icon { width: 17px; height: 17px; }
.studio-side .is-on { background: linear-gradient(135deg, var(--purple-400), var(--purple)); color: var(--white); box-shadow: 0 8px 18px -8px rgba(108, 71, 245, 0.7); }
.studio-main { padding: 20px 22px 22px; }
.studio-h { font-size: 15px; font-weight: 750; letter-spacing: -0.02em; }
.studio-sub { color: var(--muted); font-size: 11px; margin: 2px 0 16px; }
.studio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.s-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; padding-bottom: 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-height: 128px; }
.s-card .s-ic { width: 22px; height: 22px; color: var(--purple); margin-bottom: 6px; }
.s-card b { font-size: 12px; line-height: 1.25; }
.s-card small { color: var(--muted); font-size: 10.5px; line-height: 1.35; padding-right: 26px; }
.s-go { position: absolute; right: 12px; bottom: 50%; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-2); }
.s-go .icon { width: 12px; height: 12px; }
.is-soon { background: linear-gradient(160deg, #ffffff, #f6f2ff); }
.badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 650; letter-spacing: 0.01em;
  color: var(--purple-600); background: var(--lav-100); border: 1px solid var(--lav-200); white-space: nowrap;
}
.s-card .badge { position: absolute; top: 10px; right: 10px; font-size: 9.5px; padding: 2px 8px; }

/* ---------- Examples ---------- */
.examples { padding: 24px 0 72px; }
.examples-grid { display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 2.38fr); gap: 32px; align-items: center; }
.examples-intro .h2 { margin-bottom: 14px; }
.examples-intro p { color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.example-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.example { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 12px; align-items: center; padding: 12px; overflow: hidden; }
.ex-copy { padding: 6px 2px 6px 6px; }
.ex-ic { width: 26px; height: 26px; color: var(--purple); margin-bottom: 12px; }
.example h3 { font-size: 0.98rem; }
.example p { font-size: 0.82rem; }
.example img { width: 100%; height: 100%; min-height: 128px; object-fit: cover; border-radius: 12px; transition: transform 0.6s ease; }
.example:hover img { transform: scale(1.04); }

/* ---------- Roadmap ---------- */
.next { padding: 8px 0 72px; }
.next .h2 { margin-bottom: 32px; }
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.next-card { display: flex; gap: 18px; align-items: flex-start; padding: 22px 22px; }
.next-ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; color: var(--purple); background: var(--lav-50); border: 1px solid var(--line); }
.next-ic .icon { width: 26px; height: 26px; }
.next-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Final CTA ---------- */
.final { padding: 8px 0 48px; }
.final-band {
  position: relative; overflow: hidden; text-align: center; padding: 64px 24px 60px; border-radius: 32px;
  background: linear-gradient(120deg, #efe8ff 0%, #f8f4ff 40%, #ece3ff 100%);
  border: 1px solid rgba(108, 71, 245, 0.16); box-shadow: var(--shadow);
}
.final-band > :not(.flow) { position: relative; }
.final-band .h2 { margin-bottom: 12px; }
.final-band p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
.site-footer { padding: 18px 0 32px; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-inner > nav { margin-inline: auto; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
.footer-links a:hover { color: var(--purple-600); }
.copyright { color: var(--muted); font-size: 0.82rem; }

/* ---------- Motion (only when allowed) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .feature-grid .reveal:nth-child(2), .js .steps .reveal:nth-child(2), .js .example-cards .reveal:nth-child(2), .js .next-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
  .js .feature-grid .reveal:nth-child(3), .js .steps .reveal:nth-child(3), .js .example-cards .reveal:nth-child(3), .js .next-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
  .js .feature-grid .reveal:nth-child(4), .js .steps .reveal:nth-child(4) { transition-delay: 0.24s; }
  .playhead { animation: scrub 7s ease-in-out infinite alternate; }
  .canvas-mountain { animation: drift 18s ease-in-out infinite alternate; }
  .bar i { animation: kf 3.5s ease-in-out infinite; }
  .flow-hero { animation: float 14s ease-in-out infinite alternate; }
  @keyframes scrub { from { left: calc(74px + 8px + 8%); } to { left: calc(74px + 8px + 70%); } }
  @keyframes drift { from { background-position: 50% 45%; } to { background-position: 50% 60%; } }
  @keyframes kf { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(108, 71, 245, 0); } 80% { box-shadow: 0 0 0 4px rgba(108, 71, 245, 0.25); } }
  @keyframes float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .step + .step::before { display: none; }
  .examples-grid { grid-template-columns: 1fr; }
  .examples-intro { max-width: 40em; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(76, 44, 190, 0.35);
    padding: 12px 24px 20px; display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .split, .split-studio { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 40px; }
  .hero-copy { text-align: left; max-width: 640px; }
  .split-visual { order: 2; }
  .example-cards { grid-template-columns: 1fr; }
  .example { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .example img { max-height: 190px; }
  .next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(1200px, 100% - 32px); }
  .flow-hero { top: auto; bottom: 0; height: 420px; inset-inline: -40%; }
  .flow-studio { height: 380px; inset-inline: -40%; }
  .header-cta { display: none; }
  .brand-name { font-size: 1.4rem; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock .layers, .mock .props { display: none; }
  .canvas { min-height: 190px; }
  .mock-title { display: none; }
  .studio-body { grid-template-columns: 48px 1fr; }
  .studio-main { padding: 16px 14px; }
  .studio-cards { grid-template-columns: 1fr; }
  .s-card { min-height: 0; }
  .s-go { bottom: auto; top: 14px; }
  .is-soon .badge { top: 12px; }
  .example { grid-template-columns: 1fr; }
  .example img { max-height: 170px; order: -1; }
  .final-band { padding: 48px 18px; border-radius: 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { margin-inline: 0; gap: 18px; }
}

/* ---------- 404 ---------- */
.notfound-main { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 28px; }
