/* ==========================================================================
   getret.app: tokens come straight from Ret's dark theme (src/renderer/styles/app.css)
   ========================================================================== */
:root {
  color-scheme: dark;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SF Mono", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #121212;
  --bg-3: #1b1b1b;
  --bg-4: #262626;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.135);
  --text: #ededed;
  --text-2: #a3a3a3;
  --text-3: #6e6e6e;
  --accent: #8b9cff;
  --accent-strong: #a3b0ff;
  --accent-soft: rgba(139, 156, 255, 0.13);
  --green: #3fd18f;
  --green-soft: rgba(63, 209, 143, 0.13);
  --amber: #f2b33d;
  --amber-soft: rgba(242, 179, 61, 0.14);
  --red: #f2616a;
  --red-soft: rgba(242, 97, 106, 0.13);
  --claude: #f0a98c;
  --claude-soft: rgba(217, 119, 87, 0.14);
  --navy: #062155;

  --wrap: 1160px;
  --gutter: 24px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
video,
svg {
  display: block;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
code,
kbd {
  font-family: var(--mono);
}
::selection {
  background: rgba(139, 156, 255, 0.3);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.i {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.i-fill {
  fill: currentColor;
  stroke: none;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.tint {
  background: linear-gradient(100deg, #b9c4ff 0%, #e4dbff 50%, #a9b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

kbd,
.kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78em;
  line-height: 1.35;
  padding: 0.12em 0.48em;
  border-radius: 0.38em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  background: var(--bg-3);
  color: var(--text-2);
  white-space: nowrap;
  vertical-align: 0.08em;
}

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 30px;
  height: 30px;
}
.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
  color: var(--text-2);
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-2);
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.gh-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.gh-link:hover {
  color: var(--text);
  background: var(--bg-2);
}
.gh-link .i {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.15s, border-color 0.15s, box-shadow 0.2s;
}
.btn:active {
  transform: translateY(1px) scale(0.99);
}
.btn .i {
  width: 18px;
  height: 18px;
}
.btn-primary {
  background: var(--text);
  color: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset, 0 10px 40px -12px rgba(139, 156, 255, 0.55);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3) inset, 0 12px 48px -10px rgba(139, 156, 255, 0.75);
}
.btn-ghost {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-3);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
}
.btn-sm .i {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 40px;
  isolation: isolate;
  overflow-x: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -64px 0 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1.2px, transparent 1.6px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero-glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 520px;
  width: min(1400px, 140vw);
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 156, 255, 0.2) 0%, rgba(139, 156, 255, 0.05) 40%, transparent 68%);
  pointer-events: none;
}
.hero-copy {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(18, 18, 18, 0.8);
  font-size: 13.5px;
  color: var(--text-2);
  transition: border-color 0.2s, color 0.2s;
}
.chip:hover {
  border-color: rgba(139, 156, 255, 0.45);
  color: var(--text);
}
.chip .tag {
  font-size: 12px;
  font-weight: 600;
  padding: 1px 9px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.chip .i {
  width: 14px;
  height: 14px;
  color: var(--text-3);
}
h1,
h2,
h3 {
  text-wrap: balance;
}
h1 {
  margin: 26px 0 0;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.lede {
  margin: 24px auto 0;
  max-width: 680px;
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  letter-spacing: -0.01em;
}
.lede strong {
  color: var(--text);
  font-weight: 500;
}
.cta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-meta {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
}
.cta-meta a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  transition: color 0.15s, border-color 0.15s;
}
.cta-meta a:hover {
  color: var(--text);
  border-color: var(--text-3);
}
.cta-meta .sep {
  color: var(--bg-4);
}
.launch-badges {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.launch-badges a {
  display: block;
  border-radius: 10px;
  transition: transform 0.15s var(--ease);
}
.launch-badges a:hover {
  transform: translateY(-2px);
}
.launch-badges img {
  display: block;
  height: 54px;
  width: auto;
}

.hero-stage {
  margin-top: 64px;
  perspective: 2400px;
}
.hero-stage .stage {
  transform-origin: 50% 0;
}

.works-with {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  font-size: 14px;
  color: var(--text-3);
}
.works-with .badge {
  font-size: 13px;
}

/* ==========================================================================
   Scaled mock stages
   A stage holds a fixed-size design (--w × --h) and scales it to its width.
   ========================================================================== */
.stage {
  --w: 1280;
  --h: 780;
  --s: 1;
  position: relative;
  width: 100%;
  aspect-ratio: var(--vw, var(--w)) / var(--h);
}
/* On phones the hero shows the left part of the window at a readable size, fading out to the right. */
.stage.cropped {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}
.stage > .scaled {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform: scale(var(--s));
  transform-origin: 0 0;
}

/* ==========================================================================
   Sections
   ========================================================================== */
section {
  position: relative;
}
.section {
  padding: 120px 0;
}
.section-head {
  max-width: 720px;
}
.section-head.center {
  margin: 0 auto;
  text-align: center;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.005em;
}
.label .i {
  width: 15px;
  height: 15px;
}
h2 {
  margin: 14px 0 0;
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}
h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.sub {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-2);
  letter-spacing: -0.005em;
}
.section-head.center .sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}
.sub code,
.card p code,
.faq code,
.ticks code,
.agent-card code {
  font-size: 0.86em;
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text);
  white-space: nowrap;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

