/* ================= Hero ================= */

.hero { padding: clamp(48px, 7vw, 96px) 0 0; position: relative; }

.hero .wrap { position: relative; }

.hero-title {
  font-size: clamp(36px, 5.2vw, 70px);
  line-height: 1.05;
  max-width: 12em;
  text-wrap: balance;
}

.caret {
  display: inline-block;
  width: 0.52em; height: 0.86em;
  margin-left: 0.08em;
  vertical-align: -0.07em;
  background: var(--accent);
  border-radius: 0;
  animation: blink 1.1s steps(1) infinite;
  transition: background-color var(--theme-ease);
}
@keyframes blink { 50% { opacity: 0; } }

.hero .lede { margin: 28px 0 0; }

.hero-cta {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px 22px;
  margin-top: 36px;
}
.hero-meta { margin: 0; color: var(--text-3); font-size: 15px; max-width: 30em; line-height: 1.45; }

/* ---------- The floating icon ----------
   The app icon's own layers in CSS 3D: a squircle slab (a stack of edge
   layers for thickness), the face, then the ">" and the burst floating
   above it at different depths, so they shift against each other as it
   turns. */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.icon3d {
  --s: clamp(220px, 24vw, 320px);
  --depth: calc(var(--s) * 0.085);
  position: relative;
  width: calc(var(--s) * 1.25);
  height: calc(var(--s) * 1.35);
  display: grid; place-items: center;
  perspective: calc(var(--s) * 3.4);
  pointer-events: none;
}

.i3-aura {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #F07890, #F0A070, #E8D47C, #7CE0A8, #70D4E8, #7CA4F0, #B48CF0, #F078C8, #F07890);
  filter: blur(calc(var(--s) * 0.22));
  opacity: 0.28;
  animation: aura 18s linear infinite;
}
@keyframes aura { to { transform: rotate(360deg); } }

.i3-shadow {
  position: absolute; left: 50%; bottom: 2%;
  width: calc(var(--s) * 0.8); height: calc(var(--s) * 0.12);
  margin-left: calc(var(--s) * -0.4);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent);
  animation: shadow 7s ease-in-out infinite alternate;
}
@keyframes shadow { to { transform: scale(0.78); opacity: 0.6; } }

.i3-float { transform-style: preserve-3d; animation: float 7s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(calc(var(--s) * 0.03)); } to { transform: translateY(calc(var(--s) * -0.06)); } }

.i3-spin { transform-style: preserve-3d; animation: tumble 16s ease-in-out infinite; }
@keyframes tumble {
  0%, 100% { transform: rotateX(10deg) rotateY(-24deg) rotateZ(-4deg); }
  25% { transform: rotateX(-7deg) rotateY(-8deg) rotateZ(3deg); }
  50% { transform: rotateX(5deg) rotateY(20deg) rotateZ(5deg); }
  75% { transform: rotateX(15deg) rotateY(4deg) rotateZ(-3deg); }
}

.i3-obj {
  position: relative;
  width: var(--s); height: var(--s);
  transform-style: preserve-3d;
}
.i3-obj > * { position: absolute; inset: 0; border-radius: 22.4%; }

.i3-edge {
  transform: translateZ(calc(var(--depth) * var(--i) / -14));
  background: linear-gradient(160deg, #2A3260, #0B0E1C 70%);
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.06);
}
.i3-edge[style="--i:14"] { box-shadow: 0 0 calc(var(--s) * 0.08) rgba(0, 0, 0, 0.5); }

