:root {
  --bg: #1e3261;
  --surface: #22396c;
  --surface-2: #29477e;
  --surface-3: #315690;
  --text: #ffffff;
  --muted: #c7d6f0;
  --line: #426092;
  --accent: #00e6a8;
  --accent-2: #49b7ff;
  --accent-3: #67f0d3;
  --ink: #14254b;
  --light: #f5f7fb;
  --light-2: #ffffff;
  --light-text: #071735;
  --light-muted: #405274;
  --light-line: #dbe4f0;
  --shadow: 0 24px 70px rgba(10, 25, 58, 0.42);
  --sidebar-width: 260px;
  --app-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: calc(100% / var(--app-scale));
  height: calc(100% / var(--app-scale));
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow: hidden;
  transform: scale(var(--app-scale));
  transform-origin: top left;
  transition: grid-template-columns 180ms ease;
}

body.nav-collapsed {
  --sidebar-width: 76px;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 22px;
  min-width: 0;
  height: 100%;
  padding: 28px 22px;
  background: #ffffff;
  border-right: 1px solid #dbe4f0;
  backdrop-filter: none;
  overflow: hidden;
}

.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #050b18;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #050b18;
  border-radius: 7px;
  background: #ffffff;
  color: #00a98f;
}

.brand-mark svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

body.nav-collapsed .brand {
  justify-content: center;
}

body.nav-collapsed .brand-text {
  display: none;
}

.main-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  padding-bottom: 58px; /* Platz fuer den Collapse-Button unten rechts */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

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

.main-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #06415a;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  min-height: 33px;
  padding: 4px 0;
  border-radius: 0;
  white-space: nowrap;
  overflow: hidden;
}

.nav-icon {
  display: grid;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: #007a84;
}

.nav-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav a::after {
  content: "›";
  margin-left: auto;
  color: #007a84;
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.main-nav a:hover,
.main-nav a.active {
  color: #050b18;
  background: transparent;
}

.main-nav a.active .nav-icon {
  color: #00a98f;
  background: transparent;
}

body.nav-collapsed .main-nav a {
  justify-content: center;
  gap: 0;
  padding: 6px 0;
  color: transparent;
  font-size: 0;
}

body.nav-collapsed .nav-label {
  display: none;
}

body.nav-collapsed .main-nav a::after {
  display: none;
}

.sidebar-toggle {
  position: absolute;
  right: 22px;
  bottom: 28px;
  z-index: 30;
  display: grid;
  width: 40px;
  height: 32px;
  place-items: center;
  border: 1px solid #1e3261;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3261;
  cursor: pointer;
}

.toggle-arrow {
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(-45deg) translateX(2px);
  transition: transform 160ms ease;
}

body.nav-collapsed .toggle-arrow {
  transform: rotate(135deg) translateX(2px);
}

body.nav-collapsed .sidebar-top {
  flex-direction: row;
}

body.nav-collapsed .sidebar-toggle {
  right: 18px;
  bottom: 28px;
}

.page-deck {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-height: 0;
  overflow: hidden;
}

.section {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 44px);
  overflow: hidden;
  opacity: 0;
  transform: translateX(26px);
}