.ticks {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.ticks li {
  position: relative;
  padding-left: 30px;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.55;
}
.ticks li strong {
  color: var(--text);
  font-weight: 500;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3b0ff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Two-column feature rows */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}
.split.flip {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
.split.flip > .split-copy {
  order: 2;
}
.demo-frame {
  position: relative;
  border-radius: 20px;
  padding: 22px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(139, 156, 255, 0.1), transparent 60%), var(--bg-1);
  border: 1px solid var(--line);
  overflow: hidden;
}
.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.075) 1px, transparent 1.4px);
  background-size: 24px 24px;
  pointer-events: none;
}
.demo-frame.has-bar {
  padding-top: 52px;
}
.demo-hint {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text-3);
  pointer-events: none;
}
.demo-hint .i {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ==========================================================================
   Modes
   ========================================================================== */
.modes-tabs {
  margin: 48px auto 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1000px;
}
.mode-tab {
  text-align: left;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mode-tab:hover {
  border-color: var(--line-2);
  background: var(--bg-2);
}
.mode-tab[aria-selected="true"] {
  border-color: rgba(139, 156, 255, 0.5);
  background: linear-gradient(180deg, rgba(139, 156, 255, 0.1), rgba(139, 156, 255, 0.02)), var(--bg-1);
  box-shadow: 0 0 0 3px rgba(139, 156, 255, 0.08);
}
.mode-tab .t {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: -0.01em;
}
.mode-tab .t .i {
  width: 17px;
  height: 17px;
  color: var(--text-2);
}
.mode-tab[aria-selected="true"] .t .i {
  color: var(--accent);
}
.mode-tab .t kbd {
  margin-left: auto;
  font-size: 11px;
}
.mode-tab .d {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-3);
}
.mode-tab[aria-selected="true"] .d {
  color: var(--text-2);
}

/* ==========================================================================
   Agents
   ========================================================================== */
.agent-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.agent-card {
  position: relative;
  padding: 30px 30px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
}
.agent-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 180px;
  background: radial-gradient(80% 100% at 20% 0%, var(--glow), transparent 70%);
  pointer-events: none;
}
.agent-card.codex {
  --glow: rgba(139, 156, 255, 0.14);
}
.agent-card.claude {
  --glow: rgba(217, 119, 87, 0.13);
}
.agent-card header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}
.agent-card header .badge {
  font-size: 14px;
  padding: 3px 12px;
}
.agent-card header span.how {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
}
.agent-card dl {
  position: relative;
  margin: 26px 0 0;
  display: grid;
  gap: 18px;
}
.agent-card dt {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.agent-card dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.shared {
  margin-top: 16px;
  padding: 22px 26px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.shared .lbl {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.shared ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.shared li {
  font-size: 13.5px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 7px;
}
.shared li .i {
  width: 13px;
  height: 13px;
  color: var(--green);
  stroke-width: 2.6;
}
.shared .note {
  flex-basis: 100%;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ==========================================================================
   Bento
   ========================================================================== */
.bento {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.card:hover {
  border-color: var(--line-2);
}
.card.span-2 {
  grid-column: span 2;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.card .art {
  position: relative;
  height: 170px;
  margin: -6px -6px 14px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.card .art.dots::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 18px 18px;
}

/* steer / queue / stop */
.keys-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 10px 26px;
  align-items: center;
  justify-content: center;
}
.key-combo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.key-combo .kk {
  display: flex;
  gap: 6px;
  font-size: 18px;
}
.key-combo .kk kbd {
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 9px;
  border-bottom-width: 3px;
  color: var(--text);
  background: var(--bg-2);
}
.key-combo span.what {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.key-combo.steer span.what {
  color: var(--accent);
}
.key-combo.queue span.what {
  color: var(--green);
}
.key-combo.stop span.what {
  color: var(--red);
}

/* plan */
.plan-art {
  position: relative;
  width: 78%;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  padding: 14px 16px;
  font-size: 12.5px;
  color: var(--text-2);
  display: grid;
  gap: 8px;
}
.plan-art .ph {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 13px;
}
.plan-art .ph .i {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.plan-art ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 3px;
}
.plan-art .go {
  justify-self: start;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 8px;
  background: var(--text);
  color: #000;
}

/* elsewhere */
.else-art {
  position: relative;
  width: 84%;
  display: grid;
  gap: 7px;
}
.else-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  font-size: 12.5px;
}
.else-row .n {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.else-row .w {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.spin {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.6px solid rgba(63, 209, 143, 0.25);
  border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
  flex: none;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* turn rail */
.rail-art {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: crosshair;
}
.rail {
  position: relative;
  display: flex;
  align-items: center;
  height: 70px;
}
.rail i {
  display: block;
  width: 3px;
  height: 18px;
  margin: 0 2.5px;
  border-radius: 3px;
  background: var(--text-3);
  transition: height 0.12s var(--ease), margin 0.12s var(--ease), background 0.12s;
}
.rail i.me {
  background: var(--accent);
}
.rail-tip {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.rail-tip b {
  color: var(--text);
  font-weight: 500;
}

/* sidebar intent */
.side-art {
  position: relative;
  width: 100%;
  height: 100%;
}
.side-art .panel {
  position: absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 44%;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: 12px;
  display: grid;
  align-content: start;
  gap: 8px;
  box-shadow: 0 20px 40px -10px #000;
  transform: translateX(-112%);
  animation: sidebar 5.2s var(--ease) infinite;
}
.side-art .panel i {
  display: block;
  height: 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.13);
}
.side-art .edge {
  position: absolute;
  left: 4px;
  top: 30%;
  bottom: 30%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.2;
  animation: edge 5.2s var(--ease) infinite;
}
.side-art .cursor {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 70%;
  top: 46%;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
  animation: throw 5.2s var(--ease) infinite;
}
.side-art .trail {
  position: absolute;
  left: 30%;
  top: 52%;
  width: 40%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(139, 156, 255, 0), rgba(139, 156, 255, 0.6));
  transform-origin: 100% 50%;
  opacity: 0;
  animation: trail 5.2s var(--ease) infinite;
}
@keyframes throw {
  0%,
  12% {
    left: 72%;
  }
  28%,
  70% {
    left: 32%;
  }
  86%,
  100% {
    left: 72%;
  }
}
@keyframes trail {
  0%,
  13% {
    opacity: 0;
    transform: scaleX(0.2);
  }
  20% {
    opacity: 1;
    transform: scaleX(1);
  }
  30%,
  100% {
    opacity: 0;
    transform: scaleX(0.2);
  }
}
@keyframes sidebar {
  0%,
  17% {
    transform: translateX(-112%);
  }
  27%,
  72% {
    transform: translateX(0);
  }
  84%,
  100% {
    transform: translateX(-112%);
  }
}
@keyframes edge {
  0%,
  10% {
    opacity: 0.15;
  }
  20% {
    opacity: 0.9;
  }
  30%,
  100% {
    opacity: 0.15;
  }
}

/* usage */
.usage-art {
  position: relative;
  width: 84%;
  display: grid;
  gap: 14px;
}
.meter {
  display: grid;
  gap: 6px;
}
.meter .top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-2);
}
.meter .top b {
  color: var(--text);
  font-weight: 500;
}
.meter .bar {
  height: 6px;
  border-radius: 6px;
  background: var(--bg-3);
  overflow: hidden;
}
.meter .bar i {
  display: block;
  height: 100%;
  width: var(--v);
  border-radius: 6px;
  background: var(--c, var(--accent));
}

/* size-aware */
.sizes-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 0 10px;
}
.sz {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.sz .w {
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sz .w .h {
  height: 14px;
  flex: none;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 6px;
  gap: 4px;
}
.sz .w .h b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.sz .w .h u {
  display: block;
  height: 4px;
  width: 40%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}
.sz .w .b {
  flex: 1;
  display: flex;
  gap: 6px;
  padding: 7px;
}
.sz .w .col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sz .w .col i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}
.sz .w .col .btns {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.sz .w .col .btns i {
  flex: 1;
  height: 7px;
  background: var(--amber-soft);
  border: 1px solid rgba(242, 179, 61, 0.4);
}
.sz .w .col .cmp {
  margin-top: auto;
  height: 9px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.sz .w .side {
  width: 30%;
  border-left: 1px solid var(--line);
  padding-left: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sz .w .side i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--accent-soft);
}
.sz span {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
}

/* ==========================================================================
   Speed
   ========================================================================== */
.speed {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
}
.speed > div {
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}
.speed > div:first-child {
  border-left: 0;
}
.speed .i {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-bottom: 16px;
}
.speed h3 {
  font-size: 16px;
}
.speed p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ==========================================================================
   Keys
   ========================================================================== */
.keys {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 56px;
}
.keys div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--text-2);
}
.keys div span:last-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  flex: none;
}
.keys kbd {
  font-size: 12.5px;
  color: var(--text);
}

/* ==========================================================================
   Tour video
   ========================================================================== */
.tour {
  margin-top: 48px;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 1), 0 0 120px -30px rgba(139, 156, 255, 0.25);
}
.tour video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tour .play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 clamp(16px, 3.2vw, 32px) clamp(16px, 3.2vw, 32px);
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.35));
  transition: background 0.3s;
}
.tour .play span {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s var(--ease), background 0.2s;
}
.tour .play:hover span {
  background: #fff;
  transform: scale(1.04);
}
.tour .play .i {
  width: 22px;
  height: 22px;
}
.tour.playing .play {
  display: none;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  margin: 48px auto 0;
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .i {
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary .i {
  transform: rotate(180deg);
}
.faq details p {
  margin: -6px 4px 22px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 700px;
}
.faq details p a {
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
}
.faq details p a:hover {
  border-color: var(--accent);
}

/* ==========================================================================
   Download
   ========================================================================== */
.download {
  padding: 140px 0 120px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.download::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(139, 156, 255, 0.17), transparent 65%);
}
.mascot-wrap {
  width: 168px;
  height: 168px;
  margin: 0 auto 30px;
  border-radius: 40px;
  background: linear-gradient(180deg, #ffffff 0%, #eef0f6 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 0 90px -10px rgba(139, 156, 255, 0.45);
}
.mascot {
  width: 132px;
  height: 132px;
  overflow: visible;
}
.mascot .ant-l {
  transform-origin: 600px 300px;
  animation: ant-l 2.6s ease-in-out infinite;
}
.mascot .ant-r {
  transform-origin: 650px 300px;
  animation: ant-r 2.6s ease-in-out infinite;
}
@keyframes ant-l {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(5deg);
  }
}
@keyframes ant-r {
  0%,
  100% {
    transform: rotate(4deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}
.mascot .eye {
  transform-box: view-box;
  transform-origin: 0 640px;
  transition: transform 0.06s linear;
}
.mascot.blink .eye {
  transform: scaleY(0.08);
}
.mascot .pupil {
  transition: transform 0.18s var(--ease);
}
.dl-cards {
  margin: 44px auto 0;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
.dl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 20px 18px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.dl-card:hover {
  border-color: rgba(139, 156, 255, 0.5);
  background: var(--bg-2);
  transform: translateY(-2px);
}
.dl-card.mine {
  border-color: rgba(139, 156, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(139, 156, 255, 0.09);
}
.dl-card .os {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dl-card .what {
  font-size: 13.5px;
  color: var(--text-3);
}
.dl-card > .i {
  position: absolute;
  right: 18px;
  top: 20px;
  width: 18px;
  height: 18px;
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s var(--ease);
}
.dl-card:hover > .i {
  color: var(--accent);
  transform: translateY(2px);
}
.dl-card .mine-tag {
  display: none;
  position: absolute;
  right: 44px;
  top: 19px;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 99px;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.dl-card.mine .mine-tag {
  display: block;
}
.dl-card.wide {
  grid-column: 1 / -1;
}
.dl-card.wide .os {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dl-card .i-os {
  width: 17px;
  height: 17px;
  color: var(--text-2);
}
.dl-card .beta {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 99px;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.dl-card.wide:hover > .i {
  transform: translateX(2px);
}
.dl-foot {
  margin: 22px auto 0;
  max-width: 760px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-3);
}
.dl-foot a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
}
.dl-foot a:hover {
  color: var(--text);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  font-size: 13.5px;
  color: var(--text-3);
}
footer .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 28px;
}
footer .brand {
  font-size: 15px;
  color: var(--text);
}
footer .brand img {
  width: 24px;
  height: 24px;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a {
  color: var(--text-2);
}
footer nav a:hover {
  color: var(--text);
}
footer .fine {
  margin-left: auto;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   App mock (.m-*): a static redraw of Ret's UI
   ========================================================================== */
.m {
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
  -webkit-user-select: none;
  user-select: none;
}
.m .i {
  width: 14px;
  height: 14px;
  stroke-width: 1.9;
}
.m-app {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 60px 140px -30px #000, 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 160px -30px rgba(139, 156, 255, 0.22);
}
.m-bar {
  height: 48px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.m-bar > .i {
  width: 17px;
  height: 17px;
  color: var(--text-2);
}
.m-bar .wordmark {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.m-modes {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.m-modes > * {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: background 0.2s, color 0.2s;
}
button.m-mode:hover {
  color: var(--text-2);
}
.m-modes .on {
  color: var(--text);
  background: var(--bg-4);
}
.m-count {
  font-size: 10.5px;
  font-weight: 700;
  color: #000;
  background: var(--amber);
  border-radius: 99px;
  padding: 0 6px;
  line-height: 16px;
}
.m-search {
  flex: 0 1 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 11px;
  border-radius: 9px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 13px;
}
.m-search .k {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}
.m-search .k .i {
  width: 11px;
  height: 11px;
}
.m-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 99px;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.m-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 9px;
  background: currentColor;
}
.m-pill.amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.m-pill.green {
  color: var(--green);
  background: var(--green-soft);
}
.m-body {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.m-dotgrid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.085) 1.2px, transparent 1.5px);
  background-size: 26px 26px;
}

/* status dot */
.dot {
  --c: var(--text-3);
  position: relative;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--c);
  transition: background 0.3s;
}
.dot.running {
  --c: var(--green);
}
.dot.attention {
  --c: var(--amber);
}
.dot.error {
  --c: var(--red);
}
.dot.unread {
  --c: var(--accent);
}
.dot.idle {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--text-3);
}
.dot.elsewhere {
  --c: var(--green);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--c);
}
.dot.running::after,
.dot.attention::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--c);
  animation: ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.badge.claude {
  color: var(--claude);
  background: var(--claude-soft);
}
.badge.wt {
  color: var(--text-2);
  background: var(--bg-3);
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.badge.wt .i {
  width: 11px;
  height: 11px;
}

/* thread window */
.m-win {
  position: absolute;
  border-radius: 12px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px #000, 0 8px 20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.m-win.sel {
  border-color: rgba(139, 156, 255, 0.55);
  box-shadow: 0 30px 70px -20px #000, 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(139, 156, 255, 0.15);
}
.m-win.ask {
  border-color: rgba(242, 179, 61, 0.45);
}
.m-head {
  height: 38px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.m-head .title {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-head .proj {
  font-size: 12px;
  color: var(--text-3);
  white-space: nowrap;
}
.m-head .sp {
  flex: 1;
}
.m-head > .i {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}
.m-head > .i.fork {
  color: var(--accent);
  width: 14px;
  height: 14px;
}
.m-tx {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  overflow: hidden;
}
.m-tx.bottom {
  justify-content: flex-end;
}
.m-user {
  align-self: flex-end;
  max-width: 84%;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 7px 12px;
  font-size: 13.5px;
  line-height: 1.45;
}
.m-text {
  font-size: 13.5px;
  line-height: 1.55;
}
.m-text.typing::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 2px;
  vertical-align: -1px;
  border-radius: 2px;
  background: var(--text-2);
  animation: caret 1s steps(2) infinite;
}
@keyframes caret {
  50% {
    opacity: 0;
  }
}
.m-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  min-width: 0;
}
.m-step > .i {
  width: 14px;
  height: 14px;
  color: var(--text-3);
  stroke-width: 1.8;
}
.m-step > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-step .ok {
  width: 13px;
  height: 13px;
  color: var(--green);
  stroke-width: 2.6;
}
.m-step .no {
  width: 13px;
  height: 13px;
  color: var(--red);
  stroke-width: 2.6;
}
.m-step code,
.m-text code,
.m-q code,
.m-card code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--bg-3);
  color: var(--text);
}
.add {
  color: var(--green);
  font-family: var(--mono);
  font-size: 11.5px;
}
.del {
  color: var(--red);
  font-family: var(--mono);
  font-size: 11.5px;
}
.m-lines {
  display: grid;
  gap: 8px;
}
.m-lines i {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
}

/* approval card */
.m-card {
  border-radius: 12px;
  border: 1px solid rgba(242, 179, 61, 0.38);
  background: linear-gradient(180deg, rgba(242, 179, 61, 0.09), rgba(242, 179, 61, 0.03));
  padding: 11px 12px 12px;
  display: grid;
  gap: 9px;
}
.m-card .ct {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--amber);
}
.m-card .ct .i {
  width: 14px;
  height: 14px;
}
.m-card pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text);
  white-space: pre-wrap;
}
.m-card pre::before {
  content: "$ ";
  color: var(--text-3);
}
.m-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.m-btn {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.m-btn.primary {
  background: var(--text);
  color: #000;
  border-color: transparent;
}
button.m-btn:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--bg-4);
}
button.m-btn.primary:hover {
  background: #fff;
}
.m-btn.pressed {
  transform: scale(0.94);
  box-shadow: 0 0 0 3px rgba(139, 156, 255, 0.35);
}
.m-btn.ghost {
  background: transparent;
  color: var(--text-2);
}