.i3-face {
  background:
    radial-gradient(120% 90% at 22% 8%, #2E3868 0%, transparent 55%),
    linear-gradient(170deg, #222A52 0%, #1A203D 45%, #12172E 100%);
  box-shadow:
    inset 0 calc(var(--s) * 0.008) calc(var(--s) * 0.006) rgba(255, 255, 255, 0.22),
    inset 0 calc(var(--s) * -0.012) calc(var(--s) * 0.03) rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(200, 215, 255, 0.10);
}

.i3-layer { width: 100%; height: 100%; overflow: visible; }
.i3-prompt {
  transform: translateZ(calc(var(--s) * 0.07));
  filter: drop-shadow(0 calc(var(--s) * 0.035) calc(var(--s) * 0.03) rgba(0, 0, 0, 0.45));
}
.i3-glyph {
  transform: translateZ(calc(var(--s) * 0.12));
  filter:
    drop-shadow(0 0 calc(var(--s) * 0.035) rgba(200, 160, 255, 0.45))
    drop-shadow(0 calc(var(--s) * 0.04) calc(var(--s) * 0.03) rgba(0, 0, 0, 0.4));
}
.i3-glyph path { opacity: 0.94; }

.i3-gloss {
  transform: translateZ(1px);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.03) 38%, transparent 55%);
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .icon3d { --s: 150px; order: -1; margin: 0 0 8px -12px; }
}

@media (prefers-reduced-motion: reduce) {
  .i3-spin { animation: none; transform: rotateX(10deg) rotateY(-20deg) rotateZ(-3deg); }
  .i3-float, .i3-shadow, .i3-aura { animation: none; }
}

.stage { margin-top: clamp(48px, 6vw, 80px); }

/* ================= The live app window ================= */

.aw {
  position: relative;
  --aw-font: 13px;
  font-size: var(--aw-font);
  line-height: 1.45;
}

.aw-glow {
  position: absolute; inset: 12% 6% -6% 6%;
  background: radial-gradient(ellipse at 50% 60%, var(--glow), transparent 68%);
  filter: blur(40px);
  pointer-events: none;
  transition: background var(--theme-ease);
}

.aw-frame {
  position: relative;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 268px;
  height: 640px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 0 color-mix(in oklab, var(--fg) 8%, transparent) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background-color var(--theme-ease), border-color var(--theme-ease);
  user-select: none;
}

