:root {
  --bg-deep: #0d1117;
  --bg-main: #111722;
  --bg-panel: #161b22;
  --bg-panel-2: #1c2128;
  --bg-panel-3: #21262d;
  --line: #30363d;
  --line-soft: rgba(240, 246, 252, 0.1);
  --text: #e6edf3;
  --text-2: #a7b0bd;
  --text-3: #6e7681;
  --blue: #58a6ff;
  --cyan: #38bdf8;
  --green: #3fb950;
  --green-2: #238636;
  --amber: #d29922;
  --orange: #f59e0b;
  --red: #f85149;
  --purple: #a78bfa;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-strong: 0 28px 80px rgba(0, 0, 0, 0.48);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.28);
  --font-sans: "Source Sans 3", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Source Code Pro", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.1), transparent 28vw),
    radial-gradient(circle at 96% 18%, rgba(210, 153, 34, 0.08), transparent 24vw),
    radial-gradient(circle at 52% 100%, rgba(63, 185, 80, 0.06), transparent 30vw),
    var(--bg-deep);
  font-family: var(--font-sans);
  line-height: 1.55;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.system-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  opacity: 0.72;
  pointer-events: none;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.92), rgba(13, 17, 23, 0.52) 72%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0;
}

.brand > span:last-child {
  font-size: 1.08rem;
  white-space: nowrap;
}

.brand > span:last-child span {
  color: var(--cyan);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.1));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #d6efff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--text-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-download {
  padding: 0 15px;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: #dff6ff;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 104px clamp(18px, 5vw, 72px) 64px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, rgba(13, 17, 23, 0.96));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 4;
  width: min(760px, 100%);
  margin-bottom: clamp(18px, 3vw, 34px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  color: #9bd7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(63, 185, 80, 0.82);
}

.hero-product-lockup {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  max-width: min(100%, 560px);
  min-height: 28px;
  margin: 0 0 16px;
  padding: 0 11px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-product-lockup span {
  min-width: 0;
  color: #9bd7ff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero-product-lockup .hero-version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid rgba(63, 185, 80, 0.24);
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.12);
  color: #b7f7c8;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.hero-product-lockup::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(63, 185, 80, 0.82);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-title-lockup {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.1vw, 28px);
  width: min(100%, 980px);
  margin: 0 0 clamp(16px, 2vw, 26px);
}

.hero-title-mark {
  width: clamp(4.7rem, 9.4vw, 7.35rem);
  height: clamp(4.7rem, 9.4vw, 7.35rem);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(63, 185, 80, 0.28));
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.1rem, 10.2vw, 8rem);
  line-height: 0.96;
  letter-spacing: 0;
  color: #f4f8ff;
  text-shadow: 0 16px 56px rgba(0, 0, 0, 0.46);
}

.hero-line {
  margin: 0;
  width: min(660px, 100%);
  color: var(--text-2);
  font-size: clamp(1.25rem, 2.7vw, 2rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #f7fff9;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  box-shadow: 0 16px 32px rgba(35, 134, 54, 0.22);
}

.button-secondary {
  color: var(--text);
  border: 1px solid rgba(240, 246, 252, 0.14);
  background: rgba(255, 255, 255, 0.045);
}

.button-secondary:hover {
  border-color: rgba(88, 166, 255, 0.4);
  background: rgba(88, 166, 255, 0.1);
}

.workbench-scene {
  position: relative;
  z-index: 2;
  width: min(1280px, 100%);
  margin: 0 auto;
  perspective: 1600px;
}

.inspyro-window {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(19, 25, 35, 0.98), rgba(13, 17, 23, 0.99) 55%, rgba(12, 18, 27, 1)),
    var(--bg-panel);
  box-shadow:
    var(--shadow-strong),
    0 0 0 1px rgba(125, 211, 252, 0.04) inset;
  transform: rotateX(4deg) rotateY(-7deg) rotateZ(0.2deg);
  transform-origin: 50% 100%;
}

.inspyro-window::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 28%),
    radial-gradient(circle at 24% 6%, rgba(56, 189, 248, 0.1), transparent 32%),
    radial-gradient(circle at 78% 28%, rgba(63, 185, 80, 0.07), transparent 28%);
}

.titlebar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(190px, 0.95fr) minmax(320px, 1.45fr) minmax(230px, 0.85fr);
  align-items: center;
  gap: 16px;
  min-height: 70px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 18, 26, 0.9);
}

.titlebar-brand,
.titlebar-center,
.titlebar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.titlebar-brand {
  gap: 12px;
}

.app-glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
}

.app-glyph img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(63, 185, 80, 0.32));
}

.titlebar-brand strong,
.titlebar-brand small {
  display: block;
}

.titlebar-brand strong {
  line-height: 1;
  font-size: 1.06rem;
}

.titlebar-brand small {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 0.72rem;
}

.titlebar-center {
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}

.workspace-pill,
.kernel-pill,
.run-button,
.status-good,
.status-agent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(240, 246, 252, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.workspace-pill.is-active {
  color: #dff6ff;
  border-color: rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.14);
}

.kernel-pill::before,
.status-good::before,
.status-agent::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--text-3);
}

.status-good::before,
.status-agent::before {
  background: var(--green);
  box-shadow: 0 0 12px rgba(63, 185, 80, 0.62);
}

.run-button {
  color: white;
  border-color: rgba(63, 185, 80, 0.36);
  background: linear-gradient(135deg, var(--green-2), var(--green));
}

.titlebar-right {
  justify-content: flex-end;
  gap: 8px;
}

.titlebar-center,
.titlebar-right {
  scrollbar-width: none;
}

.titlebar-center::-webkit-scrollbar,
.titlebar-right::-webkit-scrollbar {
  display: none;
}

