:root {
  --bg: #08090d;
  --bg-2: #0d1118;
  --panel: #12161d;
  --panel-2: #171c25;
  --panel-3: #1d2430;
  --terminal: #020304;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(93, 137, 208, 0.34);
  --text: #f6f8fc;
  --muted: #93a0b4;
  --subtle: #657287;
  --blue: #3c8dff;
  --blue-2: #73adff;
  --green: #49d59a;
  --amber: #f4bf5c;
  --red: #ff7b87;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 14% -10%, rgba(55, 122, 255, 0.18), transparent 30%),
    radial-gradient(circle at 92% 10%, rgba(73, 213, 154, 0.11), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

main, section { max-width: 100%; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { display: block; }
.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 2; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand-logo {
  display: block;
  width: 194px;
  height: auto;
  clip-path: polygon(0 0, 100% 0, 100% 75.5%, 27.5% 75.5%, 27.5% 100%, 0 100%);
}
.footer-logo { width: 180px; }
.app-icon { display: block; width: 20px; height: 20px; }

.nav { display: flex; gap: 24px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--text); }

.button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  min-height: 44px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: 0.2s ease;
}

.button.small { min-height: 0; padding: 8px 12px; font-size: 13px; }
.button-primary { background: linear-gradient(135deg, #1677ff, #55a6ff); color: white; box-shadow: 0 14px 36px rgba(34, 119, 255, 0.26); }
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(34, 119, 255, 0.32); }
.button-ghost { border-color: var(--line); background: rgba(255, 255, 255, 0.03); color: #d7deea; }
.button-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.secondary-cta { font-weight: 600; opacity: 0.9; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid #8cc2ff;
  outline-offset: 3px;
}

.hero { padding: 76px 0 66px; min-height: 0; overflow: visible; }
.hero-copy { margin-bottom: 42px; }
.hero-copy.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 42px;
}
.hero-main { min-width: 0; }
.hero-cli-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 260px;
  color: #fff;
  user-select: none;
}
.hero-cli-symbol {
  width: min(100%, 360px);
  height: auto;
}
.hero-cli-cursor {
  animation: hero-cli-blink 1.2s steps(1, end) infinite;
}

@keyframes hero-cli-blink {
  0%, 49% { opacity: 1; }
  50%, 99% { opacity: 0; }
  100% { opacity: 1; }
}
.hero-demo-wrap {
  position: relative;
  z-index: 2;
}
.hero-brand { margin-bottom: 26px; }
.hero-brand img { display: block; width: min(500px, 92vw); height: auto; }
.eyebrow, .kicker {
  color: var(--blue-2);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 8px; }
.eyebrow span { width: 7px; height: 7px; background: var(--green); border-radius: 50%; box-shadow: 0 0 14px rgba(73, 213, 154, 0.64); }
h1 {
  max-width: none;
  font-size: clamp(44px, 5.8vw, 70px);
  line-height: 1;
  letter-spacing: 0;
  margin: 18px 0 22px;
  font-weight: 700;
}

h1 em, h2 em { color: var(--blue-2); font-style: normal; }

h2 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 10px 0 18px;
}

h3 { letter-spacing: 0; }
.hero-lead { max-width: 690px; color: #b2bdce; font-size: 18px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-actions .button { min-height: 0; padding: 12px 18px; }
.hero-meta { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: #77849a; font-size: 12px; }
.hero-meta i { width: 3px; height: 3px; background: #56657d; border-radius: 50%; }
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 44px;
}

.hero-proof span {
  border: 1px solid rgba(121, 180, 255, 0.22);
  border-radius: 999px;
  background: rgba(18, 28, 44, 0.72);
  color: #b7c8df;
  padding: 6px 10px;
  font-size: 12px;
}

.hero-shot {
  margin: 68px 0 0;
  border: 1px solid rgba(121, 180, 255, 0.22);
  border-radius: var(--radius);
  background: #11151b;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 86px rgba(34, 119, 255, 0.08);
  overflow: hidden;
}

.hero-shot img,
.proof-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-shot figcaption {
  display: none;
  margin: 0;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: #aab8cd;
  font-size: 13px;
}

.trace-section {
  display: grid;
  grid-template-columns: minmax(290px, 0.62fr) minmax(0, 1.38fr);
  gap: 30px;
  padding: 104px 0;
  border-top: 1px solid var(--line);
}

.trace-intro {
  align-self: start;
}

.trace-intro h2 {
  max-width: 620px;
}

.trace-intro p {
  max-width: 540px;
  color: var(--muted);
  font-size: 17px;
}

.trace-intro .button {
  margin-top: 18px;
}

.trace-section svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trace-architecture {
  position: relative;
  min-height: 330px;
  display: grid;
  grid-template-columns: minmax(124px, 0.7fr) 30px minmax(146px, 0.86fr) 30px minmax(108px, 0.56fr) 34px minmax(176px, 1fr);
  gap: 0;
  align-items: center;
  border: 1px solid rgba(111, 161, 242, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(65, 135, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 135, 255, 0.05) 1px, transparent 1px),
    rgba(8, 13, 20, 0.55);
  background-size: 18px 18px;
  padding: 12px;
  overflow: hidden;
}

.trace-architecture.trace-architecture-image {
  display: block;
  align-self: start;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: #07111b;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34), 0 0 60px rgba(34, 119, 255, 0.08);
}

.trace-architecture-image img {
  display: block;
  width: 100%;
  height: auto;
}

.trace-connector {
  position: relative;
  z-index: 0;
  align-self: stretch;
  min-width: 0;
}

.trace-connector span {
  position: absolute;
  left: -6px;
  right: -6px;
  height: 1px;
  color: rgba(43, 148, 255, 0.74);
  background: rgba(43, 148, 255, 0.74);
  box-shadow: 0 0 10px rgba(43, 148, 255, 0.22);
}

.device-connector span::before,
.device-connector span::after,
.flow-connector span::before,
.flow-connector span::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.device-connector span::before,
.flow-connector span::before { left: 0; }
.device-connector span::after,
.flow-connector span::after { right: 0; }

.device-connector span:nth-child(1) { top: calc(50% - 78px); }
.device-connector span:nth-child(2) { top: calc(50% - 26px); }
.device-connector span:nth-child(3) { top: calc(50% + 26px); }
.device-connector span:nth-child(4) { top: calc(50% + 78px); }

.flow-connector span {
  top: 50%;
}

.flow-connector.purple span {
  color: rgba(187, 79, 255, 0.82);
  background: rgba(187, 79, 255, 0.82);
  box-shadow: 0 0 10px rgba(187, 79, 255, 0.2);
}

.outcome-connector::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 18px;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    rgba(80, 159, 255, 0.7),
    rgba(73, 213, 154, 0.7),
    rgba(187, 79, 255, 0.72),
    rgba(255, 151, 62, 0.68),
    rgba(244, 191, 92, 0.68),
    rgba(107, 220, 236, 0.68)
  );
  box-shadow: 0 0 12px rgba(80, 159, 255, 0.16);
}

