/* Style the public PhoneAgent project site and documentation guide. */

:root {
  --bg: #080b12;
  --bg-deep: #05070c;
  --surface: rgba(17, 22, 35, 0.72);
  --surface-solid: #111623;
  --surface-raised: #171d2d;
  --surface-soft: #0d111b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #f5f7fb;
  --text-soft: #a9b1c3;
  --text-muted: #727c91;
  --violet: #8b7cff;
  --violet-bright: #a99fff;
  --cyan: #4dd8e6;
  --blue: #5c9cff;
  --green: #5fdd9d;
  --orange: #ffad66;
  --pink: #f277b8;
  --danger: #ff7a8a;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-height: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(139, 124, 255, .32); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { display: block; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { position: relative; padding: 112px 0; }
.section-soft {
  background:
    linear-gradient(180deg, rgba(255,255,255,.018), transparent 16%, transparent 84%, rgba(255,255,255,.012)),
    var(--surface-soft);
  border-block: 1px solid rgba(255,255,255,.045);
}

.ambient {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(140px);
  opacity: .15;
}
.ambient-one { top: 20px; right: -140px; width: 520px; height: 520px; background: var(--violet); }
.ambient-two { top: 560px; left: -260px; width: 520px; height: 520px; background: #1759a7; opacity: .12; }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(8, 11, 18, .78);
  border-color: var(--border);
}
.nav-shell { height: 100%; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.03em; font-size: 18px; white-space: nowrap; }
.brand img { filter: drop-shadow(0 8px 20px rgba(139,124,255,.25)); }
.site-nav { display: flex; align-items: center; gap: 28px; margin-inline: auto; }
.site-nav a { color: var(--text-soft); font-size: 14px; font-weight: 560; transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-toggle {
  height: 38px;
  min-width: 54px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13px;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.language-toggle:hover { border-color: var(--border-strong); color: var(--text); background: rgba(255,255,255,.05); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; cursor: pointer; padding: 9px; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .25s ease, opacity .25s ease; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 650;
  font-size: 14px;
  letter-spacing: -.01em;
  transition: transform .2s var(--ease), background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .language-toggle:focus-visible, .copy-button:focus-visible, .nav-toggle:focus-visible { outline: 2px solid var(--violet-bright); outline-offset: 3px; }
.button svg { width: 18px; height: 18px; }
.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #7667f5, #9c72f2);
  box-shadow: 0 14px 34px rgba(116, 91, 238, .27), inset 0 1px rgba(255,255,255,.18);
}
.button-primary:hover { box-shadow: 0 18px 42px rgba(116, 91, 238, .38), inset 0 1px rgba(255,255,255,.18); }
.button-secondary { border-color: var(--border-strong); background: rgba(255,255,255,.035); color: var(--text); }
.button-secondary:hover { background: rgba(255,255,255,.065); border-color: rgba(255,255,255,.23); }
.button-ghost { color: var(--text-soft); background: rgba(255,255,255,.02); border-color: var(--border); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.button-ghost svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }

.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--header-height) + 70px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 72% 42%, black, transparent 58%);
  mask-image: radial-gradient(circle at 72% 42%, black, transparent 58%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(430px, .97fr); align-items: center; gap: 70px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--violet-bright); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 760; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(95,221,157,.1), 0 0 18px rgba(95,221,157,.65); }
