/* Alloy Catalog: a dark blueprint theme, matching the catalog sign-in page. */
:root {
  --bg: #06121f;
  --panel: rgb(207 229 251 / 0.035);
  --panel-2: rgb(207 229 251 / 0.06);
  --line: rgb(148 190 240 / 0.14);
  --line-2: rgb(148 190 240 / 0.26);
  --text: #eef4fb;
  --muted: #9fb2c8;
  --faint: #6f849c;
  --accent: #7fb6ee;
  --accent-2: #3d8fdb;
  --c1: #cfe5fb;
  --c2: #7fb6ee;
  --c3: #3d8fdb;
  --c4: #f2f7fd;
  --glow: rgb(61 143 219 / 0.35);
  --grid: rgb(207 229 251 / 0.13);
  --art-surface: rgb(207 229 251 / 0.025);
  --art-edge: rgb(207 229 251 / 0.05);
  --art-hole: rgb(6 18 31 / 0.55);
  --radius: 14px;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: 0.92em; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.small { font-size: 13px; }
.nw { white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Gradient text that slowly sweeps, like light across brushed metal. */
.shine {
  background: linear-gradient(100deg, var(--c2) 0%, var(--c1) 30%, var(--accent-2) 55%, var(--c2) 80%, var(--c1) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 9s ease-in-out infinite;
}
@keyframes sweep { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Navigation */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgb(6 18 31 / 0.72); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-primary { background: linear-gradient(180deg, #8cc0f2, #5aa2e6); color: #06121f; box-shadow: 0 0 0 1px rgb(207 229 251 / 0.35) inset, 0 10px 30px -8px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgb(207 229 251 / 0.5) inset, 0 16px 40px -8px rgb(61 143 219 / 0.6); }
.btn-primary span { transition: transform 0.2s var(--ease); }
.btn-primary:hover span { transform: translateX(4px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line-2); background: rgb(207 229 251 / 0.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Scene: dot grid, orbit and drifting line-art parts (from the sign-in page). */
.scene { position: relative; isolation: isolate; overflow: hidden; }
.scene::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: radial-gradient(var(--grid) 0.8px, transparent 0.8px); background-size: 24px 24px; mask-image: radial-gradient(ellipse at center, transparent 18%, #000 92%); }
.scene::after { content: ""; position: absolute; inset: -20% -10% auto; height: 90%; z-index: -3; background: radial-gradient(ellipse at 50% 40%, rgb(12 96 163 / 0.45), transparent 60%); }
.background { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; user-select: none; }
.mechanical-layer { position: absolute; inset: 0; }
.part { position: absolute; color: #bcd9f7; opacity: 0.3; overflow: visible; filter: drop-shadow(0 0 6px rgb(127 182 238 / 0.45)); }
.part path, .part ellipse, .part circle, .part rect { vector-effect: non-scaling-stroke; }
.part .surface { fill: var(--art-surface); } .part .edge { fill: var(--art-edge); } .part .hole { fill: var(--art-hole); }
.part .hidden { stroke-dasharray: 4 6; opacity: 0.6; } .part .axis { stroke-dasharray: 2 8; opacity: 0.5; }
.part-a { width: 370px; left: calc(50% - 760px); top: calc(50% - 330px); transform: rotate(-12deg); animation: drift-a 16s ease-in-out infinite, sway 26s ease-in-out infinite; }
.part-b { width: 310px; right: calc(50% - 720px); top: calc(50% - 340px); transform: rotate(13deg); opacity: 0.36; animation: drift-b 19s ease-in-out -4s infinite, sway 23s ease-in-out -8s infinite; }
.part-c { width: 320px; right: calc(50% - 760px); bottom: calc(50% - 400px); animation: spin 48s linear infinite; }
.part-d { width: 280px; left: calc(50% - 690px); bottom: calc(50% - 400px); transform: rotate(12deg); opacity: 0.36; animation: drift-b 18s ease-in-out -9s infinite, sway 30s ease-in-out infinite; }
.part-e { width: 150px; left: calc(50% - 380px); top: 92px; opacity: 0.26; animation: spin 30s linear reverse infinite; }
.part-f { width: 145px; left: calc(50% - 250px); bottom: 10px; opacity: 0.26; animation: spin 34s linear infinite; }
.part-g { width: 205px; right: calc(50% - 440px); bottom: 0; transform: rotate(18deg); opacity: 0.26; animation: drift-b 18s ease-in-out infinite; }
.part-h { width: 150px; right: calc(50% - 420px); top: 110px; transform: rotate(-25deg); opacity: 0.28; animation: drift-a 14s ease-in-out infinite, sway 20s ease-in-out infinite; }
.assembly-cap { animation: assemble-cap 14s ease-in-out infinite; } .assembly-spacer { animation: assemble-spacer 14s ease-in-out infinite; } .nut-upper { animation: join-nut 11s ease-in-out -3s infinite; }
.orbit { position: absolute; width: 1100px; height: 1100px; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px dashed var(--grid); border-radius: 50%; animation: orbit-turn 110s linear infinite; }
.orbit::after { content: ""; position: absolute; inset: 115px -120px; border: 1px solid var(--grid); border-radius: 50%; }
.cross { position: absolute; color: var(--grid); font: 22px var(--mono); } .cross-a { left: 27%; top: 30%; } .cross-b { right: 24%; bottom: 26%; }
.grid-intro { position: absolute; inset: 0; overflow: hidden; mask-image: radial-gradient(ellipse at center, transparent 18%, #000 92%); animation: grid-retire 1.1s ease both; }
.grid-section { position: absolute; background-image: radial-gradient(rgb(207 229 251 / 0.4) 0.8px, transparent 0.8px); animation: grid-draw 0.8s var(--ease) both; animation-delay: var(--delay, 0s); }
.hero .mechanical-layer { animation: reveal 1.2s ease both; }
.hero.scene::before { animation: grid-settle 1.1s ease both; }
@keyframes grid-draw { from { clip-path: var(--start); } to { clip-path: inset(0 0 0 0); } }
@keyframes grid-settle { 0%, 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes grid-retire { 0%, 75% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes reveal { 0%, 20% { opacity: 0; } 100% { opacity: 1; } }
@keyframes drift-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes drift-b { 0%, 100% { translate: 0 0; } 50% { translate: 8px 12px; } }
@keyframes sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 7deg; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes orbit-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes assemble-cap { 0%, 15%, 90%, 100% { transform: translateY(0); } 43%, 63% { transform: translateY(108px); } }
@keyframes assemble-spacer { 0%, 15%, 90%, 100% { transform: translateY(0); } 43%, 63% { transform: translateY(67px); } }
@keyframes join-nut { 0%, 15%, 90%, 100% { transform: translateY(0); } 45%, 65% { transform: translateY(65px); } }

/* Grain mark: the logo's grains fly in and fuse. */
.grain-mark .g { transform-box: fill-box; transform-origin: center; }
.grain-mark .c1 { fill: var(--c1); } .grain-mark .c2 { fill: var(--c2); } .grain-mark .c3 { fill: var(--c3); } .grain-mark .c4 { fill: var(--c4); }
.grain-mark.assemble .g { animation: grain-in 1.1s var(--ease) both; animation-delay: calc(0.35s + var(--i) * 0.09s); }
@keyframes grain-in { from { opacity: 0; transform: translate(calc(var(--dx) * 2.4), calc(var(--dy) * 2.4)) rotate(-14deg) scale(0.7); } to { opacity: 1; transform: none; } }
.grain-mark.tiny { width: 16px; height: 16px; }

/* Hero */
.hero { min-height: 100svh; display: grid; place-items: center; padding: 140px 0 120px; text-align: center; }
.hero-copy { display: grid; justify-items: center; }
.hero-mark { width: 76px; height: 76px; margin-bottom: 28px; filter: drop-shadow(0 0 22px rgb(127 182 238 / 0.45)); }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgb(207 229 251 / 0.05); backdrop-filter: blur(8px); color: var(--c1); font-size: 14px; font-weight: 500; }
.pill-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: ping 2.4s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgb(127 182 238 / 0.7); } 80%, 100% { box-shadow: 0 0 0 10px rgb(127 182 238 / 0); } }
h1 { font-size: clamp(48px, 8.4vw, 112px); font-weight: 700; letter-spacing: -0.045em; line-height: 0.98; margin: 28px 0 0; }
h1 .line { display: block; padding-bottom: 0.04em; }
.hero .line { animation: rise 1s var(--ease) both; }
.hero .line:nth-child(1) { animation-delay: 0.15s; }
.hero .line:nth-child(2) { animation-delay: 0.3s; }
.hero .line.shine { animation: rise 1s var(--ease) 0.45s both, sweep 9s ease-in-out 1.5s infinite; }
.hero .pill, .hero .lead, .hero .cta-row { animation: rise 1s var(--ease) both; }
.hero .pill { animation-delay: 0.05s; } .hero .lead { animation-delay: 0.6s; } .hero .cta-row { animation-delay: 0.75s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); margin-top: 28px; max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 40px; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Product showcase: tilts upright as it scrolls in (site.js sets --tilt). */
.showcase { position: relative; padding: 0 0 72px; perspective: 1600px; }
.mock {
  margin: 0 auto; max-width: 1040px; background: rgb(10 27 46 / 0.82); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; font-size: 14px; backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgb(207 229 251 / 0.04) inset, 0 40px 120px -30px rgb(12 96 163 / 0.65), 0 0 80px -20px rgb(127 182 238 / 0.25);
  transform: rotateX(var(--tilt, 0deg)) scale(var(--scale, 1)); transform-origin: 50% 100%;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgb(207 229 251 / 0.03); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.mock-url { margin-left: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); background: rgb(6 18 31 / 0.6); border: 1px solid var(--line); border-radius: 7px; padding: 3px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { display: grid; grid-template-columns: 1.5fr 1fr; }
.mock-item { padding: 24px; border-right: 1px solid var(--line); min-width: 0; }
.mock-head { display: flex; gap: 16px; align-items: center; }
.mock-thumb { flex: none; width: 88px; height: 70px; border-radius: 10px; background: rgb(127 182 238 / 0.08); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; }
.mock-thumb svg { width: 72px; }
.mock-title { font-weight: 600; font-size: 19px; margin: 2px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: rgb(207 229 251 / 0.05); border: 1px solid var(--line); color: var(--muted); }
.chip-ok { color: #8fe0b0; border-color: rgb(143 224 176 / 0.3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 20px 0; }
.facts dt { color: var(--faint); font-size: 12px; }
.facts dd { margin: 0; font-weight: 500; }
.src { font: 500 9px/1 var(--mono); color: var(--accent); background: rgb(127 182 238 / 0.12); padding: 2px 4px; border-radius: 4px; vertical-align: 1px; margin-left: 2px; text-transform: uppercase; }
.tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--faint); overflow: hidden; }
.tabs span { padding: 7px 0; white-space: nowrap; }
.tabs .on { color: var(--text); font-weight: 500; box-shadow: inset 0 -2px var(--accent); }
.rows { list-style: none; padding: 0; margin: 4px 0 0; }
.rows li { display: grid; grid-template-columns: 82px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows .mono { color: var(--accent); }
.bubble { padding: 11px 14px; border-radius: 12px; line-height: 1.55; }
.bubble.you { background: linear-gradient(180deg, #2f7fc9, #1f6bb3); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; max-width: 92%; }
.bubble.ai { background: rgb(207 229 251 / 0.05); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cite { display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 5px; background: rgb(127 182 238 / 0.16); color: var(--accent); font: 600 11px/1 var(--mono); text-decoration: none; vertical-align: 1px; }
.typing { display: none; gap: 5px; padding: 12px 14px; width: max-content; border-radius: 12px; background: rgb(207 229 251 / 0.05); border: 1px solid var(--line); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; } .typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.agent-input { margin-top: auto; border: 1px solid var(--line); background: rgb(6 18 31 / 0.6); border-radius: 9px; padding: 9px 12px; color: var(--faint); }


/* Sections */
.section { padding: 120px 0; position: relative; border-top: 1px solid var(--line); }
.eyebrow { color: var(--accent); font: 500 13px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.section-title { font-size: clamp(34px, 4.6vw, 60px); letter-spacing: -0.035em; max-width: 16em; margin-bottom: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease), opacity 0.9s var(--ease); }
.card:hover { border-color: var(--line-2); }
.card h3 { font-size: 21px; margin-bottom: 12px; letter-spacing: -0.01em; }
.card p { color: var(--muted); }
.card-k { color: var(--accent); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 8px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #8fe0b0; animation: ping-g 2.4s ease-out infinite; }
@keyframes ping-g { 0% { box-shadow: 0 0 0 0 rgb(143 224 176 / 0.7); } 80%, 100% { box-shadow: 0 0 0 9px rgb(143 224 176 / 0); } }

/* Fuse diagram */
.fuse { display: grid; grid-template-columns: 1fr 0.9fr auto 0.6fr 1fr; align-items: center; margin: 0 0 88px; }
.sources { display: grid; gap: 22px; }
.node, .record { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 18px; font-weight: 500; }
.node .mono { display: block; color: var(--accent); font-size: 12px; margin-bottom: 2px; }
.flows { width: 100%; height: 240px; overflow: visible; }
.flows path { fill: none; stroke: var(--line-2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.flows .pulse { stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 18 400; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent)); animation: flow 2.6s linear infinite; }
.flows .p2 { animation-delay: 0.6s; } .flows .p3 { animation-delay: 1.2s; } .flows .p4 { animation-delay: 1.6s; }
@keyframes flow { from { stroke-dashoffset: 418; } to { stroke-dashoffset: 0; } }
.core { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.core::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgb(61 143 219 / 0.35), transparent 65%); animation: breathe 4s ease-in-out infinite; }
.core::after { content: ""; position: absolute; inset: 6px; border: 1px dashed var(--line-2); border-radius: 50%; animation: spin 40s linear infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
.fuse-mark { width: 120px; height: 120px; position: relative; filter: drop-shadow(0 0 18px rgb(127 182 238 / 0.5)); }
.record .record-title { font-size: 18px; font-weight: 600; margin: 2px 0 10px; }
.record ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 400; }
.record li::before { content: "✓"; color: #8fe0b0; margin-right: 8px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.steps li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width 1.2s var(--ease) calc(var(--d, 0s) + 0.2s); }
.steps li.in::before { width: 100%; }
.step-n { color: var(--accent); font-size: 13px; }
.steps h3 { font-size: 21px; margin: 14px 0 10px; }
.steps p { color: var(--muted); }


/* Trust */
.check { padding: 26px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.check h3 { font-size: 19px; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.check h3::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 6px; background: rgb(143 224 176 / 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fe0b0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.check p { color: var(--muted); }
.note { margin-top: 28px; color: var(--muted); }

/* Closing call to action */
.cta { padding: 160px 0; border-top: 1px solid var(--line); text-align: center; }
.cta.scene::after { inset: 10% -10% auto; height: 100%; background: radial-gradient(ellipse at 50% 50%, rgb(12 96 163 / 0.5), transparent 60%); }
.cta-c { width: 360px; left: -80px; top: 18%; opacity: 0.25; animation: spin 60s linear infinite; }
.cta-d { width: 300px; right: -40px; top: 12%; transform: rotate(12deg); animation: drift-b 18s ease-in-out infinite, sway 30s ease-in-out infinite; }
.cta-h { width: 170px; right: 22%; bottom: 8%; transform: rotate(-25deg); animation: drift-a 14s ease-in-out infinite, sway 20s ease-in-out infinite; }
.cta-inner { display: grid; justify-items: center; gap: 26px; }
.cta h2 { font-size: clamp(38px, 6vw, 80px); font-weight: 700; letter-spacing: -0.045em; max-width: 12em; }
.cta p { color: var(--muted); max-width: 36em; font-size: 19px; }

.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--faint); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer-inner img { height: 24px; width: auto; }
.footer-inner p:first-of-type { margin-left: auto; }

/* Interactive demo: task tabs over one product window. */
.demo { max-width: 1080px; margin: 0 auto; }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.demo-tabs button { position: relative; display: grid; gap: 4px; text-align: left; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); font: 600 15px/1.3 var(--sans); cursor: pointer; overflow: hidden; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.demo-tabs button .mono { color: var(--faint); font-size: 11px; font-weight: 500; }
.demo-tabs button:hover { color: var(--text); border-color: var(--line-2); }
.demo-tabs button[aria-selected="true"] { color: var(--text); border-color: rgb(127 182 238 / 0.5); background: rgb(127 182 238 / 0.08); }
.demo-tabs button[aria-selected="true"] .mono { color: var(--accent); }
.demo-tabs .bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.demo-tabs button[aria-selected="true"] .bar { width: var(--progress, 100%); }
.panel { min-height: 400px; }
.panel:not([hidden]) { animation: panel-in 0.45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.qbar { display: flex; align-items: center; gap: 12px; margin: 20px 20px 0; padding: 12px 16px; border: 1px solid rgb(127 182 238 / 0.45); border-radius: 10px; background: rgb(6 18 31 / 0.6); box-shadow: 0 0 0 4px rgb(127 182 238 / 0.08); }
.qbar svg { width: 18px; color: var(--accent); flex: none; }
.qbar .q { flex: 1; font-size: 15px; white-space: nowrap; overflow: hidden; }
.qbar .q.typing-q::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: blink 0.8s steps(1) infinite; }
.hits { color: var(--muted); font-size: 13px; white-space: nowrap; } .hits b { color: var(--text); font-variant-numeric: tabular-nums; }
.search-body { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 18px 20px 22px; }
.facet-h { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin: 12px 0 6px; }
.facet-h:first-child { margin-top: 0; }
.fct { display: flex; justify-content: space-between; padding: 4px 8px; border-radius: 6px; color: var(--muted); font-size: 13px; }
.fct i { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; }
.fct.on { background: rgb(127 182 238 / 0.12); color: var(--text); }
.fct.on::before { content: "✓"; color: var(--accent); margin-right: 6px; }
.fct.on { justify-content: flex-start; } .fct.on i { margin-left: auto; }
.results { list-style: none; margin: 0; padding: 0; }
.results li { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 14px; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.results li:first-child { background: rgb(127 182 238 / 0.06); border-radius: 8px; }
.results li > span:nth-child(2) { display: grid; line-height: 1.35; }
.results .mono { font-size: 12px; }
.thumb { width: 40px; height: 32px; border-radius: 6px; border: 1px solid var(--line); background: linear-gradient(135deg, rgb(127 182 238 / 0.18), rgb(127 182 238 / 0.03)); }
.pill-s { font-size: 12px; color: var(--accent); background: rgb(127 182 238 / 0.1); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.panel.play .results li { animation: pop 0.45s var(--ease) both; }
.panel.play .results li:nth-child(2) { animation-delay: 0.06s; } .panel.play .results li:nth-child(3) { animation-delay: 0.12s; } .panel.play .results li:nth-child(4) { animation-delay: 0.18s; } .panel.play .results li:nth-child(5) { animation-delay: 0.24s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ask-ui { display: flex; flex-direction: column; gap: 16px; padding: 22px; min-height: 400px; }
.thread { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.thread .bubble { animation: pop 0.45s var(--ease) both; max-width: 78%; }
.thread .bubble.ai { align-self: flex-start; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchips button { border: 1px solid var(--line-2); background: rgb(207 229 251 / 0.04); color: var(--c1); border-radius: 999px; padding: 7px 14px; font: 500 13px/1.3 var(--sans); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.qchips button:hover, .qchips button[aria-pressed="true"] { border-color: var(--accent); background: rgb(127 182 238 / 0.12); }
.thread .cite { animation: cite-in 0.45s var(--ease) both; }
@keyframes cite-in { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 12px rgb(127 182 238 / 0.8); } 100% { transform: none; } }

.mock-side { padding: 24px; background: rgb(207 229 251 / 0.02); display: grid; align-content: start; gap: 10px; min-width: 0; }
.side-h { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }
.similar, .people { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.similar li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(90deg, rgb(127 182 238 / 0.1) var(--p), transparent var(--p)); }
.similar li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.similar b { color: var(--accent); font: 600 12px var(--mono); }
.similar li b { background: none; }
.people li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.av { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c3); color: #fff; font: 600 11px var(--sans); border: 2px solid var(--bg); }
.av2 { background: #2a9d8f; } .av3 { background: #8a6bd1; }

.clean-ui { display: grid; grid-template-columns: 240px 1fr; min-height: 400px; }
.tree { list-style: none; margin: 0; padding: 22px 16px; border-right: 1px solid var(--line); font-size: 14px; display: grid; align-content: start; gap: 2px; }
.tree li { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 6px; color: var(--muted); }
.tree li i { font-style: normal; color: var(--faint); font-size: 12px; }
.tree .l2 { padding-left: 22px; } .tree .l3 { padding-left: 36px; font-size: 13px; }
.tree .on { background: rgb(127 182 238 / 0.12); color: var(--text); }
.attrs { padding: 22px 24px; display: grid; align-content: start; gap: 14px; }
.bars { list-style: none; padding: 0; margin: 4px 0 6px; display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 14px; font-size: 14px; }
.bars b { height: 8px; border-radius: 4px; background: rgb(207 229 251 / 0.07); overflow: hidden; }
.bars b i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--c3), var(--c2)); transition: width 1.1s var(--ease); }
.panel.play .bars b i { width: var(--p); }
.bars li:nth-child(2) b i { transition-delay: 0.08s; } .bars li:nth-child(3) b i { transition-delay: 0.16s; } .bars li:nth-child(4) b i { transition-delay: 0.24s; } .bars li:nth-child(5) b i { transition-delay: 0.32s; }
.bars em { font: 500 13px var(--mono); color: var(--c1); font-style: normal; text-align: right; }

/* Bento: outcome tiles with live mini-visuals. */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { grid-column: span 2; position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; overflow: hidden; transition: border-color 0.3s, opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.tile:hover { border-color: var(--line-2); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -40%), rgb(127 182 238 / 0.14), transparent 45%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.tile:hover::before { opacity: 1; }
.tile.span-3 { grid-column: span 3; } .tile.span-4 { grid-column: span 4; }
.tile h3 { font-size: 22px; margin: 22px 0 10px; letter-spacing: -0.015em; }
.tile p { color: var(--muted); }
.viz { position: relative; height: 150px; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgb(61 143 219 / 0.16), transparent 70%), rgb(6 18 31 / 0.5); overflow: hidden; display: grid; place-items: center; padding: 18px; }
.viz-find { align-content: center; gap: 18px; justify-items: stretch; }
.vf-bar { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid rgb(127 182 238 / 0.45); border-radius: 9px; background: rgb(6 18 31 / 0.7); font-size: 14px; }
.vf-q::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--accent); animation: blink 0.8s steps(1) infinite; }
.vf-n { color: var(--muted); } .vf-n b { color: var(--text); }
.vf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; font: 500 12px var(--mono); }
.vf-steps span { padding: 7px 4px; border-radius: 7px; border: 1px solid var(--line); color: var(--faint); animation: step-on 6s ease-in-out infinite; }
.vf-steps span:nth-child(2) { animation-delay: 1.2s; } .vf-steps span:nth-child(3) { animation-delay: 2.4s; }
@keyframes step-on { 0%, 100% { color: var(--faint); border-color: var(--line); background: none; } 10%, 35% { color: var(--c1); border-color: var(--accent); background: rgb(127 182 238 / 0.1); } }
.viz-cite p { font-size: 15px; color: var(--c1); text-align: center; }
.viz-cite .cite { animation: cite-pulse 3s ease-in-out infinite; }
.viz-cite .cite:nth-child(2) { animation-delay: 0.3s; } .viz-cite .cite:nth-child(3) { animation-delay: 0.6s; }
@keyframes cite-pulse { 0%, 60%, 100% { transform: none; box-shadow: none; } 20% { transform: scale(1.3); box-shadow: 0 0 14px rgb(127 182 238 / 0.9); } }
.viz-reuse { align-content: center; gap: 12px; justify-items: stretch; }
.vr-new { font-size: 13px; color: var(--faint); text-align: center; }
.vr-hit { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 9px; border: 1px solid rgb(143 224 176 / 0.35); background: rgb(143 224 176 / 0.07); color: #bdf0d2; font-size: 14px; animation: found 4s ease-in-out infinite; }
.vr-hit b { font: 600 13px var(--mono); }
@keyframes found { 0%, 15% { opacity: 0; transform: translateY(8px); } 25%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.viz-clean { display: flex; align-items: flex-end; justify-content: center; gap: 14px; }
.viz-clean span { width: 26px; height: var(--p); max-height: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--c2), var(--c3)); transform-origin: bottom; animation: grow 4s var(--ease) infinite; }
.viz-clean span:nth-child(2) { animation-delay: 0.15s; } .viz-clean span:nth-child(3) { animation-delay: 0.3s; } .viz-clean span:nth-child(4) { animation-delay: 0.45s; }
@keyframes grow { 0% { transform: scaleY(0.15); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0.15); } }
.viz-people { display: flex; align-items: center; justify-content: center; }
.viz-people .av { width: 46px; height: 46px; font-size: 14px; margin-left: -10px; border-color: #0a1b2e; animation: float-av 5s ease-in-out infinite; }
.viz-people .av:first-child { margin-left: 0; } .viz-people .av2 { animation-delay: 0.4s; } .viz-people .av3 { animation-delay: 0.8s; }
.vp-t { margin-left: 14px; color: var(--muted); font-size: 14px; }
@keyframes float-av { 0%, 100% { transform: none; } 50% { transform: translateY(-6px); } }
.viz-brand { --brand: #3d8fdb; }
.vb-app { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: min(320px, 100%); padding: 16px 18px; border-radius: 12px; background: rgb(6 18 31 / 0.8); border: 1px solid var(--line-2); border-top: 3px solid var(--brand); transition: border-color 0.5s; }
.vb-logo { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); transition: background-color 0.5s; }
.vb-name { font-weight: 600; font-size: 16px; }
.vb-url { font-size: 12px; color: var(--muted); }
.vb-app.swap .vb-name, .vb-app.swap .vb-url { animation: pop 0.5s var(--ease); }
.viz-ai { display: block; }
.vai-core { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 12px; background: conic-gradient(from 200deg, var(--c3), var(--c1), var(--c2), var(--c3)); box-shadow: 0 0 30px rgb(127 182 238 / 0.55); animation: breathe 4s ease-in-out infinite; }
.vai-n { position: absolute; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(6 18 31 / 0.8); color: var(--c1); white-space: nowrap; }
.vai-n::before { content: ""; position: absolute; height: 1px; width: 60px; background: linear-gradient(90deg, var(--accent), transparent); }
.n1 { left: 6%; top: 18%; } .n2 { right: 6%; top: 24%; } .n3 { left: 50%; bottom: 10%; transform: translateX(-50%); }
.n1::before { left: 100%; top: 50%; transform: rotate(18deg); transform-origin: left; } .n2::before { right: 100%; top: 50%; transform: rotate(160deg); transform-origin: left; width: 50px; } .n3::before { display: none; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.role { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgb(127 182 238 / 0.07), transparent 60%); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.role h3 { font-size: 20px; margin-bottom: 10px; }
.role p { color: var(--muted); }

/* Platform layers */
.layers { display: grid; gap: 0; max-width: 960px; margin: 0 auto; }
.layer { border-radius: 16px; padding: 22px 26px; border: 1px solid var(--line-2); background: var(--panel); }
.layer-h { color: var(--faint); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.layer-items { display: flex; flex-wrap: wrap; gap: 8px; }
.layer-items span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgb(6 18 31 / 0.6); font-size: 14px; font-weight: 500; }
.layer-apps .layer-items span { border-style: dashed; color: var(--muted); }
.layer-src .hero-src { border-color: rgb(127 182 238 / 0.6); color: var(--c1); background: rgb(127 182 238 / 0.1); }
.layer-src .next { color: var(--faint); border-style: dashed; }
.layer-src .live { width: 7px; height: 7px; }
.layer-core { display: flex; align-items: center; gap: 22px; padding: 28px; border-color: rgb(127 182 238 / 0.55); background: radial-gradient(ellipse at 0% 50%, rgb(61 143 219 / 0.25), transparent 60%), rgb(10 27 46 / 0.9); box-shadow: 0 0 60px -10px rgb(61 143 219 / 0.45); }
.layer-mark { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 0 14px rgb(127 182 238 / 0.5)); }
.layer-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.layer-core .layer-items span { border-color: rgb(127 182 238 / 0.4); color: var(--c1); }
.wires { display: flex; justify-content: space-around; height: 56px; padding: 0 12%; }
.wires i { position: relative; width: 1px; background: var(--line-2); }
.wires i::after { content: ""; position: absolute; left: -2px; width: 5px; height: 12px; border-radius: 3px; background: var(--accent); box-shadow: 0 0 8px var(--accent); animation: wire-up 2.2s linear infinite; }
.wires i:nth-child(2)::after { animation-delay: 0.5s; } .wires i:nth-child(3)::after { animation-delay: 1.1s; } .wires i:nth-child(4)::after { animation-delay: 1.6s; }
@keyframes wire-up { from { top: 100%; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } to { top: -12px; opacity: 0; } }

@media (max-width: 900px) {
  .demo-tabs { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.span-3, .tile.span-4 { grid-column: span 1; }
  .tile.span-4 { grid-column: span 2; }
  .roles { grid-template-columns: 1fr 1fr; }
  .search-body { grid-template-columns: 1fr; }
  .facets { display: none; }
  .clean-ui { grid-template-columns: 1fr; }
  .tree { display: none; }
}
@media (max-width: 640px) {
  .demo-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
  .demo-tabs button { flex: none; width: 70%; }
  .results li { grid-template-columns: 32px 1fr auto; }
  .results li .muted:not(.mono) { display: none; }
  .bars li { grid-template-columns: 110px 1fr 40px; font-size: 13px; }
  .bento, .roles { grid-template-columns: 1fr; }
  .tile, .tile.span-3, .tile.span-4 { grid-column: span 1; }
  .layer-core { flex-direction: column; align-items: flex-start; }
  .thread .bubble { max-width: 100%; }
}

/* Pilot */
.pilot-lead { margin: -24px 0 48px; max-width: 46em; }
.pilot { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pilot li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.pilot li .mono { color: var(--accent); font-size: 13px; }
.pilot h3 { font-size: 22px; margin: 12px 0 8px; }
.pilot p { color: var(--muted); }
.pilot li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; translate: 0 -50%; z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); color: var(--accent); font-size: 14px; }
@media (max-width: 900px) { .pilot { grid-template-columns: 1fr; } .pilot li:not(:last-child)::after { right: 50%; top: auto; bottom: -15px; translate: 50% 0; content: "↓"; } }

/* Scroll reveal (site.js adds .in). Without JavaScript everything is visible. */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .card.in:hover { transform: translateY(-3px); transition-delay: 0s; }

@media (max-width: 1100px) {
  .part-a { left: -170px; width: 330px; top: 18%; } .part-b { right: -145px; width: 290px; top: 16%; } .part-c { right: -100px; width: 260px; bottom: 0; } .part-d { left: -90px; bottom: 0; width: 250px; }
  .part-e { left: 18%; top: 90px; width: 110px; } .part-f { left: 30%; width: 100px; bottom: 10px; } .part-g { right: 18%; width: 160px; bottom: 0; } .part-h { right: 20%; width: 120px; top: 100px; }
  .cross { display: none; }
  .fuse { grid-template-columns: 1fr 0.5fr auto 0.4fr 1fr; }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .fuse { grid-template-columns: 1fr; justify-items: center; }
  .sources { grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
  .node { padding: 12px; font-size: 14px; text-align: center; }
  .flows { width: 2px; height: 56px; }
  .flows path { display: none; }
  .flows { background: linear-gradient(var(--accent), transparent); }
  .record { width: 100%; max-width: 360px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .brand img { height: 24px; }
  .hero { padding: 120px 0 110px; }
  .hero-mark { width: 60px; height: 60px; }
  .pill { font-size: 12px; }
  .part { opacity: 0.22; } .part-a { width: 230px; left: -120px; top: 90px; } .part-b { width: 200px; right: -110px; top: 70px; } .part-c { width: 200px; right: -90px; } .part-d { width: 190px; left: -80px; } .part-e, .part-f, .part-g, .part-h { display: none; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px; }
  .section { padding: 80px 0; }
  .section-title { margin-bottom: 40px; }
  .sources { grid-template-columns: 1fr; }
  .footer-inner p:first-of-type { margin-left: 0; }
  .cta { padding: 110px 0; }
  .cta-c, .cta-h { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .grid-intro { display: none; }
  .mock { transform: none; }
  html { scroll-behavior: auto; }
}