.outcome-connector {
  display: grid;
  grid-template-rows: 17px repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-self: center;
  height: 252px;
}

.outcome-connector span {
  position: static;
  align-self: center;
  width: calc(100% + 18px);
  margin-left: -9px;
}

.outcome-connector span:nth-child(1) {
  grid-row: 2;
  color: rgba(80, 159, 255, 0.78);
  background: rgba(80, 159, 255, 0.78);
}

.outcome-connector span:nth-child(2) {
  grid-row: 3;
  color: rgba(73, 213, 154, 0.78);
  background: rgba(73, 213, 154, 0.78);
}

.outcome-connector span:nth-child(3) {
  grid-row: 4;
  color: rgba(187, 79, 255, 0.82);
  background: rgba(187, 79, 255, 0.82);
}

.outcome-connector span:nth-child(4) {
  grid-row: 5;
  color: rgba(255, 151, 62, 0.78);
  background: rgba(255, 151, 62, 0.78);
}

.outcome-connector span:nth-child(5) {
  grid-row: 6;
  color: rgba(244, 191, 92, 0.78);
  background: rgba(244, 191, 92, 0.78);
}

.outcome-connector span:nth-child(6) {
  grid-row: 7;
  color: rgba(107, 220, 236, 0.78);
  background: rgba(107, 220, 236, 0.78);
}

.trace-devices {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-right: 6px;
}

.trace-device,
.trace-worksession,
.trace-artifact,
.trace-outcome,
.trace-command-log,
.trace-source {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: rgba(14, 20, 29, 0.88);
}

.trace-device {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 7px;
  padding: 8px;
}

.trace-device svg,
.trace-node-title svg {
  color: #169cff;
}

.trace-device b,
.trace-device small {
  display: block;
}

.trace-device b {
  color: #f4f8ff;
  font-size: 11px;
}

.trace-device small {
  color: #a0adbf;
  font-size: 10px;
}

.trace-worksession {
  position: relative;
  z-index: 1;
  margin: 0 6px;
  padding: 14px;
  border-color: rgba(174, 72, 255, 0.58);
  box-shadow: 0 0 46px rgba(33, 119, 255, 0.16), inset 0 0 0 1px rgba(43, 148, 255, 0.12);
}

.trace-node-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #26a6ff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.trace-worksession > small {
  display: block;
  margin: 5px 0 14px 26px;
  color: #c9d6e8;
  font-size: 8.5px;
}

.trace-worksession ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d7e1f0;
}

.trace-worksession li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}

.trace-worksession li svg {
  width: 12px;
  height: 12px;
  color: #28a8ff;
}

.trace-artifact {
  position: relative;
  z-index: 1;
  margin: 0 6px;
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 132px;
  padding: 10px;
  border-color: rgba(187, 79, 255, 0.56);
  color: #f4f7ff;
  text-align: center;
  box-shadow: 0 0 42px rgba(187, 79, 255, 0.12);
}

.trace-artifact svg {
  width: 30px;
  height: 30px;
  color: #c45dff;
}

.trace-artifact strong {
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
}

.trace-artifact span {
  color: #becadd;
  font-size: 9px;
}

.trace-outcomes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 17px repeat(6, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  margin-left: 6px;
}