.section.active-page {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.section > * {
  position: relative;
  z-index: 1;
}

.hero.active-page,
.split-section.active-page,
.software-layout {
  display: grid;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

#features .feature-intro,
#system .section-heading,
#software .section-heading,
#erkenntnisse .section-heading,
#pcb .section-heading {
  margin-top: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.section-heading h2 {
  max-width: 100%;
  font-size: clamp(24px, 3.4vw, 46px);
  white-space: nowrap;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: min(54vh, 520px);
}

.device-preview,
.open-device-preview {
  position: absolute;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.device-preview {
  inset: 0 42px 54px 0;
  border-radius: 18px 18px 28px 28px;
  padding: 54px 36px;
}

.screen-placeholder {
  display: grid;
  min-height: 210px;
  place-items: center;
  border: 2px dashed #90a1ad;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 230, 168, 0.18), rgba(73, 183, 255, 0.14)),
    #213a70;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, 54px);
  gap: 16px;
  justify-content: end;
  margin-top: 60px;
}

.button-grid span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--text);
}

.open-device-preview {
  right: 0;
  bottom: 0;
  width: 62%;
  min-height: 150px;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.split-section {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 24px;
  background: transparent;
  align-items: stretch;
}

#features.active-page {
  display: grid;
}

.feature-intro {
  display: grid;
  grid-template-columns: minmax(640px, 1fr) minmax(360px, 0.72fr);
  gap: 24px;
  align-items: start;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(199, 214, 240, 0.24);
}

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

.feature-copy h2 {
  margin-bottom: 10px;
  max-width: 100%;
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1;
  white-space: nowrap;
}

.feature-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.feature-stats {
  display: grid;
  align-self: start;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.feature-stat {
  min-width: 0;
  padding: 14px 14px 13px;
  border: 1px solid rgba(199, 214, 240, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
}

.feature-stat strong,
.feature-stat span {
  display: block;
}

.feature-stat strong {
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.feature-stat span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.feature-list,
.info-grid,
.stacked-cards {
  display: grid;
  gap: 14px;
}

.feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
}

.feature-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  padding: 0;
  border: 1px solid rgba(219, 228, 240, 0.94);
  border-radius: 8px;
  background: #ffffff;
  color: var(--light-text);
  box-shadow: 0 18px 52px rgba(8, 18, 42, 0.24);
  overflow: hidden;
}

.feature-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--light-line);
  background: #f8fbff;
}

.feature-group-heading h3 {
  margin: 0;
  color: var(--light-text);
  font-size: 18px;
}

.feature-group-heading span {
  order: 2;
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(0, 230, 168, 0.14);
  color: #007f78;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.feature-group-list {
  display: grid;
  align-content: start;
  gap: 0;
  min-height: 0;
  overflow: auto;
}

.feature-item,
.info-card,
.driver-card,
.detail-panel {
  border: 1px solid var(--light-line);
  border-radius: 8px;
  background: var(--light);
  color: var(--light-text);
  padding: 18px;
  box-shadow: 0 18px 38px rgba(10, 25, 58, 0.18);
}

.feature-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 54px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid #e8eef7;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.feature-item:last-child {
  border-bottom: 0;
}

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

.feature-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  border-radius: 6px;
  background: #edf7f5;
  color: #007f78;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.feature-item p,
.info-card p,
.info-card li,
.driver-card p,
.detail-panel p {
  color: var(--light-muted);
}

.feature-item p {
  margin-bottom: 0;
  color: #33435f;
  font-size: 13.5px;
  line-height: 1.38;
}

.feature-item h3,
.info-card h3,
.driver-card h3,
.detail-panel h3,
.detail-panel h4 {
  color: var(--light-text);
}

.detail-panel .eyebrow,
.info-card .eyebrow,
.driver-card .eyebrow {
  color: #007f78;
}

#system.active-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

#system .section-heading {
  margin-bottom: 0;
}

#system .section-heading p:not(.eyebrow),
#software .section-heading p:not(.eyebrow) {
  color: #c7d6f0;
}

#system.detail-mode .block-diagram,
.block-diagram[hidden] {
  display: none !important;
}

.block-diagram {
  grid-column: 1;
  grid-row: 2;
  display: block;
  min-height: 0;
  height: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 16%, rgba(0, 230, 168, 0.22), transparent 28%),
    radial-gradient(circle at 82% 4%, rgba(73, 183, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #1e3261, #203b70 54%, #182c57);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: opacity 620ms ease;
  z-index: 2;
}

#system.fading-out .block-diagram {
  opacity: 0;
}

#system.zooming-out .block-diagram {
  pointer-events: none;
}

.system-svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.diagram-canvas {
  fill: transparent;
}

.system-boundary {
  fill: rgba(255, 255, 255, 0.018);
  stroke: rgba(199, 214, 240, 0.62);
  stroke-width: 1.6;
  stroke-dasharray: 8 7;
}

.compute-boundary {
  fill: rgba(73, 183, 255, 0.075);
}

.boundary-label {
  fill: #c7d6f0;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagram-legend text {
  fill: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.connection {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.4;
  vector-effect: non-scaling-stroke;
  opacity: 0.96;
}

.connection.power {
  stroke: #ff263f;
}

.connection.signal {
  stroke: var(--accent-2);
}

#arrow-power path,
#arrow-power-start path {
  fill: #ff263f;
}

