:root {
  --ink-980: #030a12;
  --ink-950: #06111f;
  --ink-900: #0b1828;
  --ink-850: #102238;
  --ink-800: #142943;
  --line: rgba(134, 189, 216, 0.16);
  --line-strong: rgba(134, 189, 216, 0.32);
  --text: #eef7ff;
  --muted: #9fb3c5;
  --dim: #6f8497;
  --cyan: #42c8df;
  --teal: #42e8c7;
  --blue: #4e9dff;
  --amber: #ffc15a;
  --rose: #ff6f91;
  --panel: rgba(10, 25, 41, 0.78);
  --panel-solid: #0b1a2a;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-980);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Fira Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(66, 200, 223, 0.22), transparent 34rem),
    radial-gradient(circle at 84% 16%, rgba(255, 193, 90, 0.15), transparent 28rem),
    linear-gradient(135deg, #020812 0%, #06111f 44%, #081727 100%);
}

body::selection {
  background: rgba(66, 232, 199, 0.36);
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(134, 189, 216, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(134, 189, 216, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.82) 64%, transparent 100%);
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  transform: translateY(-180%);
  border-radius: 999px;
  background: var(--teal);
  color: #03201c;
  font-weight: 800;
  padding: 0.75rem 1rem;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(4, 13, 24, 0.82);
  padding: 1.2rem;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.82rem;
  margin-bottom: 0.3rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 25%, #c8fff3, transparent 24%),
    linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 38px rgba(66, 200, 223, 0.32);
}

.brand-lockup strong {
  display: block;
  font-size: 1.15rem;
}

.brand-lockup small,
.sidebar-card span,
.panel p,
.lead,
.message p,
.chip,
.nav-list a {
  color: var(--muted);
}

.nav-list {
  display: grid;
  gap: 0.5rem;
}

.nav-list a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  border-color: var(--line-strong);
  background: rgba(66, 200, 223, 0.1);
  color: var(--text);
  transform: translateX(2px);
}

.sidebar-card,
.panel,
.stat-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.sidebar-card {
  display: grid;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  margin-top: auto;
  padding: 1rem;
}

.sidebar-card.compact {
  margin-top: 0;
}

.workspace {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1.2rem 0 2rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.topbar h1,
.panel h2 {
  margin: 0;
  letter-spacing: -0.032em;
}

.topbar h1 {
  font-size: clamp(2rem, 5vw, 5rem);
  line-height: 0.96;
}

.topbar-actions,
.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  padding: 0.24rem;
}

.language-toggle button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.48rem 0.7rem;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.language-toggle button:hover,
.language-toggle button.is-active {
  background: rgba(66, 232, 199, 0.14);
  color: #dffff7;
  box-shadow: inset 0 0 0 1px rgba(66, 232, 199, 0.24);
}

.eyebrow {
  margin: 0 0 0.42rem;
  color: var(--cyan);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

code,
.mini-pill,
.status-pill,
.mention,
.chip,
.search-mock span,
.architecture-list span {
  font-family: "Fira Code", monospace;
}

code,
.mini-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #cfe9ff;
  font-size: 0.78rem;
  padding: 0.52rem 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.46rem;
  border: 1px solid rgba(66, 232, 199, 0.32);
  border-radius: 999px;
  background: rgba(66, 232, 199, 0.12);
  color: #cffff5;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.6rem 0.82rem;
  white-space: nowrap;
}

.status-pill::before {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 99px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(66, 232, 199, 0.78);
  content: "";
}

.hero-grid,
.split-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

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

.panel {
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.panel-heading {
  margin-bottom: 1rem;
}

.panel h2 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
  line-height: 1.02;
}

.lead {
  max-width: 940px;
  margin: 0 0 1.2rem;
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  line-height: 1.65;
}

.panel-note {
  max-width: 720px;
  margin: 0.58rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.chat-panel {
  min-height: 520px;
  background:
    radial-gradient(circle at 82% 10%, rgba(78, 157, 255, 0.16), transparent 20rem),
    linear-gradient(145deg, rgba(12, 28, 46, 0.9), rgba(7, 17, 31, 0.9));
}

.message-stack {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0;
}

.message {
  max-width: 760px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0.9rem 1rem;
}

.message span {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.message p {
  margin: 0.34rem 0 0;
  line-height: 1.62;
}

.message.operator {
  background: rgba(66, 200, 223, 0.08);
}

.message.agent {
  margin-left: auto;
  background: rgba(255, 193, 90, 0.08);
}

.composer-mock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(2, 8, 18, 0.5);
  margin-top: 2rem;
  padding: 0.65rem;
}

.composer-mock button {
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: default;
  font-weight: 800;
  padding: 0.75rem 0.9rem;
}

.composer-mock .send-button {
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #05201d;
}

.composer-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  min-height: 48px;
}

.mention {
  border: 1px solid rgba(66, 232, 199, 0.28);
  border-radius: 999px;
  background: rgba(66, 232, 199, 0.12);
  color: #cffff5;
  font-size: 0.82rem;
  padding: 0.42rem 0.6rem;
}

.ghost {
  color: var(--dim);
}