.workspace-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) minmax(390px, 0.72fr);
  min-height: 490px;
}

.explorer-panel {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(28, 33, 40, 0.78);
}

.rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  border-right: 1px solid var(--line);
  background: rgba(22, 27, 34, 0.72);
}

.rail-item {
  width: 30px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 9px;
  background:
    linear-gradient(90deg, rgba(139, 148, 158, 0.52) 9px, transparent 9px) center / 16px 12px no-repeat,
    rgba(255, 255, 255, 0.035);
}

.rail-item.is-selected {
  border-color: rgba(88, 166, 255, 0.38);
  background:
    linear-gradient(90deg, rgba(125, 211, 252, 0.84) 9px, transparent 9px) center / 16px 12px no-repeat,
    rgba(88, 166, 255, 0.16);
}

.tree {
  min-width: 0;
  padding: 16px 12px;
}

.panel-title {
  margin-bottom: 12px;
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-open {
  overflow: hidden;
  margin-bottom: 14px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(13, 17, 23, 0.62);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tree ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree li {
  position: relative;
  overflow: hidden;
  padding: 8px 8px 8px 27px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tree li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(125, 211, 252, 0.48);
  border-radius: 4px;
  transform: translateY(-50%);
}

.tree li.folder::before {
  border-color: rgba(210, 153, 34, 0.54);
  background: rgba(210, 153, 34, 0.22);
}

.tree li.active {
  color: var(--text);
  background: rgba(88, 166, 255, 0.12);
  box-shadow: inset 2px 0 0 var(--blue);
}

.tree li.muted {
  color: var(--text-3);
}

.notebook-panel {
  min-width: 0;
  border-right: 1px solid var(--line);
  background: rgba(17, 23, 34, 0.88);
}

.tab-strip {
  display: flex;
  align-items: flex-end;
  min-height: 44px;
  padding: 8px 14px 0;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 33, 40, 0.78);
}

.tab {
  display: inline-flex;
  align-items: center;
  max-width: 190px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-bottom-color: transparent;
  border-radius: 9px 9px 0 0;
  background: rgba(22, 27, 34, 0.8);
  color: var(--text-2);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tab.active {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--blue);
}

.notebook-scroll {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 446px;
  padding: 26px 32px 32px;
  overflow: hidden;
}

.markdown-result {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.09);
}

.markdown-result.compact {
  padding-bottom: 0;
  border-bottom: 0;
}

.section-number {
  color: #9abb6a;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 0.9;
}

.section-number.amber {
  color: var(--amber);
}

.markdown-result h2 {
  margin-bottom: 8px;
  color: #c5d56d;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 650;
  line-height: 1.12;
}

.markdown-result p {
  margin-bottom: 12px;
  color: var(--text-2);
  font-size: 0.9rem;
}

.token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.token-row span,
.markdown-result mark,
.document-page mark {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(63, 185, 80, 0.14);
  color: #9ae6b4;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.cell-row {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(28, 33, 40, 0.78);
}

.cell-row button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.1);
}

.cell-row button::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 6px 0 0 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #dff6ff;
}

.cell-kind {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.14);
  color: #9bd7ff;
  font-size: 0.68rem;
  font-weight: 900;
}

.cell-row code {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cell-state {
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 800;
}

.table-output {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 27, 34, 0.72);
}

.output-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(33, 38, 45, 0.82);
}

.output-head span {
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.table-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px 70px;
}

.table-grid > * {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.06);
  color: var(--text-2);
  font-size: 0.82rem;
}

.table-grid strong {
  color: var(--text);
  font-family: var(--font-mono);
}

.table-grid em {
  color: #9ae6b4;
  font-style: normal;
  font-weight: 900;
}

.analysis-panel {
  min-width: 0;
  background: rgba(17, 23, 34, 0.72);
}

.analysis-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(28, 33, 40, 0.86);
}

.analysis-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-tabs span.active {
  color: #9bd7ff;
  border: 1px solid rgba(88, 166, 255, 0.42);
  background: rgba(88, 166, 255, 0.18);
}

.analysis-content {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(190px, 0.8fr);
  gap: 14px;
  height: 436px;
  padding: 18px;
}

.graph-card,
.document-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 17, 23, 0.58);
}

.graph-card {
  display: flex;
  flex-direction: column;
}

.graph-head,
.doc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(22, 27, 34, 0.76);
}

.graph-head strong {
  color: #79bbff;
  font-family: var(--font-mono);
}

.graph-head span {
  color: var(--text-3);
  font-size: 0.74rem;
  font-weight: 800;
}

