:root {
  --bg: #041019;
  --bg-soft: #081725;
  --panel: rgba(6, 19, 31, 0.7);
  --panel-strong: rgba(10, 22, 36, 0.92);
  --panel-bright: rgba(14, 30, 48, 0.92);
  --line: rgba(173, 231, 255, 0.14);
  --line-strong: rgba(173, 231, 255, 0.28);
  --text: #f3fbff;
  --muted: #96abc0;
  --accent: #63f2cc;
  --accent-warm: #ffb464;
  --accent-cold: #7dbdff;
  --danger: #ff6f61;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(99, 242, 204, 0.12), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(255, 180, 100, 0.16), transparent 30%),
    linear-gradient(180deg, #04111b 0%, #05101a 100%);
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 18, 30, 0.08), rgba(5, 18, 30, 0.24));
  pointer-events: none;
  z-index: -3;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-noise,
.grid-overlay,
.bg-orb {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.page-noise {
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px;
  mix-blend-mode: soft-light;
  z-index: -2;
}

.grid-overlay {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 88%);
  z-index: -2;
}

.bg-orb {
  z-index: -3;
  filter: blur(60px);
}

.orb-a {
  inset: 80px auto auto -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(99, 242, 204, 0.14);
}

.orb-b {
  inset: 120px -80px auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 180, 100, 0.14);
}

.site-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 36px;
}

.hero {
  padding: 20px 0 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup {
  gap: 0;
}

.brand-lockup-image {
  display: block;
  width: 238px;
  height: auto;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.22));
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex: 0 0 48px;
}

.brand-mark-image {
  display: block;
  width: 48px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.22));
}

.brand-name {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-title {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.015em;
}

.brand-title-accent {
  color: var(--accent-cold);
}

.brand-domain {
  color: rgba(231, 241, 248, 0.54);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: lowercase;
}

.topbar-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.topbar-links a {
  position: relative;
  color: rgba(232, 242, 250, 0.78);
  transition: color 0.18s ease;
  font-weight: 520;
}

.topbar-links a:hover,
.topbar-links a:focus-visible {
  color: rgba(245, 251, 255, 0.96);
}

.topbar-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: transform 0.2s ease;
}