#arrow-signal path,
#arrow-signal-start path {
  fill: var(--accent-2);
}

.diagram-node {
  cursor: pointer;
  outline: none;
}

.diagram-node.node-static {
  cursor: default;
}

.diagram-node .node-shell {
  fill: #ffffff;
  stroke: rgba(7, 23, 53, 0.38);
  stroke-width: 1.5;
  transition: fill 160ms ease, stroke 160ms ease, stroke-width 160ms ease;
}

.diagram-node .node-stripe {
  display: none;
  stroke: none;
  opacity: 0.95;
}

.node-external .node-stripe {
  fill: #c7d6f0;
}

.node-power .node-stripe {
  fill: #ff263f;
}

.node-logic .node-stripe {
  fill: var(--accent);
}

.node-ui .node-stripe {
  fill: #49b7ff;
}

.node-audio .node-stripe {
  fill: var(--accent-3);
}

.node-compute .node-stripe {
  fill: var(--accent-2);
}

.diagram-node:hover .node-shell,
.diagram-node:focus .node-shell,
.diagram-node.active .node-shell {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 3;
}

.diagram-node.node-static:hover .node-shell,
.diagram-node.node-static:focus .node-shell {
  stroke: rgba(7, 23, 53, 0.38);
  stroke-width: 1.5;
}

.node-label {
  fill: #071735;
  font-size: 16px;
  font-weight: 800;
  pointer-events: none;
}

.click-indicator {
  fill: var(--accent);
  stroke: #14254b;
  stroke-width: 1.5;
  transform-origin: center;
  animation: indicator-pulse 1.8s ease-in-out infinite;
}

.diagram-node.active .click-indicator {
  fill: var(--accent-3);
}

.click-indicator-text {
  fill: #14254b;
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

@keyframes indicator-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.system-detail-view {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  opacity: 1;
  overflow: hidden;
  pointer-events: none;
  transform: none;
  visibility: visible;
  z-index: 1;
}

.system-detail-view[hidden] {
  display: none;
}

#system.detail-mode .system-detail-view {
  pointer-events: auto;
}

.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 900;
}

.system-back-button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 900;
  cursor: pointer;
}

.schema-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--light-text);
  box-shadow: none;
}

.schema-card h3 {
  margin-bottom: 8px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.16;
}

.system-detail-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 2.4vw, 32px);
  border: 1px solid var(--light-line);
  border-radius: 8px;
  background: var(--light);
  color: var(--light-text);
  box-shadow: 0 18px 38px rgba(10, 25, 58, 0.18);
}

.system-detail-page .schema-card {
  grid-area: auto;
}

.block-selector {
  grid-area: auto;
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: visible;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid var(--light-line);
  border-radius: 0;
  background: transparent;
  color: var(--light-text);
  box-shadow: none;
}

.block-topic {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--light-line);
  border-radius: 7px;
  background: var(--light-2);
  color: var(--light-text);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.block-topic.active,
.block-topic:hover {
  border-color: rgba(0, 230, 168, 0.62);
  background: rgba(0, 230, 168, 0.14);
}

.schema-card p {
  color: var(--light-muted);
}

.schematic-placeholder {
  display: grid;
  min-height: 220px;
  max-height: none;
  place-items: center;
  gap: 6px;
  padding: 10px;
  border: 2px dashed #a9b8cf;
  border-radius: 8px;
  background: var(--light-2);
  color: var(--light-muted);
  overflow: hidden;
  text-align: center;
}

.schematic-placeholder img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  border-radius: 4px;
}

.schematic-placeholder strong {
  color: var(--light-text);
  font-size: 13px;
  word-break: break-word;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.detail-topic-panels {
  grid-area: auto;
  min-height: 0;
  overflow: visible;
}

.detail-doc {
  display: none;
  min-height: 0;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--light-text);
  box-shadow: none;
}

.detail-doc.active {
  display: block;
  height: auto;
}