.graph-map {
  flex: 1;
  width: 100%;
  min-height: 150px;
  background-image:
    radial-gradient(circle, rgba(88, 166, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
}

.edge {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edge.muted {
  stroke: rgba(88, 166, 255, 0.42);
}

.edge.hot {
  stroke: url("#edge-blue");
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-edge 5.5s ease-in-out infinite;
}

.amber-edge {
  stroke: rgba(210, 153, 34, 0.6);
}

.node circle,
.node rect {
  stroke-width: 2;
}

.node.import circle {
  fill: rgba(56, 189, 248, 0.24);
  stroke: #38bdf8;
}

.node.param circle {
  fill: rgba(245, 158, 11, 0.24);
  stroke: #f59e0b;
}

.node.check circle {
  fill: rgba(63, 185, 80, 0.24);
  stroke: #3fb950;
}

.node.model rect,
.node.verify rect {
  fill: rgba(167, 139, 250, 0.22);
  stroke: #a78bfa;
}

.node.report circle {
  fill: rgba(210, 153, 34, 0.22);
  stroke: #d29922;
}

.graph-legend {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
}

.graph-legend span,
.doc-toolbar span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(240, 246, 252, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-toolbar {
  justify-content: flex-start;
}

.document-page {
  margin: 16px auto 0;
  width: min(250px, calc(100% - 28px));
  min-height: 145px;
  padding: 18px;
  border-radius: 7px;
  background: #edf3f7;
  color: #111827;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

.document-page h3 {
  margin-bottom: 9px;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.15;
}

.document-page p {
  color: #334155;
  font-size: 0.76rem;
  line-height: 1.5;
}

.document-page mark {
  background: rgba(210, 153, 34, 0.18);
  color: #7c4a03;
}

.doc-table {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 12px;
  border: 1px solid #cbd5e1;
  font-size: 0.7rem;
}

.doc-table > * {
  padding: 5px 7px;
  border-bottom: 1px solid #cbd5e1;
}

.doc-table strong {
  border-left: 1px solid #cbd5e1;
}

.features-section {
  position: relative;
  min-height: 390vh;
  padding: 0 clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.98), rgba(17, 23, 34, 0.88) 48%, rgba(13, 17, 23, 0.96)),
    var(--bg-deep);
}

.features-scroll {
  min-height: 390vh;
}

.features-stage {
  position: sticky;
  top: 76px;
  display: grid;
  align-content: center;
  gap: clamp(42px, 5vh, 70px);
  width: min(1060px, 100%);
  min-height: calc(100svh - 92px);
  margin: 0 auto;
  padding: 42px 0;
}

.features-heading {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.features-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.45rem, 4.8vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.feature-story {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.feature-progress {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: center;
}

.feature-progress::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.26), rgba(63, 185, 80, 0.2), transparent);
  transform: translateX(-50%);
}

.feature-progress button {
  appearance: none;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 112px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0 12px;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.86);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.feature-progress button:hover {
  border-color: rgba(56, 189, 248, 0.24);
  color: var(--text-2);
}

.feature-progress button:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.54);
  outline-offset: 3px;
}

.feature-progress button.is-active {
  border-color: rgba(56, 189, 248, 0.34);
  background: rgba(56, 189, 248, 0.11);
  color: #dff6ff;
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.1);
}

.features-grid {
  position: relative;
  width: min(760px, 100%);
  min-height: 360px;
  margin: 0 auto;
}

.features-grid::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 0;
  border: 1px solid rgba(56, 189, 248, 0.08);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), transparent 34%, rgba(63, 185, 80, 0.07)),
    radial-gradient(circle at 16% 20%, rgba(56, 189, 248, 0.12), transparent 26%),
    radial-gradient(circle at 88% 78%, rgba(210, 153, 34, 0.1), transparent 28%);
  pointer-events: none;
}

.feature-card {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: 28px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #1c2128, #0d1117 72%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 320ms ease, transform 320ms ease;
}

.features-grid:not(.has-active) .feature-card:first-child,
.feature-card.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--feature-color, var(--cyan)), transparent);
}

.feature-python { --feature-color: var(--cyan); }
.feature-docx { --feature-color: var(--amber); }
.feature-latex { --feature-color: var(--purple); }
.feature-template { --feature-color: var(--blue); }
.feature-workspace { --feature-color: var(--green); }
.feature-ai-models { --feature-color: var(--purple); }
.feature-skill { --feature-color: var(--cyan); }

.feature-visual {
  position: relative;
  display: grid;
  align-content: center;
  min-width: 0;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(240, 246, 252, 0.09);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 22%, rgba(88, 166, 255, 0.16), transparent 32%),
    rgba(13, 17, 23, 0.58);
}

.feature-copy {
  min-width: 0;
  align-self: center;
}

.feature-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(1.65rem, 2.4vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 1.05rem;
  line-height: 1.45;
}

.python-visual {
  align-content: stretch;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.18), transparent 30%),
    linear-gradient(rgba(88, 166, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.05) 1px, transparent 1px),
    rgba(13, 17, 23, 0.58);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.python-runtime {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 16px;
  min-height: 100%;
}

.runtime-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 9px;
  background:
    linear-gradient(160deg, rgba(10, 16, 25, 0.95), rgba(6, 11, 18, 0.82));
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.22);
}

.runtime-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.08);
  background: rgba(28, 33, 40, 0.74);
  font-family: var(--font-mono);
}

.runtime-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 14px rgba(63, 185, 80, 0.54);
}

.runtime-bar strong {
  overflow: hidden;
  color: #9bd7ff;
  font-size: 0.68rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.runtime-bar em {
  color: var(--text-3);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-cell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: center;
  gap: 8px 10px;
  padding: 14px;
  font-family: var(--font-mono);
}

.runtime-cell span {
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 44px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #9bd7ff;
  font-size: 0.66rem;
  font-weight: 900;
}

.runtime-cell code {
  overflow: hidden;
  padding: 8px 10px;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 0.68rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.runtime-cell strong {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid rgba(63, 185, 80, 0.24);
  border-radius: 999px;
  background: rgba(63, 185, 80, 0.12);
  color: #9ae6b4;
  font-size: 0.62rem;
}

.runtime-modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.runtime-modules span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #dff6ff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 900;
  white-space: nowrap;
}

.runtime-modules span:nth-of-type(2) {
  border-color: rgba(63, 185, 80, 0.2);
  background: rgba(63, 185, 80, 0.1);
  color: #9ae6b4;
}

.runtime-modules span:nth-of-type(3) {
  border-color: rgba(210, 153, 34, 0.22);
  background: rgba(210, 153, 34, 0.1);
  color: #ffd88c;
}

.runtime-modules i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(56, 189, 248, 0.84));
}

