/* Page Agent Lite landing page. Plain CSS, no build. */
:root {
  --paper: #f4f2ea;
  --paper-2: #ebe8dc;
  --ink: #0f1914;
  --ink-2: #3c4a42;
  --muted: #6b766f;
  --line: #d9d5c6;
  --mint: #bfe6d1;
  --mint-deep: #2f5a48;
  --blue: #2563eb;
  --warn: #c27a12;
  --night: #0e1612;
  --night-2: #17221c;
  --cjk: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --display: "Bricolage Grotesque", var(--cjk);
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --pad: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.7 var(--cjk); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--mint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--pad); background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.scrolled { border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 18px var(--display); letter-spacing: -.01em; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav nav > a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.nav nav > a:not(.btn):hover { color: var(--ink); }
.lang { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: 4px 10px; font: 600 13px var(--mono); cursor: pointer; color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; text-decoration: none; font-weight: 700; font-size: 16px; border: 1.5px solid var(--ink); transition: transform .25s cubic-bezier(.2,.8,.2,1), background .25s, color .25s; }
.btn:hover { }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--mint-deep); border-color: var(--mint-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost.light { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 50%, transparent); }
.btn.small { min-height: 36px; padding: 0 16px; font-size: 14px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.cta.center { justify-content: center; }

/* Type */
.eyebrow { margin: 0 0 18px; font: 600 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mint-deep); }
.eyebrow.light { color: var(--mint); }
.display { margin: 0; font: 900 clamp(38px, 5.3vw, 92px)/1.06 var(--display); letter-spacing: -.035em; }
.display-2 { margin: 0; font: 900 clamp(38px, 5.6vw, 84px)/1.05 var(--display); letter-spacing: -.03em; }
.display-3 { margin: 0 0 28px; font: 900 clamp(28px, 3.4vw, 44px)/1.15 var(--display); letter-spacing: -.02em; }
.lede { max-width: 34em; margin: 26px 0 0; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); text-wrap: pretty; }
.lede.light { color: #b9c6be; }
.split .ch { display: inline-block; }
.split .w { display: inline; }
html[lang="en"] .split .w { display: inline-block; white-space: nowrap; }

/* Hero */
.hero { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: 120px var(--pad) 60px; }
.facts { display: flex; gap: 36px; margin: 44px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; }
.facts b { font: 800 28px/1.1 var(--display); letter-spacing: -.02em; }
.facts span { font-size: 14px; color: var(--muted); }

.stage { position: relative; }
.mascot { position: absolute; z-index: 3; width: clamp(100px, 10vw, 140px); right: 24px; top: clamp(-128px, -9vw, -90px); filter: drop-shadow(0 10px 24px rgba(15,25,20,.18)); }
.window { position: relative; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 #fff inset, 0 30px 80px -30px rgba(15,25,20,.35), 0 8px 24px -12px rgba(15,25,20,.2); overflow: hidden; }
.chrome-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1f1ef; border-bottom: 1px solid #e4e3dd; }
.chrome-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d8d6cf; }
.chrome-bar .url { margin-left: 12px; flex: 1; padding: 4px 12px; border-radius: 99px; background: #fff; font: 500 12px var(--mono); color: var(--muted); }
.window-body { display: grid; grid-template-columns: 1fr 248px; min-height: 420px; }
.mock-page { position: relative; padding: 26px 28px; font-size: 14px; }
.mock-page h3 { margin: 0 0 18px; font-size: 20px; }
.mock-page label { display: block; margin-bottom: 14px; color: #555; font-size: 13px; }
.field { position: relative; display: flex; align-items: center; height: 40px; margin-top: 6px; padding: 0 12px; border: 1px solid #dcdcd6; border-radius: 8px; background: #fff; color: #111; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
.field.select::after { content: ""; position: absolute; right: 14px; width: 7px; height: 7px; border: solid #888; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-3px); }
.field.done { border-color: #9fd2b6; box-shadow: 0 0 0 3px rgba(47,90,72,.08); }
.caret { display: none; width: 1.5px; height: 18px; margin-left: 1px; background: var(--blue); animation: blink 1s steps(1) infinite; }
.field.typing .caret { display: inline-block; }
@keyframes blink { 50% { opacity: 0; } }
.mock-submit { display: inline-block; margin-top: 8px; padding: 10px 20px; border-radius: 8px; background: #1d1d1b; color: #fff; font-weight: 600; font-size: 14px; }
.target-box { position: absolute; left: 0; top: 0; width: 10px; height: 10px; border: 2px solid var(--blue); border-radius: 8px; background: rgba(37,99,235,.06); opacity: 0; pointer-events: none; }
.pointer { position: absolute; left: 60%; top: 70%; fill: var(--blue); filter: drop-shadow(0 1px 1px #fff) drop-shadow(0 2px 4px rgba(0,0,0,.2)); pointer-events: none; }
.mock-panel { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-left: 1px solid #ebeae4; background: #fcfcfb; font-size: 13px; }
.panel-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.panel-top em { font-style: normal; color: var(--blue); }
.bubble.user { align-self: flex-end; max-width: 92%; padding: 9px 12px; border-radius: 12px 12px 4px 12px; background: #eef1f5; line-height: 1.55; }
.msgs { flex: 1; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.msg { line-height: 1.55; }
.msg small { display: block; color: var(--muted); font-size: 11px; }
.msg.tool { padding: 6px 10px; border: 1px solid #e3e6ea; border-radius: 8px; background: #fff; font: 500 11.5px var(--mono); color: #444; }
.msg.tool b { color: var(--blue); font-weight: 500; }
.msg.tool .v { color: var(--mint-deep); }
.msg.notice { padding: 8px 10px; border-radius: 8px; background: #fff7e8; color: #7a4b05; }
.panel-foot { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border: 1px solid #e3e3de; border-radius: 10px; color: #999; font-size: 12px; }
.panel-foot .round { font-family: var(--mono); color: var(--muted); }
.caption { margin: 14px 4px 0; font-size: 12.5px; color: var(--muted); }

/* Marquee */
.marquee { overflow: hidden; border-block: 1.5px solid var(--ink); background: var(--mint); padding: 18px 0; }
.track { display: flex; width: max-content; gap: 0; }
.track span { padding: 0 34px; font: 800 clamp(24px, 3vw, 40px)/1 var(--display); white-space: nowrap; letter-spacing: -.02em; }
.track span::after { content: "✦"; margin-left: 68px; font-size: .6em; vertical-align: middle; color: var(--mint-deep); }

/* How */
.how { padding: 0 var(--pad); }
.how-pin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 100px 0; }
.progress { width: min(260px, 100%); height: 3px; margin-top: 40px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress i { display: block; width: 100%; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.step { padding: 28px 30px; border: 1.5px solid var(--ink); border-radius: 20px; background: var(--paper); }
.step .num { font: 600 14px var(--mono); color: var(--mint-deep); }
.step h3 { margin: 6px 0 8px; font: 900 clamp(24px, 2.4vw, 32px)/1.2 var(--display); }
.step p { margin: 0; color: var(--ink-2); }

/* Verify (dark) */
.verify { background: var(--night); color: var(--paper); padding: clamp(90px, 12vw, 160px) var(--pad); border-radius: 36px 36px 0 0; }
.log { margin-top: 56px; max-width: 920px; border-top: 1px solid #2a3a31; }
.row { display: grid; grid-template-columns: 90px 1fr auto; gap: 20px; align-items: center; padding: 20px 4px; border-bottom: 1px solid #2a3a31; font-size: clamp(16px, 1.4vw, 19px); }
.row code { font: 500 14px var(--mono); color: #8fb3a0; }
.row em { font: 500 14px var(--mono); font-style: normal; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.row em.ok { background: rgba(191,230,209,.14); color: var(--mint); }
.row em.warn { background: rgba(194,122,18,.18); color: #f0b65c; }
.row em.info { background: rgba(37,99,235,.2); color: #9cbcff; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; }
.pills li { padding: 8px 16px; border: 1px solid #34463c; border-radius: 99px; color: #c7d3cc; font-size: 15px; }

/* Memory */
.memory { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: clamp(100px, 12vw, 170px) var(--pad); }
.layers { position: relative; height: 260px; }
.layer { position: absolute; left: 0; right: 0; display: grid; gap: 4px; padding: 26px 30px; border: 1.5px solid var(--ink); border-radius: 22px; }
.layer b { font: 900 26px/1.2 var(--display); }
.layer span { color: var(--ink-2); }
.layer.l2 { top: 0; background: var(--mint); }
.layer.l3 { top: 120px; background: var(--ink); color: var(--paper); }
.layer.l3 span { color: #b9c6be; }

/* Privacy */
.privacy { padding: clamp(60px, 8vw, 120px) var(--pad) clamp(90px, 10vw, 150px); }
.privacy .grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; margin-top: 56px; }
.privacy article { display: flex; flex-direction: column; padding: 30px; border-radius: 22px; background: var(--paper-2); }
.privacy article:first-child { background: var(--mint); }
.privacy h3 { margin: 0 0 10px; font: 900 24px/1.2 var(--display); }
.privacy p { margin: 0 0 22px; color: var(--ink-2); flex: 1; }
.privacy code { align-self: flex-start; padding: 6px 12px; border-radius: 8px; background: rgba(15,25,20,.07); font: 500 13px var(--mono); }

/* Limits */
.limits { margin: 0 var(--pad); padding: 56px 0 100px; border-top: 1.5px solid var(--ink); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; }
.limits ul { margin: 0; padding: 0; list-style: none; }
.limits li { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.limits li::before { content: "—"; margin-right: 12px; color: var(--muted); }

/* Final */
.final { background: var(--night); color: var(--paper); text-align: center; padding: clamp(90px, 10vw, 140px) var(--pad); border-radius: 36px 36px 0 0; }
.final img { width: 150px; margin: 0 auto 26px; }
.final .display-2 { max-width: 14em; margin-inline: auto; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px var(--pad); background: var(--night); color: #7f8f86; font-size: 14px; border-top: 1px solid #22302a; }
.foot a { color: #b9c6be; }

/* GSAP showcase layers */
.hero { position: relative; }
.hero > :not(.orbs) { position: relative; z-index: 1; }
.orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.o1 { width: 46vw; height: 46vw; right: -12vw; top: -14vw; background: radial-gradient(circle at 35% 35%, #d7f2e3, #bfe6d1 55%, transparent 70%); }
.o2 { width: 22vw; height: 22vw; left: 38%; bottom: -8vw; background: radial-gradient(circle, rgba(37,99,235,.16), transparent 68%); }
.o3 { width: 14vw; height: 14vw; left: -4vw; top: 22%; background: radial-gradient(circle, rgba(47,90,72,.16), transparent 70%); }
.spark { position: absolute; font-style: normal; color: var(--mint-deep); font-size: 22px; opacity: .55; }
.s1 { left: 46%; top: 18%; } .s2 { left: 8%; bottom: 14%; font-size: 30px; } .s3 { right: 6%; bottom: 10%; color: var(--blue); } .s4 { left: 52%; top: 62%; font-size: 14px; }
.display .ch { transform-origin: 50% 100%; }
.hero h1 { perspective: 600px; }

.statement { padding: clamp(110px, 16vw, 220px) var(--pad); }
.say { max-width: 19em; margin: 0 auto; font: 900 clamp(34px, 5vw, 76px)/1.22 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.say .wd { opacity: .14; }

html.js-anim .how.horizontal { padding: 0; overflow: hidden; }
html.js-anim .how.horizontal .how-pin { display: flex; align-items: center; gap: 6vw; width: max-content; height: 100vh; min-height: 0; padding: 0 var(--pad); }
html.js-anim .how.horizontal .how-left { width: 34vw; flex: none; }
html.js-anim .how.horizontal .steps { display: flex; gap: 4vw; }
html.js-anim .how.horizontal .step { width: min(46vw, 620px); min-height: 56vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 44px; border-radius: 32px; }
html.js-anim .how.horizontal .step:nth-child(2) { background: var(--mint); }
html.js-anim .how.horizontal .step:nth-child(3) { background: var(--ink); color: var(--paper); }
html.js-anim .how.horizontal .step:nth-child(3) p { color: #b9c6be; }
html.js-anim .how.horizontal .step:nth-child(3) .num { color: var(--mint); }
html.js-anim .how.horizontal .step .num { font: 900 clamp(90px, 11vw, 170px)/.9 var(--display); letter-spacing: -.05em; margin-bottom: auto; }
html.js-anim .how.horizontal .step h3 { font-size: clamp(30px, 3vw, 44px); }

.btn { will-change: transform; }
.final { clip-path: inset(0 0 0 0 round 36px 36px 0 0); }

/* Store screenshot mode (?shot=<section>) */
.promo { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6%; height: 100vh; padding: 0 8%; background: var(--mint); }
.promo img { width: 34vh; }
.promo-name { margin: 0; font: 800 clamp(20px, 6.4vh, 64px)/1.1 var(--display); letter-spacing: -.02em; }
.promo-line { margin: 1.5vh 0 0; font: 900 clamp(16px, 9vh, 96px)/1.1 var(--display); letter-spacing: -.03em; }
html.shot .nav, html.shot .marquee, html.shot .foot, html.shot main > :not(.shot-on) { display: none !important; }
html.shot body { overflow: hidden; }
html.shot .shot-on { height: 100vh; min-height: 0; margin: 0; border-radius: 0; overflow: hidden; }
html.shot .hero.shot-on { padding-top: 40px; padding-bottom: 40px; }
html.shot .how.shot-on .how-pin { min-height: 0; height: 100%; padding: 0; }
html.shot .how.shot-on .progress i { transform: scaleX(1); }
html.shot .verify.shot-on, html.shot .privacy.shot-on, html.shot .final.shot-on { display: flex; flex-direction: column; justify-content: center; padding-block: 0; }
html.shot .verify.shot-on .row { padding-block: 9px; }
html.shot .verify.shot-on .log { margin-top: 28px; }
html.shot .verify.shot-on .pills { margin-top: 24px; }
html.shot .memory.shot-on, html.shot .limits.shot-on { padding-block: 0; align-content: center; }

/* Responsive */
@media (max-width: 980px) {
  .hero, .how-pin, .memory, .limits { grid-template-columns: 1fr; }
  .hero { padding-top: 110px; }
  .stage { margin-top: 70px; }
  .privacy .grid { grid-template-columns: 1fr; }
  .nav nav > a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .window-body { grid-template-columns: 1fr; }
  .mock-panel { border-left: 0; border-top: 1px solid #ebeae4; }
  .facts { gap: 24px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .row em { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
}