.topbar-links a:hover::after {
  transform: scaleX(1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.hero-copy {
  padding-top: 8px;
}

.eyebrow,
.section-label,
.signal-label {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
}

.hero h1,
.section h2 {
  margin: 10px 0 20px;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero h1 {
  font-size: clamp(40px, 4.8vw, 62px);
  max-width: 620px;
  line-height: 0.98;
}

.section h2 {
  font-size: clamp(32px, 4vw, 56px);
}

.hero h1 span,
.section h2 span {
  color: var(--accent);
}

.hero-body,
.section p,
.cap-card p,
.step-card p,
.program-card p,
.signal-meta,
.workspace-empty p,
.mission-subbody {
  color: var(--muted);
  line-height: 1.72;
  font-size: 17px;
}

.hero-body {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-meta-row span {
  position: relative;
  padding-left: 14px;
}

.hero-meta-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(125, 189, 255, 0.8);
  transform: translateY(-50%);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button.compact {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 12px;
}

.button:hover,
.window-button:hover,
.program-card button:hover,
.todo-action:hover,
.todo-remove:hover,
.session-tab:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px rgba(99, 242, 204, 0.12);
}

.button:focus-visible,
.window-button:focus-visible,
.mine-cell:focus-visible,
.session-tab:focus-visible,
.todo-action:focus-visible,
.todo-remove:focus-visible,
.runtime-select:focus-visible,
.topbar-links a:focus-visible,
.desktop-menubar a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px rgba(99, 242, 204, 0.5), 0 0 0 4px rgba(99, 242, 204, 0.14);
}

.button.primary,
.window-button.primary {
  background: linear-gradient(135deg, rgba(99, 242, 204, 0.18), rgba(255, 180, 100, 0.22));
  border-color: rgba(173, 231, 255, 0.2);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.03);
}

.hero-stage {
  display: grid;
  gap: 0;
}

.hero-window,
.hero-runtime-panel,
.signal-card,
.step-card,
.cap-card,
.program-card,
.desktop-shell,
.window,
.mission-panel,
.quote-card,
.startup-proof-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.88), rgba(5, 16, 27, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-card,
.step-card,
.cap-card,
.quote-card {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.signal-card,
.hero-runtime-panel,
.step-card,
.cap-card,
.program-card,
.quote-card,
.startup-proof-card {
  border-radius: 22px;
  padding: 20px;
}

.hero-runtime-panel {
  display: grid;
  gap: 12px;
}

.hero-runtime-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.hero-runtime-head h3 {
  margin: 8px 0 0;
  font-size: 19px;
  line-height: 1.1;
}

.hero-runtime-steps {
  display: grid;
  gap: 12px;
}

.hero-runtime-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-runtime-step:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-runtime-step strong {
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
}

.hero-runtime-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
}

.hero-thesis-inline {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-thesis-inline p:last-child {
  margin: 6px 0 0;
  color: rgba(222, 235, 244, 0.84);
  font-size: 13px;
  line-height: 1.48;
}

.hero-console {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 10, 16, 0.66);
}

.console-line {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}

.console-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.console-key {
  color: var(--accent-cold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.section {
  padding: 32px 0;
}

.section-head {
  margin-bottom: 20px;
}

.proof-grid,
.steps,
.cap-grid,
.program-grid {
  display: grid;
  gap: 18px;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quote-card {
  margin: 0;
  color: #dce7f2;
  font-size: 20px;
  line-height: 1.44;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(125, 189, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.88), rgba(5, 16, 27, 0.68));
}

.vision-statement {
  max-width: 940px;
  padding: 30px 34px;
  border: 1px solid rgba(151, 190, 219, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(125, 189, 255, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(8, 20, 34, 0.88), rgba(5, 16, 27, 0.68));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.vision-statement p {
  margin: 0;
  max-width: 860px;
  color: #dce7f2;
  font-size: 22px;
  line-height: 1.52;
}

.vision-statement p + p {
  margin-top: 16px;
}

.vision-closing {
  color: #f2f8ff;
  font-weight: 600;
}

.startup-proof-card h3 {
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.startup-proof-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent-warm);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.step-card h3,
.cap-card h3,
.program-card h3,
.mission-body {
  margin: 0 0 12px;
}

.manifesto-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cap-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.status-pill,
.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(231, 241, 248, 0.74);
  font-size: 12px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
}

.status-pill.live {
  color: var(--accent);
}

.pill-live {
  color: var(--accent-cold);
}

.pill-busy {
  color: var(--accent);
  border-color: rgba(99, 242, 204, 0.28);
  background: rgba(99, 242, 204, 0.08);
  box-shadow: 0 0 0 1px rgba(99, 242, 204, 0.08), 0 0 24px rgba(99, 242, 204, 0.18);
  animation: busyPulse 1.25s ease-in-out infinite;
}

.status-pill.next {
  color: var(--accent-warm);
}

.mission-section {
  padding-top: 10px;
}

.split-cta-section .button {
  margin-top: 10px;
}

.mission-panel {
  padding: 28px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(125, 189, 255, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(8, 22, 36, 0.94), rgba(4, 15, 25, 0.9));
}

.mission-body {
  max-width: 920px;
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.mission-body span {
  color: var(--accent);
}

.mission-subbody {
  max-width: 820px;
  margin: 20px 0 0;
}

.mission-actions {
  margin-top: 28px;
}

.demo-section {
  padding-bottom: 0;
}

.demo-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.demo-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.program-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.recent-section {
  margin-bottom: 24px;
}

.recent-head h3 {
  margin-bottom: 6px;
}

.recent-head p,
.recent-card p {
  color: var(--muted);
}

.recent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.recent-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.88), rgba(5, 16, 27, 0.68));
  box-shadow: var(--shadow);
}

.recent-top,
.recent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}

.recent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.runtime-select,
.trace-toggle {
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.runtime-select {
  flex: 1;
  padding: 0 12px;
}

.program-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  opacity: 0.65;
}

.program-card .card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.program-card .icon {
  font-size: 30px;
}

.program-card button,
.window-button,
.mine-cell,
.todo-action,
.todo-remove {
  cursor: pointer;
}

.program-card button,
.window-button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 14px;
  padding: 0 14px;
  font: inherit;
}

.desktop-shell {
  border-radius: 30px;
  overflow: hidden;
}

.desktop-shell-demo {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(228, 236, 246, 0.1), rgba(36, 55, 78, 0.1)),
    rgba(7, 17, 29, 0.62);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(30px);
}

