/* Pinged landing page. No build step. Soft neutrals, glass, one accent. */

:root {
  color-scheme: light;
  --ink: #0d0d0d;
  --ink-2: #5f6368;
  --ink-3: #9aa0a6;
  --soft: #f5f5f7;
  --line: rgba(13, 13, 13, 0.08);
  --bg: #ffffff;
  --accent: #3b63f3;
  --accent-tint: #e9eeff;
  --sky: #eef4ff;
  --lilac: #f3f0ff;
  --mint: #ecf8f2;
  --peach: #fff3ea;
  --sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;
  --gutter: 24px;
  --r: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
p, li { text-wrap: pretty; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; }
.skip:focus { top: 12px; }

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(20, 30, 60, 0.04), 0 18px 48px -20px rgba(30, 50, 110, 0.22);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: min(720px, calc(100% - 24px)); height: 54px; padding: 0 8px 0 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20, 30, 60, 0.05), 0 10px 30px -12px rgba(30, 50, 110, 0.18);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; text-decoration: none; letter-spacing: -0.02em; }
.logo { display: block; overflow: visible; }
.brand-row { display: inline-flex; align-items: center; gap: 7px; }
.by { font-size: 13px; font-weight: 300; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; text-decoration: none; transition: color 0.15s ease-out; }
.by:hover, .by:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.logo path { fill: none; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.logo rect { transition: transform 0.2s ease-out; transform-origin: center; }
.brand:hover .logo rect { transform: scale(1.06); }
.logo.big { filter: drop-shadow(0 14px 22px rgba(30, 40, 90, 0.28)); }
.js .nav .logo path { animation: draw 1.1s ease-out 0.15s both; }
.js .nav .brand:hover .logo path { animation: draw-again 0.9s ease-out both; }
.nav-links { display: flex; gap: 4px; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; transition: background-color 0.15s ease-out, color 0.15s ease-out; }
.nav-links a:hover { color: var(--ink); background: rgba(13, 13, 13, 0.05); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-size: 15.5px; font-weight: 500; text-decoration: none; cursor: pointer;
  border: 0; background: var(--ink); color: #fff;
  transition: transform 0.15s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
}
.btn:hover { transform: translateY(-1px); background: #262626; box-shadow: 0 8px 20px -8px rgba(13, 13, 13, 0.45); }
.btn:active { transform: scale(0.97); }
.btn.ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(13, 13, 13, 0.18), 0 8px 20px -10px rgba(13, 13, 13, 0.2); }
.btn.small { height: 38px; padding: 0 17px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 148px 0 0; text-align: center; }
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orbs i { position: absolute; border-radius: 50%; }
.orbs i:nth-child(1) { width: 720px; height: 720px; left: 50%; top: 250px; margin-left: -700px; background: radial-gradient(closest-side, rgba(126, 170, 255, 0.42), rgba(126, 170, 255, 0)); }
.orbs i:nth-child(2) { width: 680px; height: 680px; left: 50%; top: 330px; margin-left: -40px; background: radial-gradient(closest-side, rgba(196, 164, 255, 0.36), rgba(196, 164, 255, 0)); }
.orbs i:nth-child(3) { width: 560px; height: 560px; left: 50%; top: 520px; margin-left: -300px; background: radial-gradient(closest-side, rgba(255, 190, 150, 0.36), rgba(255, 190, 150, 0)); }
.js .orbs i { animation: drift 16s ease-in-out infinite alternate; }
.js .orbs i:nth-child(2) { animation-duration: 20s; animation-direction: alternate-reverse; }
.js .orbs i:nth-child(3) { animation-duration: 24s; }
.hero > .orbs { bottom: -320px; }
.hero .wrap { position: relative; z-index: 1; }

.pill {
  display: inline-block; font-size: 13.5px; color: var(--ink-2); padding: 6px 14px; border-radius: 999px;
  background: var(--soft); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(33px, 5.3vw, 62px); line-height: 1.1; letter-spacing: -0.038em; }
.hero .lede { font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 60ch; margin: 22px auto 0; line-height: 1.5; }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* The hero picture: two real-looking windows, one conversation */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); align-items: center; max-width: 1000px; margin: 60px auto 0; text-align: left; }
.win { border-radius: 16px; overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.win-bar .r { background: #ff5f57; } .win-bar .y { background: #febc2e; } .win-bar .g { background: #28c840; }
.win-bar span { flex: 1; text-align: center; font-size: 12.5px; margin-right: 47px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-body { display: flex; flex-direction: column; height: 318px; padding: 6px 18px 16px; }
.log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 10px; overflow: hidden; }
.l { display: flex; gap: 9px; }
.l b { flex: none; font-weight: 400; }
.l em { display: inline-block; font-family: var(--sans); font-style: normal; font-size: 11px; line-height: 1; padding: 4px 8px; border-radius: 999px; margin-left: 8px; white-space: nowrap; vertical-align: 1px; }
.js .l.new { animation: rise 0.35s ease-out both; }
.caret { display: inline-block; width: 7px; height: 16px; border-radius: 1px; flex: none; }
.js .caret { animation: blink 1.1s steps(1) infinite; }

.term { background: #15161b; color: #e8e9ee; font-family: var(--mono); font-size: 13px; line-height: 1.55; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 60px -24px rgba(20, 24, 60, 0.55), 0 8px 20px -10px rgba(20, 24, 60, 0.35); }
.term .win-bar { background: #1f2027; }
.term .win-bar span { color: #8d8f9b; }
.term .t-head, .term .t-status { color: #70727e; font-size: 12px; }
.term .t-status { margin-top: 10px; }
.term .l.me { color: #a9abb7; }
.term .l.me b { color: #70727e; }
.term .l.them b { color: #8fb0ff; }
.term .l em { background: rgba(143, 176, 255, 0.16); color: #b3c8ff; }
.term .composer { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 12px; border: 1px solid #3a3c48; border-radius: 9px; color: #e8e9ee; white-space: nowrap; overflow: hidden; }
.term .composer b { font-weight: 400; color: #70727e; }
.term .caret { background: #e8e9ee; margin-left: -8px; }

.app { font-size: 14px; line-height: 1.5; background: rgba(255, 255, 255, 0.72); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: inset 0 1px 0 #fff, 0 30px 60px -28px rgba(30, 50, 110, 0.35), 0 8px 20px -12px rgba(30, 50, 110, 0.18); }
.app .win-bar span { color: var(--ink-3); }
.app .l.me { justify-content: flex-end; }
.app .l.me span { background: #eef0f4; padding: 7px 13px; border-radius: 16px 16px 5px 16px; max-width: 86%; }
.app .l.them b { color: var(--accent); font-size: 11px; line-height: 21px; }
.app .l em { background: var(--accent-tint); color: #2947c4; }
.app .composer { display: flex; align-items: center; min-height: 46px; padding: 0 8px 0 15px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(13, 13, 13, 0.25); white-space: nowrap; overflow: hidden; }
.app .composer span:empty::before { content: attr(data-placeholder); color: var(--ink-3); }
.app .composer .caret { background: var(--ink); margin-left: 1px; }
.app .composer span:empty + .caret { display: none; }
.app .composer u { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; flex: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 21V10m-4.5 4.5L15 10l4.5 4.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat; }

.wire { position: relative; height: 2px; background: repeating-linear-gradient(90deg, rgba(13, 13, 13, 0.28) 0 4px, transparent 4px 9px); }
.wire .lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(13, 13, 13, 0.3); }
.wire .lock svg { display: block; }
.wire .dot { position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); opacity: 0; }
.wire.go-r .dot { animation: wire-r 0.7s ease-in-out both; }
.wire.go-l .dot { animation: wire-l 0.7s ease-in-out both; }
@keyframes wire-r { 0% { transform: translateX(0); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(66px); opacity: 0; } }
@keyframes wire-l { 0% { transform: translateX(66px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateX(0); opacity: 0; } }
@keyframes wire-d { 0% { transform: translateY(0); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
@keyframes wire-u { 0% { transform: translateY(34px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(0); opacity: 0; } }
.hero figcaption { margin: 22px auto 0; font-size: 14px; color: var(--ink-2); max-width: 56ch; }

@media (max-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin-top: 40px; }
  .win-body { height: 262px; padding: 4px 14px 14px; }
  .log { gap: 9px; justify-content: flex-end; }
  .term { font-size: 12.5px; }
  .wire { width: 2px; height: 44px; margin: 0 auto; background: repeating-linear-gradient(180deg, rgba(13, 13, 13, 0.28) 0 4px, transparent 4px 9px); }
  .wire .dot { left: -4px; top: 0; }
  .wire.go-r .dot { animation-name: wire-d; }
  .wire.go-l .dot { animation-name: wire-u; }
}

/* Hero windows: the Claude Code desktop app and a Codex terminal */
.duo { grid-template-columns: minmax(0, 1.22fr) 76px minmax(0, 1fr); max-width: 1060px; }
.win-body { height: 330px; }
.capp { background: #faf9f5; color: #141413; font-size: 14px; line-height: 1.5; border: 1px solid rgba(20, 20, 19, 0.08); box-shadow: 0 30px 60px -28px rgba(60, 40, 20, 0.35), 0 8px 20px -12px rgba(60, 40, 20, 0.18); }
.capp .win-bar { background: #f0eee6; }
.capp .win-bar span { color: #87867f; font-weight: 500; }
.capp-grid { display: grid; grid-template-columns: 148px minmax(0, 1fr); }
.capp-side { background: #f0eee6; padding: 4px 8px 12px; font-size: 13px; }
.capp-brand { display: flex; align-items: center; gap: 7px; font-weight: 600; padding: 4px 8px 10px; }
.capp-new { padding: 6px 8px; border-radius: 8px; color: #3d3d3a; }
.capp-label { padding: 12px 8px 4px; font-size: 11.5px; color: #87867f; }
.capp-item { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; color: #3d3d3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capp-item i { width: 7px; height: 7px; border-radius: 50%; background: #2fa565; flex: none; }
.capp-item.on { background: #e3dfd3; color: #141413; font-weight: 500; }
.capp-head { font-size: 12.5px; color: #87867f; padding: 6px 0 2px; }
.capp-head b { color: #141413; font-weight: 600; margin-right: 6px; }
.capp .l.me { justify-content: flex-end; }
.capp .l.me span { background: #f0eee6; padding: 7px 13px; border-radius: 14px; max-width: 88%; }
.capp .l em { background: #f6e3da; color: #b4532f; }
.capp .composer { display: flex; align-items: center; min-height: 46px; padding: 0 8px 0 15px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 20, 19, 0.1), 0 6px 16px -10px rgba(60, 40, 20, 0.3); white-space: nowrap; overflow: hidden; }
.capp .composer span:empty::before { content: attr(data-placeholder); color: #a3a299; }
.capp .composer .caret { background: #141413; margin-left: 1px; }
.capp .composer span:empty + .caret { display: none; }
.capp .composer u { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; flex: none; background: #d97757 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 21V10m-4.5 4.5L15 10l4.5 4.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 30px no-repeat; }
.capp-foot { margin-top: 8px; font-size: 11.5px; color: #a3a299; text-align: center; }

.cdx { background: #0f0f10; color: #e7e7e7; font-family: var(--mono); font-size: 13px; line-height: 1.55; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 30px 60px -24px rgba(20, 24, 60, 0.55), 0 8px 20px -10px rgba(20, 24, 60, 0.35); }
.cdx .win-bar { background: #1c1c1e; }
.cdx .win-bar span { color: #8a8a8e; }
.cdx-box { margin-top: 8px; padding: 8px 12px; border: 1px solid #3a3a3d; border-radius: 6px; color: #8a8a8e; font-size: 12px; }
.cdx-box b { color: #e7e7e7; font-weight: 600; font-size: 13px; }
.cdx .l.me { color: #e7e7e7; background: #1c1c1e; margin: 0 -18px; padding: 5px 18px; }
.cdx .l.me b { color: #8a8a8e; }
.cdx .l.them b { color: #8a8a8e; }
.cdx .l em { background: rgba(255, 255, 255, 0.1); color: #cfcfd2; }
.cdx .composer { display: flex; align-items: center; gap: 9px; min-height: 36px; margin: 0 -18px; padding: 0 18px; background: #1c1c1e; white-space: nowrap; overflow: hidden; }
.cdx .composer b { font-weight: 400; color: #8a8a8e; }
.cdx .caret { background: #e7e7e7; margin-left: -8px; }
.cdx-foot { margin-top: 10px; color: #6d6d70; font-size: 12px; }

@media (max-width: 860px) {
  .duo { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .win-body { height: 270px; }
  .capp-grid { grid-template-columns: minmax(0, 1fr); }
  .capp-side { display: none; }
  .capp .win-body { padding-top: 0; }
  .cdx { font-size: 12.5px; }
  .cdx .l.me, .cdx .composer { margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
}

/* ---------- Harness carousel ---------- */
.harnesses { padding: 72px 0 0; text-align: center; position: relative; z-index: 1; }
.harness-label { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.marquee {
  display: flex; overflow: hidden; max-width: 920px; margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 20px; padding-right: 20px; }
.js .marquee-track { animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.harness { display: inline-flex; align-items: center; gap: 11px; height: 48px; padding: 0 26px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.harness small { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-3); margin-left: 2px; }
.harness svg { display: block; flex: none; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 84px; }
.section { padding: 112px 0 0; }
.head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.kicker { font-size: 13.5px; color: var(--accent); font-weight: 500; margin-bottom: 12px; }
.ask .kicker { margin-bottom: 6px; }
.section h2 { font-size: clamp(27px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; }
.intro { font-size: 17px; color: var(--ink-2); margin-top: 14px; }

.card { background: var(--soft); border-radius: var(--r); }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 26px 26px 24px; }
.js .step:nth-child(2) { transition-delay: 0.08s; }
.js .step:nth-child(3) { transition-delay: 0.16s; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(13, 13, 13, 0.06); }
.step h3 { font-size: 19px; letter-spacing: -0.015em; margin: 16px 0 6px; }
.step p { font-size: 15px; color: var(--ink-2); }
.cmd { margin-top: 18px; background: #fff; border-radius: 12px; padding: 11px 14px; font-family: var(--mono); font-size: 13px; overflow-x: auto; white-space: nowrap; box-shadow: 0 1px 2px rgba(13, 13, 13, 0.05); }
.cmd span::before { content: "$ "; color: var(--ink-3); user-select: none; }
.ask { margin-top: 14px; padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.ask h3 { font-size: 21px; letter-spacing: -0.02em; text-wrap: balance; }
.ask a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.say { margin-top: 14px; display: inline-flex; align-items: baseline; gap: 10px; background: #fff; border-radius: 14px; padding: 12px 16px; font-size: 15px; box-shadow: 0 1px 2px rgba(13, 13, 13, 0.05); }
.say b { font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.ask-points { list-style: none; display: grid; gap: 10px; }
.ask-points li { font-size: 14.5px; color: var(--ink-2); padding-left: 16px; border-left: 2px solid var(--accent-tint); }
.ask-points b { color: var(--ink); font-weight: 600; }

/* Showcase */
.showcase { background: var(--soft); border-radius: 32px; padding: 14px; }
.tabs { display: flex; gap: 6px; padding: 4px; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.tabs::-webkit-scrollbar { display: none; }
html:not(.js) .tabs { display: none; }
.tab {
  position: relative; overflow: hidden; flex: none; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-2); background: transparent;
  transition: color 0.15s ease-out, background-color 0.15s ease-out;
}
.tab:hover { color: var(--ink); background: rgba(13, 13, 13, 0.04); }
.tab[aria-selected="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(13, 13, 13, 0.08); }
.tab .label { position: relative; }
.tab .bar { position: absolute; inset: 0; background: var(--accent-tint); transform: scaleX(0); transform-origin: left center; }
.tab[aria-selected="true"] .bar { animation: fill 10s linear forwards; }
.showcase:hover .bar, .showcase:focus-within .bar, .showcase:not(.on) .bar { animation-play-state: paused; }

.panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center;
  margin-top: 10px; padding: 40px 40px 40px 48px; border-radius: 22px; background: #fff; min-height: 500px;
}
html:not(.js) .panel + .panel { margin-top: 14px; }
.js .panel[hidden] { display: none; }
.js .panel.active .panel-text { animation: rise 0.45s ease-out both; }
.panel h3 { font-size: clamp(23px, 2.5vw, 30px); letter-spacing: -0.025em; line-height: 1.15; max-width: 17ch; }
.panel p { color: var(--ink-2); margin-top: 14px; max-width: 42ch; }
.points { margin-top: 20px; display: grid; gap: 9px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink); max-width: 40ch; }
.points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9' fill='none' stroke='%233b63f3' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.points code { font-size: 13px; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.js .panel.active .points li { animation: rise 0.5s ease-out both; animation-delay: 1.4s; }
.js .panel.active .points li:nth-child(2) { animation-delay: 3s; }
.js .panel.active .points li:nth-child(3) { animation-delay: 4.6s; }

.panel .diagram { border-radius: 20px; padding: 22px 22px 16px; }
.tint-sky .diagram { background: var(--sky); }
.tint-lilac .diagram { background: var(--lilac); }
.tint-mint .diagram { background: var(--mint); }
.tint-peach .diagram { background: var(--peach); }
.panel .diagram svg { max-width: 440px; margin: 0 auto; }

.diagram svg { display: block; width: 100%; height: auto; overflow: visible; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.legend .k-seal { background: var(--ink); }
.legend .k-person { background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.chips li { font-size: 14px; color: var(--ink-2); padding: 8px 15px; border-radius: 999px; background: var(--soft); }

/* Diagram language: shared by every inline SVG */
.d-zone { fill: rgba(255, 255, 255, 0.66); stroke: none; rx: 14px; }
.d-box { fill: #fff; stroke: rgba(13, 13, 13, 0.1); rx: 10px; }
.d-box-person { fill: var(--accent-tint); stroke: var(--accent); rx: 10px; }
.d-box-gate { fill: #fff; stroke: var(--ink); stroke-width: 1.5; rx: 10px; }
.d-box-dark { fill: var(--ink); stroke: var(--ink); rx: 10px; }
.d-box-ghost { fill: none; stroke: #b9bdc4; stroke-dasharray: 3 4; rx: 10px; }
.d-seal { fill: var(--ink); }
.d-lane { font-size: 12.5px; font-weight: 600; fill: var(--ink); }
.d-t { font-size: 14px; font-weight: 500; fill: var(--ink); }
.d-t-person { fill: #2340b8; }
.d-s { font-size: 12px; fill: var(--ink-2); }
.d-s-person { fill: #4560c4; }
.d-note { font-size: 12px; fill: var(--ink-2); }
.d-mono { font-family: var(--mono); font-size: 12.5px; fill: var(--ink); }
.d-mono-light { font-family: var(--mono); font-size: 13px; fill: #fff; }
.d-s-light { font-size: 12px; fill: #b5b9c0; }
.d-ghost-t { font-size: 14px; font-weight: 500; fill: var(--ink-3); }
.d-ghost-s { font-size: 12px; fill: var(--ink-3); }
.d-line { stroke: var(--ink); stroke-width: 1.25; fill: none; }
.d-dash { stroke-dasharray: 3 4; }
.d-grey { stroke: #b9bdc4; }
.d-strike { stroke: var(--ink); stroke-width: 1; }
.d-pulse { fill: var(--accent); opacity: 0; }

/* Diagrams build themselves, then the sealed message keeps travelling */
.js .diagram svg.build > *:not(.d-seal):not(.d-pulse) { animation: d-in 0.5s ease-out both; }
.js .diagram svg:not(.build) > *:not(title):not(desc) { opacity: 0; }
.js .diagram.on .seal-r { animation: seal-r 2.4s ease-in-out 1.2s infinite both; }
.js .diagram.on .seal-l { animation: seal-l 2.4s ease-in-out 1.2s infinite both; }
.js .diagram.on .seal-d { animation: seal-d 2.4s ease-in-out 1.2s infinite both; }
.js .diagram.on .pulse-r { animation: pulse-r 2.6s ease-in-out 2s infinite; }
.js .diagram.on .pulse-d { animation: pulse-d 2.6s ease-in-out 2s infinite; }
.js .diagram.on .d-pulse.late { animation-delay: 3.3s; }

/* Security */
.sec-card { padding: 28px; }
.sec-card .d-zone { fill: #fff; }
.diagram svg.sec-tall { display: none; }
.sec-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding: 30px 12px 8px; }
.sec-cols h3 { font-size: 15.5px; letter-spacing: -0.01em; margin-bottom: 10px; }
.sec-cols ul { display: grid; gap: 8px; }
.sec-cols li { font-size: 14.5px; color: var(--ink-2); }
.plain-note { margin: 18px auto 0; font-size: 13.5px; color: var(--ink-3); text-align: center; max-width: 64ch; }

/* Rules */
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rule-card { padding: 30px; min-width: 0; }
.rule-card > * { min-width: 0; max-width: 100%; }
.rule-card h3 { font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; margin: 16px 0 10px; max-width: 22ch; }
.rule-card p { font-size: 15px; color: var(--ink-2); max-width: 44ch; }
.rule-card .diagram { margin-top: 22px; background: #fff; border-radius: 16px; padding: 8px 20px 16px; }
.quote-sample { margin-top: 12px; background: #fff; border-radius: 16px; padding: 14px 18px; font-family: var(--mono); font-size: 13px; line-height: 1.7; overflow-x: auto; white-space: pre; }
.quote-sample .who { color: var(--accent); }
.quote-sample .q { color: var(--ink-2); }

/* Closing */
.closing { position: relative; overflow: hidden; border-radius: 36px; background: #f4f6fb; padding: 72px 24px 76px; text-align: center; }
.closing > *:not(.orbs) { position: relative; z-index: 1; }
.closing .orbs i:nth-child(1) { top: -260px; margin-left: -760px; }
.closing .orbs i:nth-child(2) { top: -120px; margin-left: 60px; }
.closing .orbs i:nth-child(3) { top: 180px; margin-left: -280px; }
.logo.big { margin: 0 auto 18px; }
.js .closing.is-in .logo.big path { animation: draw 1.3s ease-out 0.2s both; }
.closing h2 { font-size: clamp(32px, 4.6vw, 54px); letter-spacing: -0.035em; line-height: 1.06; }
.closing p { color: var(--ink-2); font-size: 17px; margin: 14px auto 0; max-width: 44ch; }
.install { position: relative; max-width: 600px; margin: 32px auto 0; text-align: left; border-radius: 18px; padding: 18px 20px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; overflow-x: auto; white-space: nowrap; }
.install span { display: block; padding-right: 64px; }
.install span::before { content: "$ "; color: var(--ink-3); user-select: none; }
.install em { font-style: normal; color: var(--ink-3); }
.copy { position: absolute; top: 12px; right: 12px; height: 30px; padding: 0 13px; border-radius: 999px; border: 0; background: #fff; color: var(--ink-2); font-family: var(--sans); font-size: 12.5px; cursor: pointer; box-shadow: 0 1px 2px rgba(13, 13, 13, 0.1); transition: transform 0.15s ease-out, color 0.15s ease-out; }
.copy:hover { color: var(--ink); transform: translateY(-1px); }
.copy:active { transform: scale(0.96); }

footer { padding: 40px 0 44px; font-size: 13.5px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
footer .brand { color: var(--ink); font-size: 15px; }

/* ---------- Motion ---------- */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes draw-again { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes sweep { from { background-size: 0% 86%; } to { background-size: 100% 86%; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes d-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drift { from { transform: translate3d(-30px, -10px, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fill { to { transform: scaleX(1); } }
@keyframes seal-r { 0% { transform: translateX(-17px); opacity: 0; } 18%, 82% { opacity: 1; } 100% { transform: translateX(17px); opacity: 0; } }
@keyframes seal-l { 0% { transform: translateX(17px); opacity: 0; } 18%, 82% { opacity: 1; } 100% { transform: translateX(-17px); opacity: 0; } }
@keyframes seal-d { 0% { transform: translateY(-26px); opacity: 0; } 18%, 82% { opacity: 1; } 100% { transform: translateY(26px); opacity: 0; } }
@keyframes pulse-r { 0% { transform: translateX(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateX(70px); opacity: 0; } }
@keyframes pulse-d { 0% { transform: translateY(0); opacity: 0; } 15%, 80% { opacity: 1; } 100% { transform: translateY(112px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .diagram svg:not(.build) > *:not(title):not(desc) { opacity: 1; }
  .marquee { overflow-x: auto; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .panel { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 24px 24px; min-height: 0; }
  .panel h3, .panel p, .points li { max-width: none; }
  .tabs { justify-content: flex-start; }
  .rules { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .ask { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 26px 22px 24px; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --r: 20px; }
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero { padding-top: 116px; }
  .hero h1 br { display: none; }
  .harnesses { padding-top: 48px; }
  .section { padding-top: 84px; }
  .head { margin-bottom: 30px; }
  .showcase { padding: 8px; border-radius: 26px; margin: 0 -6px; }
  .panel { padding: 24px 16px 16px; border-radius: 20px; }
  .panel .diagram { padding: 14px 12px 12px; border-radius: 16px; }
  .sec-card { padding: 14px; margin: 0 -6px; }
  .diagram svg.sec-wide { display: none; }
  .diagram svg.sec-tall { display: block; max-width: 420px; margin: 0 auto; }
  .sec-cols { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 8px 8px; }
  .rule-card { padding: 22px 16px 16px; }
  .rule-card .diagram { padding: 4px 12px 12px; }
  .closing { padding: 56px 16px 56px; border-radius: 28px; margin: 0 -6px; }
  .install { font-size: 13px; padding: 16px 14px; }
  .install em { display: none; }
  .actions .btn { flex: 1 1 100%; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

.preview-note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }

/* ---------- Footer links, and the plain document page ---------- */
.foot-links { display: inline-flex; gap: 18px; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc { max-width: 720px; padding-top: 132px; padding-bottom: 40px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; letter-spacing: -0.034em; margin-top: 18px; }
.doc .lede { margin-top: 18px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.doc-note { margin-top: 24px; padding: 14px 18px; border-radius: 14px; background: var(--sky); font-size: 15px; line-height: 1.55; }
.doc h2 { margin-top: 44px; font-size: 22px; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.doc p, .doc ul { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc b { color: var(--ink); font-weight: 600; }
.doc a { color: var(--accent); text-underline-offset: 3px; }
.doc-page .nav .btn { margin-left: auto; }