/* question dock */
.m-q {
  border-radius: 13px;
  border: 1px solid rgba(139, 156, 255, 0.4);
  background: linear-gradient(180deg, rgba(139, 156, 255, 0.09), rgba(139, 156, 255, 0.02)), var(--bg-1);
  padding: 12px;
  display: grid;
  gap: 9px;
}
.m-q .qt {
  font-size: 13.5px;
  font-weight: 600;
}
.m-q .qs {
  font-size: 12px;
  color: var(--text-3);
  margin-top: -6px;
}
.m-opts {
  display: grid;
  gap: 5px;
}
.m-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.m-opt .n {
  width: 19px;
  height: 19px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  color: var(--text-2);
  background: var(--bg-3);
}
.m-opt small {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11.5px;
}
.m-opt:hover,
.m-opt.hl {
  border-color: rgba(139, 156, 255, 0.5);
  background: rgba(139, 156, 255, 0.08);
}
.m-opt.hl .n {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(139, 156, 255, 0.25);
}
.m-q .qf {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  color: var(--text-3);
}
.m-q .qf kbd {
  font-size: 10px;
}
.m-q .qf .sk {
  margin-left: auto;
}

/* composer */
.m-composer {
  flex: none;
  margin: 0 12px 12px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  border-radius: 13px;
  padding: 9px 10px 8px 12px;
  display: grid;
  gap: 8px;
}
.m-composer .ph {
  font-size: 13px;
  color: var(--text-3);
  min-height: 19px;
}
.m-composer .row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}
.m-composer .row .plan {
  padding: 1px 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
}
.m-composer .row .sp {
  flex: 1;
}
.m-composer .send {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--bg-4);
  display: grid;
  place-items: center;
  color: var(--text-3);
}
.m-composer .send .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.4;
}