.trace-outcomes > p {
  margin: 0 0 4px;
  color: var(--blue-2);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trace-outcome {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 6px;
  align-items: start;
  min-width: 0;
  padding: 7px;
  border-left-width: 2px;
}

.trace-outcome svg {
  width: 12px;
  height: 12px;
}

.trace-outcome:nth-child(2) { color: #84b9ff; }
.trace-outcome:nth-child(3) { color: #63e6a8; }
.trace-outcome:nth-child(4) { color: #c47dff; }
.trace-outcome:nth-child(5) { color: #ff9f55; }
.trace-outcome:nth-child(6) { color: #f4bf5c; }
.trace-outcome:nth-child(7) { color: #6bdcec; }

.trace-outcome b,
.trace-outcome small {
  display: block;
}

.trace-outcome b {
  color: currentColor;
  font-size: 10.5px;
}

.trace-outcome small {
  margin-top: 2px;
  color: #b7c2d0;
  font-size: 9px;
  line-height: 1.28;
}

.trace-capture-band {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: #b8c2d2;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.trace-capture-band span {
  height: 1px;
  background: rgba(148, 163, 184, 0.24);
}

.trace-capture-band b {
  font-size: 13px;
}

.trace-capture-band em {
  color: var(--blue-2);
  font-style: normal;
}

.trace-proof-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 20px;
}

.trace-command-log {
  overflow: hidden;
}

.trace-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.trace-log-head strong {
  color: #f4f8ff;
}

.trace-log-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #62e59f;
  font-size: 12px;
}

.trace-log-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(73, 213, 154, 0.64);
}

.trace-log-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
}

.trace-log-tabs span {
  padding: 11px 10px;
  color: #b9c5d5;
  font-size: 12px;
  text-align: center;
}

.trace-log-tabs .active {
  color: #e9f5ff;
  box-shadow: inset 0 -2px 0 var(--blue);
}

.trace-command-list {
  display: grid;
  padding: 8px 0;
}

.trace-command-list div {
  display: grid;
  grid-template-columns: 72px 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  color: #f4f8ff;
  font: 12px/1.35 "JetBrains Mono", Consolas, monospace;
}

.trace-command-list time {
  color: #aeb9c8;
}

.trace-command-list svg {
  width: 16px;
  height: 16px;
  color: #23a8ff;
}

.trace-command-list strong {
  color: #47e690;
  font-weight: 700;
}

.trace-command-list small {
  display: block;
  color: #b6c2d0;
  font-size: 11px;
}

.trace-command-list b {
  color: #96b9ed;
  font-size: 11px;
  font-weight: 500;
}

.trace-log-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.trace-log-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 8px;
  color: #c9d5e4;
  font-size: 12px;
}

.trace-log-metrics svg {
  width: 15px;
  height: 15px;
  color: #93a8c5;
}

.trace-source {
  padding: 20px;
}

.trace-source h3 {
  margin: 0 0 12px;
  color: #f6f9ff;
  font-size: 22px;
}

.trace-source p {
  margin: 0;
  color: #b9c5d5;
}

.trace-source-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.trace-source-grid div {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(7, 12, 18, 0.58);
}

.trace-source-grid svg {
  width: 26px;
  height: 26px;
  color: #42a9ff;
}

.trace-source-grid div:nth-child(1) svg { color: #c45dff; }
.trace-source-grid div:nth-child(3) svg { color: #54de91; }
.trace-source-grid div:nth-child(4) svg { color: #ff9f55; }

.trace-source-grid b {
  color: #f6f9ff;
  font-size: 13px;
}

.trace-source-grid span {
  color: #b2bdcc;
  font-size: 12px;
  line-height: 1.45;
}

.trace-json {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius);
  padding: 14px;
  background: linear-gradient(135deg, rgba(196, 93, 255, 0.12), rgba(12, 20, 30, 0.9));
}

.trace-json > span {
  color: #c45dff;
  font: 700 22px/1 "JetBrains Mono", Consolas, monospace;
}

.trace-json p {
  color: #c3cfde;
  font-size: 13px;
}

.trace-json b {
  color: #f4f8ff;
}

.trace-json code {
  border-radius: 5px;
  background: rgba(196, 93, 255, 0.38);
  color: #f5e9ff;
  padding: 16px 13px;
  font: 700 13px/1 "JetBrains Mono", Consolas, monospace;
}

.product-window {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  border: 1px solid rgba(112, 132, 166, 0.28);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48), 0 0 86px rgba(34, 119, 255, 0.09);
}

.os-frame {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  background: #f3f3f4;
  color: #111318;
  font-size: 12px;
}

.frame-spacer { flex: 1; }
.app-top {
  height: 68px;
  display: grid;
  grid-template-columns: 300px minmax(260px, 1fr) 250px;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: #151920;
  border-bottom: 1px solid var(--line);
}

.product-lockup { display: flex; align-items: center; }
.product-logo {
  display: block;
  width: 250px;
  height: auto;
  clip-path: polygon(0 0, 100% 0, 100% 75.5%, 27.5% 75.5%, 27.5% 100%, 0 100%);
}
.global-search {
  max-width: 525px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  background: #10141b;
  color: #8d99ab;
  font-size: 14px;
}

kbd { color: #87a6d3; font: 12px "JetBrains Mono", Consolas, monospace; }
.user-area { justify-self: end; display: flex; align-items: center; gap: 8px; color: #dce4f1; }
.gear { color: #8aa0be; }
.online, .status-dot, .device-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(73, 213, 154, 0.64);
}

.app-shell {
  max-width: 100%;
  min-width: 0;
  min-height: 585px;
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr) 320px;
}

.app-sidebar, .work-panel { background: #171b22; padding: 14px 12px; }
.app-sidebar { border-right: 1px solid var(--line); }
.work-panel { border-left: 1px solid var(--line); }
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 8px;
  margin-bottom: 20px;
  color: #8d98a9;
  font-size: 13px;
}

.connect-grid div {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 10px;
  background: #11151b;
}

.connect-grid div:nth-child(2) { grid-column: auto; }
.connect-grid button {
  border: 1px solid rgba(64, 132, 255, 0.54);
  background: #142139;
  color: #69a8ff;
  border-radius: 5px;
}

.side-tools {
  display: grid;
  grid-template-columns: 1fr repeat(3, 26px);
  align-items: center;
  color: #8da1c0;
  font-size: 13px;
  margin-bottom: 8px;
}

.side-tools b { text-align: center; color: #8291a8; font-weight: 500; }
.quick-search {
  padding: 12px 10px;
  background: #151a22;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #7b879a;
  font-size: 13px;
  margin: 18px 0;
}

.side-item { padding: 8px 9px; color: #d8e2ef; border-radius: 5px; font-size: 14px; }
.side-item.active { color: #6aa9ff; background: #202631; }
.tree-title { color: #dce7f7; font-size: 13px; font-weight: 700; margin: 20px 2px 10px; }
.device-row {
  display: grid;
  grid-template-columns: 16px 8px 1fr 32px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: white;
  background: #202b3d;
}

.device-row small { display: block; color: #9fb0c7; font-size: 11px; }
.device-row em {
  border: 1px solid #3c83ff;
  color: #72aaff;
  border-radius: 4px;
  padding: 1px 4px;
  font-style: normal;
  font-size: 10px;
}

.star { color: #8d9bb1; }
.terminal-area { min-width: 0; overflow: hidden; display: grid; grid-template-rows: 52px 42px 1fr; }
.session-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 14px;
  background: #151920;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.session-top strong { color: white; }
.session-tools { color: #9eb0ca; font-size: 12px; }
.tabs { display: flex; align-items: stretch; background: #1c212a; border-bottom: 1px solid var(--line); }
.tab {
  min-width: 170px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #94a0b2;
  font-size: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

.tab.active { color: white; background: #11151b; box-shadow: inset 0 3px 0 var(--green); }
.tab.add { min-width: 48px; justify-content: center; font-size: 20px; color: #a0aac0; }
.terminal {
  max-width: 100%;
  min-width: 0;
  min-height: 490px;
  overflow: auto;
  overflow-x: hidden;
  padding: 14px 10px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 14px;
  line-height: 1.32;
  color: white;
  background: var(--terminal);
}

.prompt { color: white; font-weight: 700; }
.success { color: #d9fff0; }
.muted { color: #b6c1d0; }
.cursor { color: white; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.output-running {
  animation: terminal-response 0.7s ease;
}

@keyframes terminal-response {
  0% { filter: brightness(1); }
  35% { filter: brightness(1.28); }
  100% { filter: brightness(1); }
}

.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; margin-bottom: 12px; }
.panel-head h3 { margin: 4px 0 0; font-size: 15px; }
.tiny { color: #8fa0bb; font-size: 11px; }
.panel-head small { color: #c8d5e8; }
.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(77, 141, 255, 0.42);
  background: #14243d;
  border-radius: 5px;
  padding: 10px;
  margin: 8px 0;
  font-size: 12px;
}

.session-card.active { color: white; border-color: rgba(73, 213, 154, 0.38); background: #112721; }
.session-card b { color: white; }
.session-card span { color: #a8b6c9; font-size: 10px; }
.muted-card { opacity: 0.72; }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 12px 0 16px;
}

.metrics div {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101722;
  padding: 9px 6px;
  text-align: center;
}

.metrics b { display: block; font-size: 14px; color: white; }
.metrics span { color: #8493a8; font-size: 10px; }
.metrics.large { margin: 18px 0 20px; }
.metrics.large div { padding: 16px 10px; }
.metrics.large b { font-size: 28px; }
.metrics.large span { font-size: 12px; }
.linked-title, .timeline-title {
  display: flex;
  justify-content: space-between;
  color: #8493a8;
  font-size: 11px;
  margin: 16px 0 8px;
}

.linked-title b, .timeline-title b { color: white; }
.linked-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.linked {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
  border-radius: 5px;
  border: 1px solid rgba(74, 130, 225, 0.42);
  background: #122036;
  color: #75aeff;
  font-size: 11px;
}

.linked.active { color: #49d59a; background: #0d2a22; border-color: rgba(73, 213, 154, 0.32); }
.linked small { font-size: 9px; color: inherit; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.action-grid button {
  border: 1px solid var(--line);
  background: #121720;
  color: #adbad0;
  border-radius: 5px;
  padding: 8px 4px;
  font-size: 12px;
}

.action-grid .active-action { border-color: rgba(60, 141, 255, 0.48); color: #d8e8ff; background: #14243d; }
.timeline { display: grid; gap: 10px; }
.timeline div {
  color: white;
  font-size: 11px;
  font-family: "JetBrains Mono", Consolas, monospace;
  line-height: 1.45;
}

.timeline span { color: #e7eef9; }
.history-modal {
  position: absolute;
  left: 304px;
  right: 14px;
  top: 154px;
  border: 1px solid rgba(111, 161, 242, 0.34);
  border-radius: var(--radius);
  background: rgba(17, 21, 27, 0.97);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.52), 0 0 40px rgba(60, 141, 255, 0.12);
  overflow: hidden;
  z-index: 4;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #151b25;
}

.modal-head h3 { margin: 2px 0 0; font-size: 15px; }
.modal-head button {
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #10151d;
  color: #9ba9bd;
}

.history-entry { padding: 10px 12px 12px; }
.history-command-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.history-command-line span {
  color: #e8f0fc;
  font: 11px/1.45 "JetBrains Mono", Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-command-line button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #10151d;
  color: #9ba9bd;
  padding: 6px 9px;
  font-size: 10px;
}

.history-output-meta { margin: 12px 0 8px; color: #7f8da4; font-size: 10px; }
.history-output {
  margin: 0;
  min-height: 100px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #101218;
  color: #d7deea;
  font: 11px/1.45 "JetBrains Mono", Consolas, monospace;
  white-space: pre-wrap;
}

.status-line {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  background: #151920;
  border-top: 1px solid var(--line);
  color: #a7b7d0;
  font-size: 12px;
}

.status-line span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.status-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.status-line b { margin-left: auto; font-weight: 500; color: #b7c4d8; }

.hero-window {
  max-width: 1120px;
  margin: 0 auto;
  background: #0f131a;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.hero-window svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-window .icon-sprite {
  width: 0;
  height: 0;
  flex: 0 0 0;
}

.window-titlebar {
  height: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px;
  background: #f2f2f3;
  color: #15171b;
  font-size: 12px;
}

.window-titlebar .app-icon {
  width: 17px;
  height: 17px;
  border-radius: 4px;
}

.hero-window .app-top {
  height: 54px;
  grid-template-columns: 220px minmax(250px, 460px) 1fr;
  gap: 0;
  padding: 0 16px;
  background: #171b22;
  border-bottom: 1px solid #29303b;
}

.hero-window .product-logo {
  width: 154px;
}

.hero-window .global-search {
  max-width: none;
  height: 34px;
  justify-content: start;
  gap: 12px;
  background: #11161e;
  color: #8d99ab;
}

.hero-window .global-search span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-window .global-search svg {
  width: 18px;
  height: 18px;
  color: #f7f9ff;
  stroke-width: 2.3;
}

.hero-window .global-search kbd {
  flex: 0 0 auto;
}

.app-top-tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-top-tools button {
  border: 0;
  background: transparent;
  color: #9fafc7;
  padding: 2px;
}

.hero-window .app-shell {
  min-height: 492px;
  grid-template-columns: 224px minmax(0, 1fr) 286px;
}

.hero-window .app-sidebar,
.hero-window .work-panel {
  background: #171c24;
  padding: 9px 9px 7px;
}

.quick-connect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  gap: 7px;
  margin: 3px 0 18px;
}

.connect-field {
  height: 30px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 4px;
  background: #10151d;
  color: #7e8ca1;
  font-size: 11px;
}

.hostname-field {
  grid-column: 1 / -1;
}

.quick-connect button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(91, 143, 239, 0.58);
  border-radius: 4px;
  background: #13243c;
  color: #d8e8ff;
  font-size: 11px;
  font-weight: 700;
}

.hero-window .side-tools {
  grid-template-columns: 1fr repeat(4, 22px);
  margin: 0 2px 8px;
  color: #d8e4f5;
  font-size: 11px;
}

.hero-window .side-tools button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #9daac0;
  padding: 0;
}

.hero-window .side-item {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.hero-window .side-item.active {
  color: #7fb4ff;
  background: #202631;
}

.hero-window .quick-search {
  margin: 13px 0;
  padding: 9px 9px;
}

.tree-title.open {
  margin: 12px 2px 7px;
}

.tree-title.open::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid #d9e5f6;
  vertical-align: middle;
}

.hero-window .device-row {
  grid-template-columns: 14px 7px minmax(0, 1fr) 28px;
  gap: 5px;
  padding: 8px 7px;
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.hero-window .device-row span:not(.device-dot) {
  min-width: 0;
}

.hero-window .device-row b {
  display: block;
  font-size: 10.5px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-window .tree-title {
  font-size: 11px;
}

.hero-window .device-row small {
  font-size: 10px;
  white-space: nowrap;
}

.hero-window .device-row.active {
  background: #1e2b41;
}

.hero-window .device-row em {
  justify-self: end;
}

.hero-window .terminal-area {
  grid-template-rows: 45px 38px minmax(0, 1fr);
  background: #020304;
}

.hero-window .session-top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  min-width: 0;
  height: 45px;
  padding: 0 12px;
  background: #161a21;
}

.session-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.session-identity strong {
  color: #f5f9ff;
  font-size: 12px;
}

.session-identity span {
  color: #8c9bb2;
  font-size: 11px;
}

.hero-window .session-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #91a2bd;
  font-size: 11px;
  white-space: nowrap;
}

.hero-window .session-tools > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.credential-select {
  height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 4px;
  background: #15191f;
  color: #98a5b8;
  padding: 0 10px;
  font-size: 11px;
}

.hero-window .tabs {
  height: 38px;
  background: #20242c;
  overflow: hidden;
}

.hero-window .tab {
  flex: 1 1 0;
  min-width: 0;
  max-width: 210px;
  height: 38px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #c1ccdb;
  gap: 6px;
  cursor: pointer;
  overflow: hidden;
}

.hero-window .tab.active {
  background: #111722;
  color: #f6f9ff;
  box-shadow: inset 0 2px 0 rgba(73, 213, 154, 0.95);
}

.hero-window .tab.add {
  flex: 0 0 42px;
}

.tab-label {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.tab-panel,
.tab-close {
  width: 13px;
  height: 13px;
  color: #9dafc8;
}

.tab-status {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(73, 213, 154, 0.56);
}

.tab-status.idle {
  background: #8a97aa;
  box-shadow: none;
}

.hero-window .terminal {
  height: 384px;
  min-height: 0;
  padding: 16px 10px;
  overflow: hidden;
  background: #000;
  color: #fbfbfb;
  font-size: 10.5px;
  line-height: 1.28;
}

.hero-window .terminal pre {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
}

.hero-window .work-panel {
  display: block;
  color: #d9e4f3;
}

.work-session-code {
  display: grid;
  grid-template-columns: 1fr 25px;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 0 8px;
  border: 1px solid rgba(60, 116, 208, 0.34);
  border-radius: 4px;
  background: #111c31;
  color: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

.work-session-code button {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #10151d;
  color: #9cadc5;
  padding: 0;
}

.hero-window .session-card {
  margin: 8px 0 10px;
  border: 0;
  background: #10371f;
  color: #edf7f0;
}

.hero-window .linked-title,
.hero-window .timeline-title {
  margin: 10px 0 7px;
}

.hero-window .linked {
  border-radius: 4px;
  background: #13213b;
  cursor: pointer;
}

.hero-window .linked.active {
  color: #90f0bd;
}

.hero-window .action-grid {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 12px;
}

.hero-window .action-grid button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px;
  cursor: pointer;
}

.hero-window .action-grid .wide-action {
  grid-column: 1 / -1;
}

.hero-window .timeline {
  gap: 7px;
  font-size: 9.5px;
}

.hero-window .timeline div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px;
  color: #f3f7ff;
}

.hero-window .timeline span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-window .timeline small {
  color: #98a6ba;
  font: inherit;
  white-space: nowrap;
}

.empty-state {
  margin: 0;
  color: #7f8fa7;
  font-size: 11px;
}

.demo-modal {
  position: absolute;
  inset: 6px 6px 31px;
  z-index: 6;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 5px;
  background: rgba(24, 29, 38, 0.99);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.56);
  overflow: hidden;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal .modal-head {
  min-height: 56px;
  padding: 10px 12px;
}

.demo-modal .modal-head h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 15px;
}

.demo-modal .modal-head span {
  color: #b1bdcf;
  font-size: 11px;
}

.modal-clear {
  margin-left: auto;
  width: auto;
  height: 30px;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  background: #11161f;
  color: #f8fbff;
  padding: 7px 13px;
  font-size: 12px;
}

.modal-close {
  margin-left: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
}

.history-filters,
.manager-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.history-filters button,
.manager-filters button,
.manager-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  background: #121820;
  color: #c5d0df;
  padding: 6px 9px;
  font-size: 11px;
}

.history-filters .active,
.manager-filters .active {
  border-color: rgba(110, 168, 255, 0.55);
  background: #132642;
  color: #e7f1ff;
}

.history-list {
  max-height: 516px;
  overflow: hidden;
}

.demo-modal .history-entry {
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 14px;
}

.demo-modal .history-new {
  animation: history-entry-in 0.34s ease both;
}

@keyframes history-entry-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(73, 213, 154, 0.08);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

.demo-modal .history-output {
  min-height: 84px;
  background: #101519;
}

.demo-modal .tall-output {
  min-height: 220px;
}

.manager-toolbar {
  display: grid;
  grid-template-columns: 1fr 64px 78px;
  gap: 10px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.manager-search {
  display: flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
  background: #10151a;
  color: #7f8b9e;
  padding: 0 10px;
  font-size: 13px;
}

.manager-table {
  margin: 10px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: auto;
}

.manager-row {
  display: grid;
  grid-template-columns: 120px 160px 1.3fr 1fr 120px 190px;
  align-items: center;
  min-width: 900px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.manager-row:last-child {
  border-bottom: 0;
}

.manager-row.manager-new {
  animation: manager-row-in 0.38s ease both;
}

@keyframes manager-row-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
    background: rgba(60, 141, 255, 0.12);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    background: transparent;
  }
}

.manager-row span {
  min-width: 0;
  padding: 10px;
  color: #e6eefc;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-head {
  background: #151a22;
  text-transform: uppercase;
}

.manager-head span {
  color: #8e9cb2;
  font-size: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: 112px;
  border: 1px solid rgba(73, 213, 154, 0.32);
  border-radius: 4px;
  padding: 4px 8px;
  color: #bff5dc;
  text-transform: uppercase;
}

.status-pill.active {
  color: #bff5dc;
  border-color: rgba(73, 213, 154, 0.32);
}

.status-pill.paused {
  color: #ffe0a3;
  border-color: rgba(244, 191, 92, 0.36);
}

.status-pill.completed {
  color: #b8d7ff;
  border-color: rgba(115, 173, 255, 0.36);
}

.status-pill.archived {
  color: #aeb8c8;
  border-color: rgba(148, 163, 184, 0.28);
}

.status-pill i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.status-pill.paused i { background: var(--amber); }
.status-pill.completed i { background: var(--blue-2); }
.status-pill.archived i { background: var(--subtle); }

.row-actions {
  color: #9aa8bd;
  display: flex;
  align-items: center;
  gap: 10px;
}

.derivations-section {
  padding: 104px 0;
  background: #0b0f16;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.derivations-section .section-heading p {
  color: var(--muted);
}

.derivations-showcase {
  margin: 0 0 42px;
}

.derivations-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

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

.derivation-grid article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 16px 14px;
  min-width: 0;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.derivation-grid article > b {
  grid-column: 2;
  justify-self: start;
  color: #9fb4d1;
  font-size: 11px;
  font-weight: 600;
}

.derivation-grid h3 {
  margin: 3px 0 8px;
  color: var(--text);
  font-size: 18px;
}

.derivation-grid small {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.derivation-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.artifact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 6px;
}

.artifact-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.artifact-icon.summary { color: #60a5fa; background: rgba(96, 165, 250, 0.08); }
.artifact-icon.handoff { color: #a78bfa; background: rgba(167, 139, 250, 0.08); }
.artifact-icon.topology { color: #22d3ee; background: rgba(34, 211, 238, 0.08); }
.artifact-icon.documentation { color: #49d59a; background: rgba(73, 213, 154, 0.08); }
.artifact-icon.troubleshooting { color: #f4bf5c; background: rgba(244, 191, 92, 0.08); }

.ecosystem-flow {
  margin-top: 64px;
  padding-top: 54px;
  border-top: 1px solid var(--line);
}

.ecosystem-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.ecosystem-heading h3 {
  margin: 8px 0 0;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.15;
}

.ecosystem-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ecosystem-steps > article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 150px;
  padding: 22px 0;
  border-top: 2px solid var(--line-strong);
}

.ecosystem-steps > article > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue-2);
  background: rgba(60, 141, 255, 0.08);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
}

.ecosystem-steps h4 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
}

.ecosystem-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ecosystem-steps > i {
  color: var(--subtle);
  font-family: "JetBrains Mono", monospace;
  font-style: normal;
}

.section, .pain-section, .pricing-section, .download-section, .after-section, .availability-section, .trust-section { padding: 104px 0; }
.pain-section, .pricing-section, .download-section, .availability-section { background: linear-gradient(180deg, rgba(17, 28, 45, 0.66), rgba(8, 9, 13, 0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: 46px; }
.section-heading.centered { text-align: center; margin: 0 auto 52px; }
.section-heading.compact { margin-bottom: 0; }
.section-heading p, .pain-grid p, .persona-grid p, .pricing-section p, .download-section p, .feature-grid p, .use-case-grid p, .work-copy p, .availability-layout p, .trust-grid p, .final-cta p { color: var(--muted); }
.pricing-section .pricing-trial-note { margin: 18px 0 0; color: #dce8f8; }
.pricing-section .pricing-trial-note strong { color: var(--green); }
.section-heading .kicker, .work-copy .kicker, .trust-copy .kicker, .final-cta .kicker { color: var(--blue-2); }

.pain-grid, .persona-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.persona-grid { grid-template-columns: repeat(3, 1fr); }
.pain-grid article, .persona-grid article, .feature-grid article, .use-case-grid article, .trust-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.82);
  padding: 24px;
}

.persona-label, .card-label {
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pain-grid h3, .persona-grid h3, .feature-grid h3, .use-case-grid h3, .trust-grid h3 { margin: 10px 0 10px; font-size: 22px; }
.pain-grid h3 { font-size: 18px; }
.persona-grid ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
  color: #c7d4e6;
  font-size: 14px;
}

.persona-grid li { display: flex; gap: 10px; }
.persona-grid li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(73, 213, 154, 0.48);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.82);
  padding: 24px;
}

.plan-card.featured {
  border-color: rgba(85, 166, 255, 0.52);
  background: linear-gradient(180deg, rgba(38, 88, 171, 0.28), rgba(18, 22, 29, 0.9));
  box-shadow: 0 24px 70px rgba(34, 119, 255, 0.16);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 18px;
  border: 1px solid rgba(85, 166, 255, 0.44);
  border-radius: 999px;
  background: #12243d;
  color: #dcecff;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.plan-label {
  color: var(--blue-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-head h3 {
  margin: 10px 0 12px;
  font-size: 25px;
}

.plan-price {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 5px;
  color: #f7fbff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.05;
}

.plan-price span {
  display: block;
}

.plan-price small {
  color: #8fa0bb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.plan-price small b {
  color: #b9c7dc;
  font-weight: 700;
}

.plan-head p {
  min-height: 78px;
  margin: 8px 0 0;
  font-size: 14px;
}

.plan-card .button {
  width: 100%;
  min-height: 46px;
  font-size: 15px;
  font-weight: 700;
}

.plan-includes {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.plan-includes span {
  display: block;
  margin-bottom: 12px;
  color: #edf4ff;
  font-size: 13px;
  font-weight: 700;
}

.plan-includes ul {
  list-style: none;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #c7d4e6;
  font-size: 13px;
}

.plan-includes li {
  display: flex;
  gap: 9px;
}

.plan-includes li::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(73, 213, 154, 0.48);
}

.pricing-compare {
  margin-top: 56px;
  border: 1px solid rgba(111, 161, 242, 0.22);
  border-radius: var(--radius);
  background: rgba(10, 15, 23, 0.72);
  overflow: hidden;
}

.compare-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.compare-heading h3 {
  margin: 4px 0 0;
  font-size: 26px;
}

.compare-heading .kicker {
  margin: 0;
}

.compare-table {
  display: grid;
}

.compare-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.05fr) repeat(3, minmax(170px, 0.9fr));
  min-width: 790px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
}

.compare-row:last-child {
  border-bottom: 0;
}

.compare-row span,
.compare-row b {
  padding: 14px 16px;
  border-right: 1px solid rgba(148, 163, 184, 0.1);
  color: #ccd8e8;
  font-size: 13px;
}

.compare-row b {
  display: grid;
  place-items: center;
  color: #eef5ff;
  font-weight: 600;
  text-align: center;
}

.compare-mark svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-mark.included { color: #72e3ad; }
.compare-mark.basic { color: #91bfff; }
.compare-mark.limited { color: #f4bf5c; }
.compare-mark.preview,
.compare-mark.planned { color: #9fb4cf; }
.compare-mark.pilot,
.compare-mark.team { color: #8ebcff; }
.compare-mark.custom { color: #c5d7f3; }
.compare-mark.unavailable { color: #657287; }

.compare-row span {
  color: #dbe5f5;
  font-weight: 600;
}

.compare-row > :last-child {
  border-right: 0;
}

.compare-header {
  background: #111923;
}

.compare-header span,
.compare-header b {
  color: #8ebcff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-category {
  min-width: 790px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.11);
  background: rgba(73, 213, 154, 0.05);
  color: #82dbb9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pricing-faq {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.pricing-faq article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.82);
  padding: 22px;
}

.pricing-faq h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.pricing-faq p {
  margin: 0;
  font-size: 14px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.feature-layout {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 18px;
  align-items: start;
}

.feature-layout > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 15, 23, 0.58);
  padding: 18px;
}

.feature-layout > div > h3 {
  margin: 0 0 14px;
  color: #f2f6fb;
}

.feature-layout .differentiator {
  border-color: rgba(73, 213, 154, 0.24);
  background: linear-gradient(145deg, rgba(73, 213, 154, 0.08), rgba(10, 15, 23, 0.72));
}

.feature-grid.compact { grid-template-columns: 1fr 1fr; }
.release-note {
  margin-top: 24px;
  color: #84a0c4;
  font-size: 16px;
}

.release-note span { margin: 0 13px; color: #667b9a; }

.feature-grid article span {
  display: inline-flex;
  color: #7db4ff;
  font: 12px Consolas, "Cascadia Mono", "JetBrains Mono", monospace;
  margin-bottom: 8px;
}

.feature-grid.compact article span {
  color: #eef5ff;
  font: 700 15px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.work-session-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  align-items: center;
  padding: 112px 0;
}

.work-line {
  color: #e1ecfa;
  font-weight: 700;
}

.session-proof {
  border: 1px solid rgba(111, 161, 242, 0.26);
  border-radius: var(--radius);
  background: #10151d;
  padding: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.manager-proof {
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.work-manager-preview {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  max-height: 500px;
  background: rgba(24, 29, 38, 0.99);
}

.work-manager-preview svg {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-manager-preview .modal-head {
  min-height: 44px;
  gap: 10px;
  padding: 8px 10px;
}

.work-manager-preview .modal-head h3 {
  font-size: 13px;
}

.work-manager-preview .modal-head span {
  font-size: 10px;
}

.work-manager-preview .modal-close {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}

.work-manager-preview .manager-toolbar {
  grid-template-columns: minmax(0, 1fr) 52px 62px;
  gap: 6px;
  padding: 10px;
}

.work-manager-preview .manager-search {
  min-height: 28px;
  padding: 0 8px;
  font-size: 10px;
}

.work-manager-preview .manager-toolbar button,
.work-manager-preview .manager-filters button {
  gap: 4px;
  padding: 5px 6px;
  font-size: 9.5px;
}

.work-manager-preview .manager-filters {
  gap: 4px;
  padding: 7px 8px;
}

.work-manager-preview .manager-table {
  max-height: 310px;
  margin: 8px 10px 10px;
}

.work-manager-preview .manager-row {
  grid-template-columns: 82px 88px minmax(170px, 1.3fr) minmax(105px, 0.9fr) 74px 76px;
  min-width: 600px;
}

.work-manager-preview .manager-row span {
  padding: 7px 6px;
  font-size: 9.5px;
}

.work-manager-preview .manager-head span {
  font-size: 8.5px;
}

.work-manager-preview .status-pill {
  width: 70px;
  gap: 4px;
  padding: 3px 5px;
  font-size: 8.5px;
}

.work-manager-preview .status-pill i {
  width: 7px;
  height: 7px;
}

.work-manager-preview .row-actions {
  gap: 6px;
}

.work-manager-preview .row-actions svg:nth-child(n+5) {
  display: none;
}

.real-proof {
  display: grid;
  gap: 14px;
}

.proof-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #11151b;
  overflow: hidden;
}

.compact-shot {
  background: #171b22;
}

.trace-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f4f8ff;
  font-weight: 800;
}

.trace-row {
  display: grid;
  gap: 4px;
  border-left: 2px solid rgba(121, 180, 255, 0.34);
  padding: 12px 0 12px 14px;
}

.trace-row + .trace-row { border-top: 1px solid var(--line); }
.trace-row b {
  color: #edf4ff;
  font: 12px/1.45 Consolas, "Cascadia Mono", "JetBrains Mono", monospace;
}

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

.after-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 48px; align-items: start; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #11151b; }
.compare-card.new { background: linear-gradient(145deg, rgba(34, 119, 255, 0.16), rgba(17, 21, 27, 0.96)); border-color: rgba(85, 136, 225, 0.28); }
.compare-card h3 { font-size: 22px; margin: 8px 0 20px; }
.flow-list { display: grid; gap: 8px; color: #aebbd0; font-size: 13px; }
.flow-list div { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: rgba(255, 255, 255, 0.02); }
.flow-list .lost { color: #ffadb5; border-color: rgba(255, 122, 136, 0.2); }
.flow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.flow-grid span {
  padding: 13px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 143, 239, 0.18);
  background: rgba(57, 103, 181, 0.08);
  color: #b7d0f5;
  font-size: 13px;
}

.future-output { margin-top: 12px; padding: 14px; border-radius: var(--radius); background: rgba(73, 213, 154, 0.06); color: #91dfc1; font-size: 13px; border: 1px solid rgba(73, 213, 154, 0.13); }
.use-case-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.use-case-grid h3 { font-size: 18px; }

.availability-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 54px;
  align-items: start;
}

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

.availability-grid article {
  border: 1px solid rgba(111, 161, 242, 0.26);
  border-radius: var(--radius);
  background: #10151d;
  padding: 22px;
}

.availability {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.available { color: #79e4b8; background: rgba(73, 213, 154, 0.08); border: 1px solid rgba(73, 213, 154, 0.18); }
.soon { color: #9fb4cf; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.availability-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  color: #d4deeb;
}

.availability-grid li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--blue-2);
}

.trust-section {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  gap: 14px;
  align-items: stretch;
  margin-inline: auto;
}

.download-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(18, 22, 29, 0.82);
  padding: 26px;
}

.download-card.release-platform {
  border-color: rgba(85, 166, 255, 0.34);
  background: linear-gradient(180deg, rgba(39, 101, 199, 0.12), rgba(18, 22, 29, 0.9));
  box-shadow: 0 24px 70px rgba(34, 119, 255, 0.08);
}

.download-card h3 {
  margin: 12px 0 10px;
  font-size: 28px;
}

.download-card p {
  margin: 0;
  font-size: 15px;
}

.download-card small {
  color: #75869f;
  font-size: 12px;
}

.download-card .button {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 700;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.download-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.availability.available {
  color: #63e6b0;
}

.release-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.release-details div {
  min-width: 0;
}

.release-details dt {
  margin-bottom: 3px;
  color: #75869f;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.release-details dd {
  margin: 0;
  color: #d6e3f3;
  font-size: 13px;
}

.release-details .release-checksum {
  grid-column: 1 / -1;
}

.release-checksum code {
  display: block;
  overflow-wrap: anywhere;
  color: #8fc3ff;
  font-size: 11px;
  line-height: 1.55;
}

.download-card .unsigned-notice {
  color: #9aabc1;
  line-height: 1.55;
}

.unsigned-notice strong {
  color: #f2c96d;
}

.platform-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 7px;
  border: 1px solid rgba(116, 173, 255, 0.28);
  border-radius: var(--radius);
  background: #101a2a;
  color: #74adff;
}

.platform-mark svg {
  width: 31px;
  height: 31px;
  display: block;
  fill: currentColor;
}

.release-platform .platform-mark {
  border-color: rgba(116, 173, 255, 0.46);
  background: linear-gradient(145deg, rgba(60, 141, 255, 0.22), rgba(16, 26, 42, 0.96));
  box-shadow: 0 0 24px rgba(60, 141, 255, 0.18);
}

.download-note {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  border: 1px solid rgba(73, 213, 154, 0.16);
  border-radius: var(--radius);
  background: rgba(73, 213, 154, 0.055);
  padding: 12px 14px;
}

.download-note p {
  margin: 0;
  color: #a8bdd4;
  font-size: 13px;
}

.final-cta {
  margin-top: 34px;
  margin-bottom: 100px;
  padding: 44px;
  border: 1px solid rgba(76, 139, 255, 0.25);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(35, 76, 150, 0.2), rgba(14, 21, 35, 0.9));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.final-cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.footer {
  min-height: 180px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 30px;
  border-top: 1px solid var(--line);
  color: #7d8ca3;
  font-size: 12px;
}

.footer p { margin: 0; }
.footer-links { display: flex; gap: 18px; }
.footer > small { grid-column: 1 / -1; }

.legal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% -10%, rgba(55, 122, 255, 0.12), transparent 28%),
    var(--bg);
}

.legal-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-main {
  width: min(860px, calc(100% - 40px));
  padding: 64px 0 88px;
}

.legal-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 46px;
  border: 1px solid rgba(0, 209, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(0, 209, 255, 0.06);
  padding: 12px 14px;
  color: #a9cbe2;
  font-size: 13px;
}

.legal-notice strong {
  color: var(--cyan);
}

.legal-heading {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-heading h1 {
  margin-bottom: 12px;
  font-size: clamp(42px, 7vw, 68px);
}

.legal-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.legal-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.legal-section p,
.legal-section li {
  color: #aeb9ca;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a,
.legal-footer a {
  color: var(--blue-2);
}

.legal-section a:hover,
.legal-footer a:hover {
  color: var(--text);
}

.legal-footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1120px) {
  .hero-copy.wrap { grid-template-columns: minmax(0, 1.7fr) minmax(210px, 0.7fr); }
  .hero-cli-mark { height: 220px; }
  .app-top { grid-template-columns: 240px 1fr auto; }
  .product-logo { width: 220px; }
  .app-shell { grid-template-columns: 230px 1fr; }
  .work-panel { display: none; }
  .history-modal { left: 248px; right: 22px; }
  .terminal { min-height: 450px; }
  .hero-window .app-top { grid-template-columns: 190px minmax(220px, 1fr) auto; }
  .hero-window .app-shell { grid-template-columns: 206px minmax(0, 1fr); }
  .hero-window .work-panel { display: none; }
  .hero-window .session-tools { display: none; }
  .pricing-grid, .derivation-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .use-case-grid { grid-template-columns: repeat(3, 1fr); }
  .trace-section { grid-template-columns: 1fr; }
  .trace-intro p { max-width: 720px; }
  .trace-architecture { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trace-connector { display: none; }
  .trace-outcomes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .trace-outcomes > p { grid-column: 1 / -1; }
  .trace-proof-layout { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .hero-copy.wrap { display: block; }
  .hero-cli-mark { display: none; }
  .nav { display: none; }
  .pain-grid, .persona-grid, .pricing-faq, .feature-grid, .feature-layout, .work-session-section, .comparison, .after-layout, .availability-layout, .availability-grid, .trust-section, .trust-grid, .final-cta { grid-template-columns: 1fr; }
  .section-heading.compact { margin-bottom: 34px; }
  .final-cta { align-items: start; }
  .pricing-compare { overflow-x: auto; }
  .compare-heading { display: block; }
  .history-modal { display: none; }
  .trace-source-grid { grid-template-columns: repeat(2, 1fr); }
  .trace-capture-band { grid-template-columns: 1fr; gap: 10px; }
  .trace-capture-band span { display: none; }
  .hero-window .app-top { grid-template-columns: 1fr; height: auto; gap: 12px; padding: 14px; }
  .hero-window .global-search, .hero-window .app-top-tools { display: none; }
  .hero-window .app-shell { grid-template-columns: 1fr; }
  .hero-window .app-sidebar { display: none; }
  .hero-window .terminal-area { grid-template-rows: 42px minmax(0, 1fr); }
  .hero-window .session-top { display: none; }
  .demo-modal { inset: 6px 6px 31px; }
  .ecosystem-steps { grid-template-columns: 1fr; }
  .ecosystem-steps > article { min-height: 0; }
  .ecosystem-steps > i { display: none; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 24px); max-width: 1180px; margin-left: auto; margin-right: auto; }
  .site-header { height: 68px; }
  .site-header .button { display: none; }
  .brand-logo { width: 154px; }
  .hero { padding-top: 58px; }
  .hero-brand img { width: min(330px, 100%); }
  h1 { font-size: 42px; max-width: none; overflow-wrap: normal; }
  .hero-lead { font-size: 16px; max-width: 100%; overflow-wrap: anywhere; }
  .hero-actions, .cta-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button, .cta-actions .button { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 1fr; }
  .hero-proof span { min-width: 0; text-align: center; white-space: normal; }
  .trace-section, .derivations-section { padding: 76px 0; }
  .derivations-showcase { margin-bottom: 28px; }
  .derivation-grid { grid-template-columns: 1fr; }
  .derivation-grid article { padding: 20px; }
  .ecosystem-flow { margin-top: 48px; padding-top: 42px; }
  .trace-architecture { grid-template-columns: 1fr; padding: 14px; }
  .trace-outcomes { grid-template-columns: 1fr; }
  .trace-log-tabs { grid-template-columns: repeat(2, 1fr); }
  .trace-command-list { overflow-x: auto; }
  .trace-command-list div { min-width: 560px; }
  .trace-log-metrics { grid-template-columns: 1fr 1fr; }
  .trace-source-grid { grid-template-columns: 1fr; }
  .trace-json { grid-template-columns: 1fr; }
  .trace-json code { width: fit-content; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan-card { padding: 22px; }
  .plan-head p { min-height: 0; }
  .plan-price { min-height: 0; font-size: 26px; }
  .pricing-compare { margin-top: 40px; }
  .compare-row, .compare-category { min-width: 760px; }
  .compare-row { grid-template-columns: minmax(210px, 1.15fr) repeat(3, minmax(110px, 0.8fr)); }
  .app-top { grid-template-columns: 1fr; height: auto; padding: 14px; }
  .product-logo { width: 220px; }
  .global-search, .user-area { display: none; }
  .app-shell { grid-template-columns: 1fr; min-height: 460px; }
  .app-sidebar { display: none; }
  .session-top { grid-template-columns: 1fr; height: auto; padding: 12px; gap: 4px; }
  .tabs { overflow-x: auto; min-width: 0; }
  .tab { flex: 0 0 128px; min-width: 128px; }
  .hero-window .tabs { overflow: hidden; }
  .hero-window .tab { flex: 1 1 0; min-width: 0; max-width: none; padding: 0 10px; }
  .hero-window .tab-panel, .hero-window .tab-close { display: none; }
  .terminal { min-height: 390px; font-size: 11px; padding: 12px; }
  .hero-window .terminal { height: 350px; font-size: 9.5px; }
  .terminal div { white-space: normal; overflow-wrap: anywhere; }
  .status-line { overflow-x: auto; white-space: nowrap; }
  .download-card { padding: 22px; }
  .download-note { align-items: start; width: auto; }
  .section, .pain-section, .pricing-section, .download-section, .after-section, .availability-section, .trust-section, .work-session-section { padding: 76px 0; }
  .feature-grid, .use-case-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .final-cta { padding: 28px; margin-bottom: 72px; }
  .footer { grid-template-columns: 1fr; padding: 40px 0; }
  .footer > small { grid-column: auto; }
  .footer-links { margin: 6px 0; flex-wrap: wrap; }
  .legal-header { gap: 12px; }
  .legal-header .brand-logo { width: 142px; }
  .legal-header .button { padding: 8px 10px; white-space: nowrap; }
  .legal-main { width: calc(100% - 24px); padding: 48px 0 64px; }
  .legal-notice { align-items: flex-start; flex-direction: column; gap: 3px; margin-bottom: 34px; }
  .legal-section { padding: 28px 0; }
  .legal-footer { grid-template-columns: 1fr; gap: 10px; padding: 34px 0; }
}

.footer-preference {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.footer-preference:hover,
.footer-preference:focus-visible {
  color: var(--accent);
}

.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 32px));
  padding: 12px 14px;
  border: 1px solid rgba(66, 153, 255, 0.3);
  border-radius: 6px;
  background: #10151d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  color: var(--text);
}

.analytics-consent[hidden] {
  display: none;
}

.analytics-consent-copy {
  display: grid;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.analytics-consent-copy span {
  color: var(--muted);
}

.analytics-consent-copy a {
  color: #70c7ff;
}

.analytics-consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 720px) {
  .analytics-consent {
    right: 12px;
    bottom: 12px;
    width: min(420px, calc(100vw - 24px));
  }

  .analytics-consent-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-cli-cursor { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