.runtime-chip {
  position: absolute;
  right: 20px;
  bottom: 64px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.16);
  color: #9bd7ff;
  font-size: 0.72rem;
  font-weight: 900;
}

.docx-visual,
.latex-visual,
.template-visual,
.workspace-visual,
.ai-models-visual,
.skill-visual {
  align-content: stretch;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 20%, color-mix(in srgb, var(--feature-color) 22%, transparent), transparent 32%),
    linear-gradient(rgba(88, 166, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 166, 255, 0.05) 1px, transparent 1px),
    rgba(13, 17, 23, 0.58);
  background-size: auto, 28px 28px, 28px 28px, auto;
}

.docx-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 12px;
  min-height: 100%;
}

.docx-native-sheet {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border-radius: 8px;
  background: #eef5fa;
  color: #1f2937;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
}

.docx-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
}

.docx-page-header strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 0.62rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.docx-page-header span,
.docx-side-rail span,
.docx-native-chip {
  border: 1px solid rgba(210, 153, 34, 0.28);
  border-radius: 999px;
  background: rgba(210, 153, 34, 0.12);
  color: #ffd88c;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.docx-page-header span {
  padding: 3px 6px;
  background: #dbeafe;
  color: #2563eb;
}

.docx-title-line,
.docx-body-line {
  height: 8px;
  border-radius: 999px;
  background: #94a3b8;
}

.docx-title-line {
  width: 72%;
  height: 10px;
}

.docx-body-line {
  width: 88%;
  background: #cbd5e1;
}

.docx-table-scene {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  padding: 5px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
}

.docx-table-scene i {
  min-height: 16px;
  border-radius: 3px;
  background: #dbeafe;
}

.docx-figure-scene {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.docx-figure-scene span:first-child {
  width: 36px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(145deg, #bfdbfe, #93c5fd);
}

.docx-figure-scene span:last-child {
  height: 7px;
  border-radius: 999px;
  background: #cbd5e1;
}

.docx-side-rail {
  display: grid;
  gap: 8px;
  align-content: center;
}

.docx-side-rail span {
  display: grid;
  place-items: center;
  min-height: 28px;
  color: #f8d47c;
}

.docx-native-chip {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 8px;
}

.formula-flow {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  min-height: 100%;
}

.latex-editor,
.word-formula-surface,
.template-doc,
.workspace-root,
.workspace-files,
.skill-card-file {
  min-width: 0;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 8px;
  background: rgba(6, 11, 18, 0.72);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
}

.latex-editor,
.word-formula-surface {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 12px;
  font-family: var(--font-mono);
}

.latex-editor {
  border-color: rgba(167, 139, 250, 0.24);
  background: rgba(167, 139, 250, 0.08);
}

.latex-editor strong,
.word-formula-surface strong {
  color: #d8ccff;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.latex-editor code {
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(13, 17, 23, 0.58);
  color: #e7dcff;
  font-size: 0.68rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.transform-lane {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.transform-lane span {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.78));
}

.transform-lane span:last-child {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.78), rgba(210, 153, 34, 0.42));
}

.transform-lane i {
  padding: 5px 9px;
  border: 1px solid rgba(210, 153, 34, 0.28);
  border-radius: 999px;
  background: rgba(210, 153, 34, 0.12);
  color: #ffd88c;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 900;
}

.word-formula-surface {
  border-color: rgba(210, 153, 34, 0.22);
  background: rgba(238, 245, 250, 0.95);
}

.word-formula-surface strong {
  color: #475569;
}

.formula-native {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 8px 10px;
  color: #111827;
  font-weight: 900;
}

.native-fraction {
  display: inline-grid;
  grid-template-rows: auto 2px auto;
  justify-items: center;
  min-width: 112px;
  padding: 2px 18px;
  color: #0f172a;
  text-align: center;
}

.fraction-part {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.24rem;
  line-height: 1.05;
}

.fraction-part i {
  font-style: italic;
}

.fraction-part sub {
  font-size: 0.62em;
  line-height: 0;
}

.fraction-line {
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #0f172a;
}

.template-flow-scene {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  min-height: 100%;
}

.template-doc {
  display: grid;
  gap: 7px;
  align-content: center;
  padding: 12px;
  font-family: var(--font-mono);
}

.template-doc strong {
  color: #9bd7ff;
  font-size: 0.64rem;
}

.template-doc span,
.template-doc i {
  display: block;
  height: 8px;
  border-radius: 999px;
}

.template-doc span {
  width: 64%;
  background: var(--blue);
}

.template-doc i {
  background: rgba(203, 213, 225, 0.4);
}

.template-doc-target {
  border-color: rgba(63, 185, 80, 0.18);
}

.template-doc-target span {
  background: var(--green);
}

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

.style-tokens span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.08);
  color: #dff6ff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 900;
}

.style-tokens span:nth-child(2) {
  border-color: rgba(210, 153, 34, 0.22);
  background: rgba(210, 153, 34, 0.1);
  color: #ffd88c;
}

.style-tokens span:nth-child(3) {
  border-color: rgba(63, 185, 80, 0.2);
  background: rgba(63, 185, 80, 0.1);
  color: #9ae6b4;
}

.workspace-scene {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  min-height: 100%;
}

.workspace-scene::before {
  content: "";
  position: absolute;
  left: 82px;
  right: 32px;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(63, 185, 80, 0.44), rgba(56, 189, 248, 0.18));
}

.workspace-root {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 12px;
}

.folder-large {
  width: 58px;
  height: 44px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(210, 153, 34, 0.95) 0 54%, transparent 54%) 0 0 / 40px 12px no-repeat,
    linear-gradient(180deg, rgba(210, 153, 34, 0.96), rgba(245, 158, 11, 0.62));
  box-shadow: 0 18px 28px rgba(210, 153, 34, 0.14);
}