.detail-doc h4 {
  position: static;
  z-index: auto;
  top: auto;
  margin: 0 0 18px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--light-line);
  background: transparent;
  color: var(--light-text);
  font-size: 13px;
  text-transform: uppercase;
}

.detail-doc ul {
  margin: 0;
  padding-left: 18px;
}

.detail-doc li {
  color: var(--light-muted);
  margin-bottom: 7px;
  font-size: 14px;
}



.detail-article {
  display: grid;
  max-width: none;
  gap: 18px;
  color: var(--light-muted);
}

.detail-article section {
  display: grid;
  max-width: 980px;
  gap: 9px;
}

.detail-article h5 {
  margin: 0;
  color: var(--light-text);
  font-size: 15px;
}

.detail-article p {
  margin: 0;
  color: var(--light-muted);
  font-size: 14px;
  line-height: 1.65;
}

.detail-article strong {
  color: var(--light-text);
}

.detail-article ul {
  margin: 0;
  padding-left: 18px;
}

.doc-figure {
  display: grid;
  max-width: 920px;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--light-line);
  border-radius: 8px;
  background: var(--light-2);
}

.doc-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}

.doc-figure figcaption {
  color: var(--light-muted);
  font-size: 12px;
  line-height: 1.45;
}
.doc-figure-wide {
  width: 100%;
  max-width: none;
}

.doc-figure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}

.doc-figure-grid .doc-figure {
  max-width: none;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.pcb-section {
  background: transparent;
  color: #ffffff;
}

.pcb-section.active-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
}

.pcb-section p:not(.eyebrow) {
  color: #c7d6f0;
}

.pcb-section .section-heading {
  margin-bottom: 0;
}

.embedded-viewer {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1e3261;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.pcb-viewer-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1e3261;
}

.software-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 24px;
}

.cpu-chart {
  display: grid;
  gap: 10px;
}

.cpu-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.cpu-label {
  color: var(--text);
  font-weight: 800;
}

.cpu-track {
  position: relative;
  height: 34px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.cpu-bar {
  position: absolute;
  top: 5px;
  height: 24px;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
}

.site-footer {
  display: none;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .software-layout {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
  }

  .feature-intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .feature-copy h2 {
    white-space: normal;
  }

  .feature-stats {
    grid-column: 1;
    grid-row: auto;
    align-self: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    align-content: center;
  }

  .hero-visual {
    min-height: 360px;
  }

  .block-diagram,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schematic-placeholder {
    min-height: 180px;
  }

  .block-selector {
    display: flex;
    flex-wrap: wrap;
  }

  .detail-columns {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  body {
    --sidebar-width: 212px;
  }

  body.nav-collapsed {
    --sidebar-width: 60px;
  }

  .site-header {
    align-items: stretch;
    padding: 12px 8px;
  }

  .brand {
    font-size: 13px;
  }

  .sidebar-toggle {
    right: 8px;
    bottom: 12px;
    width: 34px;
    height: 34px;
  }

  .feature-list,
  .block-diagram,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .feature-intro {
    gap: 16px;
    padding-bottom: 14px;
  }

  .feature-copy p:not(.eyebrow) {
    font-size: 14px;
  }

  .feature-stats {
    grid-template-columns: 1fr;
  }

  .feature-stat {
    padding: 10px 12px;
  }

  .feature-stat strong {
    font-size: 22px;
  }

  .feature-group-heading {
    padding: 12px 14px;
  }

  .feature-item {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 0;
    padding: 10px 14px;
  }

  .feature-number {
    width: 30px;
    height: 26px;
  }

  .feature-item p {
    font-size: 12.5px;
  }

  #system.active-page {
    gap: 8px;
  }

  #system .section-heading p:last-child {
    display: none;
  }

  .block-diagram {
    padding: 6px;
  }

  .schematic-placeholder {
    min-height: 56px;
  }
  .doc-figure-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 250px;
  }

  .device-preview {
    inset: 0 20px 50px 0;
    padding: 34px 22px;
  }

  .screen-placeholder {
    min-height: 120px;
  }

  .cpu-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 20px 16px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 46px);
  }

  h2 {
    font-size: clamp(25px, 8vw, 34px);
  }

  .section-heading h2 {
    font-size: clamp(20px, 6vw, 30px);
  }

}