.hero h1 { margin: 22px 0 24px; max-width: 760px; font-size: clamp(46px, 6vw, 78px); line-height: .99; letter-spacing: -.058em; font-weight: 760; }
.hero h1 span { display: block; }
.gradient-text { padding-bottom: .07em; background: linear-gradient(100deg, #fff 4%, #b9afff 48%, #70dce6 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 670px; margin: 0; color: var(--text-soft); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .button-primary svg { fill: currentColor; stroke: none; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 42px; padding-top: 25px; border-top: 1px solid var(--border); }
.hero-meta div { display: flex; flex-direction: column; gap: 1px; }
.hero-meta strong { font-size: 13px; font-weight: 650; }
.hero-meta span { color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

.hero-visual { position: relative; min-height: 650px; display: flex; align-items: center; justify-content: center; }
.demo-orbit { position: absolute; border: 1px solid rgba(139,124,255,.13); border-radius: 50%; }
.orbit-one { width: 570px; height: 570px; animation: spin 28s linear infinite; }
.orbit-two { width: 430px; height: 430px; border-style: dashed; border-color: rgba(77,216,230,.14); animation: spinReverse 23s linear infinite; }
.orbit-one::before, .orbit-two::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; top: 50%; left: -4px; background: var(--violet); box-shadow: 0 0 18px var(--violet); }
.orbit-two::before { left: auto; right: -4px; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); }
.phone-frame { position: relative; z-index: 2; transform: perspective(1200px) rotateY(-7deg) rotateX(2deg); filter: drop-shadow(0 40px 62px rgba(0,0,0,.55)); }
.phone-hardware { position: relative; width: 294px; height: 598px; padding: 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 45px; background: linear-gradient(145deg, #343a48, #11141b 42%, #282d37); box-shadow: inset 0 0 0 1px rgba(0,0,0,.65), inset 0 0 12px rgba(255,255,255,.08); }
.phone-hardware::before, .phone-hardware::after { content: ""; position: absolute; left: -3px; width: 3px; border-radius: 2px 0 0 2px; background: #343a45; }
.phone-hardware::before { top: 130px; height: 60px; }
.phone-hardware::after { top: 205px; height: 86px; }
.phone-screen { position: relative; overflow: hidden; width: 100%; height: 100%; border-radius: 37px; background: linear-gradient(160deg, #13192a, #080a10 58%); }
.phone-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(139,124,255,.16), transparent 32%), radial-gradient(circle at 10% 75%, rgba(77,216,230,.08), transparent 28%); }
.phone-speaker { position: absolute; z-index: 5; top: 15px; left: 50%; width: 66px; height: 20px; transform: translateX(-50%); border-radius: 0 0 13px 13px; background: #07080c; }
.phone-camera { position: absolute; z-index: 6; top: 20px; left: calc(50% + 18px); width: 5px; height: 5px; border-radius: 50%; background: #1b2849; box-shadow: 0 0 0 2px #090b11; }
.screen-status { position: relative; z-index: 2; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: rgba(255,255,255,.75); font-size: 9px; font-weight: 650; }
.screen-status div { display: flex; align-items: center; gap: 6px; }
.signal-bars { font-size: 6px; letter-spacing: -1px; }
.agent-screen { position: relative; z-index: 2; padding: 7px 16px 24px; }
.screen-heading { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mini-logo { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(139,124,255,.12); border: 1px solid rgba(139,124,255,.2); }
.mini-logo img { width: 21px; height: 21px; }
.screen-heading > div:nth-child(2) { display: flex; flex-direction: column; line-height: 1.2; }
.screen-heading b { font-size: 11px; }
.screen-heading span { color: var(--text-muted); font-size: 7.5px; }
.live-pill { margin-left: auto; padding: 3px 6px; border: 1px solid rgba(95,221,157,.2); border-radius: 999px; background: rgba(95,221,157,.07); color: var(--green) !important; font-size: 6px !important; letter-spacing: .12em; }
.task-card { margin-top: 16px; padding: 13px; border: 1px solid rgba(139,124,255,.17); border-radius: 12px; background: linear-gradient(135deg, rgba(139,124,255,.1), rgba(255,255,255,.025)); }
.task-label { display: block; color: var(--violet-bright); font-size: 6px; font-weight: 760; letter-spacing: .18em; }
.task-card p { margin: 7px 0 0; color: #e9ebf3; font-size: 9px; line-height: 1.5; }
.loop-stack { margin-top: 14px; display: grid; gap: 7px; }
.loop-row { min-height: 52px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid rgba(255,255,255,.065); border-radius: 10px; background: rgba(255,255,255,.025); opacity: .68; }
.loop-row.active { opacity: .9; }
.loop-row.processing { opacity: 1; border-color: rgba(139,124,255,.35); background: rgba(139,124,255,.09); box-shadow: 0 0 24px rgba(139,124,255,.08); }
.step-number { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; background: rgba(255,255,255,.04); color: var(--text-muted); font-size: 7px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.loop-row > div { display: flex; flex-direction: column; line-height: 1.25; }
.loop-row b { font-size: 8.5px; }
.loop-row small { color: var(--text-muted); font-size: 6.5px; }
.step-state { color: var(--green); font-size: 6.5px; text-transform: uppercase; letter-spacing: .1em; }
.spinner { width: 13px; height: 13px; border: 1.5px solid rgba(255,255,255,.12); border-top-color: var(--violet-bright); border-radius: 50%; animation: spin 1s linear infinite; }
.action-console { margin-top: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(4,6,11,.7); }
.console-head { height: 24px; display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid rgba(255,255,255,.055); }
.console-head span { width: 5px; height: 5px; border-radius: 50%; background: #4f5668; }
.console-head span:first-child { background: #ff7e78; }.console-head span:nth-child(2) { background: #f5c766; }.console-head span:nth-child(3) { background: #5fd69a; }
.console-head em { margin-left: auto; color: var(--text-muted); font-size: 6px; font-style: normal; }
.action-console code { display: block; padding: 11px 9px; color: #c5beff; font-size: 6.7px; white-space: nowrap; }
.screen-homebar { position: absolute; z-index: 3; bottom: 6px; left: 50%; width: 88px; height: 3px; transform: translateX(-50%); border-radius: 3px; background: rgba(255,255,255,.46); }
.runtime-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; min-width: 214px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(17,22,35,.96); box-shadow: 0 20px 42px rgba(0,0,0,.3); }
.runtime-card-top { top: 89px; left: 1px; animation: float 5s ease-in-out infinite; }
.runtime-card-bottom { right: -8px; bottom: 85px; animation: float 5.8s ease-in-out infinite reverse; }
.runtime-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; }
.runtime-icon svg { width: 18px; height: 18px; }
.runtime-icon-observe { color: var(--cyan); background: rgba(77,216,230,.1); }
.runtime-icon-verify { color: var(--green); background: rgba(95,221,157,.1); }
.runtime-card > div { display: flex; flex-direction: column; line-height: 1.25; }
.runtime-card b { font-size: 10px; }.runtime-card span { color: var(--text-muted); font-size: 7px; }
.runtime-check { margin-left: auto; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: rgba(95,221,157,.1); color: var(--green) !important; font-size: 9px !important; }
.confidence { margin-left: auto; color: var(--green) !important; font-family: ui-monospace, monospace; font-size: 9px !important; }
.loop-strip { margin-top: 50px; min-height: 72px; display: flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 22px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255,255,255,.018); }
.loop-strip div { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.loop-strip span { color: var(--violet-bright); font-family: ui-monospace, monospace; font-size: 10px; }
.loop-strip b { font-size: 12px; font-weight: 600; }
.loop-strip i { width: min(6vw, 70px); height: 1px; background: linear-gradient(90deg, var(--border-strong), rgba(255,255,255,.025)); }

.section-heading { max-width: 720px; margin-bottom: 54px; }
.section-heading h2, .architecture-copy h2, .trajectory-copy h2, .limitations-heading h2, .cta-copy h2 { margin: 14px 0 18px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading p, .architecture-copy > p, .trajectory-copy > p, .limitations-heading > p, .cta-copy > p { margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.75; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { position: relative; overflow: hidden; min-height: 310px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-md); background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); transition: transform .25s var(--ease), border-color .25s ease, background .25s ease; }
.feature-card::before { content: ""; position: absolute; top: -120px; right: -120px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(139,124,255,.08), transparent 70%); opacity: 0; transition: opacity .3s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.16); background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); }
.feature-card:hover::before { opacity: 1; }
.feature-card-wide { grid-column: span 2; display: grid; grid-template-columns: auto 1fr 180px; gap: 20px; align-items: start; }
.feature-icon { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature-violet { color: var(--violet-bright); background: rgba(139,124,255,.1); border: 1px solid rgba(139,124,255,.14); }
.feature-blue { color: var(--blue); background: rgba(92,156,255,.1); border: 1px solid rgba(92,156,255,.14); }
.feature-cyan { color: var(--cyan); background: rgba(77,216,230,.1); border: 1px solid rgba(77,216,230,.14); }
.feature-green { color: var(--green); background: rgba(95,221,157,.1); border: 1px solid rgba(95,221,157,.14); }
.feature-orange { color: var(--orange); background: rgba(255,173,102,.1); border: 1px solid rgba(255,173,102,.14); }
.feature-pink { color: var(--pink); background: rgba(242,119,184,.1); border: 1px solid rgba(242,119,184,.14); }
.feature-number { position: absolute; top: 27px; right: 27px; color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 10px; }
.feature-card h3 { margin: 24px 0 10px; font-size: 19px; letter-spacing: -.025em; }
.feature-card-wide h3 { margin-top: 4px; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.72; }
.inline-code { display: block; margin-top: 24px; padding: 12px 13px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(2,4,8,.45); color: #bbb3ff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.mini-grounding { align-self: center; width: 170px; }
.grounding-screen { position: relative; height: 150px; overflow: hidden; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: linear-gradient(145deg, #1a2132, #0d111b); }
.grounding-screen::before, .grounding-screen::after { content: ""; position: absolute; left: 18px; right: 18px; height: 9px; border-radius: 4px; background: rgba(255,255,255,.06); }
.grounding-screen::before { top: 22px; }.grounding-screen::after { top: 42px; right: 55px; }
.ground-box { position: absolute; width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.055); }
.box-one { left: 22px; top: 72px; }.box-two { left: 68px; top: 72px; }
.ground-target { position: absolute; right: 19px; top: 65px; width: 48px; height: 48px; border: 1.5px solid var(--cyan); border-radius: 11px; box-shadow: 0 0 20px rgba(77,216,230,.16); }
.ground-target::before, .ground-target::after { content: ""; position: absolute; background: var(--cyan); }
.ground-target::before { left: 50%; top: -7px; bottom: -7px; width: 1px; }.ground-target::after { top: 50%; left: -7px; right: -7px; height: 1px; }
.grounding-label { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 8px; }
.grounding-label span { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.route-line { display: flex; align-items: center; gap: 9px; margin-top: 25px; color: var(--text-soft); font-family: ui-monospace, monospace; font-size: 10px; }
.route-line span, .route-line strong { padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.035); }
.route-line i { color: var(--cyan); font-style: normal; }
.route-line strong { min-width: 0; overflow: hidden; color: #b2e9ef; font-weight: 500; text-overflow: ellipsis; }
.verify-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
.verify-tags span { padding: 6px 8px; border: 1px solid rgba(95,221,157,.13); border-radius: 7px; background: rgba(95,221,157,.06); color: #99e8bd; font-family: ui-monospace, monospace; font-size: 8px; }
.verify-tags span:last-child { color: var(--text-muted); border-color: var(--border); background: rgba(255,255,255,.025); }
.budget-meter { display: flex; gap: 6px; margin-top: 27px; }
.budget-meter span { width: 26px; height: 5px; border-radius: 3px; background: var(--orange); box-shadow: 0 0 10px rgba(255,173,102,.18); }
.budget-meter .unused { background: rgba(255,255,255,.07); box-shadow: none; }
.trajectory-lines { display: grid; gap: 7px; margin-top: 24px; }
.trajectory-lines span { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(242,119,184,.55), rgba(255,255,255,.04)); }
.trajectory-lines span:nth-child(2) { width: 78%; }.trajectory-lines span:nth-child(3) { width: 91%; }.trajectory-lines span:nth-child(4) { width: 62%; }

.architecture-grid, .trajectory-grid, .limitations-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 80px; }
.architecture-copy > p, .trajectory-copy > p { max-width: 560px; }
.architecture-points { display: grid; gap: 19px; margin: 35px 0; }
.architecture-points > div { display: flex; gap: 16px; }
.architecture-points > div > span { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(139,124,255,.16); border-radius: 10px; background: rgba(139,124,255,.07); color: var(--violet-bright); font-family: ui-monospace, monospace; font-size: 9px; }
.architecture-points p { display: flex; flex-direction: column; margin: 0; }
.architecture-points b { font-size: 14px; }.architecture-points small { color: var(--text-soft); font-size: 13px; line-height: 1.55; }
.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--violet-bright); font-size: 14px; font-weight: 650; }
.text-link svg { width: 17px; height: 17px; transition: transform .2s ease; }
.text-link:hover svg { transform: translateX(4px); }
.architecture-diagram {
  position: relative;
  min-height: 610px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  box-shadow: var(--shadow);
  /*
   * Three equal columns have two fixed gaps. The branch span is therefore
   * 2/3 of the grid width plus 2/3 of one gap, so its endpoints land on the
   * exact centers of the first and third columns.
   */
  --diagram-column-gap: 10px;
  --diagram-wire-span-extra: 6.6667px;
}
.architecture-diagram::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background-image: radial-gradient(rgba(255,255,255,.075) .7px, transparent .7px); background-size: 18px 18px; opacity: .35; }
.diagram-glow { position: absolute; top: 42%; left: 50%; width: 330px; height: 330px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(139,124,255,.09); filter: blur(70px); }
.diagram-node { position: relative; z-index: 2; display: flex; align-items: center; gap: 11px; margin-inline: auto; padding: 13px 15px; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(12,16,26,.88); box-shadow: 0 14px 28px rgba(0,0,0,.18); }
.diagram-node > div { display: flex; flex-direction: column; line-height: 1.3; }
.diagram-node b { font-size: 11px; }.diagram-node small { color: var(--text-muted); font-size: 8px; }
.node-icon { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.05); color: var(--text-soft); font-size: 9px; font-weight: 700; }
.node-user { width: 205px; }.node-runtime { width: 270px; border-color: rgba(139,124,255,.25); background: rgba(29,25,56,.84); }.node-runtime img { width: 31px; height: 31px; }
.diagram-connector { position: relative; z-index: 2; width: 1px; height: 28px; margin-inline: auto; background: linear-gradient(var(--border-strong), rgba(139,124,255,.6)); }
.diagram-connector i {
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--violet);
  border-bottom: 1px solid var(--violet);
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
}
.diagram-connector.small { height: 24px; }
.diagram-split {
  position: relative;
  z-index: 1;
  width: calc(66.6667% + var(--diagram-wire-span-extra));
  height: 32px;
  margin: 0 auto;
  border-top: 1px solid rgba(139,124,255,.34);
}
.diagram-split::before { content: ""; position: absolute; top: -28px; left: 50%; width: 1px; height: 28px; background: rgba(139,124,255,.45); }
.diagram-split i {
  position: absolute;
  top: 0;
  width: 1px;
  height: 32px;
  background: linear-gradient(rgba(139,124,255,.4), var(--border));
  transform: translateX(-50%);
}
.diagram-split i:first-child { left: 0; }
.diagram-split i:nth-child(2) { left: 50%; }
.diagram-split i:nth-child(3) { left: 100%; }
.diagram-columns {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--diagram-column-gap);
}
.diagram-lane { display: flex; flex-direction: column; align-items: center; }
.node-compact { width: 100%; min-height: 71px; padding: 11px; }
.node-cyan { color: var(--cyan); background: rgba(77,216,230,.08); }.node-violet { color: var(--violet-bright); background: rgba(139,124,255,.09); }.node-green { color: var(--green); background: rgba(95,221,157,.08); }.node-blue { color: var(--blue); background: rgba(92,156,255,.08); }
.lane-arrow {
  position: relative;
  width: 100%;
  height: 25px;
  font-size: 0;
  color: transparent;
}
.lane-arrow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 6px;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(var(--border-strong), rgba(139,124,255,.42));
}
.lane-arrow::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid var(--violet);
  border-bottom: 1px solid var(--violet);
  transform: translateX(-50%) rotate(45deg);
  transform-origin: center;
}
.node-leaf { width: 90%; min-height: 40px; justify-content: center; padding: 10px 6px; background: rgba(255,255,255,.025); }
.node-leaf b { color: var(--text-soft); font-size: 8.5px; font-weight: 560; text-align: center; }
.diagram-merge {
  position: relative;
  z-index: 1;
  width: calc(66.6667% + var(--diagram-wire-span-extra));
  height: 35px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(92,156,255,.35);
}
.diagram-merge::before,
.diagram-merge::after,
.diagram-merge i {
  content: "";
  position: absolute;
  top: 0;
  width: 1px;
  height: 35px;
  background: linear-gradient(var(--border), rgba(92,156,255,.35));
  transform: translateX(-50%);
}
.diagram-merge::before { left: 0; }
.diagram-merge i { left: 50%; }
.diagram-merge::after { left: 100%; }
.node-adb { width: 270px; border-color: rgba(92,156,255,.2); }.node-phone { width: 250px; }
.phone-symbol { flex: 0 0 auto; width: 29px; height: 29px; display: grid; place-items: center; color: var(--text-soft); font-size: 22px; line-height: 1; }
.return-arrow { margin-left: auto; color: var(--cyan); font-size: 16px; }

.quickstart-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 50px; align-items: center; }
.setup-steps { display: grid; gap: 8px; }
.setup-steps article { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.setup-steps article > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 11px; color: var(--violet-bright); font-family: ui-monospace, monospace; font-size: 10px; }
.setup-steps h3 { margin: 0 0 5px; font-size: 15px; }.setup-steps p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.terminal-card { overflow: hidden; border: 1px solid rgba(255,255,255,.11); border-radius: var(--radius-md); background: #090c13; box-shadow: var(--shadow); }
.terminal-titlebar { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 15px; border-bottom: 1px solid rgba(255,255,255,.075); background: #10141e; }
.terminal-titlebar > div { display: flex; gap: 6px; }
.terminal-titlebar > div span { width: 8px; height: 8px; border-radius: 50%; background: #ff6f6a; }.terminal-titlebar > div span:nth-child(2) { background: #f5c55d; }.terminal-titlebar > div span:nth-child(3) { background: #58d28e; }
.terminal-titlebar strong { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 10px; font-weight: 500; }
.copy-button { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text-muted); cursor: pointer; font-size: 9px; transition: color .2s ease, border-color .2s ease; }
.copy-button:hover { color: var(--text); border-color: var(--border-strong); }.copy-button svg { width: 13px; height: 13px; }
.terminal-card pre { margin: 0; padding: 27px; overflow-x: auto; color: #d5d9e5; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; line-height: 1.85; }
.term-muted { color: #586175; }.term-prompt { color: var(--green); }.term-string { color: #a9a0ff; }
.terminal-result { display: flex; align-items: center; gap: 9px; padding: 13px 27px; border-top: 1px solid rgba(255,255,255,.06); background: rgba(95,221,157,.035); color: #8ca49a; font-family: ui-monospace, monospace; font-size: 9px; }
.result-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(95,221,157,.5); }
.requirements-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.02); }
.requirements-strip div { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 17px; border-right: 1px solid var(--border); color: var(--text-soft); font-size: 12px; }
.requirements-strip div:last-child { border-right: 0; }.requirements-strip svg { width: 15px; height: 15px; color: var(--green); }

.trajectory-grid { grid-template-columns: 1.12fr .88fr; }
.json-window { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); background: #080b11; box-shadow: var(--shadow); transform: perspective(1100px) rotateY(3deg); }
.json-titlebar { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.07); background: #11151f; }
.json-titlebar > div { display: flex; gap: 6px; }.json-titlebar > div span { width: 8px; height: 8px; border-radius: 50%; background: #ff6f6a; }.json-titlebar > div span:nth-child(2) { background: #f5c55d; }.json-titlebar > div span:nth-child(3) { background: #58d28e; }
.json-titlebar strong { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 9px; font-weight: 500; }.json-titlebar em { justify-self: end; color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 8px; font-style: normal; }
.json-window pre { margin: 0; padding: 28px; overflow-x: auto; color: #bdc4d4; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace; font-size: 11px; line-height: 1.75; }
.json-key { color: #8cd2e0; }.json-string { color: #b9a9ff; }.json-number { color: #ffb86b; }.json-bool { color: #76dfa8; }
.check-list { display: grid; gap: 13px; margin: 28px 0 31px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 27px; color: var(--text-soft); font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: rgba(95,221,157,.09); color: var(--green); font-size: 9px; }

.roadmap-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.roadmap-column { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: rgba(255,255,255,.018); }
.roadmap-column-head { display: flex; align-items: center; gap: 10px; padding-bottom: 17px; border-bottom: 1px solid var(--border); }
.roadmap-column-head > span { width: 8px; height: 8px; border-radius: 50%; }.complete .roadmap-column-head > span { background: var(--green); box-shadow: 0 0 12px rgba(95,221,157,.4); }.next .roadmap-column-head > span { background: var(--violet); box-shadow: 0 0 12px rgba(139,124,255,.4); }.future .roadmap-column-head > span { border: 1px solid var(--text-muted); }
.roadmap-column-head > div { display: flex; flex-direction: column; line-height: 1.2; }.roadmap-column-head b { font-size: 13px; }.roadmap-column-head small { color: var(--text-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.roadmap-card { display: flex; gap: 12px; padding: 17px 0; border-bottom: 1px solid rgba(255,255,255,.055); }.roadmap-card:last-child { border-bottom: 0; }
.roadmap-card > span { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.035); color: var(--text-muted); font-size: 10px; }.complete .roadmap-card > span { color: var(--green); background: rgba(95,221,157,.07); }.next .roadmap-card > span { color: var(--violet-bright); background: rgba(139,124,255,.08); }
.roadmap-card p { display: flex; flex-direction: column; margin: 0; line-height: 1.4; }.roadmap-card b { font-size: 12px; }.roadmap-card small { margin-top: 3px; color: var(--text-muted); font-size: 10px; line-height: 1.5; }

.limitations-grid { grid-template-columns: .8fr 1.2fr; align-items: start; }
.limitations-heading { position: sticky; top: 130px; }
.limitations-list { display: grid; }
.limitations-list article { display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0; border-top: 1px solid var(--border); }
.limitations-list article:last-child { border-bottom: 1px solid var(--border); }
.limitations-list article > span { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 11px; }
.limitations-list h3 { margin: 0 0 7px; font-size: 17px; letter-spacing: -.02em; }.limitations-list p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.65; }

.cta-section { padding-top: 60px; }
.cta-card { position: relative; overflow: hidden; min-height: 390px; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 65px; border: 1px solid rgba(139,124,255,.22); border-radius: 30px; background: radial-gradient(circle at 75% 25%, rgba(77,216,230,.1), transparent 28%), radial-gradient(circle at 20% 75%, rgba(139,124,255,.18), transparent 36%), #101522; box-shadow: 0 35px 85px rgba(0,0,0,.3); }
.cta-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, black, transparent); mask-image: linear-gradient(90deg, black, transparent); }
.cta-copy { position: relative; z-index: 1; max-width: 680px; }.cta-copy img { margin-bottom: 24px; }.cta-copy h2 { max-width: 650px; }.cta-copy > p { max-width: 620px; }
.cta-actions { position: relative; z-index: 1; flex: 0 0 auto; display: flex; flex-direction: column; gap: 11px; min-width: 220px; }

.site-footer { padding: 70px 0 22px; border-top: 1px solid var(--border); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 60px; padding-bottom: 52px; }
.footer-brand p { margin: 13px 0 0; color: var(--text-muted); font-size: 13px; }
.footer-links { display: flex; gap: 90px; }.footer-links > div { display: flex; flex-direction: column; gap: 9px; min-width: 110px; }.footer-links b { margin-bottom: 5px; color: var(--text); font-size: 12px; }.footer-links a { color: var(--text-muted); font-size: 12px; transition: color .2s ease; }.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 20px; border-top: 1px solid var(--border); color: #596174; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; transform: translateY(30px); padding: 11px 15px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(20,25,38,.94); color: var(--text); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: transform .25s var(--ease), opacity .25s ease; font-size: 12px; }
.toast.visible { transform: translateY(0); opacity: 1; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: none; transition: opacity .32s ease-out; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }.reveal-delay-2 { transition-delay: .16s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr 430px; gap: 30px; }
  .runtime-card-top { left: -25px; }.runtime-card-bottom { right: -20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }.feature-card-wide { grid-column: span 2; }
  .architecture-grid, .trajectory-grid { grid-template-columns: 1fr; gap: 55px; }.architecture-copy, .trajectory-copy { max-width: 760px; }
  .architecture-diagram { width: min(100%, 720px); margin-inline: auto; }
  .trajectory-visual { order: 2; }.trajectory-copy { order: 1; }
  .quickstart-grid { grid-template-columns: 1fr; }.setup-steps { grid-template-columns: repeat(3, 1fr); }.setup-steps article { display: block; padding: 18px; border: 1px solid var(--border); border-radius: 15px; }.setup-steps article > span { margin-bottom: 15px; }
}

@media (max-width: 860px) {
  :root { --header-height: 68px; }
  .section { padding: 88px 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-actions .button { display: none; }
  .site-nav { position: fixed; top: var(--header-height); left: 20px; right: 20px; display: grid; gap: 0; margin: 0; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: rgba(12,16,25,.97); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s var(--ease); }
  .site-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .site-nav a { padding: 12px 13px; border-radius: 10px; }.site-nav a:hover { background: rgba(255,255,255,.04); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(6.5px) rotate(45deg); }.nav-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }.nav-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hero { padding-top: calc(var(--header-height) + 58px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 730px; margin-inline: auto; }.hero-lead { margin-inline: auto; }.hero-actions, .hero-meta { justify-content: center; }
  .hero-visual { min-height: 620px; }.runtime-card-top { left: calc(50% - 250px); }.runtime-card-bottom { right: calc(50% - 255px); }
  .loop-strip { overflow-x: auto; justify-content: flex-start; }.loop-strip i { min-width: 45px; }
  .requirements-strip { grid-template-columns: repeat(2, 1fr); }.requirements-strip div:nth-child(2) { border-right: 0; }.requirements-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .roadmap-board { grid-template-columns: 1fr; }
  .limitations-grid { grid-template-columns: 1fr; gap: 45px; }.limitations-heading { position: static; }
  .cta-card { flex-direction: column; align-items: flex-start; padding: 48px; }.cta-actions { width: 100%; flex-direction: row; }.cta-actions .button { flex: 1; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 72px 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 48px); }
  .hero h1 { font-size: clamp(42px, 13vw, 60px); }.hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }.hero-actions .button { width: 100%; }.hero-meta { gap: 18px; }.hero-meta div { min-width: 90px; }
  .hero-visual { min-height: 555px; transform: scale(.9); margin-inline: -24px; }.phone-hardware { width: 270px; height: 550px; }.runtime-card { min-width: 185px; padding: 10px; }.runtime-card-top { left: calc(50% - 195px); top: 74px; }.runtime-card-bottom { right: calc(50% - 202px); bottom: 66px; }
  .loop-strip { margin-top: 12px; }
  .feature-grid { grid-template-columns: 1fr; }.feature-card-wide { grid-column: auto; display: block; }.feature-card-wide .mini-grounding { margin: 26px auto 0; }.feature-card { min-height: 0; }.feature-number { top: 28px; }
  .architecture-diagram {
    min-height: 670px;
    padding: 24px 14px;
    --diagram-column-gap: 6px;
    --diagram-wire-span-extra: 4px;
  }
  .diagram-node { padding: 10px; }
  .node-compact { min-height: 82px; flex-direction: column; text-align: center; }
  .node-compact .node-icon { width: 25px; height: 25px; }
  .node-compact small { display: none; }
  .node-leaf { width: 100%; min-height: 48px; }
  .node-runtime, .node-adb { width: 230px; }
  .setup-steps { grid-template-columns: 1fr; }.terminal-card pre { padding: 20px; font-size: 10px; }.terminal-result { padding-inline: 20px; }
  .requirements-strip { grid-template-columns: 1fr; }.requirements-strip div { border-right: 0; border-bottom: 1px solid var(--border); }.requirements-strip div:last-child { border-bottom: 0; }
  .json-window { transform: none; }.json-window pre { padding: 20px; font-size: 9px; }
  .cta-card { min-height: 0; padding: 38px 24px; }.cta-actions { flex-direction: column; }.cta-copy h2 { font-size: 38px; }
  .footer-grid { grid-template-columns: 1fr; }.footer-links { gap: 50px; }.footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Refined presentation layer
   -------------------------------------------------------------------------- */

:root {
  --surface-glass: rgba(15, 20, 32, .66);
  --violet-rgb: 139, 124, 255;
  --cyan-rgb: 77, 216, 230;
}

body {
  background:
    radial-gradient(circle at 80% 4%, rgba(var(--violet-rgb), .08), transparent 24rem),
    radial-gradient(circle at 5% 28%, rgba(50, 120, 220, .055), transparent 28rem),
    var(--bg);
}

.scroll-progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: rgba(255,255,255,.02);
}
.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 15px rgba(var(--violet-rgb), .58);
  will-change: transform;
}

.site-header.scrolled {
  background: linear-gradient(180deg, rgba(8,11,18,.91), rgba(8,11,18,.72));
  box-shadow: 0 12px 35px rgba(0,0,0,.16);
}

.header-release {
  margin-left: -18px;
  padding: 3px 7px;
  border: 1px solid rgba(var(--violet-rgb), .18);
  border-radius: 999px;
  background: rgba(var(--violet-rgb), .07);
  color: var(--violet-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: .05em;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width .25s var(--ease);
}
.site-nav a:hover::after,
.site-nav a.active::after { width: 100%; }
.site-nav a.active { color: var(--text); }

.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 8% 2% auto 52%;
  height: 620px;
  background: radial-gradient(circle, rgba(var(--violet-rgb), .1), transparent 63%);
  filter: blur(20px);
}

.hero h1 {
  text-wrap: balance;
  text-shadow: 0 12px 50px rgba(0,0,0,.18);
}

.hero-lead,
.section-heading p,
.architecture-copy > p,
.trajectory-copy > p,
.limitations-heading > p {
  text-wrap: pretty;
}

.hero-meta div {
  position: relative;
  min-width: 112px;
}
.hero-meta div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -15px;
  width: 1px;
  height: 30px;
  background: linear-gradient(transparent, var(--border-strong), transparent);
}

.phone-frame {
  --parallax-x: -7deg;
  --parallax-y: 2deg;
  transform: perspective(1200px) rotateY(var(--parallax-x)) rotateX(var(--parallax-y));
  transition: transform .35s var(--ease);
  will-change: transform;
}

.phone-hardware::after {
  box-shadow: 0 0 0 1px rgba(255,255,255,.03);
}

.runtime-signal {
  position: absolute;
  z-index: 1;
  width: 160px;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgba(var(--cyan-rgb), .16), transparent);
}
.runtime-signal i {
  display: block;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(var(--cyan-rgb), .7);
  animation: signalTravel 2.9s ease-in-out infinite;
}
.signal-one { top: 32%; left: 5%; transform: rotate(18deg); }
.signal-two { right: 1%; bottom: 31%; transform: rotate(-15deg); }
.signal-two i { animation-delay: -1.4s; }