.workspace-root strong {
  color: #ffd88c;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.workspace-files {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px;
  font-family: var(--font-mono);
}

.workspace-files span {
  overflow: hidden;
  position: relative;
  padding: 7px 8px 7px 24px;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-files span::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--cyan);
  transform: translateY(-50%);
}

.workspace-files .file-py::before { background: var(--green); }
.workspace-files .file-doc::before { background: var(--amber); }
.workspace-files .file-pdf::before { background: var(--purple); }

.model-hub-scene {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  isolation: isolate;
}

.model-hub-scene::before,
.model-hub-scene::after {
  content: "";
  position: absolute;
  inset: 20px;
  z-index: -1;
  border: 1px solid rgba(167, 139, 250, 0.18);
  border-radius: 50%;
  opacity: 0.72;
}

.model-hub-scene::after {
  inset: 54px;
  border-color: rgba(56, 189, 248, 0.16);
}

.model-hub-core,
.model-node,
.model-chips span {
  border: 1px solid rgba(240, 246, 252, 0.1);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
  font-family: var(--font-mono);
}

.model-hub-core {
  display: grid;
  gap: 5px;
  place-items: center;
  min-width: 128px;
  min-height: 96px;
  padding: 14px;
  border-color: rgba(167, 139, 250, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 28%, rgba(167, 139, 250, 0.22), transparent 46%),
    rgba(6, 11, 18, 0.82);
}

.model-hub-core span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 20px rgba(63, 185, 80, 0.58);
}

.model-hub-core strong {
  color: var(--text);
  font-size: 0.78rem;
}

.model-hub-core small {
  color: #c4b5fd;
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
}

.model-node {
  position: absolute;
  display: grid;
  place-items: center;
  min-width: 82px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(13, 17, 23, 0.84);
  color: #dff6ff;
  font-size: 0.62rem;
  font-weight: 900;
}

.model-node::before {
  content: "";
  position: absolute;
  width: 58px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.76), rgba(167, 139, 250, 0.28));
}

.model-node-one {
  top: 18px;
  left: 24px;
  border-color: rgba(167, 139, 250, 0.28);
}

.model-node-one::before {
  right: -48px;
  bottom: -18px;
  transform: rotate(28deg);
}

.model-node-two {
  top: 28px;
  right: 18px;
  border-color: rgba(56, 189, 248, 0.28);
}

.model-node-two::before {
  left: -48px;
  bottom: -14px;
  transform: rotate(-24deg);
}

.model-node-three {
  left: 12px;
  bottom: 56px;
  border-color: rgba(63, 185, 80, 0.24);
  color: #9ae6b4;
}

.model-node-three::before {
  right: -50px;
  top: -14px;
  transform: rotate(-24deg);
}

.model-node-four {
  right: 10px;
  bottom: 62px;
  border-color: rgba(210, 153, 34, 0.26);
  color: #ffd88c;
}

.model-node-four::before {
  left: -50px;
  top: -16px;
  transform: rotate(28deg);
}

.model-chips {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.model-chips span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border-color: rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #9bd7ff;
  font-size: 0.56rem;
  font-weight: 900;
}

.model-chips span:nth-child(2) {
  border-color: rgba(63, 185, 80, 0.2);
  background: rgba(63, 185, 80, 0.1);
  color: #9ae6b4;
}

.model-chips span:nth-child(3) {
  border-color: rgba(167, 139, 250, 0.24);
  background: rgba(167, 139, 250, 0.1);
  color: #d8ccff;
}

.skill-scene {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 100%;
}

.agent-system {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.agent-node {
  position: relative;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.18), transparent 42%),
    rgba(56, 189, 248, 0.08);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.12);
}

.agent-node::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(56, 189, 248, 0.26);
  border-radius: 50%;
}

.agent-node span {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(63, 185, 80, 0.48);
}

.agent-node span:nth-child(1) { left: 10px; top: 12px; }
.agent-node span:nth-child(2) { right: 9px; top: 20px; background: var(--cyan); }
.agent-node span:nth-child(3) { left: 24px; bottom: 9px; background: var(--amber); }

.skill-card-file {
  display: grid;
  gap: 8px;
  padding: 12px;
  font-family: var(--font-mono);
}

.skill-card-file strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.72rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.skill-card-file span {
  overflow: hidden;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-3);
  font-size: 0.62rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.skill-path {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr) 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}

.skill-path span {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: #dff6ff;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 900;
}

.skill-path span:last-child {
  border-color: rgba(210, 153, 34, 0.24);
  background: rgba(210, 153, 34, 0.1);
  color: #ffd88c;
}

.skill-path i {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2), rgba(56, 189, 248, 0.82));
}

.trace-section {
  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.94), rgba(17, 23, 34, 0.76) 46%, rgba(13, 17, 23, 0.96));
}

.trace-heading {
  max-width: 880px;
  margin: 0 auto 34px;
  text-align: center;
}

.trace-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.trace-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 18px;
  width: min(1200px, 100%);
  min-height: 330px;
  margin: 0 auto;
  padding: 42px 28px;
}

.trace-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.trace-line-base,
.trace-line-hot {
  fill: none;
  stroke-linecap: round;
  stroke-width: 3;
}

.trace-line-base {
  stroke: rgba(88, 166, 255, 0.14);
}

.trace-line-hot {
  stroke: #38bdf8;
  stroke-dasharray: 62 580;
  animation: trace-flow 6s linear infinite;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.42));
}

.trace-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(240, 246, 252, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(28, 33, 40, 0.92), rgba(13, 17, 23, 0.88));
  box-shadow: var(--shadow-soft);
}