.dock-panel {
  background:
    linear-gradient(180deg, rgba(14, 34, 54, 0.92), rgba(8, 20, 34, 0.92)),
    var(--panel-solid);
}

.dock-tabs,
.risk-stack,
.automation-list,
.agent-flow,
.module-grid,
.palette-grid {
  display: grid;
  gap: 0.7rem;
}

.dock-item,
.module-card,
.agent-card,
.palette-card,
.automation-card,
.risk-item,
.architecture-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.85rem;
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.dock-item:hover,
.module-card:hover,
.agent-card:hover,
.palette-card:hover,
.automation-card:hover,
.architecture-list li:hover {
  border-color: rgba(66, 232, 199, 0.42);
  background: rgba(66, 200, 223, 0.08);
  transform: translateY(-2px);
}

.dock-item strong,
.module-card strong,
.agent-card strong,
.palette-card strong,
.automation-card strong,
.stat-card strong {
  display: block;
  margin-bottom: 0.28rem;
}

.dock-item p,
.module-card p,
.agent-card p,
.palette-card p,
.automation-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.product-screens {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 8%, rgba(66, 232, 199, 0.12), transparent 28rem),
    rgba(4, 14, 25, 0.62);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  padding: clamp(1rem, 2.4vw, 1.45rem);
}

.screen-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.035);
  margin-top: 1rem;
  min-height: 520px;
  padding: 1rem;
}

.screen-copy {
  align-self: end;
  padding: 0.6rem;
}

.screen-copy h3 {
  margin: 0 0 0.9rem;
  font-size: clamp(2rem, 4vw, 4.35rem);
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.screen-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.65;
}

.screen-mock {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    linear-gradient(rgba(66, 200, 223, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 200, 223, 0.045) 1px, transparent 1px),
    linear-gradient(145deg, rgba(5, 16, 29, 0.96), rgba(13, 32, 51, 0.96));
  background-size: 28px 28px, 28px 28px, auto;
  min-height: 488px;
}

.workspace-mock {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 150px;
}

.workspace-mock aside,
.workspace-mock section {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  padding: 1rem;
}

.workspace-mock section {
  border-left: 1px solid var(--line);
  border-right: 0;
}

.workspace-mock aside span,
.workspace-mock section b {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  padding: 0.62rem;
}

.workspace-mock main {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 1.2rem;
}

.screen-pills,
.composer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.screen-pills span,
.composer-line span {
  border: 1px solid rgba(66, 232, 199, 0.26);
  border-radius: 999px;
  background: rgba(66, 232, 199, 0.1);
  color: #cffff5;
  font-family: "Fira Code", monospace;
  font-size: 0.74rem;
  padding: 0.42rem 0.58rem;
}

.chat-bubble,
.composer-line {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.5;
  padding: 1rem;
}

