/* Shoelast Designer — product site. System fonts only; strict CSP (no inline styles). */
:root {
  --bone: #f5f3ee;
  --bone-2: #ece9e2;
  --paper: #ffffff;
  --ink: #15171a;
  --ink-2: #3d4248;
  --muted: #6d737a;
  --line: rgba(21, 23, 26, .09);
  --line-2: rgba(21, 23, 26, .14);
  --blue: #2f6bff;
  --blue-soft: #e7eeff;
  --violet: #b04ae0;
  --night: #0b0d10;
  --night-2: #13161b;
  --night-3: #1b1f26;
  --on-night: #f3f2ee;
  --on-night-2: rgba(243, 242, 238, .64);
  --on-night-3: rgba(243, 242, 238, .42);
  --night-line: rgba(255, 255, 255, .09);
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-lg: 0 1px 1px rgba(16, 20, 28, .04), 0 12px 24px -8px rgba(16, 20, 28, .12), 0 48px 96px -24px rgba(16, 20, 28, .22);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, "Roboto Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bone); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "palt" 0; overflow-x: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
h2, h3, summary { text-wrap: balance; }
p { text-wrap: pretty; }
.sec-lede, .cta p, .hero-lede { text-wrap: balance; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--paper); color: var(--ink); border-radius: 10px; font-size: 14px; transition: top .2s; }
.skip:focus { top: 12px; }
.center { text-align: center; }
.nw { display: inline-block; }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-accent { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(47, 107, 255, .6); }
.btn-accent:hover { background: #2259e6; }
.btn-light { background: var(--on-night); color: var(--ink); box-shadow: 0 10px 30px -10px rgba(255, 255, 255, .35); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { color: var(--on-night); border: 1px solid rgba(255, 255, 255, .2); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow, .link:hover span { transform: translateX(3px); }
.link { color: var(--blue); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link span { transition: transform .25s var(--ease); display: inline-block; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); color: var(--on-night); transition: background-color .35s, color .35s, box-shadow .35s, backdrop-filter .35s; }
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav.scrolled { background: rgba(11, 13, 16, .72); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); box-shadow: 0 1px 0 var(--night-line); }
.nav.light { background: rgba(245, 243, 238, .88); -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .3)); }
.brand-name { display: flex; flex-direction: column; font-weight: 650; font-size: 15px; letter-spacing: -.01em; line-height: 1.15; }
.brand-name small { font-size: 10.5px; font-weight: 500; letter-spacing: .14em; opacity: .6; margin-top: 2px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; font-size: 14px; }
.nav-links a { padding: 7px 12px; border-radius: 999px; opacity: .78; transition: opacity .2s, background-color .2s; }
.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .14); }
.nav .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding: calc(var(--nav-h) + 56px) 0 28px; isolation: isolate; }
.hero-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 72% 46%, rgba(70, 110, 255, .20), transparent 70%),
    radial-gradient(40% 40% at 18% 20%, rgba(255, 255, 255, .05), transparent 70%),
    linear-gradient(180deg, #0b0d10 0%, #0d1015 60%, #0b0d10 100%); }
.hero-glow::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center;
  -webkit-mask-image: radial-gradient(70% 65% at 66% 50%, #000 0%, transparent 75%); mask-image: radial-gradient(70% 65% at 66% 50%, #000 0%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 32px; min-height: min(680px, calc(100svh - var(--nav-h) - 120px)); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); font-size: 13px; color: var(--on-night-2); margin-bottom: 28px; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b8cff; box-shadow: 0 0 0 4px rgba(91, 140, 255, .18); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; margin-bottom: 26px;
  background: linear-gradient(180deg, #ffffff 30%, #b9c0cc 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lede { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.8; color: var(--on-night-2); max-width: 30em; margin-bottom: 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.hero-specs { display: flex; flex-wrap: wrap; gap: 0; margin-top: 44px; border-top: 1px solid var(--night-line); padding-top: 22px; max-width: 460px; }
.hero-specs div { flex: 1 1 0; min-width: 110px; padding-right: 16px; }
.hero-specs div + div { padding-left: 18px; border-left: 1px solid var(--night-line); }
.hero-specs dt { font-size: 12px; color: var(--on-night-3); margin-bottom: 3px; }
.hero-specs dd { font-size: 14.5px; font-weight: 600; color: var(--on-night); white-space: nowrap; }
.hero-note { font-size: 12px; color: var(--on-night-3); margin-top: 18px; text-align: right; }

.stage { position: relative; aspect-ratio: 7 / 5.2; min-height: 340px; border-radius: 28px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 42%, #1d2330 0%, #12151b 55%, #0d0f13 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), 0 40px 120px -40px rgba(47, 107, 255, .35); }
.stage-floor { position: absolute; left: 12%; right: 12%; bottom: 17%; height: 16%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); filter: blur(6px); pointer-events: none; }
#last-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; outline: none; }
#last-canvas.dragging { cursor: grabbing; }
#last-canvas:focus-visible { box-shadow: inset 0 0 0 2px var(--blue); }
.dims { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .8s .2s; }
.dims.ready { opacity: 1; }
.dims line { stroke: #7da2ff; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.dims .ext { stroke: rgba(125, 162, 255, .35); stroke-dasharray: 2 3; }
.dims .tag rect { fill: rgba(13, 16, 22, .82); stroke: rgba(125, 162, 255, .45); stroke-width: 1; }
.dims .tag text { fill: #dfe7ff; font: 600 11.5px/1 var(--mono); letter-spacing: .02em; }
.dims .tag text tspan { fill: rgba(223, 231, 255, .55); font-weight: 500; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 8%; }
.stage-fallback img { border-radius: 16px; }
.hud { position: absolute; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { top: 16px; }
.hud-bottom { bottom: 16px; }
.hud-tag, .hud-mono { font-size: 12px; color: var(--on-night-2); display: inline-flex; align-items: center; gap: 8px; }
.hud-mono { font-family: var(--mono); font-size: 11.5px; color: var(--on-night-3); }
.live { width: 6px; height: 6px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .18); }
.swatches { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(12, 14, 18, .6); border: 1px solid var(--night-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sw { width: 24px; height: 24px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .2s var(--ease); }
.sw:hover { transform: scale(1.1); }
.sw[aria-checked="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid #fff; }
.sw-ivory { background: radial-gradient(circle at 35% 30%, #fffdf8, #d8d2c6); }
.sw-beech { background: radial-gradient(circle at 35% 30%, #e2b88a, #9c6c41); }
.sw-tan { background: radial-gradient(circle at 35% 30%, #b56a3d, #5e2e15); }
.sw-patent { background: radial-gradient(circle at 35% 30%, #6a7080 0%, #14161b 45%, #050507 100%); }
.sw-label { font-size: 12px; color: var(--on-night-2); margin-left: 4px; min-width: 6.5em; }
.hud-btn { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--on-night-2); padding: 8px 12px; border-radius: 999px; background: rgba(12, 14, 18, .6); border: 1px solid var(--night-line); transition: color .2s, border-color .2s; }
.hud-btn:hover { color: var(--on-night); border-color: rgba(255, 255, 255, .25); }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 148px) 0; }
.sec-head { margin-bottom: clamp(44px, 5.5vw, 72px); }
.sec-head.center { max-width: 760px; margin-inline: auto; text-align: center; }
.sec-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.kicker { font-size: 14px; font-weight: 600; color: var(--blue); margin-bottom: 14px; letter-spacing: .02em; }
.sec-head h2, .cta h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.14; font-weight: 700; letter-spacing: -.03em; }
.sec-lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; color: var(--muted); margin-top: 20px; }
.sec-head.split .sec-lede { margin-top: 0; }
.dark { background: var(--night); color: var(--on-night); }
.dark .kicker { color: #7da2ff; }
.dark .sec-lede { color: var(--on-night-2); }
.fine { font-size: 13px; color: var(--muted); line-height: 1.7; }
.dark .fine { color: var(--on-night-3); }

/* Workspace showcase */
.showcase { background: linear-gradient(180deg, var(--bone) 0%, var(--bone) 70%, var(--bone-2) 100%); }
.window { position: relative; max-width: 1180px; margin: 0 auto; padding: 10px; border-radius: 26px; background: linear-gradient(180deg, #fff, #f3f1ec); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .8); }
.window-shot { position: relative; border-radius: 17px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); background: #ececec; }
.window-shot img { width: 100%; height: auto; }
.hotspot { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--font); color: #fff; background: var(--blue); box-shadow: 0 0 0 5px rgba(47, 107, 255, .22), 0 6px 16px rgba(47, 107, 255, .45); }
.hotspot::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(47, 107, 255, .5); animation: ping 2.6s var(--ease) infinite; }
.hs-1 { left: 17.5%; top: 31.4%; }
.hs-2 { left: 37.6%; top: 69.3%; }
.hs-3 { left: 47.4%; top: 57%; }
.hs-4 { left: 74.3%; top: 33%; }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; max-width: 1180px; margin: 44px auto 0; }
.legend li { display: flex; gap: 14px; align-items: flex-start; }
.legend-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; margin-top: 1px; }
.legend h3 { font-size: 16px; font-weight: 650; margin-bottom: 4px; letter-spacing: -.01em; }
.legend p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; margin: clamp(64px, 8vw, 104px) auto 0; border-top: 1px solid var(--line-2); }
.stats div { padding: 28px 24px 0 0; }
.stats div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-size: 14px; color: var(--muted); }
.stats dd { font-size: clamp(36px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; margin-top: 6px; font-variant-numeric: tabular-nums; }
.stats small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }

/* Features bento */
.features { background: var(--bone-2); padding-top: clamp(40px, 6vw, 80px); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 2.6vw, 36px); box-shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 24px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { box-shadow: 0 1px 2px rgba(16, 20, 28, .04), 0 0 0 1px var(--line-2), 0 24px 48px -24px rgba(16, 20, 28, .18); }
.card-kicker { font-size: 13px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.card h3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin-bottom: 10px; }
.card-text p:not(.card-kicker) { font-size: 15px; color: var(--muted); line-height: 1.75; }
.card-media { margin: calc(-1 * clamp(24px, 2.6vw, 36px)); margin-bottom: 0; background: #ececec; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.media-white { background: #fff; border-bottom: 1px solid var(--line); }
.media-white img { object-fit: contain; padding: 14px 18px 0; }

.card-param { grid-column: span 4; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: 36px; }
.card-protect { grid-column: span 2; }
.card-protect .card-media { aspect-ratio: 900 / 520; }
.card-push { grid-column: span 3; }
.card-push .card-media { aspect-ratio: 16 / 9.4; }
.card-measure { grid-column: span 3; }
.card-variants, .card-ai, .card-stl { grid-column: span 2; }
.card-stl .card-media { aspect-ratio: 660 / 520; }
.card-stl .card-media img { object-position: top; }

.param-demo { background: linear-gradient(180deg, #f7f8fb, #f1f3f7); border-radius: 18px; padding: 18px 20px 16px; box-shadow: inset 0 0 0 1px var(--line); }
.outline { width: 100%; height: auto; overflow: visible; }
.o-fill { fill: #ffffff; }
.o-heel { fill: url(#hatch); }
.o-orig { fill: none; stroke: var(--violet); stroke-width: 1.6; stroke-dasharray: 5 4; opacity: .8; }
.o-cur { fill: none; stroke: var(--blue); stroke-width: 2.2; stroke-linejoin: round; }
.o-dim line { stroke: var(--ink-2); stroke-width: 1.1; }
.o-label { font: 600 12px var(--mono); fill: var(--ink-2); }
.o-len-label { paint-order: stroke; stroke: #f3f5f9; stroke-width: 8px; stroke-linejoin: round; }
.o-heel-label { font: 600 12px var(--font); fill: var(--muted); paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.param-control { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 10px; padding: 12px 14px; background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.param-control label { font-size: 14px; font-weight: 600; }
.param-control output { font: 600 14px var(--mono); min-width: 6.4em; text-align: right; padding: 5px 9px; border-radius: 8px; background: var(--bone); font-variant-numeric: tabular-nums; }
.param-readout { font-size: 13px; margin-top: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.param-readout b { font-family: var(--mono); font-weight: 600; }
.param-readout b#ball-to { color: var(--blue); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; --p: 33.3%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--p), #dfe2e8 var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: #dfe2e8; }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .2); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .2); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bone); color: var(--ink-2); }
.chips li.on { background: var(--ink); color: #fff; }

.readout { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: auto; }
.readout th, .readout td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.readout thead th { font-size: 12px; font-weight: 500; color: var(--muted); padding-top: 0; }
.readout tbody th { font-weight: 500; color: var(--ink-2); }
.readout td { font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.readout td:last-child { color: var(--ink); font-weight: 600; text-align: right; }
.readout thead th:last-child { text-align: right; }
.readout tbody tr:last-child > * { border-bottom: 0; }
.delta { display: inline-block; margin-left: 10px; min-width: 4.2em; padding: 2px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); font-size: 12px; text-align: center; }

.variants { display: grid; gap: 6px; margin-top: auto; padding: 8px; border-radius: 16px; background: #f4f4f6; box-shadow: inset 0 0 0 1px var(--line); }
.variants li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); }
.variants li svg { color: var(--blue); flex: none; }
.variants li span { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--muted); }
.variants li.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--line); }
.variants li.on span { color: var(--blue); }

.chat { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.bubble { max-width: 88%; font-size: 14px; line-height: 1.6; padding: 9px 14px; border-radius: 18px; }
.bubble.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.bubble.ai { align-self: flex-start; background: #f0f1f4; color: var(--ink); border-bottom-left-radius: 6px; }
.card-ai .fine { margin-top: -6px; }

/* Materials */
.materials { padding-bottom: clamp(56px, 7vw, 96px); }
.mat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mat { position: relative; border-radius: var(--radius); overflow: hidden; background: #ebebeb; aspect-ratio: 800 / 560; }
.mat img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.mat:hover img { transform: scale(1.1); }
.mat span { position: absolute; left: 14px; bottom: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ticker { margin: 48px 0 20px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 10px; padding-right: 10px; }
.ticker li { font-size: 14px; color: var(--on-night-2); padding: 8px 16px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Demo */
.demo { padding-top: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, var(--night) 0%, #0e1116 100%); }
.tabs { display: flex; justify-content: center; gap: 6px; width: max-content; margin: 0 auto 28px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); }
.tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--on-night-2); transition: background-color .25s, color .25s; }
.tabs button span { font: 500 12px var(--mono); opacity: .6; }
.tabs button[aria-selected="true"] { background: var(--on-night); color: var(--ink); }
.tabs button:not([aria-selected="true"]):hover { color: var(--on-night); }
.player { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
.video-frame { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--night-line), 0 40px 100px -40px rgba(47, 107, 255, .35); aspect-ratio: 1280 / 880; }
.video-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.chapters-panel { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--night-line); padding: 18px 10px 16px; min-height: 0; }
.chapters-title { font-size: 12px; font-weight: 600; color: var(--on-night-3); padding: 0 12px 10px; letter-spacing: .08em; }
.chapters { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.chapters button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; color: var(--on-night-2); transition: background-color .2s, color .2s; }
.chapters button:hover { background: rgba(255, 255, 255, .05); color: var(--on-night); }
.chapters button.active { background: rgba(91, 140, 255, .14); color: #fff; }
.chapters .t { flex: none; font: 500 12px var(--mono); color: var(--on-night-3); width: 3.4em; }
.chapters button.active .t { color: #8fb0ff; }
.chapters-panel[data-mode="materials"] .chapters { display: none; }
.chapters-note { font-size: 12.5px; color: var(--on-night-3); line-height: 1.65; padding: 14px 12px 0; margin-top: auto; border-top: 1px solid var(--night-line); }
.chapters-panel[data-mode="materials"] .chapters-note { border-top: 0; margin-top: 0; padding-top: 0; font-size: 14px; color: var(--on-night-2); }
.dl { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: #8fb0ff; padding: 10px 12px 0; }
.dl:hover { color: #b5cbff; }

/* Guide */
.guide { background: var(--bone); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.step { position: relative; padding: 28px 24px 30px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font: 600 14px var(--mono); margin-bottom: 26px; }
.step:nth-child(2) .step-n { background: #24324e; }
.step:nth-child(3) .step-n { background: #2a4ea8; }
.step:nth-child(4) .step-n { background: var(--blue); }
.step h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }

/* FAQ */
.faq { background: var(--bone); padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start; border-top: 1px solid var(--line-2); padding-top: clamp(64px, 8vw, 104px); }
.faq .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.qa details { border-bottom: 1px solid var(--line-2); }
.qa details:first-child { border-top: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2315171a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 1px var(--line); transition: transform .35s var(--ease), background-color .25s; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover::after { background-color: #fff; box-shadow: 0 0 0 1px var(--line-2); }
.qa p { font-size: 15.5px; color: var(--ink-2); line-height: 1.85; padding: 0 56px 26px 0; }

/* CTA */
.cta-wrap { background: var(--bone); padding: 0 0 clamp(72px, 9vw, 120px); }
.cta { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: clamp(64px, 8vw, 104px) 24px; background: var(--night); color: var(--on-night); isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgba(70, 110, 255, .32), transparent 70%), radial-gradient(40% 50% at 50% 110%, rgba(70, 110, 255, .14), transparent 70%); }
.cta-icon { margin: 0 auto 28px; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55)); }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--on-night-2); max-width: 32em; margin: 0 auto 34px; font-size: 17px; line-height: 1.8; }

/* Footer */
.footer { background: var(--bone); border-top: 1px solid var(--line); padding: 40px 0 36px; font-size: 13px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: var(--ink-2); }
.footer-links a:hover, .attribution a:hover, .footer-bottom a:hover { color: var(--blue); }
.attribution { margin: 26px 0 22px; line-height: 1.8; max-width: 70em; }
.attribution a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-copy > * { animation: rise 1s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(5) { animation-delay: .32s; }
.js .stage { animation: rise 1.2s .15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; min-height: 0; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-lede { margin-inline: auto; }
  .actions { justify-content: center; }
  .hero-specs { margin-inline: auto; justify-content: center; }
  .hero-note { text-align: center; }
  .stage { aspect-ratio: 16 / 10; }
  .card-param { grid-column: span 6; }
  .card-protect { grid-column: span 3; }
  .card-variants, .card-ai, .card-stl { grid-column: span 3; }
  .card-stl { grid-column: span 6; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .card-stl .card-media { margin: calc(-1 * clamp(24px, 2.6vw, 36px)); margin-right: 0; height: calc(100% + 2 * clamp(24px, 2.6vw, 36px)); aspect-ratio: auto; border-bottom: 0; border-right: 1px solid var(--line); }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player { grid-template-columns: 1fr; }
  .chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .sec-head.split { grid-template-columns: 1fr; gap: 0; }
  .sec-head.split .sec-lede { margin-top: 20px; }
  .card-param { grid-template-columns: 1fr; gap: 24px; }
  .card-protect, .card-push, .card-measure, .card-variants, .card-ai { grid-column: span 6; }
  .card-stl { grid-template-columns: 1fr; }
  .card-stl .card-media { margin: calc(-1 * clamp(24px, 2.6vw, 36px)); margin-bottom: 0; height: auto; aspect-ratio: 660 / 520; border-right: 0; border-bottom: 1px solid var(--line); }
  .mat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq .sec-head { position: static; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats div:nth-child(n+3) { margin-top: 12px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero h1 { font-size: clamp(42px, 13vw, 56px); }
  .actions .btn { flex: 1 1 100%; }
  .hero-specs div { min-width: 0; padding-right: 10px; }
  .hero-specs div + div { padding-left: 12px; }
  .hero-specs dd { font-size: 13px; }
  .stage { aspect-ratio: 4 / 3.6; border-radius: 22px; min-height: 300px; }
  .hud { left: 12px; right: 12px; }
  .hud-top .hud-mono { display: none; }
  .sw-label { display: none; }
  .swatches { padding-right: 6px; }
  .hud-btn span { display: none; }
  .hud-btn { padding: 8px; }
  .window { padding: 5px; border-radius: 16px; }
  .window-shot { border-radius: 12px; }
  .hotspot { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; box-shadow: 0 0 0 3px rgba(47, 107, 255, .22); }
  .hotspot::before { display: none; }
  .legend { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .mat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mat { border-radius: 16px; }
  .mat span { left: 8px; bottom: 8px; font-size: 12px; padding: 4px 10px; }
  .steps { grid-template-columns: 1fr; }
  .chapters { grid-template-columns: 1fr; }
  .tabs button { padding: 9px 14px; }
  .qa summary { font-size: 16.5px; padding: 20px 0; }
  .qa p { padding-right: 0; }
  .param-demo { padding: 12px 12px 12px; }
  .param-control { grid-template-columns: 1fr auto; }
  .param-control input { grid-column: 1 / -1; grid-row: 2; }
  .readout .delta { margin-left: 6px; min-width: 0; }
  .card { border-radius: 18px; }
  .cta { border-radius: 24px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
}