.trace-node::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--node-color, var(--blue)), transparent);
}

.trace-model {
  --node-color: var(--cyan);
}

.trace-run {
  --node-color: var(--green);
}

.trace-graph {
  --node-color: var(--purple);
}

.trace-report {
  --node-color: var(--amber);
}

.trace-deliver {
  --node-color: var(--blue);
}

.trace-label {
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.trace-node strong {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.1;
}

.mini-code {
  display: grid;
  gap: 7px;
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.mini-code span,
.mini-code em {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(88, 166, 255, 0.16);
  border-radius: 9px;
  background: rgba(88, 166, 255, 0.08);
  color: #b9e8ff;
  font-style: normal;
}

.mini-code em {
  width: 34px;
  justify-content: center;
  color: var(--text-3);
}

.mini-bars {
  display: flex;
  align-items: end;
  gap: 8px;
  min-height: 82px;
  margin-top: auto;
}

.mini-bars span {
  flex: 1;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, rgba(63, 185, 80, 0.92), rgba(35, 134, 54, 0.2));
}

.mini-bars span:nth-child(1) { height: 58px; }
.mini-bars span:nth-child(2) { height: 38px; }
.mini-bars span:nth-child(3) { height: 70px; }
.mini-bars span:nth-child(4) { height: 48px; }

.mini-graph {
  position: relative;
  min-height: 82px;
  margin-top: auto;
  border-radius: 12px;
  background-image: radial-gradient(circle, rgba(88, 166, 255, 0.13) 1px, transparent 1px);
  background-size: 18px 18px;
}

.mini-graph::before,
.mini-graph::after {
  content: "";
  position: absolute;
  border-top: 2px solid rgba(56, 189, 248, 0.58);
  transform-origin: left center;
}

.mini-graph::before {
  width: 78%;
  left: 12%;
  top: 50%;
  transform: rotate(-18deg);
}

.mini-graph::after {
  width: 58%;
  left: 24%;
  top: 38%;
  transform: rotate(30deg);
  border-color: rgba(210, 153, 34, 0.6);
}

.mini-graph i {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.mini-graph i:nth-child(1) { left: 10%; top: 58%; }
.mini-graph i:nth-child(2) { left: 28%; top: 28%; background: var(--green); }
.mini-graph i:nth-child(3) { left: 54%; top: 44%; background: var(--purple); }
.mini-graph i:nth-child(4) { left: 70%; top: 20%; background: var(--amber); }
.mini-graph i:nth-child(5) { left: 82%; top: 64%; background: var(--green); }

.trace-report p {
  margin: auto 0 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

.trace-report mark {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(210, 153, 34, 0.16);
  color: #ffd88c;
  font-family: var(--font-mono);
}

.delivery-stack {
  position: relative;
  min-height: 90px;
  margin-top: auto;
}

.delivery-stack span {
  position: absolute;
  left: 50%;
  width: 78%;
  height: 72px;
  border: 1px solid rgba(88, 166, 255, 0.24);
  border-radius: 9px;
  background:
    linear-gradient(#e8eef6 0 0) 18px 18px / 54% 7px no-repeat,
    linear-gradient(#cbd5e1 0 0) 18px 34px / 68% 6px no-repeat,
    linear-gradient(#cbd5e1 0 0) 18px 48px / 42% 6px no-repeat,
    #f8fafc;
  transform: translateX(-50%) rotate(var(--r, 0deg)) translateY(var(--y, 0));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.2);
}

.delivery-stack span:nth-child(1) {
  --r: -5deg;
  --y: 10px;
  opacity: 0.58;
}

.delivery-stack span:nth-child(2) {
  --r: 3deg;
  --y: 2px;
  opacity: 0.76;
}

.delivery-stack span:nth-child(3) {
  --r: 0deg;
  --y: -8px;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.proof-strip div {
  min-width: 0;
  padding: 30px clamp(18px, 4vw, 46px);
  background: rgba(17, 23, 34, 0.92);
}

.proof-strip span,
.proof-strip strong {
  display: block;
}

.proof-strip span {
  color: var(--text-3);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-strip strong {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0;
}

.youtube-main {
  min-height: 100svh;
}

.youtube-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  min-height: 100svh;
  padding: 118px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(13, 17, 23, 0.62), rgba(13, 17, 23, 0.94)),
    radial-gradient(circle at 70% 42%, rgba(248, 81, 73, 0.18), transparent 30vw);
}

.youtube-copy {
  position: relative;
  z-index: 2;
  width: min(740px, 100%);
}

.youtube-copy h1 {
  margin: 0;
  color: #f4f8ff;
  font-size: clamp(4rem, 11vw, 8.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.46);
}

.youtube-status {
  margin: 18px 0 0;
  color: #ffb4ae;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.youtube-lede {
  width: min(560px, 100%);
  margin: 24px 0 0;
  color: var(--text-2);
  font-size: clamp(1.08rem, 2.2vw, 1.45rem);
  line-height: 1.36;
}

.youtube-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.youtube-visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 44vw, 520px);
}

.youtube-orbit {
  position: absolute;
  inset: 4%;
  border: 1px solid rgba(248, 81, 73, 0.2);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(248, 81, 73, 0.16), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.08), transparent 58%);
  box-shadow: 0 0 80px rgba(248, 81, 73, 0.12);
}

.youtube-orbit span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(248, 81, 73, 0.58);
}

.youtube-orbit span:nth-child(1) {
  left: 16%;
  top: 24%;
}

.youtube-orbit span:nth-child(2) {
  right: 13%;
  top: 42%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.48);
}

.youtube-orbit span:nth-child(3) {
  left: 42%;
  bottom: 10%;
  background: var(--green);
  box-shadow: 0 0 18px rgba(63, 185, 80, 0.48);
}