/* fade-in for appended transcript items */
.m-new {
  animation: m-in 0.45s var(--ease) both;
}
@keyframes m-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.m-out {
  animation: m-out 0.3s var(--ease) both;
}
@keyframes m-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* fake cursor */
.m-cursor {
  position: absolute;
  z-index: 40;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
}
.m-cursor.on {
  opacity: 1;
}
.m-cursor .ring {
  position: absolute;
  left: -20px;
  top: -20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
.m-cursor.click .ring {
  animation: ring 0.6s var(--ease);
}
@keyframes ring {
  from {
    opacity: 1;
    transform: scale(0.3);
  }
  to {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* canvas extras */
.m-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.m-links path {
  fill: none;
  stroke: rgba(139, 156, 255, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 5 5;
  animation: dash 1.2s linear infinite;
}
@keyframes dash {
  to {
    stroke-dashoffset: -10;
  }
}
.m-forkbadge {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-2);
  border: 1px solid rgba(139, 156, 255, 0.6);
  color: var(--accent);
  box-shadow: 0 0 0 4px #000, 0 0 20px rgba(139, 156, 255, 0.35);
  transform: translate(-50%, -50%);
}
.m-forkbadge .i {
  width: 13px;
  height: 13px;
}
.m-beacon {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber);
  background: rgba(30, 22, 6, 0.92);
  border: 1px solid rgba(242, 179, 61, 0.45);
  box-shadow: 0 10px 30px -6px #000;
  white-space: nowrap;
}
.m-beacon .i {
  width: 13px;
  height: 13px;
}
.m-minimap {
  position: absolute;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 14px 30px -8px #000;
  overflow: hidden;
}
.m-minimap i {
  position: absolute;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.3s;
}
.m-minimap i.running {
  background: rgba(63, 209, 143, 0.32);
}
.m-minimap i.attention {
  background: rgba(242, 179, 61, 0.5);
}
.m-minimap i.unread {
  background: rgba(139, 156, 255, 0.38);
}
.m-minimap i.error {
  background: rgba(242, 97, 106, 0.6);
}
.m-minimap b {
  position: absolute;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 3px;
}
.m-zoom {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 10, 0.92);
  font-size: 12px;
  color: var(--text-2);
}
.m-zoom span {
  padding: 2px 8px;
  border-radius: 7px;
}
.m-zoom span.v {
  color: var(--text);
  font-family: var(--mono);
  font-size: 11.5px;
}

/* glance summary cards (zoomed-out canvas) */
.m-glance {
  position: absolute;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 20px 50px -18px #000;
}
.m-glance .gt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.m-glance .gt .dot {
  width: 12px;
  height: 12px;
}
.m-glance .gm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
}
.m-glance .gl {
  font-size: 14.5px;
  color: var(--text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-glance .st {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 99px;
}
.st.amber {
  color: var(--amber);
  background: var(--amber-soft);
}
.st.green {
  color: var(--green);
  background: var(--green-soft);
}
.st.accent {
  color: var(--accent-strong);
  background: var(--accent-soft);
}
.st.red {
  color: var(--red);
  background: var(--red-soft);
}

/* sidebar */
.m-side {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 248px;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
  padding: 10px 8px;
  gap: 2px;
  font-size: 13px;
}
.m-side .sh {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.m-side .sh .i {
  width: 13px;
  height: 13px;
}
.m-row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  color: var(--text-2);
  white-space: nowrap;
}
.m-row > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-row .i {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}
.m-row.on {
  background: var(--bg-3);
  color: var(--text);
}
.m-row .dot {
  width: 7px;
  height: 7px;
}
.m-row .dot::after {
  inset: -3px;
}
.m-row .t {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-3);
}
.m-row.d1 {
  padding-left: 22px;
}
.m-row.d2 {
  padding-left: 38px;
}
.m-row.folder {
  color: var(--text);
  font-weight: 500;
}
.m-side .agents {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 10px 8px 2px;
  display: grid;
  gap: 8px;
}
.m-side .agents .a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-2);
}
.m-side .agents .a .bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--bg-3);
  overflow: hidden;
}
.m-side .agents .a .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
}

