/* Adamantium Lab — adamantiumlaw.ai (v2: light editorial) */

@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-display.woff2") format("woff2"); font-weight: 300 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/assets/fonts/instrument-sans-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono-500-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }

:root {
  --paper: #f5f4f0;
  --paper-2: #eeede8;
  --white: #ffffff;
  --ink: #0f1115;
  --ink-2: #4b515b;
  --ink-3: #636973;
  --line: #e3e1db;
  --line-2: #d2d0c9;
  --cobalt: #2b4beb;
  --cobalt-soft: #e9edfd;
  --hot: #a94c09;
  --hot-soft: #fcefe2;
  --pv: #5b3fd6;
  --pv-soft: #efebfc;
  --ok: #147a52;
  --ok-soft: #e2f3eb;
  --metal: radial-gradient(120% 90% at 0% 0%, #ffffff 0%, rgba(255, 255, 255, 0) 55%),
           radial-gradient(90% 120% at 100% 100%, #c6cbd3 0%, rgba(198, 203, 211, 0) 60%),
           linear-gradient(135deg, #eceef1 0%, #dcdfe4 42%, #f6f7f8 62%, #d3d7dd 100%);
  --shadow: 0 1px 2px rgba(15, 17, 21, .05), 0 12px 32px -14px rgba(15, 17, 21, .16);
  --shadow-lg: 0 2px 6px rgba(15, 17, 21, .05), 0 40px 90px -30px rgba(15, 17, 21, .35);
  --serif: "Newsreader", ui-serif, Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; margin: 0; text-wrap: balance; }
::selection { background: #d6ddfb; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.eyebrow i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--sans); white-space: nowrap; cursor: pointer; border: 0; transition: background-color .25s, box-shadow .25s, transform .3s var(--ease); }
.btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(15, 17, 21, .6); }
.btn-ink:hover { background: #262a31; }
.btn-line { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-line:hover { background: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s; }
.site-header.scrolled, .page .site-header { background: rgba(245, 244, 240, .82); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand { flex: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 15px; color: var(--ink-2); }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: 136px; }
#platform { padding-top: clamp(72px, 9vw, 120px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 28px 64px; align-items: end; }
.hero h1 { margin-top: 20px; max-width: 11em; font-size: clamp(46px, 6.5vw, 94px); line-height: .98; letter-spacing: -.026em; }
.hero-side { padding-bottom: 10px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.js .rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
.js .rise.d2 { animation-delay: .08s; } .js .rise.d3 { animation-delay: .2s; } .js .rise.d4 { animation-delay: .34s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.stage { position: relative; margin-top: clamp(40px, 6vw, 76px); border-radius: 28px; overflow: hidden; background: var(--metal); padding: clamp(36px, 5.5vw, 80px) clamp(16px, 4.5vw, 64px) clamp(40px, 5vw, 72px); container-type: inline-size; isolation: isolate; box-shadow: 0 0 0 1px rgba(15, 17, 21, .06) inset; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.4s ease; }
.stage canvas.live { opacity: 1; }

/* product illustration — every size is in em so the whole window scales with its font-size */
.app { position: relative; margin: 0 auto; width: 100em; max-width: 100%; font-size: .78vw; background: #fff; color: var(--ink); border-radius: 1.4em; border: 1px solid rgba(15, 17, 21, .08); box-shadow: var(--shadow-lg); overflow: hidden; line-height: 1.45; font-family: var(--sans); text-align: left; }
@supports (font-size: 1cqw) { .app { font-size: clamp(5px, 1cqw, 11px); } }
.app-bar { display: flex; align-items: center; gap: 1.4em; height: 3.8em; padding: 0 1.4em; border-bottom: 1px solid #eceae4; background: #fbfbfa; }
.dots { display: flex; gap: .55em; } .dots i { width: .95em; height: .95em; border-radius: 50%; background: #e2e0da; }
.app-title { font-size: 1.2em; font-weight: 600; } .app-title b { color: var(--ink-3); font-weight: 400; }
.app-chip { margin-left: auto; display: inline-flex; align-items: center; gap: .5em; font: 500 1.05em/1 var(--mono); color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: .5em .9em; }
.app-chip svg { width: 1.15em; height: 1.15em; }
.app-body { display: grid; grid-template-columns: 17em minmax(0, 1fr) 27em; }
.app-side { display: flex; flex-direction: column; padding: 1.6em 1.1em; background: #fafaf8; border-right: 1px solid #eceae4; }
.app-brand { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: 1.2em; padding: 0 .6em; }
.app-brand img { width: 1.5em; height: 1.5em; }
.app-side ul { list-style: none; margin: 1.6em 0 2em; padding: 0; display: grid; gap: .25em; }
.app-side li { display: flex; align-items: center; gap: .75em; padding: .62em .8em; border-radius: .6em; font-size: 1.2em; color: var(--ink-2); }
.app-side li.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px #e6e4de, 0 1px 2px rgba(0, 0, 0, .04); }
.app-side .ic { width: .9em; height: .9em; border: 1.5px solid currentColor; border-radius: .25em; opacity: .55; }
.app-side li.on .ic { opacity: 1; border-color: var(--cobalt); background: var(--cobalt-soft); }
.app-wall { margin-top: auto; display: flex; align-items: center; gap: .6em; padding: .75em .9em; border-radius: .7em; background: var(--ok-soft); color: var(--ok); font: 500 1em/1.2 var(--mono); }
.app-wall span { width: .6em; height: .6em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 .3em rgba(20, 122, 82, .15); }
.app-main { display: flex; flex-direction: column; gap: 1.4em; padding: 1.8em 2.4em 2em; min-width: 0; }
.crumbs { font: 500 1em/1 var(--mono); color: var(--ink-3); } .crumbs b { color: var(--line-2); font-weight: 400; margin: 0 .3em; }
.q { align-self: flex-end; max-width: 82%; padding: 1em 1.3em; border-radius: 1.2em 1.2em .35em 1.2em; background: #f2f1ed; font-size: 1.3em; }
.a { border: 1px solid #ebe9e3; border-radius: 1.2em; padding: 1.4em 1.6em; }
.a > p:not(.a-who) { font-size: 1.3em; line-height: 1.65; }
.a-who { display: flex; align-items: center; gap: .5em; margin-bottom: .6em; font-weight: 600; font-size: 1.1em; }
.a-who img { width: 1.3em; height: 1.3em; }
cite { font: 600 .78em/1 var(--mono); font-style: normal; color: var(--ink-2); background: #f2f1ee; border: 1px solid #e4e2dc; border-radius: .4em; padding: .28em .5em; white-space: nowrap; vertical-align: .08em; }
cite.hl { color: var(--cobalt); background: var(--cobalt-soft); border-color: #cdd6fb; }
cite.pv { color: var(--pv); background: var(--pv-soft); border-color: #dcd3fa; }
.srcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8em; margin-top: 1.3em; }
.srcs div { padding: .85em 1em; border: 1px solid #ebe9e3; border-radius: .8em; background: #fbfbfa; min-width: 0; }
.srcs b { display: block; font: 600 1em/1.3 var(--mono); }
.srcs span { display: block; font-size: 1.02em; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding: .7em .7em .7em 1.3em; border: 1px solid #e3e1db; border-radius: 1em; color: var(--ink-3); font-size: 1.25em; }
.ask b { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 50%; background: var(--ink); color: #fff; font-size: .9em; }
.app-right { display: flex; flex-direction: column; gap: 1.2em; padding: 1.8em 1.6em; background: #fafaf8; border-left: 1px solid #eceae4; }
.card { padding: 1.3em 1.4em; background: #fff; border: 1px solid #e8e6e0; border-radius: 1em; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }
.card-h { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: 1.2em; }
.card-h span { font: 500 .8em/1 var(--mono); color: var(--ink-3); }
.meter { height: .55em; margin: 1.1em 0 .6em; border-radius: 1em; background: #efeeea; overflow: hidden; }
.meter i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cobalt), #7c8cf4); }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: center; padding: .62em 0; border-top: 1px solid #f0efeb; font: 500 1.02em/1 var(--mono); color: var(--ink-2); }
.t { font: 600 .9em/1 var(--sans); font-style: normal; padding: .38em .62em; border-radius: .45em; color: var(--ink-2); background: #f1f1ee; white-space: nowrap; }
.t.hot { color: var(--hot); background: var(--hot-soft); }
.t.pv { color: var(--pv); background: var(--pv-soft); }
.t.nr { color: var(--ink-3); background: transparent; box-shadow: 0 0 0 1px var(--line) inset; }
.card.warn { background: #fffaf3; border-color: #f1dcc3; }
.card-t { margin: .6em 0 1em; font-size: 1.12em; color: var(--ink-2); line-height: 1.5; }
.mini-btn { display: inline-block; padding: .55em .95em; border-radius: .6em; background: var(--ink); color: #fff; font-weight: 600; font-size: 1.05em; }

.float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(15, 17, 21, .08); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; animation: bob 7s ease-in-out infinite; }
.float svg { width: 16px; height: 16px; color: var(--cobalt); }
.f1 { left: clamp(10px, 2.2vw, 30px); top: clamp(14px, 2.4vw, 34px); }
.f2 { right: clamp(10px, 2.2vw, 30px); bottom: clamp(14px, 2.2vw, 30px); animation-delay: -3.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.caption { margin-top: 12px; font: 500 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); text-align: right; }
.trust { list-style: none; margin: 0; padding: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--ink); }

/* ---------- sections ---------- */
.sec { padding: clamp(88px, 11vw, 150px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2, .sec-split h2 { margin-top: 16px; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; }
.sec-head > p:last-child { margin-top: 18px; font-size: 18px; color: var(--ink-2); }
.sec-head.center > p:last-child { max-width: 36rem; margin-left: auto; margin-right: auto; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* features */
.feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); }
.feature.flip .feature-text { order: 2; }
.num { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.num span { margin-left: 10px; color: var(--ink); }
.feature h3 { margin-top: 18px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.06; }
.feature-text > p:not(.num) { margin-top: 16px; font-size: 17px; color: var(--ink-2); }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.checks li { position: relative; padding-left: 30px; font-size: 15.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cobalt-soft); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid var(--cobalt); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.feature-art { position: relative; min-width: 0; padding: clamp(20px, 4vw, 52px); border-radius: 24px; background: var(--metal); box-shadow: 0 0 0 1px rgba(15, 17, 21, .05) inset; }
.mock { background: #fff; border-radius: 16px; border: 1px solid rgba(15, 17, 21, .08); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 14px; }
.mock-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid #eceae4; font-weight: 600; font-size: 13.5px; }
.pill { font: 500 11px/1 var(--mono); padding: 6px 9px; border-radius: 999px; color: var(--cobalt); background: var(--cobalt-soft); white-space: nowrap; }
.grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.grid th { text-align: left; font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); padding: 11px 16px; border-bottom: 1px solid #efeeea; }
.grid td { padding: 11px 16px; border-bottom: 1px solid #f3f2ef; white-space: nowrap; }
.grid td:first-child { font: 500 12.5px/1 var(--mono); }
.grid tr.sel td { background: #f5f7ff; }
.grid tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--cobalt); }
.conf { position: relative; display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: #efeeea; overflow: hidden; vertical-align: middle; }
.conf::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink); }
.conf.c3::after { width: 58%; } .conf.c4::after { width: 80%; } .conf.c5::after { width: 95%; }
.why { margin: 14px 16px 16px; padding: 13px 15px; border-radius: 12px; background: var(--pv-soft); color: #33246f; font-size: 14px; line-height: 1.5; }
.why b { display: block; margin-bottom: 4px; font: 600 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pv); }
.why span { display: inline-block; margin-top: 8px; font: 600 11.5px/1 var(--mono); color: var(--pv); }
.tl { list-style: none; margin: 0; padding: 8px 18px 6px 40px; position: relative; }
.tl::before { content: ""; position: absolute; left: 24px; top: 24px; bottom: 26px; width: 1px; background: var(--line-2); }
.tl li { position: relative; display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid #f3f2ef; font-size: 14.5px; color: var(--ink-2); }
.tl li::before { content: ""; position: absolute; left: -20px; top: 17px; width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1.5px solid var(--ink-3); }
.tl li.on { color: var(--ink); font-weight: 500; }
.tl li.on::before { background: var(--cobalt); border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--cobalt-soft); }
.tl li.on cite { color: var(--cobalt); background: var(--cobalt-soft); border-color: #cdd6fb; }
.tl time { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.mock cite { font-size: 11px; }
.draft { margin: 8px 16px 16px; padding: 14px 16px; border: 1px solid #ebe9e3; border-radius: 12px; background: #fbfbfa; }
.draft b { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.draft p { margin-top: 8px; font: 400 17px/1.55 var(--serif); color: var(--ink); }
.langs { display: inline-flex; gap: 4px; }
.langs b, .langs span { font: 500 11px/1 var(--mono); padding: 5px 7px; border-radius: 6px; }
.langs b { background: var(--ink); color: #fff; }
.langs span { color: var(--ink-3); box-shadow: 0 0 0 1px var(--line) inset; }
.thread { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px; }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.msg small { display: block; margin-bottom: 5px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.msg.in { background: #f2f1ed; border-bottom-left-radius: 5px; }
.msg.out { align-self: flex-end; background: var(--cobalt-soft); color: #17256b; border-bottom-right-radius: 5px; }
.msg.out small { color: #3f4ea6; }
.gate { align-self: flex-end; position: relative; height: 36px; min-width: 260px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2) inset; font: 500 12px/1 var(--mono); overflow: hidden; }
.gate span { position: absolute; inset: 0; display: flex; align-items: center; gap: 9px; padding: 0 16px; }
.gate span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.gate .wait { color: var(--hot); animation: gate-a 7s infinite; }
.gate .wait::before { background: #e8a25c; }
.gate .ok { color: #fff; background: var(--ok); animation: gate-b 7s infinite; }
.gate .ok::before { background: #fff; }
@keyframes gate-a { 0%, 55% { opacity: 1; transform: none; } 62%, 94% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes gate-b { 0%, 55% { opacity: 0; transform: translateY(8px); } 62%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* security */
.security { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.sec-split .lead { margin-top: 18px; }
.layers svg { width: 100%; height: auto; overflow: visible; }
.layers text { font: 600 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; fill: var(--ink-2); text-anchor: middle; }
.layers text.top { fill: var(--cobalt); }
.layers .p { transition: transform 1.2s var(--ease); }
.js .layers:not(.in) .p1 { transform: translateY(48px); }
.js .layers:not(.in) .p2 { transform: translateY(32px); }
.js .layers:not(.in) .p3 { transform: translateY(16px); }
.principles { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 32px; }
.principles li { padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.principles b { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.duties { margin-top: clamp(48px, 6vw, 80px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.duties > span { font: 500 11.5px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.duties ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.duties li { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line-2) inset; font-size: 14.5px; }
.duties li b { font: 600 11px/1 var(--mono); color: #fff; background: var(--ink); padding: 6px 8px; border-radius: 999px; }
.duties small { flex-basis: 100%; font-size: 13px; color: var(--ink-3); }

/* approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { padding: 26px 24px 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: transform .4s var(--ease), box-shadow .4s; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.steps b { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .1em; }
.steps h3 { margin-top: 34px; font-size: 32px; }
.steps p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

/* demo */
.demo { padding-top: 0; padding-bottom: clamp(72px, 9vw, 120px); }
.demo-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 68px); border-radius: 28px; background: var(--metal); box-shadow: 0 0 0 1px rgba(15, 17, 21, .06) inset; }
.demo-copy .eyebrow { color: var(--ink-2); }
.demo-copy h2 { margin-top: 16px; font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; }
.demo-copy > p:not(.eyebrow):not(.notice) { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 28rem; }
.notice { display: flex; gap: 10px; margin-top: 26px; max-width: 28rem; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(15, 17, 21, .08); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.aside { margin-top: 14px; max-width: 28rem; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; padding: clamp(22px, 3vw, 34px); border-radius: 20px; background: #fff; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field label span { color: var(--ink-3); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; font: 400 15.5px/1.4 var(--sans); color: var(--ink); background: #fbfbfa; border: 1px solid #8f8b82; border-radius: 10px; padding: 12px 13px; transition: border-color .2s, box-shadow .2s, background-color .2s; appearance: none; -webkit-appearance: none; }
.field textarea { min-height: 112px; resize: vertical; }
.field select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237d838c' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(43, 75, 235, .35); }
.field input::placeholder, .field textarea::placeholder { color: #6b717a; }
.ts-note { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.ts-wait { color: var(--hot); font-weight: 500; }
.btn[aria-disabled="true"] { opacity: .6; pointer-events: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: -10px; }
.form-foot p { max-width: 25rem; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.form-foot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* footer */
.site-footer { position: relative; padding-top: 64px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand img { height: 28px; width: auto; }
.foot-brand p { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 56px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.foot-h { margin: 0 0 14px; font: 500 11px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.foot-nav a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.foot-word { max-width: var(--max); margin: 8px auto -1.6vw; padding: 0 var(--pad); opacity: .07; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.foot-word img { width: 100%; height: auto; }

/* sub pages */
.page main { padding: 150px 0 110px; }
.doc { max-width: 760px; }
.doc h1 { margin-top: 18px; font-size: clamp(40px, 5vw, 62px); line-height: 1.02; }
.doc .updated { margin-top: 16px; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.doc h2 { margin-top: 44px; font: 600 19px/1.3 var(--sans); letter-spacing: -.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 20px; }
.doc li { margin-top: 6px; }
.doc a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.label { font: 500 12px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.center { min-height: 68vh; display: flex; flex-direction: column; justify-content: center; }
.center .btn { margin-top: 34px; align-self: flex-start; }
.doc-title { margin-top: 18px; max-width: 14em; font-size: clamp(40px, 5.6vw, 76px); line-height: 1.0; }
.center-lead { margin-top: 20px; max-width: 30rem; font-size: 18px; color: var(--ink-2); }
.big-code { font: 300 clamp(90px, 16vw, 200px)/1 var(--serif); letter-spacing: -.04em; color: var(--line-2); }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav-links { gap: 20px; }
  .brand img { height: 28px; }
  .hero-top { grid-template-columns: 1fr; }
  .feature, .sec-split, .demo-panel, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-text { order: 0; }
  .layers { max-width: 520px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { height: 64px; }
  .nav-links a:not(.btn) { display: none; }
  /* logo takes whatever the demo button leaves (button ≈ 130px, gap 12px, page gutters 2×16px) */
  .brand img { height: auto; width: min(226px, calc(100vw - 178px)); }
  .nav { gap: 12px; }
  .nav-links .btn-sm { flex: none; height: 36px; padding: 0 14px; font-size: 13.5px; }
  .hero { padding-top: 112px; }
  .hero h1 { font-size: clamp(42px, 12vw, 56px); }
  .lead { font-size: 17px; }
  .cta .btn { flex: 1 1 auto; }
  .stage { border-radius: 20px; padding: 22px 12px; }
  .app { font-size: clamp(6px, 2.45cqw, 10px); }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-side, .app-right, .float { display: none; }
  .app-main { padding: 1.6em 1.6em 1.8em; }
  .srcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .srcs div:nth-child(3) { display: none; }
  .trust { grid-template-columns: 1fr; gap: 14px; }
  .grid th:nth-child(2), .grid td:nth-child(2) { display: none; }
  .grid td, .grid th { padding-left: 12px; padding-right: 12px; }
  .conf { width: 40px; }
  .tl { padding-left: 34px; }
  .tl::before { left: 18px; }
  .tl li { grid-template-columns: minmax(0, 1fr) auto; }
  .tl time { grid-column: 1 / -1; }
  .gate { min-width: 0; width: 100%; }
  .mock-bar { flex-wrap: wrap; row-gap: 8px; }
  .langs b, .langs span { white-space: nowrap; }
  .principles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps h3 { margin-top: 18px; }
  .form { grid-template-columns: 1fr; }
  .demo-panel { border-radius: 20px; padding: 22px 14px; }
  .foot-nav { gap: 36px; }
}
@media (max-width: 400px) {
  .grid th:nth-child(4), .grid td:nth-child(4) { display: none; }
}
@media print {
  .js .reveal, .js .rise { opacity: 1; transform: none; }
  .site-header { position: static; }
  .stage canvas, .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .rise { opacity: 1; transform: none; }
  .js .layers .p { transform: none; }
  .gate .ok { opacity: 0; }
}