.loop-strip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(var(--violet-rgb), .025), rgba(255,255,255,.018), rgba(var(--cyan-rgb), .025));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
.loop-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent);
  animation: stripSweep 7s ease-in-out infinite;
}
.loop-strip > * { position: relative; z-index: 1; }

.ecosystem-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 18px;
  padding: 18px 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--violet-rgb), .045), rgba(255,255,255,.018) 48%, rgba(var(--cyan-rgb), .035));
}
.ecosystem-copy { position: relative; z-index: 1; max-width: 520px; }
.ecosystem-kicker {
  color: var(--violet-bright);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.ecosystem-copy p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}
.ecosystem-links {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
}
.ecosystem-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 175px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  background: rgba(4,7,12,.35);
  transition: transform .2s var(--ease), border-color .2s ease, background .2s ease;
}
.ecosystem-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
}
.ecosystem-mark {
  flex: 0 0 auto;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--violet-rgb), .11);
  color: var(--violet-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
}
.ecosystem-mark-zhipu {
  background: rgba(var(--cyan-rgb), .1);
  color: var(--cyan);
}
.ecosystem-links a > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.ecosystem-links b { font-size: 11px; }
.ecosystem-links small { color: var(--text-muted); font-size: 8px; }

.section-heading h2,
.architecture-copy h2,
.trajectory-copy h2,
.limitations-heading h2,
.cta-copy h2 { text-wrap: balance; }