/* focus tabs */
.m-tabs {
  height: 38px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.m-tab {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 9px 9px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  max-width: 300px;
  white-space: nowrap;
}
.m-tab > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-tab.on {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-bottom-color: var(--bg);
  margin-bottom: -1px;
}
.m-tab .dot {
  width: 7px;
  height: 7px;
}
.m-tab .dot::after {
  inset: -3px;
}
.m-tab .i {
  width: 12px;
  height: 12px;
  color: var(--text-3);
}
.m-tab .i.fork {
  color: var(--accent);
}

/* panes */
.m-pane {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.m-pane .ph {
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.m-pane .ph .title {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.m-pane .ph .proj {
  font-size: 12px;
  color: var(--text-3);
}
.m-pane .ph .sp {
  flex: 1;
}
.m-pane .m-tx {
  padding: 18px 22px;
  gap: 13px;
}
.m-vsplit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.m-vsplit .m-forkbadge {
  top: 50%;
  left: 0;
}

/* code view */
.m-tree {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 232px;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  padding: 10px 8px;
  font-size: 12.5px;
}
.m-tree .m-row {
  height: 25px;
}
.m-tree .m-row .mk {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.mk.A {
  color: var(--green);
}
.mk.M {
  color: var(--amber);
}
.mk.D {
  color: var(--red);
}
.m-row .chg {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  margin-left: auto;
}
.m-editor {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.m-etabs {
  height: 36px;
  flex: none;
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.m-etab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--text-3);
  border-right: 1px solid var(--line);
}
.m-etab.on {
  color: var(--text);
  background: var(--bg);
  box-shadow: inset 0 2px 0 var(--accent);
}
.m-etab .i {
  width: 13px;
  height: 13px;
  color: #6cb6ff;
}
.m-crumbs {
  height: 26px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 11.5px;
  color: var(--text-3);
}
.m-crumbs .i {
  width: 11px;
  height: 11px;
}
.m-code {
  flex: 1;
  margin: 0;
  padding: 2px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 20px;
  color: #d4d4d4;
  counter-reset: ln;
  overflow: hidden;
}
.m-code > span {
  display: block;
  padding-left: 62px;
  position: relative;
  white-space: pre;
}
.m-code > span::before {
  counter-increment: ln;
  content: counter(ln);
  position: absolute;
  left: 0;
  width: 40px;
  text-align: right;
  color: #4b4b4b;
}
.m-code > span.chg {
  background: rgba(63, 209, 143, 0.07);
}
.m-code > span.chg::after {
  content: "";
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(63, 209, 143, 0.65);
}
.m-code > span.flash {
  animation: flash 2.4s var(--ease) infinite;
}
@keyframes flash {
  0%,
  45% {
    background: rgba(63, 209, 143, 0.07);
  }
  55% {
    background: rgba(63, 209, 143, 0.32);
  }
  100% {
    background: rgba(63, 209, 143, 0.07);
  }
}
.tk-k {
  color: #c586c0;
}
.tk-d {
  color: #569cd6;
}
.tk-f {
  color: #dcdcaa;
}
.tk-t {
  color: #4ec9b0;
}
.tk-s {
  color: #ce9178;
}
.tk-n {
  color: #b5cea8;
}
.tk-v {
  color: #9cdcfe;
}
.tk-c {
  color: #6a9955;
}
.tk-p {
  color: #808080;
}

/* inbox */
.m-inbox {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  display: flex;
  flex-direction: column;
}
.m-inbox .ih {
  height: 46px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
}
.m-inbox .ih .k {
  margin-left: auto;
  display: flex;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--text-3);
}
.m-inbox .grp {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 6px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.m-inbox .grp span.c {
  color: var(--text-3);
  font-weight: 500;
}
.m-irow {
  margin: 0 8px;
  padding: 9px 12px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 10px;
  align-items: center;
  border: 1px solid transparent;
}
.m-irow .dot {
  width: 8px;
  height: 8px;
}
.m-irow .n {
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-irow .p {
  font-size: 11.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.m-irow .l {
  grid-column: 2 / 4;
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-irow.on {
  background: var(--bg-3);
  border-color: var(--line-2);
}
.m-irow.read {
  opacity: 0.5;
}

/* fork demo */
.m-turn {
  position: relative;
  border-radius: 12px;
  padding: 10px 12px;
  margin: -10px -12px;
  border: 1px solid transparent;
  display: grid;
  gap: 9px;
}
.m-turn.hover {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}
.m-turn-actions {
  position: absolute;
  right: 10px;
  top: -14px;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: 0 8px 20px -6px #000;
}
.m-turn-actions span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.m-turn-actions span.hot {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.m-turn-actions .i {
  width: 13px;
  height: 13px;
}
.m-sel {
  background: rgba(139, 156, 255, 0.3);
  border-radius: 2px;
}
.m-menu {
  position: absolute;
  min-width: 200px;
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  box-shadow: 0 20px 40px -10px #000, 0 4px 12px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  display: grid;
}
.m-menu span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--text-2);
}
.m-menu span.hot {
  background: var(--bg-4);
  color: var(--text);
}
.m-menu span .i {
  width: 14px;
  height: 14px;
}
.m-menu span kbd {
  margin-left: auto;
  font-size: 10px;
}
.m-menu hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 4px 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .split,
  .split.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }
  .split.flip > .split-copy {
    order: 0;
  }
  .split-copy {
    max-width: 640px;
  }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .speed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .speed > div:nth-child(3) {
    border-left: 0;
  }
  .speed > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding: 88px 0;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-stage {
    margin-top: 48px;
  }
  .hero-stage .stage {
    --vw: 720;
  }
  /* Interactive mocks render at real size on phones instead of shrinking. */
  .stage.fluid {
    aspect-ratio: auto;
  }
  .stage.fluid > .scaled {
    position: relative;
    width: auto;
    height: auto;
    transform: none;
  }
  .stage.fluid .m-win {
    width: 100% !important;
    height: 540px !important;
  }
  .modes-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-tab .d {
    display: none;
  }
  .agent-grid,
  .keys,
  .dl-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .card.span-2 {
    grid-column: auto;
  }
  .speed {
    grid-template-columns: minmax(0, 1fr);
  }
  .speed > div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .speed > div:first-child {
    border-top: 0;
  }
  .demo-frame {
    padding: 12px;
    border-radius: 16px;
  }
  .demo-frame.has-bar {
    padding-top: 48px;
  }
  .demo-hint {
    left: 16px;
    top: 15px;
  }
  .replay {
    right: 12px;
    top: 9px;
  }
  .keys-art {
    gap: 10px 14px;
  }
  .key-combo .kk kbd {
    font-size: 13px;
    padding: 5px 9px;
  }
  .gh-link span {
    display: none;
  }
  footer .fine {
    margin-left: 0;
    flex-basis: 100%;
  }
  .tour .play span {
    padding: 10px 18px 10px 14px;
    font-size: 14px;
  }
  .agent-card {
    padding: 24px 22px 22px;
  }
}
@media (max-width: 420px) {
  .nav .btn-sm span {
    display: none;
  }
  .nav .btn-sm {
    padding: 0 10px;
  }
}

/* ==========================================================================
   Live demo (the real renderer in an iframe) and its gate
   ========================================================================== */
.live {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: calc(16px * var(--s));
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  box-shadow: 0 60px 140px -30px #000, 0 0 0 1px var(--line-2), 0 0 160px -30px rgba(139, 156, 255, 0.22);
}
.live.ready {
  opacity: 1;
}
.live:not(.ready) {
  pointer-events: none;
}
.live iframe {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  border: 0;
  background: #000;
  transform: scale(var(--s));
  transform-origin: 0 0;
  pointer-events: none;
}
.live.active iframe {
  pointer-events: auto;
}
.live-gate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
  cursor: pointer;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.45));
  transition: background 0.3s;
}
.live-gate:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.55));
}
.live-gate .pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  background: rgba(237, 237, 237, 0.94);
  color: #000;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.live-gate:hover .pill {
  background: #fff;
  transform: translateY(-2px);
}
.live-gate .pill .i {
  width: 16px;
  height: 16px;
}
.live.active .live-gate {
  display: none;
}
.live-exit {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(18, 18, 18, 0.92);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -8px #000;
  transition: color 0.15s, background 0.15s;
}
.live-exit:hover {
  color: var(--text);
  background: var(--bg-3);
}
.live-exit kbd {
  font-size: 10.5px;
}
.live-host .scaled {
  transition: opacity 0.6s var(--ease);
}
.live-host.has-live .scaled {
  opacity: 0;
  pointer-events: none;
}
.hero-note {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
}