.youtube-play-card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(420px, 86vw);
  min-height: 300px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(248, 81, 73, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(28, 33, 40, 0.94), rgba(13, 17, 23, 0.94)),
    var(--bg-panel);
  box-shadow:
    var(--shadow-strong),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.youtube-play-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(240, 246, 252, 0.08);
  border-radius: 18px;
  pointer-events: none;
}

.youtube-play-mark {
  display: grid;
  place-items: center;
  width: clamp(128px, 20vw, 180px);
  aspect-ratio: 16 / 11;
  border-radius: 32px;
  background:
    linear-gradient(135deg, #ff3b30, #f85149 62%, #ff7a70);
  box-shadow:
    0 24px 56px rgba(248, 81, 73, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.youtube-play-mark span {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: clamp(20px, 3.2vw, 30px) solid transparent;
  border-bottom: clamp(20px, 3.2vw, 30px) solid transparent;
  border-left: clamp(34px, 5vw, 52px) solid #fff;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.22));
}

.youtube-card-lines {
  display: grid;
  gap: 8px;
  width: min(220px, 100%);
}

.youtube-card-lines i {
  height: 8px;
  border-radius: 999px;
  background: rgba(240, 246, 252, 0.12);
}

.youtube-card-lines i:nth-child(2) {
  width: 76%;
  background: rgba(56, 189, 248, 0.2);
}

.youtube-card-lines i:nth-child(3) {
  width: 56%;
  background: rgba(63, 185, 80, 0.18);
}

.youtube-play-card strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.youtube-play-card small {
  color: var(--text-3);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  background: rgba(13, 17, 23, 0.98);
}

.footer-copy {
  min-width: 0;
}

.site-footer p {
  margin: 0;
  color: var(--text-3);
  font-size: 0.88rem;
}

.footer-credit {
  margin-top: 5px !important;
  color: #dff6ff !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-product-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-left: auto;
  padding: 6px 11px 6px 6px;
  border: 1px solid rgba(63, 185, 80, 0.18);
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.62);
}

.footer-product-lockup img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(63, 185, 80, 0.26));
}

.footer-product-lockup span,
.footer-product-lockup strong,
.footer-product-lockup small {
  display: block;
  min-width: 0;
}

.footer-product-lockup strong {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1;
}

.footer-product-lockup small {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 0.68rem;
  line-height: 1.15;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  50% {
    opacity: 0.56;
    transform: scale(0.72);
  }
}

@keyframes draw-edge {
  0% {
    stroke-dashoffset: 420;
    opacity: 0.3;
  }

  42%,
  68% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: -420;
    opacity: 0.35;
  }
}

@keyframes trace-flow {
  to {
    stroke-dashoffset: -642;
  }
}