.section-heading::after {
  content: "";
  display: block;
  width: 62px;
  height: 1px;
  margin-top: 26px;
  background: linear-gradient(90deg, var(--violet), transparent);
}

[data-spotlight] {
  --mouse-x: 50%;
  --mouse-y: 50%;
  isolation: isolate;
}
[data-spotlight]::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(330px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,.065), transparent 45%);
  opacity: 0;
  transition: opacity .28s ease;
}
[data-spotlight].spotlight-active::after { opacity: 1; }
[data-spotlight] > :not(.diagram-glow) { position: relative; z-index: 1; }
[data-spotlight] > .diagram-glow { position: absolute; z-index: 0; }

.feature-card {
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 20px 45px rgba(0,0,0,.08);
}
.feature-card:hover {
  box-shadow: inset 0 1px rgba(255,255,255,.04), 0 28px 58px rgba(0,0,0,.18);
}
.feature-card h3 { transition: color .22s ease; }
.feature-card:hover h3 { color: #fff; }
.feature-icon { box-shadow: inset 0 1px rgba(255,255,255,.06); }

.architecture-diagram {
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(255,255,255,.038), rgba(255,255,255,.008)),
    rgba(9,13,21,.66);
}
.diagram-node {
  transition: transform .23s var(--ease), border-color .23s ease, box-shadow .23s ease;
}
.diagram-node:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--violet-rgb), .28);
  box-shadow: 0 18px 35px rgba(0,0,0,.25), 0 0 25px rgba(var(--violet-rgb), .055);
}