/* ==========================================================================
   Mode cards and their schematic thumbnails
   ========================================================================== */
.modes {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.mode {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  padding: 14px 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s;
}
.mode:hover {
  border-color: var(--line-2);
}
.mode h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px 0;
}
.mode h3 .i {
  width: 17px;
  height: 17px;
  color: var(--accent);
}
.mode h3 kbd {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
}
.mode p {
  margin: 0;
  padding: 0 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.mode p kbd {
  font-size: 11px;
}
.try {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  margin: auto 8px 0;
  padding-top: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s, gap 0.2s var(--ease);
}
.try .i {
  width: 14px;
  height: 14px;
  transform: rotate(-90deg);
}
.try:hover {
  color: var(--accent-strong);
  gap: 10px;
}
.has-live .try {
  display: inline-flex;
}
.modes-foot {
  margin: 28px 0 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--text-3);
}

.mini {
  position: relative;
  height: 150px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  margin-bottom: 8px;
}
.mini u,
.mini b {
  display: block;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}
.mini b {
  width: 46%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}
.mini u.s {
  width: 62%;
}
.mini s {
  display: block;
  margin-top: auto;
  height: 14px;
  border-radius: 5px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.mini-focus {
  display: flex;
  flex-direction: column;
}
.mini-focus .mt {
  height: 22px;
  flex: none;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.mini-focus .mt i {
  width: 52px;
  height: 15px;
  border-radius: 5px 5px 0 0;
}
.mini-focus .mt i.on {
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 0;
  margin-bottom: -1px;
}
.mini-focus .mp {
  flex: 1;
  display: flex;
  position: relative;
}
.mini-focus .mp > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}
.mini-focus .mp > div u:first-of-type {
  width: 70%;
  align-self: flex-end;
}
.mini-focus .mp em {
  position: relative;
  width: 1px;
  background: var(--line-2);
}
.mini-focus .mp em .i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  padding: 3px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: var(--accent);
  background: var(--bg-2);
  border: 1px solid rgba(139, 156, 255, 0.6);
  box-shadow: 0 0 0 3px #000;
}
.mini-canvas {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.09) 1px, transparent 1.3px);
  background-size: 12px 12px;
}
.mini-canvas > i {
  position: absolute;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  box-shadow: 0 8px 16px -6px #000;
  overflow: hidden;
}
.mini-canvas > i::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 11px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.mini-canvas > i b {
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 5px;
  margin: 0;
  border-radius: 50%;
}
.mini-canvas b.g {
  background: var(--green);
}
.mini-canvas b.a {
  background: var(--amber);
}
.mini-canvas b.u {
  background: var(--accent);
}
.mini-canvas svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mini-canvas svg path {
  fill: none;
  stroke: rgba(139, 156, 255, 0.7);
  stroke-width: 1.2;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}