.chat-bubble b {
  display: block;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.composer-line em {
  color: var(--dim);
  font-style: normal;
}

.canvas-mock svg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.canvas-mock path {
  fill: none;
  stroke: rgba(66, 200, 223, 0.34);
  stroke-dasharray: 8 8;
  stroke-width: 3;
}

.flow-node {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(66, 232, 199, 0.3);
  border-radius: 14px;
  background: rgba(8, 24, 40, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.7rem 0.85rem;
}

.node-main { left: 8%; top: 20%; }
.node-scope { left: 28%; top: 12%; }
.node-design { left: 52%; top: 20%; }
.node-arch { right: 8%; top: 14%; }
.node-build { left: 12%; bottom: 21%; }
.node-qa { left: 43%; bottom: 17%; }
.node-release { right: 10%; bottom: 20%; }

.canvas-side {
  position: absolute;
  right: 1rem;
  top: 50%;
  z-index: 3;
  display: grid;
  gap: 0.55rem;
  width: min(260px, 42%);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(9, 25, 41, 0.9);
  padding: 1rem;
  transform: translateY(-50%);
}

.canvas-side span {
  color: var(--muted);
}

.brain-mock {
  min-height: 520px;
}

.brain-cluster {
  position: absolute;
  width: 340px;
  height: 250px;
  background-image:
    radial-gradient(circle, rgba(66, 232, 199, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(78, 157, 255, 0.9) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 111, 145, 0.86) 0 2px, transparent 3px);
  background-position: 0 0, 18px 14px, 36px 28px;
  background-size: 42px 36px, 58px 44px, 72px 64px;
  filter: drop-shadow(0 0 24px rgba(66, 232, 199, 0.18));
}

.cluster-a {
  left: 8%;
  top: 26%;
}

.cluster-b {
  left: 30%;
  top: 12%;
  opacity: 0.64;
}

.cluster-c {
  left: 44%;
  top: 38%;
  opacity: 0.5;
}

.memory-panel {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: grid;
  gap: 0.7rem;
  width: min(330px, 48%);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(9, 25, 41, 0.9);
  padding: 1rem;
}

.memory-panel strong {
  font-size: 1.3rem;
}

.memory-panel span {
  color: var(--muted);
}

.memory-panel button {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(66, 200, 223, 0.1);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  padding: 0.72rem 1rem;
}

.admin-mock {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-content: center;
  padding: 1rem;
}

.admin-metric,
.release-queue {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  padding: 1rem;
}

.admin-metric span,
.release-queue b {
  color: var(--cyan);
  font-family: "Fira Code", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.admin-metric strong {
  display: block;
  color: var(--text);
  font-size: 4rem;
  letter-spacing: -0.08em;
  line-height: 1;
  margin: 0.2rem 0;
}

.admin-metric small,
.release-queue span {
  color: var(--muted);
}

.admin-metric.accent {
  border-color: rgba(255, 193, 90, 0.36);
  background: rgba(255, 193, 90, 0.08);
}

.release-queue {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.55rem;
}

.release-queue span {
  border-top: 1px solid var(--line);
  padding-top: 0.55rem;
}

.stat-card {
  border-radius: var(--radius-lg);
  padding: 1.05rem;
}

.stat-card span {
  color: var(--dim);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  color: var(--teal);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  letter-spacing: -0.08em;
  line-height: 0.92;
}

.stat-card small {
  color: var(--muted);
  line-height: 1.45;
}

.search-mock {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
}

.search-mock span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(66, 232, 199, 0.13);
  color: var(--teal);
  font-weight: 800;
}

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

.palette-card kbd {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 193, 90, 0.36);
  border-radius: 14px;
  background: rgba(255, 193, 90, 0.1);
  color: var(--amber);
  font-family: "Fira Code", monospace;
  font-weight: 800;
}

.registry-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.registry-columns h3 {
  margin: 0 0 0.8rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d8eaff;
  font-size: 0.76rem;
  padding: 0.44rem 0.58rem;
}

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

.module-card .status {
  display: inline-flex;
  border: 1px solid rgba(66, 232, 199, 0.3);
  border-radius: 999px;
  color: var(--teal);
  font-family: "Fira Code", monospace;
  font-size: 0.7rem;
  margin-bottom: 0.75rem;
  padding: 0.32rem 0.5rem;
  text-transform: uppercase;
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  margin-top: 0.75rem;
}

.signal-row span {
  border-radius: 999px;
  background: rgba(78, 157, 255, 0.1);
  color: #b9d9ff;
  font-size: 0.72rem;
  padding: 0.3rem 0.45rem;
}

.agent-card {
  position: relative;
  padding-left: 1.1rem;
}

.agent-card::before {
  position: absolute;
  top: 1rem;
  left: 0;
  width: 4px;
  height: calc(100% - 2rem);
  border-radius: 99px;
  background: linear-gradient(var(--cyan), var(--amber));
  content: "";
}

.agent-card span,
.automation-card span {
  color: var(--amber);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.automation-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.8rem;
}

.risk-item {
  color: var(--muted);
  line-height: 1.5;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.82rem 0.6rem;
  text-align: left;
}

th {
  color: var(--cyan);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: #dbefff;
}

tr:hover td {
  background: rgba(66, 200, 223, 0.06);
}

.architecture-list {
  display: grid;
  gap: 0.56rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.architecture-list span {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
}

.architecture-list strong {
  display: block;
  margin-top: 0.2rem;
}

.positioning-panel {
  margin-bottom: 1.5rem;
}

.positioning-panel blockquote {
  margin: 0 0 1rem;
  color: #f4fbff;
  font-size: clamp(1.2rem, 2.4vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
}

.positioning-panel p {
  max-width: 960px;
  line-height: 1.65;
}

.reveal {
  animation: reveal 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.reveal:nth-of-type(2) {
  animation-delay: 80ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 140ms;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sidebar-card {
    margin-top: 0;
  }

  .hero-grid,
  .split-grid,
  .dashboard-grid,
  .screen-card {
    grid-template-columns: 1fr;
  }

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

  .screen-copy {
    align-self: start;
  }
}

@media (max-width: 760px) {
  .workspace {
    width: min(100% - 20px, 1480px);
  }

  .topbar,
  .topbar-actions,
  .row {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-list,
  .stat-grid,
  .palette-grid,
  .registry-columns,
  .module-grid,
  .automation-card,
  .workspace-mock,
  .admin-mock {
    grid-template-columns: 1fr;
  }

  .composer-mock {
    grid-template-columns: 1fr;
  }

  .screen-card {
    min-height: auto;
    padding: 0.75rem;
  }

  .screen-mock {
    min-height: 560px;
  }

  .workspace-mock aside,
  .workspace-mock section {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-node {
    font-size: 0.68rem;
    padding: 0.5rem 0.58rem;
  }

  .node-main { left: 6%; top: 14%; }
  .node-scope { left: 40%; top: 10%; }
  .node-design { left: 14%; top: 34%; }
  .node-arch { right: 6%; top: 30%; }
  .node-build { left: 8%; bottom: 30%; }
  .node-qa { left: 42%; bottom: 24%; }
  .node-release { right: 8%; bottom: 12%; }

  .canvas-side,
  .memory-panel {
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    width: auto;
    transform: none;
  }

  .brain-cluster {
    left: 4%;
    width: 260px;
  }

  .cluster-b,
  .cluster-c {
    left: 18%;
  }
}