.quickstart-grid {
  grid-template-rows: auto auto;
  align-items: stretch;
}
.setup-steps { grid-row: 1 / span 2; align-self: center; }
.terminal-card { grid-column: 2; }

.provider-card {
  position: relative;
  grid-column: 2;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(140deg, rgba(var(--cyan-rgb), .045), rgba(255,255,255,.018));
}
.provider-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.provider-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(var(--cyan-rgb), .1);
  color: var(--cyan);
  font-weight: 800;
}
.provider-head > div { display: flex; flex-direction: column; line-height: 1.3; }
.provider-head > div span { color: var(--text-muted); font-size: 8px; text-transform: uppercase; letter-spacing: .11em; }
.provider-head b { font-size: 12px; }
.provider-head > a {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-soft);
  transition: color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.provider-head > a:hover { color: var(--cyan); border-color: rgba(var(--cyan-rgb), .25); transform: translateY(-2px); }
.provider-config { display: grid; gap: 8px; padding-top: 13px; }
.provider-config > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.provider-config span { color: var(--text-muted); font-family: ui-monospace, monospace; font-size: 8px; text-transform: uppercase; }
.provider-config code {
  min-width: 0;
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(0,0,0,.22);
  color: #b8e9ee;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-card,
.json-window,
.roadmap-column,
.cta-card {
  box-shadow: inset 0 1px rgba(255,255,255,.028), var(--shadow);
}

.back-to-top {
  position: fixed;
  z-index: 120;
  right: 22px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  transform: translateY(14px) scale(.92);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(15,20,32,.84);
  color: var(--text-soft);
  box-shadow: 0 18px 35px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity .2s ease, transform .24s var(--ease), color .2s ease, border-color .2s ease;
}
.back-to-top svg { width: 19px; height: 19px; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-to-top:hover { color: #fff; border-color: rgba(var(--violet-rgb), .35); transform: translateY(-2px); }
.toast { right: 76px; }

@keyframes signalTravel {
  0% { transform: translateX(-50px); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(170px); opacity: 0; }
}
@keyframes stripSweep {
  0%, 55% { transform: translateX(-110%); }
  85%, 100% { transform: translateX(110%); }
}

@media (max-width: 1080px) {
  .quickstart-grid { grid-template-rows: auto; }
  .setup-steps { grid-row: auto; }
  .terminal-card, .provider-card { grid-column: auto; }
  .provider-card { margin-top: -30px; }
}

@media (max-width: 860px) {
  .header-release { display: none; }
  .site-nav a::after { display: none; }
  .site-nav a.active { background: rgba(var(--violet-rgb), .08); color: var(--text); }
  .ecosystem-strip { align-items: flex-start; flex-direction: column; }
  .ecosystem-links { width: 100%; }
  .ecosystem-links a { flex: 1; }
  .provider-card { margin-top: -35px; }
}

@media (max-width: 640px) {
  .hero-meta div:not(:last-child)::after { display: none; }
  .runtime-signal { display: none; }
  .ecosystem-links { flex-direction: column; }
  .ecosystem-links a { width: 100%; }
  .provider-card { margin-top: -34px; }
  .provider-config > div { grid-template-columns: 58px minmax(0, 1fr); }
  .back-to-top { right: 14px; bottom: 14px; }
  .toast { right: 14px; bottom: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .runtime-signal,
  .loop-strip::before { display: none; }
}

.loop-row.pending { opacity: .36; }
.step-pending {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Warm editorial theme

   The layout remains product-led and technical, while the visual language
   shifts from neon glass to paper, ink, clay, and muted botanical accents.
   -------------------------------------------------------------------------- */

:root {
  --bg: #f4f0e8;
  --bg-deep: #e9e2d6;
  --surface: rgba(255, 253, 248, .86);
  --surface-solid: #fffdf8;
  --surface-raised: #f8f4ed;
  --surface-soft: #eee8dd;
  --surface-glass: rgba(250, 247, 240, .9);
  --border: rgba(54, 48, 42, .12);
  --border-strong: rgba(54, 48, 42, .22);
  --text: #2c2925;
  --text-soft: #625d56;
  --text-muted: #736b62;
  --violet: #b76047;
  --violet-bright: #9f4f38;
  --cyan: #65776d;
  --blue: #68758a;
  --green: #5f765f;
  --orange: #b17a4d;
  --pink: #9c6d70;
  --danger: #a75050;
  --violet-rgb: 183, 96, 71;
  --cyan-rgb: 101, 119, 109;
  --shadow: 0 24px 60px rgba(71, 57, 43, .1);
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
}

body {
  background: linear-gradient(180deg, #f8f5ef 0%, var(--bg) 38%, #f7f3ec 100%);
}

::selection { background: rgba(var(--violet-rgb), .22); color: var(--text); }

.ambient,
.demo-orbit,
.runtime-signal,
.diagram-glow { display: none; }

.section { padding-block: 104px; }
.section-soft {
  background: var(--surface-soft);
  border-color: rgba(54, 48, 42, .08);
}

.site-header.scrolled {
  background: #f8f5ee;
  border-color: var(--border);
  box-shadow: 0 8px 28px rgba(71, 57, 43, .06);
}
.brand { font-weight: 700; }
.brand img { filter: none; }
.header-release {
  border-color: rgba(var(--violet-rgb), .2);
  background: rgba(var(--violet-rgb), .07);
  color: var(--violet-bright);
}
.site-nav a::after,
.scroll-progress span {
  background: var(--violet);
  box-shadow: none;
}
.language-toggle {
  background: rgba(255, 253, 248, .7);
}
.language-toggle:hover {
  background: var(--surface-solid);
}

.button { border-radius: 999px; }
.button-primary {
  color: #fffaf3;
  background: #34302b;
  box-shadow: 0 10px 24px rgba(52, 48, 43, .14);
}
.button-primary:hover {
  background: #211f1c;
  box-shadow: 0 13px 30px rgba(52, 48, 43, .18);
}
.button-secondary,
.button-ghost {
  border-color: var(--border-strong);
  background: rgba(255, 253, 248, .7);
  color: var(--text);
}
.button-secondary:hover,
.button-ghost:hover {
  border-color: rgba(54, 48, 42, .34);
  background: var(--surface-solid);
}
.button:focus-visible,
.language-toggle:focus-visible,
.copy-button:focus-visible,
.nav-toggle:focus-visible {
  outline-color: var(--violet);
}

.hero { min-height: auto; padding-top: calc(var(--header-height) + 92px); }
.hero::before,
.hero::after { display: none; }
.hero-grid { gap: 72px; }
.eyebrow,
.section-kicker,
.ecosystem-kicker { color: var(--violet-bright); }
.status-dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(95, 118, 95, .11);
}
.hero h1,
.section-heading h2,
.architecture-copy h2,
.trajectory-copy h2,
.limitations-heading h2,
.cta-copy h2 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.042em;
}
.hero h1 {
  margin-top: 25px;
  font-size: clamp(48px, 6vw, 76px);
  line-height: 1.01;
  text-shadow: none;
}
.gradient-text {
  background: none;
  color: var(--violet-bright);
}
.hero-lead { color: var(--text-soft); }
.hero-meta { border-color: var(--border); }
.hero-meta div:not(:last-child)::after {
  background: var(--border);
}

.hero-visual {
  min-height: 610px;
  perspective: 1300px;
}
.hero-visual::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: -8px;
  width: 330px;
  height: 58px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(60, 49, 40, .25) 0%, rgba(60, 49, 40, .1) 45%, transparent 74%);
  filter: blur(9px);
  pointer-events: none;
}
.phone-frame {
  --parallax-x: 0deg;
  --parallax-y: 0deg;
  transform: perspective(1200px) rotateY(var(--parallax-x)) rotateX(var(--parallax-y)) translateZ(0);
  transform-origin: 50% 62%;
  transform-style: preserve-3d;
  transition: transform .18s ease-out, filter .28s ease;
  will-change: transform;
  filter: drop-shadow(0 32px 36px rgba(66, 52, 40, .2));
}
.phone-hardware {
  border-color: rgba(43, 40, 36, .45);
  background: linear-gradient(145deg, #5b554e, #272521 48%, #46413b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone-hardware::before,
.phone-hardware::after { background: #49443e; box-shadow: none; }
.phone-screen { background: #f7f2e9; }
.phone-screen::before { display: none; }
.phone-speaker { background: #201e1b; }
.phone-camera { background: #49443e; box-shadow: 0 0 0 2px #201e1b; }
.screen-status { color: rgba(44, 41, 37, .72); }
.screen-heading { border-color: var(--border); }
.mini-logo {
  border-color: rgba(var(--violet-rgb), .18);
  background: rgba(var(--violet-rgb), .08);
}
.live-pill {
  border-color: rgba(95, 118, 95, .2);
  background: rgba(95, 118, 95, .08);
}
.task-card {
  border-color: rgba(var(--violet-rgb), .18);
  background: #efe4d8;
}
.task-card p { color: var(--text); }
.loop-row {
  border-color: var(--border);
  background: rgba(255, 253, 248, .62);
}
.loop-row.processing {
  border-color: rgba(var(--violet-rgb), .36);
  background: #f0e1d5;
  box-shadow: none;
}
.step-number { background: rgba(54, 48, 42, .05); }
.spinner { border-color: rgba(54, 48, 42, .15); border-top-color: var(--violet); }
.action-console {
  border-color: rgba(255, 255, 255, .08);
  background: #2b2926;
}
.action-console code { color: #e7c5b7; }
.runtime-card {
  border-color: var(--border-strong);
  background: #fffdf8;
  box-shadow: 0 16px 34px rgba(71, 57, 43, .12);
}
.runtime-card-top,
.runtime-card-bottom { animation: none; }
.runtime-icon-observe { background: rgba(var(--cyan-rgb), .1); }
.runtime-icon-verify { background: rgba(95, 118, 95, .1); }

.loop-strip,
.ecosystem-strip,
.requirements-strip {
  border-color: var(--border);
  background: rgba(255, 253, 248, .58);
  box-shadow: none;
}
.loop-strip::before { display: none; }
.loop-strip i { background: var(--border-strong); }
.ecosystem-links a {
  border-color: var(--border);
  background: rgba(255, 253, 248, .72);
}
.ecosystem-links a:hover {
  border-color: var(--border-strong);
  background: var(--surface-solid);
}
.ecosystem-mark { background: rgba(var(--violet-rgb), .09); }
.ecosystem-mark-zhipu { background: rgba(var(--cyan-rgb), .1); }

.section-heading::after { background: var(--violet); }
[data-spotlight]::after,
.feature-card::before { display: none; }
.roadmap-column,
.provider-card {
  border-color: var(--border);
  background: rgba(255, 253, 248, .7);
  box-shadow: 0 14px 36px rgba(71, 57, 43, .055);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border-strong);
}
.feature-card,
.feature-card:last-child {
  display: grid;
  grid-template-columns: 38px 46px minmax(0, 1fr) minmax(210px, .62fr);
  align-items: center;
  gap: 22px;
  grid-column: auto;
  min-height: 0;
  padding: 30px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.feature-card:hover {
  transform: none;
  border-color: var(--border-strong);
  background: transparent;
  box-shadow: none;
}
.feature-card:hover h3 { color: var(--text); }
.feature-number {
  position: static;
  align-self: center;
  color: var(--text-muted);
  font-size: 10px;
}
.feature-icon { box-shadow: none; }
.feature-copy { min-width: 0; }
.feature-card h3,
.feature-card-wide h3 { margin: 0 0 7px; }
.feature-card p { max-width: 690px; }
.feature-detail {
  width: 100%;
  max-width: 250px;
  justify-self: end;
  margin-top: 0;
}
.feature-card .mini-grounding { width: 170px; }
.feature-card .trajectory-lines { max-width: 250px; }
.feature-violet { color: var(--violet-bright); background: rgba(var(--violet-rgb), .09); border-color: rgba(var(--violet-rgb), .15); }
.feature-blue { color: var(--blue); background: rgba(104, 117, 138, .09); border-color: rgba(104, 117, 138, .14); }
.feature-cyan { color: var(--cyan); background: rgba(var(--cyan-rgb), .09); border-color: rgba(var(--cyan-rgb), .14); }
.feature-green { color: var(--green); background: rgba(95, 118, 95, .09); border-color: rgba(95, 118, 95, .14); }
.feature-orange { color: var(--orange); background: rgba(177, 122, 77, .09); border-color: rgba(177, 122, 77, .14); }
.feature-pink { color: var(--pink); background: rgba(156, 109, 112, .09); border-color: rgba(156, 109, 112, .14); }
.inline-code {
  border-color: var(--border);
  background: #f0ebe2;
  color: var(--violet-bright);
}
.grounding-screen {
  border-color: var(--border);
  background: #ebe4d8;
}
.grounding-screen::before,
.grounding-screen::after,
.ground-box { background: rgba(54, 48, 42, .08); }
.ground-target { box-shadow: none; }
.grounding-label span { box-shadow: none; }
.route-line span,
.route-line strong { background: rgba(54, 48, 42, .055); }
.route-line strong { color: var(--cyan); }
.verify-tags span {
  border-color: rgba(95, 118, 95, .16);
  background: rgba(95, 118, 95, .07);
  color: var(--green);
}
.verify-tags span:last-child { background: rgba(54, 48, 42, .035); }
.budget-meter span { box-shadow: none; }
.budget-meter .unused { background: rgba(54, 48, 42, .08); }
.trajectory-lines span {
  background: linear-gradient(90deg, rgba(156, 109, 112, .65), rgba(156, 109, 112, .08));
}

.architecture-points > div > span,
.setup-steps article > span {
  border-color: rgba(var(--violet-rgb), .17);
  background: rgba(var(--violet-rgb), .07);
}
.architecture-diagram {
  display: grid;
  align-items: center;
  border-color: var(--border);
  background: #ede7dc;
  box-shadow: 0 20px 45px rgba(71, 57, 43, .08);
}
.architecture-diagram::before {
  background-image: radial-gradient(rgba(54, 48, 42, .18) .7px, transparent .7px);
  opacity: .24;
}
.architecture-flow {
  --flow-gap: 12px;
  --flow-line: rgba(159, 79, 56, .42);
  position: relative;
  z-index: 1;
}
.flow-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 54px;
  margin-inline: auto;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 253, 248, .94);
  box-shadow: 0 8px 18px rgba(71, 57, 43, .07);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.flow-node:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 11px 22px rgba(71, 57, 43, .09);
}
.flow-node > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.flow-node b { font-size: 11px; }
.flow-node small { color: var(--text-muted); font-size: 8px; }
.flow-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(54, 48, 42, .055);
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 700;
}
.flow-node-user { width: 210px; }
.flow-node-runtime,
.flow-node-executor { width: 278px; }
.flow-node-runtime { border-color: rgba(var(--violet-rgb), .22); }
.flow-node-runtime img { flex: 0 0 auto; width: 31px; height: 31px; }
.flow-node-device { width: 258px; }
.flow-device-symbol {
  flex: 0 0 auto;
  width: 29px;
  color: var(--text-soft);
  font-size: 22px;
  line-height: 1;
  text-align: center;
}
.flow-return { margin-left: auto; color: var(--cyan); font-size: 16px; }
.flow-icon-resolver { color: var(--cyan); background: #f1f3ed; }
.flow-icon-planner { color: var(--violet-bright); background: #f6eee8; }
.flow-icon-verifier { color: var(--green); background: #edf1e9; }
.flow-icon-executor { color: var(--blue); background: #edf0f2; }
.flow-icon-decision { color: var(--pink); background: #f4ece8; }

.architecture-flow-sequential {
  display: grid;
  justify-items: center;
}
.architecture-flow-sequential .flow-node {
  width: min(100%, 296px);
}
.architecture-flow-sequential .flow-node-user { width: 210px; }
.architecture-flow-sequential .flow-link { height: 18px; }
.flow-link {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 26px;
  margin-inline: auto;
  background: var(--flow-line);
}
.flow-link::after,
.flow-lane-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--violet);
  border-bottom: 1px solid var(--violet);
  transform: translate(-50%, -1px) rotate(45deg);
}

.flow-fork,
.flow-merge,
.flow-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--flow-gap);
}
.flow-fork,
.flow-merge { position: relative; height: 38px; }
.flow-fork i:not(:last-child)::before,
.flow-merge i:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 50%;
  width: calc(100% + var(--flow-gap));
  height: 1px;
  background: var(--flow-line);
}
.flow-fork i:not(:last-child)::before { top: 18px; }
.flow-fork::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 19px;
  background: var(--flow-line);
}
.flow-fork i,
.flow-merge i { position: relative; }
.flow-fork i::after,
.flow-merge i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--flow-line);
}
.flow-fork i::after { top: 18px; bottom: 0; }

.flow-branch {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 26px auto;
}
.flow-node-branch {
  width: 100%;
  min-height: 72px;
  padding: 10px;
}
.flow-lane-link {
  position: relative;
  width: 1px;
  height: 26px;
  margin-inline: auto;
  background: var(--flow-line);
}
.flow-output {
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 8px 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 253, 248, .82);
  color: var(--text-soft);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.flow-merge i:not(:last-child)::before { top: 19px; }
.flow-merge::after {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--flow-line);
}
.flow-merge i::after { top: 0; height: 20px; }
.diagram-node,
.node-runtime,
.node-leaf {
  border-color: var(--border);
  background: rgba(255, 253, 248, .92);
  box-shadow: 0 9px 20px rgba(71, 57, 43, .07);
}
.diagram-node:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 25px rgba(71, 57, 43, .1);
}
.node-icon { background: rgba(54, 48, 42, .055); }
.node-cyan { color: var(--cyan); background: #f6f2ea; }
.node-violet { color: var(--violet-bright); background: #f6eee8; }
.node-green { color: var(--green); background: #f1f2ea; }
.node-blue { color: var(--blue); background: #eef0f1; }
.diagram-connector,
.diagram-connector.small,
.lane-arrow::before { background: rgba(var(--violet-rgb), .45); }
.diagram-split { border-color: rgba(var(--violet-rgb), .34); }
.diagram-split::before,
.diagram-split i { background: rgba(var(--violet-rgb), .34); }
.diagram-merge { border-color: rgba(104, 117, 138, .35); }
.diagram-merge::before,
.diagram-merge::after,
.diagram-merge i { background: rgba(104, 117, 138, .32); }

.setup-steps article { border-color: var(--border); }
.quickstart-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 24px;
}
.setup-steps {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: stretch;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.setup-steps article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 15px;
  padding: 24px;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}
.setup-steps article:last-child { border-right: 0; }
.setup-steps article > span { margin: 0; }
.terminal-card {
  grid-column: 1;
  grid-row: 2;
}
.quickstart-sidebar {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.provider-card {
  grid-column: auto;
  margin-top: 0;
}
.quickstart-sidebar .requirements-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}
.quickstart-sidebar .requirements-strip div {
  min-width: 0;
  justify-content: flex-start;
  padding: 15px 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.quickstart-sidebar .requirements-strip div:nth-child(2n) { border-right: 0; }
.quickstart-sidebar .requirements-strip div:nth-last-child(-n + 2) { border-bottom: 0; }
.provider-head { border-color: var(--border); }
.provider-logo { background: rgba(var(--cyan-rgb), .1); }
.provider-config code {
  background: rgba(54, 48, 42, .06);
  color: var(--cyan);
}
.terminal-card,
.json-window {
  border-color: rgba(255, 255, 255, .09);
  background: #292724;
  box-shadow: 0 22px 48px rgba(71, 57, 43, .15);
}
.terminal-titlebar,
.json-titlebar {
  border-color: rgba(255, 255, 255, .08);
  background: #34312d;
}
.terminal-titlebar strong,
.json-titlebar strong,
.json-titlebar em,
.terminal-card .copy-button { color: #a9a097; }
.terminal-card .copy-button { border-color: rgba(255, 255, 255, .12); }
.terminal-card .copy-button:hover { color: #f6efe5; border-color: rgba(255, 255, 255, .24); }
.terminal-card pre { color: #e0d9cf; }
.term-muted { color: #837b72; }
.term-prompt { color: #9aaf94; }
.term-string { color: #e0a68e; }
.terminal-result {
  border-color: rgba(255, 255, 255, .07);
  background: rgba(134, 154, 127, .07);
  color: #a6b49f;
}
.result-dot { box-shadow: none; }
.json-window { transform: none; }
.json-window pre { color: #d7d0c7; }
.json-key { color: #a9bbb1; }
.json-string { color: #dda38d; }
.json-number { color: #d4ad79; }
.json-bool { color: #a4b798; }

.roadmap-column-head > span,
.complete .roadmap-column-head > span,
.next .roadmap-column-head > span { box-shadow: none; }
.roadmap-card { border-color: rgba(54, 48, 42, .08); }
.roadmap-card > span { background: rgba(54, 48, 42, .045); }
.complete .roadmap-card > span { background: rgba(95, 118, 95, .08); }
.next .roadmap-card > span { background: rgba(var(--violet-rgb), .08); }

.cta-card {
  min-height: 370px;
  border-color: #34302b;
  background: #34302b;
  box-shadow: 0 26px 60px rgba(55, 46, 37, .18);
}
.cta-grid { display: none; }
.cta-copy h2 { color: #fffaf3; }
.cta-copy > p { color: #cfc6bc; }
.cta-copy .section-kicker { color: #e5a58d; }
.cta-card .button-primary {
  color: #2c2925;
  background: #fffaf3;
  box-shadow: none;
}
.cta-card .button-primary:hover { background: #f0e8dc; }
.cta-card .button-secondary {
  border-color: rgba(255, 250, 243, .28);
  background: transparent;
  color: #fffaf3;
}
.cta-card .button-secondary:hover { border-color: rgba(255, 250, 243, .5); background: rgba(255, 250, 243, .07); }

.site-footer { background: var(--bg-deep); }
.footer-bottom { color: var(--text-muted); }
.toast,
.back-to-top {
  border-color: var(--border-strong);
  background: #fffdf8;
  color: var(--text-soft);
  box-shadow: 0 14px 30px rgba(71, 57, 43, .12);
}
.back-to-top:hover { color: var(--text); border-color: rgba(var(--violet-rgb), .38); }

@media (max-width: 860px) {
  .site-nav {
    background: #faf7f0;
    box-shadow: 0 18px 40px rgba(71, 57, 43, .12);
  }
  .site-nav a:hover,
  .site-nav a.active { background: rgba(var(--violet-rgb), .07); }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(6.5px) rotate(45deg);
    opacity: 1;
  }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .feature-card,
  .feature-card:last-child {
    grid-template-columns: 36px 46px minmax(0, 1fr);
    gap: 16px;
  }
  .feature-detail {
    grid-column: 3;
    justify-self: start;
    margin-top: -4px;
  }
  .quickstart-grid { grid-template-columns: 1fr; }
  .setup-steps,
  .terminal-card,
  .quickstart-sidebar {
    grid-column: 1;
    grid-row: auto;
  }
  .quickstart-sidebar {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .section { padding-block: 76px; }
  .hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-visual::after { bottom: -2px; width: 280px; }
  .feature-card,
  .feature-card:last-child {
    grid-template-columns: 28px 42px minmax(0, 1fr);
    gap: 13px;
    padding: 25px 0;
  }
  .setup-steps { grid-template-columns: 1fr; }
  .setup-steps article {
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .setup-steps article:last-child { border-bottom: 0; }
  .quickstart-sidebar { grid-template-columns: 1fr; }
  .architecture-diagram { min-height: 0; }
  .architecture-flow { --flow-gap: 7px; }
  .architecture-flow-sequential .flow-node { width: min(100%, 250px); }
  .architecture-flow-sequential .flow-node-user { width: 205px; }
  .architecture-flow-sequential .flow-link { height: 15px; }
  .flow-node-user { width: 205px; }
  .flow-node-runtime,
  .flow-node-executor { width: 230px; }
  .flow-node-device { width: 225px; }
  .flow-node-branch {
    min-height: 82px;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .flow-node-branch .flow-icon { width: 25px; height: 25px; }
  .flow-node-branch small { display: none; }
  .flow-output { min-height: 46px; padding-inline: 3px; font-size: 7.5px; }
}

/* --------------------------------------------------------------------------
   Source guide landing section
   -------------------------------------------------------------------------- */

.source-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(560px, 1.22fr);
  align-items: start;
  gap: 80px;
}
.source-guide-copy {
  position: sticky;
  top: 128px;
}
.source-guide-copy h2 {
  margin: 14px 0 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", Georgia, serif;
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.source-guide-copy > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}
.source-guide-meta {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-block: 20px;
  border-block: 1px solid var(--border);
}
.source-guide-meta div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.source-guide-meta strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.source-guide-meta span {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.source-guide-button { margin-top: 28px; }
.source-guide-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-stage {
  position: relative;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, .68);
  box-shadow: 0 12px 30px rgba(71, 57, 43, .045);
}
.guide-stage-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.guide-stage-head > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(var(--violet-rgb), .08);
  color: var(--violet-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}
.guide-stage-head h3 { margin: 0; font-size: 15px; letter-spacing: -.02em; }
.guide-stage-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.guide-stage-links { display: grid; margin-top: 10px; }
.guide-stage-links a {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 26px 10px 0;
  border-bottom: 1px solid rgba(54, 48, 42, .075);
}
.guide-stage-links a:last-child { border-bottom: 0; }
.guide-stage-links a::after {
  content: "→";
  position: absolute;
  top: 13px;
  right: 2px;
  color: var(--text-muted);
  font-size: 12px;
  transition: color .2s ease, transform .2s var(--ease);
}
.guide-stage-links a:hover::after { color: var(--violet-bright); transform: translateX(3px); }
.guide-stage-links span { font-size: 12px; font-weight: 650; }
.guide-stage-links small { margin-top: 2px; overflow: hidden; color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Source guide reader
   -------------------------------------------------------------------------- */

.docs-page {
  background:
    linear-gradient(180deg, #f8f5ef 0, #f4f0e8 480px, #f8f5ef 100%);
}
.docs-header {
  background: rgba(248, 245, 238, .94);
  border-bottom-color: var(--border);
}
.docs-header .site-nav a.active { color: var(--violet-bright); }
.docs-header .nav-actions { gap: 7px; }
.docs-intro {
  padding: calc(var(--header-height) + 78px) 0 70px;
  border-bottom: 1px solid var(--border);
}
.docs-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 60px;
}
.docs-intro h1 {
  margin: 22px 0 20px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", Georgia, serif;
  font-size: clamp(48px, 6vw, 74px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.052em;
}
.docs-intro h1 span { color: var(--violet-bright); }
.docs-intro p { max-width: 750px; margin: 0; color: var(--text-soft); font-size: 17px; line-height: 1.8; }
.docs-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 30px;
  padding-bottom: 8px;
}
.docs-intro-stats div { display: flex; flex-direction: column; min-width: 72px; }
.docs-intro-stats strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.docs-intro-stats span { margin-top: 7px; color: var(--text-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.docs-workspace { padding: 64px 0 100px; }
.docs-layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr) 176px;
  align-items: start;
  gap: 34px;
}
.docs-sidebar-inner,
.docs-toc-inner {
  position: sticky;
  top: calc(var(--header-height) + 28px);
  max-height: calc(100vh - var(--header-height) - 52px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.docs-sidebar-title {
  display: flex;
  flex-direction: column;
  padding: 0 10px 18px;
  border-bottom: 1px solid var(--border);
}
.docs-sidebar-title span {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: 20px;
}
.docs-sidebar-title small { color: var(--text-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.docs-directory-group { display: grid; padding: 17px 0 5px; }
.docs-directory-group > span {
  padding: 0 10px 7px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.docs-directory-group a {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--text-soft);
  transition: color .18s ease, background .18s ease;
}
.docs-directory-group a:hover { color: var(--text); background: rgba(54, 48, 42, .04); }
.docs-directory-group a.active { color: var(--violet-bright); background: rgba(var(--violet-rgb), .075); }
.docs-directory-group i {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  font-style: normal;
}
.docs-directory-group b { font-size: 11px; font-weight: 620; line-height: 1.35; }
.docs-sidebar-github {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 13px 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 9px;
}
.docs-sidebar-github:hover { color: var(--violet-bright); }
.docs-directory-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.docs-directory-toggle svg { width: 17px; height: 17px; transition: transform .2s ease; }
.docs-directory-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.docs-article {
  min-width: 0;
  padding: 4px 4px 30px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.docs-article:focus { outline: 0; }
.docs-article > h1:first-child {
  margin-top: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.docs-article h1,
.docs-article h2,
.docs-article h3,
.docs-article h4 {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 24px);
  color: var(--text);
  line-height: 1.3;
}
.docs-article h1 {
  margin: 0 0 26px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", Georgia, serif;
  font-size: clamp(34px, 4vw, 46px);
  font-weight: 500;
  letter-spacing: -.04em;
}
.docs-article h2 {
  margin: 58px 0 18px;
  padding-top: 2px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.025em;
}
.docs-article h3 { margin: 34px 0 14px; font-size: 19px; letter-spacing: -.015em; }
.docs-article h4 { margin: 28px 0 12px; font-size: 16px; }
.docs-heading-anchor {
  position: absolute;
  left: -23px;
  padding-right: 8px;
  color: var(--violet-bright);
  font-family: ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: opacity .18s ease;
}
.docs-article h1:hover .docs-heading-anchor,
.docs-article h2:hover .docs-heading-anchor,
.docs-article h3:hover .docs-heading-anchor,
.docs-heading-anchor:focus-visible { opacity: .7; }
.docs-article p { margin: 0 0 18px; color: var(--text-soft); font-size: 15px; line-height: 1.85; }
.docs-article strong { color: var(--text); font-weight: 680; }
.docs-article a { color: var(--violet-bright); text-decoration: underline; text-decoration-color: rgba(var(--violet-rgb), .28); text-underline-offset: 3px; }
.docs-article a:hover { text-decoration-color: currentColor; }
.docs-article :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid rgba(54, 48, 42, .08);
  border-radius: 5px;
  background: #eee8df;
  color: #8f4937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  white-space: break-spaces;
}
.docs-article ul,
.docs-article ol { margin: 0 0 22px; padding-left: 25px; color: var(--text-soft); }
.docs-article li { margin: 7px 0; padding-left: 3px; font-size: 14px; line-height: 1.75; }
.docs-article li::marker { color: var(--violet-bright); font-size: .8em; }
.docs-article hr { height: 1px; margin: 42px 0; border: 0; background: var(--border); }
.docs-code {
  margin: 24px 0 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: #292724;
  box-shadow: 0 16px 34px rgba(71, 57, 43, .1);
}
.docs-code-toolbar {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: #34312d;
}
.docs-code-toolbar span { color: #9d958b; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; text-transform: uppercase; }
.docs-code-toolbar button {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 7px;
  background: transparent;
  color: #bcb3a8;
  cursor: pointer;
  font-size: 9px;
}
.docs-code-toolbar button:hover { border-color: rgba(255, 255, 255, .24); color: #fffaf3; }
.docs-code pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  color: #ded7ce;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
  tab-size: 2;
}
.docs-code code { font: inherit; white-space: pre; }
.docs-table-wrap {
  margin: 22px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 253, 248, .58);
}
.docs-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.55;
}
.docs-article th,
.docs-article td {
  min-width: 120px;
  padding: 11px 13px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.docs-article th:last-child,
.docs-article td:last-child { border-right: 0; }
.docs-article tr:last-child td { border-bottom: 0; }
.docs-article th { background: #eee8de; color: var(--text); font-weight: 680; }
.docs-article td { color: var(--text-soft); }
.docs-toc-inner { padding-left: 18px; border-left: 1px solid var(--border); }
.docs-toc-inner > span { display: block; margin-bottom: 12px; color: var(--text); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.docs-toc nav { display: grid; }
.docs-toc a {
  position: relative;
  padding: 5px 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.45;
  transition: color .18s ease;
}
.docs-toc a:hover,
.docs-toc a.active { color: var(--violet-bright); }
.docs-toc a.active::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -19px;
  width: 2px;
  height: 13px;
  background: var(--violet);
}
.docs-toc .toc-level-three { padding-left: 10px; }
.docs-loading,
.docs-error {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 253, 248, .5);
  text-align: center;
}
.docs-loading > span {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--violet);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.docs-loading p { margin: 14px 0 0; color: var(--text-muted); font-size: 12px; }
.docs-error h2 { margin-top: 0; }
.docs-error p { max-width: 520px; }
.docs-pager {
  width: min(calc(100% - 470px), 720px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 48px 210px 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.docs-pager-link {
  display: flex;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 253, 248, .55);
  transition: border-color .2s ease, background .2s ease;
}
.docs-pager-link:hover { border-color: var(--border-strong); background: var(--surface-solid); }
.docs-pager-link small { color: var(--text-muted); font-size: 9px; }
.docs-pager-link strong { margin-top: 4px; font-size: 12px; }
.docs-pager-next { align-items: flex-end; text-align: right; }
.docs-noscript {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  max-width: 430px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  color: var(--text-soft);
  font-size: 12px;
}
.docs-noscript a { color: var(--violet-bright); text-decoration: underline; }
.docs-footer { margin-top: 0; }

@media (max-width: 1180px) {
  .site-nav { gap: 20px; }
  .source-guide-grid { gap: 48px; }
}

@media (max-width: 1080px) {
  .source-guide-grid { grid-template-columns: 1fr; }
  .source-guide-copy { position: static; max-width: 760px; }
  .source-guide-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs-intro-grid { grid-template-columns: 1fr; gap: 36px; }
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .docs-toc { display: none; }
  .docs-pager { width: calc(100% - 254px); margin-right: 0; }
}

@media (max-width: 860px) {
  .source-guide-meta { max-width: 500px; }
  .docs-header .nav-actions { display: none; }
  .docs-intro { padding-top: calc(var(--header-height) + 58px); }
  .docs-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-directory-toggle { display: flex; }
  .docs-sidebar { display: none; margin-bottom: 28px; }
  .docs-sidebar.open { display: block; }
  .docs-sidebar-inner {
    position: static;
    max-height: none;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 253, 248, .72);
  }
  .docs-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
  .docs-directory-group:first-child { grid-column: 1 / -1; }
  .docs-sidebar-github { margin-top: 8px; }
  .docs-pager { width: 100%; margin-right: 0; }
}

@media (max-width: 640px) {
  .source-guide-map { grid-template-columns: 1fr; }
  .source-guide-meta { gap: 15px; }
  .source-guide-meta strong { font-size: 21px; }
  .guide-stage { padding: 21px; }
  .docs-intro { padding-bottom: 50px; }
  .docs-intro h1 { font-size: clamp(42px, 13vw, 58px); }
  .docs-intro p { font-size: 15px; }
  .docs-intro-stats { gap: 18px; }
  .docs-intro-stats strong { font-size: 25px; }
  .docs-workspace { padding-top: 38px; }
  .docs-directory { grid-template-columns: 1fr; }
  .docs-directory-group:first-child { grid-column: auto; }
  .docs-article { padding-inline: 0; }
  .docs-article h1 { font-size: 34px; }
  .docs-article h2 { margin-top: 46px; font-size: 25px; }
  .docs-heading-anchor { display: none; }
  .docs-code { margin-inline: -4px; border-radius: 11px; }
  .docs-code pre { padding: 17px; font-size: 10px; }
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-placeholder { display: none; }
  .docs-pager-next { align-items: flex-start; text-align: left; }
}