.mini-canvas .mm {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 38px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
}
.mini-canvas .bc {
  position: absolute;
  right: 0;
  top: 40%;
  width: 14px;
  height: 14px;
  border-radius: 7px 0 0 7px;
  background: var(--amber);
  box-shadow: 0 0 12px rgba(242, 179, 61, 0.6);
}
.mini-code {
  display: flex;
}
.mini-code .tr {
  width: 26%;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  padding: 10px 7px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mini-code .tr u.d1 {
  margin-left: 7px;
  position: relative;
}
.mini-code .tr u.m::after,
.mini-code .tr u.a::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -1px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
}
.mini-code .tr u.m::after {
  background: var(--amber);
}
.mini-code .tr u.a::after {
  background: var(--green);
}
.mini-code .ed {
  flex: 1;
  padding: 12px 10px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mini-code .ed u {
  background: rgba(156, 220, 254, 0.18);
}
.mini-code .ed u.chg {
  box-shadow: -8px 0 0 -2px rgba(63, 209, 143, 0.7);
  background: rgba(63, 209, 143, 0.32);
}
.mini-code .th {
  width: 30%;
  border-left: 1px solid var(--line);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-inbox {
  display: flex;
}
.mini-inbox .ls {
  width: 48%;
  border-right: 1px solid var(--line);
  background: var(--bg-1);
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mini-inbox .ls span {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
}
.mini-inbox .ls span b {
  width: 6px;
  height: 6px;
  margin: 0;
  border-radius: 50%;
  flex: none;
}
.mini-inbox .ls span u {
  flex: 1;
}
.mini-inbox .ls span.on {
  background: var(--bg-3);
}
.mini-inbox .ls .a b {
  background: var(--amber);
}
.mini-inbox .ls .u b {
  background: var(--accent);
}
.mini-inbox .ls .r b {
  background: var(--red);
}
.mini-inbox .ls .g b {
  background: var(--green);
}
.mini-inbox .th {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-inbox .th em {
  display: block;
  height: 26px;
  border-radius: 5px;
  border: 1px solid rgba(242, 179, 61, 0.45);
  background: var(--amber-soft);
}

/* approvals demo */
.replay {
  position: absolute;
  z-index: 2;
  right: 18px;
  top: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 30px -8px #000;
}
.replay[hidden] {
  display: none;
}
.replay:hover {
  background: var(--bg-4);
}
.replay .i {
  width: 14px;
  height: 14px;
}

@media (max-width: 1020px) {
  .modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
}

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