.aw code, .aw pre { font-family: var(--font-code); }
.aw .spark { color: var(--accent); }
.aw .spin { animation: spin 3.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Sidebar */
.aw-side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
}
.aw-lights { display: flex; gap: 7px; padding: 0 4px 6px; }
.aw-lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.aw-row { display: flex; align-items: center; gap: 8px; }
.aw-pill { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-weight: 600; font-size: 12px; }
.aw-plus { color: var(--text-3); width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.aw-overview { display: flex; align-items: center; gap: 10px; padding: 8px 6px; font-weight: 500; }
.aw-grid { width: 13px; height: 13px; border: 1.5px solid var(--text-2); border-radius: 3px; background: linear-gradient(var(--text-2), var(--text-2)) center / 1.5px 100% no-repeat, linear-gradient(var(--text-2), var(--text-2)) center / 100% 1.5px no-repeat; }
.aw-badge { margin-left: auto; background: var(--yellow); color: var(--bg); border-radius: 999px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; display: grid; place-items: center; }

.aw-section { background: color-mix(in oklab, var(--fg) 3%, var(--bg)); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.aw-label { color: var(--text-3); font-weight: 600; font-size: 11.5px; padding: 6px 6px 4px; }
.aw-recent { margin-top: 4px; }

.aw-proj {
  display: flex; gap: 9px;
  padding: 8px; border-radius: 10px;
  border: 1px solid transparent;
}
.aw-proj.is-selected { border: 1.5px solid var(--fg); background: var(--surface-2); }
.aw-proj.is-waiting { background: color-mix(in oklab, var(--yellow) 16%, var(--bg)); border-color: color-mix(in oklab, var(--yellow) 40%, var(--bg)); }
.aw-proj.is-done { background: color-mix(in oklab, var(--green) 12%, var(--bg)); border-color: color-mix(in oklab, var(--green) 32%, var(--bg)); }
.aw-proj-body { min-width: 0; flex: 1; }
.aw-proj-name { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 13.5px; }
.aw-proj-name .spark { width: 12px; height: 12px; color: var(--text-2); }
.aw-proj-name .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); }
.aw-proj-name .tick { width: 15px; height: 15px; color: var(--bg); background: var(--green); border-radius: 50%; padding: 2px; }
.aw-proj-line { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-proj-line b { font-family: var(--font-code); font-weight: 500; color: var(--fg); }
.is-waiting .aw-proj-line b { color: var(--yellow); }
.aw-sub { font-size: 11.5px; color: var(--text-2); margin-top: 3px; padding-left: 10px; position: relative; }
.aw-sub::before { content: "›"; position: absolute; left: 0; }
.aw-progress { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.aw-progress i { flex: 1; height: 3px; border-radius: 3px; background: var(--line-strong); transition: background-color 300ms; }
.aw-progress i.on { background: var(--fg); }
.aw-progress span { font-size: 11px; color: var(--text-2); margin-left: 4px; font-variant-numeric: tabular-nums; }
.aw-bubble, .aw-recap { margin-top: 6px; font-size: 11.5px; line-height: 1.4; }
.aw-bubble { background: color-mix(in oklab, var(--fg) 8%, transparent); border-radius: 8px; padding: 6px 8px; }
.aw-recap { color: var(--text-2); }
.aw-newagent { margin: 4px 2px 2px; border: 1px dashed var(--line-strong); border-radius: 9px; padding: 5px 10px; color: var(--text-2); font-size: 12px; }
.aw-mini { display: flex; align-items: center; gap: 8px; padding: 2px 6px; }
.aw-mini .aw-av { width: 20px; height: 20px; font-size: 10px; border-radius: 6px; }

.aw-av {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  font: 700 13px/1 var(--font-body);
  color: #fff;
  background: var(--av);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.av-green { --av: color-mix(in oklab, var(--green) 70%, #1a3a22); }
.av-yellow { --av: color-mix(in oklab, var(--yellow) 60%, #4a2a00); }
.av-blue { --av: color-mix(in oklab, var(--blue) 65%, #1a1550); }
.av-magenta { --av: color-mix(in oklab, var(--magenta) 65%, #2a1040); }

.aw-rings {
  margin-top: auto;
  display: flex; justify-content: center; gap: 20px;
  background: var(--surface-2); border-radius: 12px; padding: 10px;
  font-size: 10.5px; color: var(--text-2);
}
.aw-rings span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ring { width: 20px; height: 20px; border-radius: 50%; display: block; --ring: var(--line-strong);
  background: conic-gradient(var(--ring) var(--pct), var(--line) 0); mask: radial-gradient(circle, transparent 6.5px, #000 7px); -webkit-mask: radial-gradient(circle, transparent 6.5px, #000 7px); }
.r1 { --pct: 22%; --ring: var(--text-3); }
.r2 { --pct: 64%; --ring: var(--yellow); }
.r3 { --pct: 38%; --ring: var(--text-3); }

/* Main column */
.aw-main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.aw-tabs { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.aw-tab { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: var(--surface-2); border-radius: 9px; font-weight: 600; }
.aw-tab .spark, .aw-newclaude .spark { width: 13px; height: 13px; }
.aw-tab .x { color: var(--text-3); margin-left: 4px; }
.aw-tabs-right { margin-left: auto; display: flex; gap: 14px; align-items: center; color: var(--text-2); font-weight: 500; }
.aw-newclaude { display: inline-flex; align-items: center; gap: 6px; }
.aw-branchpill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 8px; padding: 4px 9px; color: var(--fg); }
.aw-branchpill i { font-style: normal; width: 16px; height: 16px; border-radius: 50%; background: var(--yellow); color: var(--bg); display: grid; place-items: center; font-size: 9px; font-weight: 800; }

.aw-chat { flex: 1; min-height: 0; position: relative; overflow: hidden;
  mask-image: linear-gradient(transparent, #000 40px); -webkit-mask-image: linear-gradient(transparent, #000 40px); }
.aw-scroll {
  position: absolute; left: 0; right: 0; bottom: 0; min-height: 100%;
  padding: 14px 28px 16px 22px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 450ms cubic-bezier(.2, .7, .2, 1);
}

.aw-msg { display: flex; gap: 12px; align-items: flex-start; }
.aw-msg .spark { width: 14px; height: 14px; margin-top: 3px; }
.aw-msg p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 54em; }
.aw-tool { color: var(--text-3); padding-left: 38px; font-size: 13px; position: relative; }
.aw-tool::before { content: ""; position: absolute; left: 26px; top: 2px; bottom: 2px; width: 1px; background: var(--line-strong); }

.aw-card, .aw-cmd {
  margin-left: 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.aw-card-head { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.aw-card-head .ico, .aw-cmd .ico { color: var(--blue); font-size: 13px; }
.aw-card-head code { color: var(--blue); font-size: 12.5px; }
.aw-card-head em { font-style: normal; color: var(--green); font-family: var(--font-code); font-size: 12px; }
.aw-code {
  margin: 0; padding: 6px 0;
  font-size: 12px; line-height: 1.75;
  background: color-mix(in oklab, var(--green) 9%, var(--bg));
  white-space: pre; overflow: hidden;
}
.aw-code > span { display: block; padding: 0 12px; }
.aw-code > span[hidden] { display: none; }
.aw-code > span.new { animation: lineIn 260ms ease-out; }
@keyframes lineIn { from { background: color-mix(in oklab, var(--green) 30%, transparent); } }
.aw-code i { font-style: normal; color: var(--green); display: inline-block; width: 22px; }
.aw-code k { color: var(--magenta); }
.aw-code t { color: var(--cyan); }
.aw-code v { color: var(--yellow); }
.aw-code c { color: var(--text-3); }
.aw-code z { color: var(--yellow); }
.aw-more { padding: 4px 12px 7px; color: var(--text-3); font-family: var(--font-code); font-size: 12px; }

.aw-cmd { display: flex; align-items: center; gap: 10px; padding: 9px 12px; }
.aw-cmd code { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.aw-status { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); white-space: nowrap; }
.aw-status .spark { width: 12px; height: 12px; color: var(--text-3); }
.aw-status.ok { color: var(--green); }
.aw-status svg.check { width: 14px; height: 14px; }

[data-step].pending { display: none; }
[data-step].enter { animation: stepIn 380ms cubic-bezier(.2, .7, .2, 1); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } }

.aw-composer {
  margin: 0 16px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 11px 14px 9px;
}
.aw-input { color: var(--text-3); font-size: 14px; }
.aw-composer-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.aw-model { margin-left: auto; color: var(--text-2); }
.aw-ctx { font-family: var(--font-code); }
.aw-send { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }

/* Right panel */
.aw-right { background: var(--surface); border-left: 1px solid var(--line); padding: 12px; overflow: hidden; }
.aw-seg { display: flex; background: var(--surface-2); border-radius: 9px; padding: 3px; font-weight: 600; font-size: 12.5px; }
.aw-seg span { flex: 1; text-align: center; padding: 4px 0; border-radius: 7px; color: var(--text-2); }
.aw-seg .on { background: var(--line-strong); color: var(--fg); }
.aw-block { padding: 14px 2px 12px; border-bottom: 1px solid var(--line); }
.aw-block:last-child { border-bottom: 0; }
.aw-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
.aw-head span:not(.aw-branch) { color: var(--text-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.aw-head .aw-total { color: var(--green); font-family: var(--font-code); font-size: 12px; }
.aw-bar { height: 3px; border-radius: 3px; background: var(--line-strong); margin: 9px 0 10px; overflow: hidden; }
.aw-bar i { display: block; height: 100%; width: 100%; background: var(--green); transform-origin: left; transform: scaleX(var(--done, 0.4)); transition: transform 500ms cubic-bezier(.2, .7, .2, 1), background-color var(--theme-ease); }
.aw-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.aw-checks li { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; }
.aw-checks b { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; margin-top: 2px; position: relative; transition: all 250ms; }
.aw-checks li.done { color: var(--text-3); text-decoration: line-through; }
.aw-checks li.done b { background: var(--green); border-color: var(--green); }
.aw-checks li.done b::after { content: ""; position: absolute; left: 3.5px; top: 1px; width: 3px; height: 6px; border: solid var(--bg); border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.aw-checks li.active { font-weight: 600; }
.aw-checks li.active b { border-color: var(--fg); }
.aw-checks li.active b::after { content: ""; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--fg); }
.aw-checks small { display: block; font-family: var(--font-code); font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.aw-branch { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-code); }
.aw-branch svg { width: 13px; height: 13px; color: var(--text-2); }
.aw-vs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; font-size: 11.5px; color: var(--text-2); }
.aw-vs span { border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.aw-folder { color: var(--text-3); font-size: 11.5px; margin: 10px 0 4px; }
.aw-file { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12.5px; }
.aw-file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-file em { font-style: normal; color: var(--green); font-family: var(--font-code); font-size: 11.5px; }
.aw-file b { font: 700 9.5px/1 var(--font-code); width: 16px; height: 16px; display: grid; place-items: center; border-radius: 4px; border: 1px solid currentColor; }
.aw-file b.m { color: var(--yellow); }
.aw-file b.u { color: var(--green); }
[data-file].pending { display: none; }

@media (max-width: 1080px) {
  .aw-frame { grid-template-columns: 220px minmax(0, 1fr); }
  .aw-right { display: none; }
}
@media (max-width: 760px) {
  .aw-frame { grid-template-columns: minmax(0, 1fr); height: 520px; border-radius: 14px; }
  .aw-side { display: none; }
  .aw-tabs-right .aw-newclaude { display: none; }
  .aw-scroll { padding: 12px 14px 14px 10px; }
  .aw-card, .aw-cmd { margin-left: 0; }
  .aw-tool { padding-left: 26px; }
  .aw-tool::before { left: 13px; }
  .aw-msg p { font-size: 13.5px; }
  .aw-composer { margin: 0 10px 10px; }
  .aw-ctx { display: none; }
}

/* ================= Features ================= */

.feature { padding-top: clamp(96px, 12vw, 168px); }

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-text h2 { margin-bottom: 24px; text-wrap: balance; }
.feature-text p { color: var(--text-2); max-width: 34em; }
.feature-text p strong { color: var(--fg); font-weight: 600; }
.feature-text.wide { max-width: 46em; }

.feature-media { margin: 0; }
.shot { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.32)); }

.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text-2); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg) scale(0.75);
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Agents illustration */
.agents {
  display: grid; gap: 10px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  font-size: 14px;
}
.agent {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.agent.is-waiting { border-color: color-mix(in oklab, var(--yellow) 45%, var(--bg)); background: color-mix(in oklab, var(--yellow) 9%, var(--bg)); }
.agent-name { display: flex; align-items: center; gap: 7px; font-family: var(--font-code); font-weight: 500; }
.agent-name svg { width: 14px; height: 14px; color: var(--text-2); flex: none; }
.agent-line { color: var(--text-2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-line b { font-family: var(--font-code); font-weight: 500; color: var(--fg); }
.agent-tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.tag svg { width: 12px; height: 12px; }
.tag.ok { color: var(--green); background: color-mix(in oklab, var(--green) 14%, transparent); }
.tag.work { color: var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); }
.tag.wait { color: var(--yellow); background: color-mix(in oklab, var(--yellow) 16%, transparent); }
.agents .spark { color: currentColor; }
@media (max-width: 560px) {
  .agent { grid-template-columns: auto minmax(0, 1fr); }
  .agent-tags { grid-column: 2; justify-content: flex-start; }
}

/* Headless Mac illustration */
.remote-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.remote-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
  color: var(--text-2); border: 1px solid var(--line);
}
.remote-pill.on { color: var(--fg); background: var(--surface-2); border-color: var(--line-strong); }
.remote-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.remote-note { margin-left: auto; color: var(--text-3); font-size: 13px; }
.remote .agent-name { font-family: var(--font-body); font-weight: 600; }
.inline-link { color: var(--accent); text-underline-offset: 3px; }

/* Themes */
.themes-media { margin: 48px 0 0; }
.themes-media figcaption { margin-top: 18px; color: var(--text-3); font-size: 14px; }

/* Phone */
.phone-media { margin: 48px 0 0; }
.phone-media img { width: 100%; max-width: 1100px; margin: 0 auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.3)); }
.phone-points { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.phone-points p { color: var(--text-2); margin: 8px 0 0; }
@media (max-width: 760px) { .phone-points { grid-template-columns: 1fr; gap: 22px; } }

/* Keyboard + shell */
.two-up { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .two-up { grid-template-columns: minmax(0, 1fr); } }
.two-up h2 { margin-bottom: 28px; }
.keys { margin: 0; display: grid; }
.keys > div { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.keys > div:last-child { border-bottom: 1px solid var(--line); }
.keys dt { margin: 0; }
.keys dt kbd { font-size: 14px; }
.keys dd { margin: 0; color: var(--text-2); }
.muted-p { color: var(--text-2); }
.muted-p code { background: var(--surface-2); padding: 0.1em 0.4em; border-radius: 5px; color: var(--fg); }

.term {
  margin-top: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in oklab, var(--fg) 2%, var(--bg));
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.4);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.term-bar span { margin-left: auto; margin-right: auto; color: var(--text-3); font-size: 12px; transform: translateX(-20px); }
.term pre { margin: 0; padding: 18px 20px 22px; font-size: 14px; line-height: 1.75; overflow-x: auto; }
.term .p { color: var(--accent); }
.term .s { color: var(--yellow); }
.term .o { color: var(--text-3); }
.term-caret { display: inline-block; width: 0.6em; height: 1.15em; vertical-align: -0.2em; background: var(--fg); opacity: .7; margin-left: 4px; animation: blink 1.1s steps(1) infinite; }

/* Small things */
.small-things-title { margin-bottom: 40px; }
.small-things {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.small-things li { padding: 26px 28px 26px 0; border-bottom: 1px solid var(--line); }
.small-things li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.small-things p { color: var(--text-2); margin: 8px 0 0; font-size: 16px; }
@media (max-width: 900px) {
  .small-things { grid-template-columns: 1fr 1fr; }
  .small-things li, .small-things li:not(:nth-child(3n + 1)) { padding: 22px 22px 22px 0; border-left: 0; }
  .small-things li:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .small-things { grid-template-columns: 1fr; }
  .small-things li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* What's new */
.release-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
  gap: 28px 48px; align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(ellipse 60% 120% at 0% 0%, color-mix(in oklab, var(--accent) 10%, transparent), transparent 70%),
    var(--surface);
}
.release-card h2 { font-size: clamp(26px, 3.2vw, 38px); }
.release-date { margin: 10px 0 0; color: var(--text-3); }
.release-heads { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.release-heads li { display: flex; gap: 10px; align-items: baseline; }
.release-heads li::before { content: "+"; color: var(--green); font-family: var(--font-code); font-weight: 500; }
@media (max-width: 900px) { .release-card { grid-template-columns: minmax(0, 1fr); } .release-card .btn { justify-self: start; } }

/* Install */
.steps { list-style: none; counter-reset: step; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; color: var(--text-2); }
.steps li::before {
  content: counter(step);
  font: 500 15px/1 var(--font-display);
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 32px; height: 32px; display: grid; place-items: center;
  transform: translateY(6px);
}
.fine { margin-top: 16px; color: var(--text-3); font-size: 14px; }
.reqs { border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 32px); background: var(--surface); }
.reqs h3 { font-size: 16px; margin: 0 0 10px; }
.reqs ul { margin: 0 0 24px; padding-left: 1.1em; color: var(--text-2); display: grid; gap: 6px; }
.reqs ul:last-child { margin-bottom: 0; }
.reqs a { color: var(--accent); text-underline-offset: 3px; }