@media (max-width: 1180px) {
  .inspyro-window {
    transform: none;
  }

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

  .titlebar-center,
  .titlebar-right {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .workspace-grid {
    grid-template-columns: 210px minmax(360px, 1fr);
  }

  .analysis-panel {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .analysis-content {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    grid-template-rows: none;
    height: auto;
  }

  .feature-story {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 18px;
  }

  .feature-progress button {
    width: 104px;
    font-size: 0.62rem;
  }

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

  .trace-line {
    display: none;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 64px;
    padding-inline: 14px;
  }

  .nav-links {
    gap: 8px;
    font-size: 0.74rem;
  }

  .nav-links a:not(.nav-download):not([href*="github"]) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 96px 14px 48px;
  }

  .hero-copy {
    margin-bottom: 26px;
  }

  .hero-product-lockup {
    max-width: 100%;
    min-height: 28px;
    margin-bottom: 14px;
  }

  .hero-title-lockup {
    gap: 14px;
    margin-bottom: 16px;
  }

  .hero-title-mark {
    width: clamp(3.8rem, 17vw, 5.9rem);
    height: clamp(3.8rem, 17vw, 5.9rem);
  }

  .hero h1 {
    font-size: clamp(3.8rem, 19vw, 6.2rem);
    line-height: 0.98;
  }

  .hero-line {
    font-size: 1.24rem;
    line-height: 1.24;
  }

  .button {
    width: 100%;
  }

  .inspyro-window {
    min-height: 0;
    border-radius: 18px;
  }

  .titlebar {
    min-height: 0;
    padding: 12px;
    gap: 10px;
  }

  .titlebar-center,
  .titlebar-right {
    flex-wrap: wrap;
    gap: 6px;
    overflow: visible;
    padding-bottom: 2px;
  }

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

  .explorer-panel {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notebook-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notebook-scroll {
    height: auto;
    max-height: none;
    padding: 20px 16px;
  }

  .analysis-content {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .graph-map {
    min-height: 190px;
  }

  .features-section {
    min-height: 420vh;
    padding: 0 14px;
  }

  .features-scroll {
    min-height: 420vh;
  }

  .features-stage {
    top: 66px;
    gap: 28px;
    min-height: calc(100svh - 74px);
    padding: 26px 0;
  }

  .features-heading {
    text-align: left;
  }

  .features-heading h2 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .feature-story {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-progress {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: none;
  }

  .feature-progress::before {
    display: none;
  }

  .feature-progress::-webkit-scrollbar {
    display: none;
  }

  .feature-progress button {
    flex: 0 0 auto;
    width: auto;
    min-width: 58px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0 9px;
    font-size: 0.58rem;
  }

  .features-grid {
    width: 100%;
    min-height: 430px;
  }

  .feature-card {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 18px;
  }

  .feature-visual {
    min-height: 200px;
  }

  .docx-workflow {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .workspace-scene {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .trace-section {
    padding-inline: 14px;
  }

  .youtube-hero {
    grid-template-columns: 1fr;
    gap: 34px;
    min-height: auto;
    padding: 96px 14px 54px;
  }

  .youtube-copy h1 {
    font-size: clamp(3.8rem, 17vw, 6.2rem);
  }

  .youtube-status {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

  .youtube-actions .button {
    width: 100%;
  }

  .youtube-visual {
    min-height: 330px;
  }

  .youtube-play-card {
    width: min(390px, 100%);
    min-height: 280px;
    border-radius: 20px;
  }

  .trace-heading {
    text-align: left;
  }

  .trace-heading h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
  }

  .trace-board {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
  }

  .trace-node {
    min-height: 165px;
  }

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

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 18px;
  }

  .footer-product-lockup {
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-nav {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }

  .nav-links {
    display: flex;
    width: 100%;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-links a:not(.nav-download):not([href*="github"]) {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(240, 246, 252, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.64rem;
    white-space: nowrap;
  }

  .nav-links .nav-download {
    padding-inline: 11px;
  }

  .hero {
    padding-top: 126px;
  }

  .youtube-hero {
    padding-top: 126px;
  }
}

@media (max-width: 460px) {
  .site-nav {
    gap: 10px;
  }

  .brand > span:last-child {
    font-size: 0.96rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .hero-product-lockup {
    gap: 10px;
    padding-right: 12px;
  }

  .hero-title-lockup {
    gap: 10px;
  }

  .hero-title-mark {
    width: clamp(3.1rem, 16vw, 4.4rem);
    height: clamp(3.1rem, 16vw, 4.4rem);
  }

  .hero h1 {
    font-size: clamp(3.1rem, 16vw, 4.5rem);
  }

  .hero-product-lockup span {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  .nav-download {
    padding-inline: 11px;
  }

  .markdown-result {
    grid-template-columns: 1fr;
  }

  .section-number {
    font-size: 1.6rem;
  }

  .cell-row {
    grid-template-columns: 28px auto minmax(0, 1fr);
  }

  .cell-state {
    display: none;
  }

  .table-grid {
    grid-template-columns: minmax(0, 1fr) 58px 56px;
  }

  .feature-card {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 16px;
    padding: 16px;
  }

  .feature-visual {
    min-height: 168px;
  }

  .python-visual,
  .docx-visual,
  .latex-visual,
  .template-visual,
  .workspace-visual,
  .ai-models-visual,
  .skill-visual {
    padding: 12px;
  }

  .python-runtime {
    gap: 10px;
  }

  .runtime-bar {
    min-height: 30px;
    padding-inline: 9px;
  }

  .runtime-cell {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 10px;
  }

  .runtime-cell span {
    grid-row: auto;
    min-width: 0;
    min-height: 26px;
  }

  .runtime-cell code {
    padding: 7px 8px;
    font-size: 0.62rem;
  }

  .runtime-modules span {
    min-height: 27px;
    font-size: 0.6rem;
  }

  .docx-workflow {
    grid-template-columns: minmax(0, 1fr) 62px;
    gap: 8px;
  }

  .docx-native-sheet,
  .latex-editor,
  .word-formula-surface,
  .template-doc,
  .workspace-root,
  .workspace-files,
  .skill-card-file {
    padding: 9px;
  }

  .docx-native-sheet,
  .formula-flow,
  .template-flow-scene,
  .skill-scene {
    gap: 7px;
  }

  .docx-side-rail {
    gap: 6px;
  }

  .docx-side-rail span,
  .style-tokens span,
  .skill-path span {
    min-height: 24px;
    font-size: 0.52rem;
  }

  .docx-table-scene i {
    min-height: 10px;
  }

  .workspace-scene {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 8px;
  }

  .folder-large {
    width: 50px;
    height: 38px;
  }

  .workspace-files span,
  .latex-editor code {
    font-size: 0.56rem;
  }

  .agent-system {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 8px;
  }

  .agent-node {
    width: 50px;
    height: 50px;
  }

  .skill-path {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) 12px minmax(0, 1fr);
  }

  .model-hub-scene::before {
    inset: 14px;
  }

  .model-hub-scene::after {
    inset: 42px;
  }

  .model-hub-core {
    min-width: 108px;
    min-height: 78px;
    padding: 10px;
  }

  .model-hub-core strong {
    font-size: 0.66rem;
  }

  .model-node {
    min-width: 66px;
    min-height: 28px;
    padding: 0 7px;
    font-size: 0.52rem;
  }

  .model-node::before {
    width: 36px;
  }

  .model-node-one {
    top: 10px;
    left: 8px;
  }

  .model-node-one::before {
    right: -28px;
    bottom: -12px;
  }

  .model-node-two {
    top: 14px;
    right: 8px;
  }

  .model-node-two::before {
    left: -28px;
    bottom: -10px;
  }

  .model-node-three {
    left: 8px;
    bottom: 46px;
  }

  .model-node-three::before {
    right: -30px;
    top: -10px;
  }

  .model-node-four {
    right: 8px;
    bottom: 46px;
  }

  .model-node-four::before {
    left: -30px;
    top: -11px;
  }

  .model-chips {
    left: 10px;
    right: 10px;
    bottom: 8px;
    gap: 4px;
  }

  .model-chips span {
    min-height: 23px;
    font-size: 0.5rem;
  }

  .features-grid {
    min-height: 510px;
  }

  .feature-progress {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 0;
  }

  .feature-progress button {
    width: 100%;
    height: 28px;
    min-height: 28px;
    min-width: 0;
    padding-inline: 2px;
    font-size: 0.48rem;
  }

  .features-heading h2 {
    font-size: 2rem;
  }

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

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

  .system-canvas {
    display: none;
  }
}