.desktop-topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.desktop-shell-demo .desktop-topbar {
  background: rgba(222, 232, 244, 0.1);
}

.desktop-title {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.session-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.session-tab {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(228, 239, 247, 0.72);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.session-tab.active {
  color: var(--text);
  border-color: rgba(99, 242, 204, 0.45);
  background: rgba(99, 242, 204, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.workspace {
  min-height: 620px;
  padding: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  background-size: 24px 24px, 24px 24px, auto;
}

.demo-workspace {
  min-height: 760px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at top right, rgba(99, 242, 204, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.workspace-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.clipboard-panel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.clipboard-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.clipboard-preview {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.clipboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.workspace-control-copy,
.workspace-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.workspace-empty {
  max-width: 420px;
  padding: 26px;
  border-radius: 24px;
  border: 1px dashed var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.window {
  width: min(100%, 860px);
  border-radius: 24px;
  overflow: hidden;
}

.window-busy {
  box-shadow: 0 0 0 1px rgba(99, 242, 204, 0.18), 0 0 28px rgba(99, 242, 204, 0.12), var(--shadow);
}

.window-queued {
  box-shadow: 0 0 0 1px rgba(125, 189, 255, 0.14), var(--shadow);
}

.workspace-grid .window {
  width: 100%;
  cursor: pointer;
}

.window-active {
  border-color: rgba(99, 242, 204, 0.5);
  box-shadow: 0 0 0 1px rgba(99, 242, 204, 0.22), var(--shadow);
}

.window-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.window-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.window-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.window-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.window-status.busy {
  color: rgba(231, 251, 244, 0.94);
}

.window-status.queued {
  color: rgba(218, 232, 246, 0.9);
}

.status-label {
  font-weight: 600;
}

.status-signal {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.status-signal-busy {
  background: radial-gradient(circle, rgba(99, 242, 204, 0.96), rgba(99, 242, 204, 0.24));
  box-shadow: 0 0 0 4px rgba(99, 242, 204, 0.12), 0 0 18px rgba(99, 242, 204, 0.32);
  animation: busyPulse 1.1s ease-in-out infinite;
}

.status-signal-queued {
  background: radial-gradient(circle, rgba(125, 189, 255, 0.95), rgba(125, 189, 255, 0.28));
  box-shadow: 0 0 0 4px rgba(125, 189, 255, 0.12);
}

.window-body {
  padding: 18px;
}

.window-calculator {
  max-width: 420px;
}

.window-calculator .window-body {
  background: linear-gradient(180deg, rgba(231, 238, 245, 0.08), rgba(255, 255, 255, 0.02));
}

.window-notepad {
  max-width: 780px;
}

.window-notepad .window-body {
  background: linear-gradient(180deg, rgba(239, 229, 207, 0.06), rgba(255, 255, 255, 0.02));
}

.window-todo {
  max-width: 620px;
}

.window-todo .window-body {
  background: linear-gradient(180deg, rgba(231, 246, 235, 0.08), rgba(255, 255, 255, 0.02));
}

.window-minesweeper {
  max-width: 520px;
}

.window-minesweeper .window-body {
  background: linear-gradient(180deg, rgba(224, 232, 242, 0.1), rgba(255, 255, 255, 0.03));
}

.window-minesweeper .node-column {
  align-items: flex-start;
}

.window-adventure {
  max-width: 760px;
}

.window-adventure .window-body {
  background: linear-gradient(180deg, rgba(233, 240, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.node-column,
.node-row {
  display: flex;
}

.node-column {
  flex-direction: column;
}

.node-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
}

.node-text.section {
  font-size: 18px;
  font-weight: 700;
}

.node-text.display {
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.window-calculator .node-text.display {
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(230, 239, 229, 0.5);
  background: linear-gradient(180deg, rgba(231, 238, 229, 0.98), rgba(200, 214, 198, 0.94));
  color: #17261d;
  text-align: right;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  box-shadow: inset 0 2px 10px rgba(255, 255, 255, 0.35);
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.window-input,
.window-textarea {
  width: 100%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
}

.window-textarea {
  min-height: 240px;
  resize: vertical;
}

.window-notepad .toolbar-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
}

.window-notepad .toolbar-button.active {
  background: linear-gradient(180deg, rgba(125, 189, 255, 0.26), rgba(125, 189, 255, 0.1));
  border-color: rgba(125, 189, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.window-todo .window-button {
  min-height: 46px;
}

.window-todo [data-node-id="todo_input_row"],
.window-adventure [data-node-id="adventure_input_row"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.window-notepad [data-node-id="notepad_toolbar"],
.window-minesweeper [data-node-id="ms_controls"] {
  flex-wrap: wrap;
}

.window-notepad .badge {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.05);
}

.window-todo .badge,
.window-minesweeper .badge {
  min-height: 36px;
  background: rgba(255, 255, 255, 0.06);
}

.todo-input {
  min-height: 52px;
  border-radius: 14px;
  background: rgba(250, 255, 252, 0.96);
  color: #1c2930;
  border: 1px solid rgba(178, 206, 191, 0.55);
}

.todo-input::placeholder {
  color: rgba(28, 41, 48, 0.45);
}

.adventure-input {
  min-height: 52px;
  border-radius: 14px;
  border-color: rgba(125, 189, 255, 0.2);
  background: rgba(9, 18, 33, 0.88);
  color: #e4efff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.adventure-input::placeholder {
  color: rgba(228, 239, 255, 0.4);
}

.notepad-editor {
  min-height: 340px;
  border-radius: 18px;
  border: 1px solid rgba(219, 201, 171, 0.42);
  background: linear-gradient(180deg, rgba(247, 242, 231, 0.98), rgba(239, 231, 214, 0.96));
  color: #1f2a35;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  caret-color: #123247;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  line-height: 1.7;
}

.notepad-editor::placeholder {
  color: rgba(31, 42, 53, 0.45);
}

.preview {
  min-height: 160px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  white-space: pre-wrap;
  line-height: 1.65;
}

.notepad-preview {
  min-height: 220px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.adventure-preview {
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid rgba(125, 189, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(7, 19, 34, 0.94), rgba(7, 15, 27, 0.9)),
    rgba(255, 255, 255, 0.02);
  color: #dbe9ff;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  line-height: 1.72;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.calc-pad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.window-calculator .calc-pad {
  gap: 12px;
}

.calc-pad .wide {
  grid-column: span 4;
}

.window-button {
  min-height: 58px;
  border-radius: 16px;
}

.calc-key {
  min-height: 64px;
  border-radius: 20px;
  font-size: 22px;
  font-weight: 700;
}

.window-calculator .calc-key {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
}

.window-calculator .calc-key.operator {
  background: linear-gradient(180deg, rgba(125, 189, 255, 0.26), rgba(125, 189, 255, 0.12));
}

.window-calculator .calc-key.equals {
  background: linear-gradient(180deg, rgba(99, 242, 204, 0.34), rgba(99, 242, 204, 0.16));
  color: #dffbf5;
}

.window-calculator .calc-key.clear {
  background: linear-gradient(180deg, rgba(255, 180, 100, 0.34), rgba(255, 180, 100, 0.16));
}

.trace-toggle {
  padding: 0 12px;
  cursor: pointer;
}

.trace-panel {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.9), rgba(5, 16, 27, 0.78));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  min-height: 220px;
  overflow: hidden;
}

.trace-panel.grid-trace {
  margin-bottom: 18px;
}

.trace-panel.hidden {
  display: none;
}

.trace-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.trace-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.trace-title {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.trace-subtitle,
.trace-time {
  color: var(--muted);
  font-size: 13px;
}

.trace-empty {
  padding: 18px;
  color: var(--muted);
}

.trace-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.trace-live-queue {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(99, 242, 204, 0.05), rgba(255, 255, 255, 0.025));
}

.trace-live-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.trace-queue-list {
  display: grid;
  gap: 10px;
}

.trace-queue-item {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.trace-queue-item.in-flight {
  border-color: rgba(99, 242, 204, 0.22);
  background: rgba(99, 242, 204, 0.06);
  box-shadow: inset 0 0 0 1px rgba(99, 242, 204, 0.08);
}

.trace-queue-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.trace-entry {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.trace-entry-demo {
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.trace-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.trace-summary {
  display: grid;
  gap: 6px;
}

.trace-summary strong {
  font-size: 14px;
  line-height: 1.35;
}

.trace-summary span {
  color: var(--muted);
  font-size: 13px;
}

.trace-details {
  display: grid;
  gap: 10px;
}

.trace-details summary {
  cursor: pointer;
  color: rgba(239, 246, 255, 0.88);
  font-size: 13px;
  list-style: none;
}

.trace-details summary::-webkit-details-marker {
  display: none;
}

.trace-details summary::before {
  content: "+";
  display: inline-block;
  margin-right: 8px;
  color: var(--accent);
}

.trace-details[open] summary::before {
  content: "-";
}

.trace-block {
  margin: 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(3, 10, 17, 0.8);
  color: #dbe9f7;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.trace-error {
  color: #ffaea2;
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.trace-shell {
  padding-bottom: 72px;
}

.trace-hero {
  padding: 28px 0 24px;
}

.trace-main {
  padding-bottom: 24px;
}

.trace-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.trace-sidebar,
.trace-lab-panel,
.trace-replay-window,
.trace-payload-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.88), rgba(5, 16, 27, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.trace-sidebar,
.trace-lab-panel {
  border-radius: 28px;
  overflow: hidden;
}

.trace-sidebar-head,
.trace-toolbar,
.trace-window-head,
.trace-payload-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.trace-session-list,
.trace-empty-state {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trace-empty-state {
  min-height: 420px;
  justify-content: center;
  align-items: flex-start;
}

.trace-session-card,
.trace-step-item {
  width: 100%;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.trace-session-card.active,
.trace-step-item.active {
  border-color: rgba(99, 242, 204, 0.4);
  background: rgba(99, 242, 204, 0.08);
}

.trace-session-top,
.trace-session-tags,
.trace-step-row,
.trace-step-tags,
.trace-toolbar-actions,
.trace-code-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.trace-session-top,
.trace-step-row {
  justify-content: space-between;
}

.trace-session-copy,
.trace-step-copy,
.trace-session-meta,
.trace-step-summary {
  color: var(--muted);
  line-height: 1.6;
}

.trace-content {
  display: block;
}

.trace-replay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  padding: 20px;
}

.trace-snapshots {
  display: grid;
  gap: 20px;
}

.trace-replay-window,
.trace-payload-card {
  border-radius: 24px;
  overflow: hidden;
}

.trace-window-root {
  padding: 20px;
}

.trace-code-grid {
  align-items: stretch;
  padding: 18px;
}

.trace-code-grid .trace-block {
  flex: 1 1 320px;
  max-height: 420px;
}

.trace-step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trace-timeline {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trace-fallback {
  color: var(--muted);
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.artifact-shelf {
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.9), rgba(5, 16, 27, 0.78));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.workspace-files {
  margin-bottom: 18px;
  border-color: rgba(99, 242, 204, 0.18);
  background: linear-gradient(180deg, rgba(8, 28, 32, 0.92), rgba(5, 16, 27, 0.8));
}

.artifact-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.artifact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.artifact-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.artifact-top,
.artifact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.demo-body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #0f1b2a 0%, #10233a 48%, #0d1622 100%);
}

.desktop-wallpaper {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 211, 120, 0.18), transparent 25%),
    radial-gradient(circle at 80% 12%, rgba(99, 242, 204, 0.2), transparent 26%),
    radial-gradient(circle at 50% 72%, rgba(125, 189, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(21, 46, 80, 0.95), rgba(10, 24, 41, 0.96));
  z-index: -4;
}

.desktop-menubar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  background: rgba(228, 236, 246, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px);
}

.desktop-menubar-left,
.desktop-menubar-right {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.desktop-menubar a {
  color: rgba(245, 250, 255, 0.92);
  font-size: 14px;
  transition: color 0.18s ease;
}

.desktop-menubar a:hover {
  color: #ffffff;
}

.demo-site-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 32px;
}

.desktop-demo-grid {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.desktop-demo-surface {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.desktop-sidepanels {
  display: grid;
  gap: 16px;
}

.desktop-sidebar,
.desktop-panel,
.desktop-stage {
  display: grid;
  gap: 18px;
}

.desktop-surface {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  min-height: 860px;
  padding: 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 20, 33, 0.32);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.desktop-surface-full {
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: calc(100vh - 120px);
}

.desktop-workspace-area {
  display: grid;
  gap: 12px;
}

.desktop-shortcuts {
  display: grid;
  align-content: start;
  gap: 16px;
}

.desktop-shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.desktop-surface-label {
  color: rgba(248, 252, 255, 0.7);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.desktop-panel,
.desktop-stage-copy {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  background: rgba(11, 22, 36, 0.4);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.desktop-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.desktop-panel-head h2,
.desktop-stage-copy h1 {
  margin: 0;
}

.desktop-program-grid,
.desktop-recent-grid {
  grid-template-columns: 1fr;
  padding: 16px;
  margin-bottom: 0;
}

.desktop-panel-body {
  padding: 16px;
}

.desktop-note-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(248, 252, 255, 0.92);
  backdrop-filter: blur(12px);
  font-size: 14px;
  min-height: 46px;
}

.desktop-note-bar strong {
  color: #f8fcff;
  letter-spacing: 0.02em;
}

.desktop-note-bar span {
  color: rgba(241, 247, 255, 0.78);
}

.desktop-program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.desktop-icon-card {
  position: relative;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 2px;
  gap: 8px;
  min-height: 0;
  border-radius: 16px;
  border: 1px solid transparent;
  background: transparent;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.desktop-icon-card:hover,
.desktop-icon-card:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.desktop-icon-card h3 {
  margin: 0;
  display: none;
}

.desktop-icon-card p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: rgba(248, 252, 255, 0.95);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.desktop-icon-badge {
  position: absolute;
  inset: -6px auto auto 50%;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 242, 204, 0.18);
  border: 1px solid rgba(99, 242, 204, 0.32);
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.desktop-icon-card-recommended .desktop-icon-mark {
  box-shadow: 0 0 0 1px rgba(99, 242, 204, 0.22), 0 20px 36px rgba(0, 0, 0, 0.22);
}

.desktop-icon-mark {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(246, 252, 255, 0.18), rgba(182, 208, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.desktop-icon-mark-accent {
  background: linear-gradient(180deg, rgba(99, 242, 204, 0.28), rgba(125, 189, 255, 0.12));
}

.desktop-author-card p {
  color: rgba(99, 242, 204, 0.95);
}

.desktop-recent-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.desktop-recent-card {
  padding: 14px 16px;
  border-radius: 18px;
  gap: 8px;
}

.desktop-recent-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(241, 247, 255, 0.7);
}

.desktop-recent-time {
  font-size: 12px;
  color: rgba(241, 247, 255, 0.56);
}

.workspace-controls-demo {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.workspace-controls-demo .window-button {
  min-height: 40px;
}

.demo-script-list {
  display: grid;
  gap: 12px;
}

.demo-script-step {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.demo-script-step strong {
  color: var(--text);
}

.demo-script-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.desktop-stage-copy {
  padding: 24px;
}

.desktop-stage-copy h1 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.desktop-stage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.author-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.author-panel,
.author-results,
.author-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 20, 34, 0.88), rgba(5, 16, 27, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.author-panel,
.author-results {
  border-radius: 28px;
  overflow: hidden;
}

.author-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.author-label {
  font-size: 14px;
  color: var(--muted);
}

.author-prompt {
  min-height: 260px;
}

.author-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.author-telemetry {
  width: fit-content;
}

.author-error {
  border-color: rgba(255, 111, 97, 0.4);
  color: #ffaea2;
}

.author-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  padding: 20px;
}

.author-preview-stack,
.author-spec-stack {
  display: grid;
  gap: 20px;
}

.author-card {
  border-radius: 24px;
  overflow: hidden;
}

.author-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
}

.author-list-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.author-list-item strong {
  color: var(--text);
}

button:disabled,
.window-button:disabled,
.todo-action:disabled,
.todo-remove:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.todo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.window-todo .todo-item {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.todo-item.done {
  background: rgba(179, 228, 199, 0.08);
}

.todo-marker {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: transparent;
  flex: 0 0 auto;
}

.todo-marker.done {
  background: rgba(99, 242, 204, 0.22);
  color: #dffbf5;
  border-color: rgba(99, 242, 204, 0.32);
}

.todo-label {
  flex: 1;
  line-height: 1.5;
}

.todo-label.done {
  color: var(--muted);
  text-decoration: line-through;
}

.todo-actions {
  display: flex;
  gap: 10px;
}

.todo-action,
.todo-remove {
  min-height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.window-todo .todo-action {
  background: rgba(99, 242, 204, 0.12);
  border-color: rgba(99, 242, 204, 0.24);
}

.window-todo .todo-remove {
  background: rgba(255, 255, 255, 0.05);
}

.mine-board-shell {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
}

.mine-grid {
  display: grid;
  grid-template-columns: repeat(var(--mine-cols, 8), var(--mine-cell-size, 42px));
  grid-template-rows: repeat(var(--mine-rows, 8), var(--mine-cell-size, 42px));
  gap: 6px;
  width: fit-content;
  align-self: flex-start;
  justify-self: flex-start;
}

.window-minesweeper .mine-grid {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(180deg, rgba(240, 245, 251, 0.18), rgba(176, 191, 209, 0.14)),
    rgba(31, 47, 66, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  width: fit-content;
}

.mine-cell {
  display: grid;
  place-items: center;
  width: var(--mine-cell-size, 42px);
  height: var(--mine-cell-size, 42px);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
  padding: 0;
}

.window-minesweeper .mine-cell {
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.34), rgba(188, 200, 214, 0.18));
  color: #eef7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.mine-cell:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.mine-cell.tone-revealed {
  background: rgba(99, 242, 204, 0.12);
}

.window-minesweeper .mine-cell.tone-revealed {
  background: linear-gradient(180deg, rgba(214, 228, 216, 0.95), rgba(185, 204, 190, 0.9));
  color: #23332a;
}

.mine-cell.tone-mine {
  background: rgba(255, 111, 97, 0.22);
}

.window-minesweeper .mine-cell.tone-mine {
  background: linear-gradient(180deg, rgba(255, 111, 97, 0.62), rgba(214, 75, 61, 0.72));
  color: #fff4f2;
}

.mine-cell.tone-flagged {
  background: rgba(255, 180, 100, 0.18);
}

.window-minesweeper .mine-cell.tone-flagged {
  background: linear-gradient(180deg, rgba(255, 197, 129, 0.54), rgba(226, 156, 66, 0.5));
  color: #2e2214;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 34px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.footer a {
  color: var(--text);
}

.research-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 12px;
  margin: 0 0 18px;
}

.mission-note,
.trace-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.info-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--panel-shadow);
  padding: 28px;
}

.info-card h2 {
  margin: 6px 0 12px;
  font-size: clamp(24px, 3.2vw, 34px);
}

.info-card p,
.info-list {
  color: var(--muted);
  line-height: 1.65;
}

.info-card-wide {
  grid-column: 1 / -1;
}

.info-list {
  margin: 0;
  padding-left: 20px;
}

.loading {
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero-grid,
  .proof-grid,
  .manifesto-grid,
  .program-grid,
  .recent-grid,
  .steps,
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trace-grid,
  .trace-replay-layout,
  .author-grid,
  .author-content-grid,
  .workspace-grid,
  .artifact-list,
  .desktop-demo-grid {
    grid-template-columns: 1fr;
  }

  .desktop-surface {
    grid-template-columns: 1fr;
  }

  .hero-runtime-strip {
    grid-template-columns: 1fr;
  }

  .desktop-shortcuts {
    grid-auto-flow: column;
    grid-auto-columns: minmax(84px, 1fr);
    overflow-x: auto;
  }

  .desktop-shortcuts-grid {
    grid-template-columns: repeat(6, minmax(84px, 1fr));
  }

  .hero-grid {
    align-items: stretch;
  }

  .hero-copy {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .site-shell {
    width: min(100% - 24px, 1240px);
  }

  .topbar,
  .demo-heading,
  .footer,
  .desktop-menubar {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .trace-sidebar-head,
  .trace-toolbar,
  .trace-window-head,
  .trace-payload-head,
  .clipboard-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-sidecards,
  .proof-grid,
  .manifesto-grid,
  .program-grid,
  .recent-grid,
  .steps,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .demo-site-shell {
    width: min(100% - 20px, 1440px);
  }

  .desktop-note-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 18px;
  }

  .hero h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .section h2 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .workspace {
    padding: 14px;
  }

  .trace-replay-layout,
  .trace-window-root,
  .trace-code-grid,
  .author-content-grid {
    padding: 14px;
  }

  .mine-grid {
    grid-template-columns: repeat(var(--mine-cols, 8), var(--mine-cell-size, 34px));
    grid-template-rows: repeat(var(--mine-rows, 8), var(--mine-cell-size, 34px));
  }

  .mine-cell {
    width: var(--mine-cell-size, 34px);
    aspect-ratio: 1;
    height: var(--mine-cell-size, 34px);
  }
}

@keyframes busyPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.58;
    transform: scale(0.92);
  }
}
