.home-hero {
  position: relative;
  overflow-x: clip;
  background:
    linear-gradient(var(--color-page-glow), var(--color-page));
  color: var(--color-ink);
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(34px, 5vw, 58px);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.home-hero::before {
  top: 7%;
  left: 8%;
  width: 18%;
  height: 28%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  opacity: 0.7;
  transform: rotate(-7deg);
}

.home-hero::after {
  right: 6%;
  bottom: 14%;
  width: 15%;
  height: 24%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  opacity: 0.6;
  transform: rotate(8deg);
}

.home-hero-inner {
  position: relative;
  z-index: 1;
}

.home-hero-copy {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.home-kicker {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-accent-deep);
  padding: 0.42rem 0.82rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-kicker-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.home-hero h1 {
  max-width: 840px;
  margin-inline: auto;
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 48px);
}

.home-hero .hero-actions {
  justify-content: center;
  margin-bottom: 20px;
}

.home-hero-description {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.72;
}

.home-hero-description strong {
  color: var(--color-accent-deep);
}

.home-hero .client-chips {
  justify-content: center;
  margin-bottom: 18px;
}

.home-platform-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.home-platform-row a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 650;
  text-decoration: none;
}

.home-platform-row a:hover {
  border-color: var(--color-accent);
  background: var(--color-pink-soft);
  color: var(--color-accent-deep);
}

.home-platform-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  color: var(--color-ink);
}

.home-platform-icon svg {
  width: 13px;
  height: 13px;
}

.route-switchyard {
  position: relative;
  width: min(760px, 94%);
  height: 172px;
  margin: 28px auto 0;
  perspective: 900px;
}

.switchyard-board {
  position: relative;
  width: 84%;
  height: 138px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-device);
  transform: rotateX(55deg) rotateZ(-5deg);
  transform-style: preserve-3d;
}

.switchyard-board::before {
  position: absolute;
  inset: 0;
  border-bottom: 9px solid var(--color-board-right);
  border-left: 7px solid var(--color-board-left);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.switchyard-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-grid) 1px, var(--color-surface) 1px),
    linear-gradient(var(--color-grid) 1px, var(--color-surface) 1px);
  background-size: 34px 34px;
  opacity: 0.62;
}

.route-entry,
.route-direct,
.route-proxy {
  position: absolute;
  z-index: 2;
  height: 13px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}

.route-entry {
  top: 66px;
  left: 4%;
  width: 45%;
  background: linear-gradient(90deg, var(--color-cyan), var(--color-accent));
}

.route-direct {
  top: 43px;
  left: 45%;
  width: 40%;
  background: var(--color-cyan);
  transform: rotate(-15deg);
  transform-origin: left center;
}

.route-proxy {
  top: 78px;
  left: 45%;
  width: 42%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-orange));
  transform: rotate(13deg);
  transform-origin: left center;
}

.route-junction {
  position: absolute;
  top: 55px;
  left: 43%;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
}

.route-junction::after {
  position: absolute;
  inset: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.route-local-cubes {
  position: absolute;
  top: 21px;
  right: 9%;
  z-index: 5;
  display: flex;
  gap: 6px;
}

.route-local-cubes span {
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-cube-blue-right);
  border-radius: var(--radius-small);
  background: var(--color-blue-soft);
  box-shadow: var(--shadow-card);
}

.route-local-cubes span:nth-child(2) {
  transform: translateY(10px);
}

.route-encryption {
  position: absolute;
  right: 29%;
  bottom: 15px;
  z-index: 6;
  display: grid;
  min-width: 108px;
  min-height: 62px;
  align-content: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-small);
  background: var(--color-pink-soft);
  color: var(--color-accent-deep);
  box-shadow: var(--shadow-raised);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  transform: rotateX(-8deg);
}

.route-encryption span + span {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 0.48rem;
}

.route-exit-cube {
  position: absolute;
  right: 7%;
  bottom: 13px;
  z-index: 5;
  width: 30px;
  height: 30px;
  border: 1px solid var(--color-cube-orange-right);
  border-radius: var(--radius-small);
  background: var(--color-orange);
  box-shadow: var(--shadow-raised);
}

.route-label {
  position: absolute;
  z-index: 7;
  border-left: 1px solid var(--color-ink);
  color: var(--color-ink);
  padding-left: 7px;
  font-family: var(--font-mono);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-label-core {
  top: 87px;
  left: 37%;
}

.route-label-direct {
  top: 12px;
  right: 17%;
  color: var(--color-cyan-deep);
}

.route-label-out {
  right: 4%;
  bottom: 48px;
  color: var(--color-orange);
}

.home-status-band .fact-band-inner {
  max-width: calc(var(--wide-width) + var(--gutter) * 2);
}

.home-status-band .fact-value {
  font-size: 0.71rem;
}

.home-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.home-platform-card {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  color: var(--color-ink);
  padding: clamp(22px, 4vw, 34px);
}

.home-platform-linux {
  background: var(--color-surface-soft);
}

.home-platform-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.home-platform-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  color: var(--color-ink);
}

.home-platform-card-icon svg {
  width: 27px;
  height: 27px;
}

.home-platform-card h3 {
  margin-bottom: 0;
}

.home-platform-code {
  margin-bottom: 2px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.home-platform-card p:not(.home-platform-code) {
  color: var(--color-ink-soft);
}

.home-section-link {
  margin-top: 28px;
  margin-bottom: 0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.home-workstation-panel {
  grid-column: 1;
  grid-row: 2;
}

.home-workstation-panel h3 {
  margin-top: 16px;
}

.home-setting-title {
  margin-top: 0;
  font-size: 1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.home-workstation-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--color-border);
  margin-top: 30px;
  padding-top: 20px;
}

.home-workstation-facts .fact-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.home-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-steps li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 38px);
  border-top: 1px solid var(--color-border);
  padding-top: 30px;
  padding-bottom: 30px;
}

.home-steps li:last-child {
  border-bottom: 1px solid var(--color-border);
}

.home-step-number {
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-steps li:nth-child(2) .home-step-number {
  color: var(--color-cyan-deep);
}

.home-steps li:nth-child(3) .home-step-number {
  color: var(--color-orange);
}

.home-steps p {
  margin-bottom: 0;
  color: var(--color-ink-soft);
}

.home-ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: start;
}

.home-ecosystem-main {
  color: var(--color-ink-soft);
}

.home-ecosystem-map {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  padding: clamp(18px, 3vw, 28px);
}

.home-map-layer {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  padding: 18px;
}

.home-map-layer strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.home-map-layer p {
  margin-top: 8px;
  margin-bottom: 0;
  color: var(--color-ink-soft);
  font-size: 0.88rem;
}

.home-map-key {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-map-connector {
  position: relative;
  min-height: 54px;
  display: grid;
  place-items: center;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.home-map-connector::before,
.home-map-connector::after {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 13px;
  background: var(--color-border);
  content: "";
}

.home-map-connector::before {
  top: 0;
}

.home-map-connector::after {
  bottom: 0;
}

.home-map-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-client-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.home-client-facts .card:nth-child(1) {
  border-top: 4px solid var(--color-accent);
}

.home-client-facts .card:nth-child(2) {
  border-top: 4px solid var(--color-cyan);
}

.home-client-facts .card:nth-child(3) {
  border-top: 4px solid var(--color-orange);
}

.home-client-facts p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.home-question-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.home-question {
  min-width: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(22px, 4vw, 34px);
}

.home-question:nth-child(1) {
  background: var(--color-pink-soft);
}

.home-question:nth-child(2) {
  background: var(--color-blue-soft);
}

.home-question:nth-child(3) {
  background: var(--color-orange-soft);
}

.home-question:nth-child(4) {
  background: var(--color-surface-soft);
}

.home-question h3 {
  font-size: 1.1rem;
}

.home-question p {
  color: var(--color-ink-soft);
}

.home-question a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .home-platform-grid,
  .home-ecosystem-layout {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .home-ecosystem-map {
    max-width: 680px;
  }

  .route-switchyard {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .home-hero h1 {
    font-size: clamp(24px, 7.5vw, 30px);
  }

  .home-hero::before,
  .home-hero::after {
    display: none;
  }

  .route-switchyard {
    height: 142px;
    margin-top: 20px;
  }

  .switchyard-board {
    width: 96%;
    height: 116px;
  }

  .route-label {
    display: none;
  }

  .route-encryption {
    right: 23%;
    min-width: 86px;
    min-height: 54px;
  }

  .route-local-cubes {
    right: 5%;
  }

  .route-exit-cube {
    right: 3%;
  }

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

@media (max-width: 640px) {
  .home-hero {
    padding-top: 34px;
  }

  .home-kicker {
    font-size: 0.64rem;
    letter-spacing: 0.08em;
  }

  .home-platform-row a {
    flex: 1 1 136px;
    justify-content: center;
  }

  .route-switchyard {
    height: 118px;
  }

  .switchyard-board {
    height: 96px;
    transform: rotateX(48deg) rotateZ(-4deg);
  }

  .route-entry,
  .route-direct,
  .route-proxy {
    height: 10px;
  }

  .route-entry {
    top: 48px;
  }

  .route-direct {
    top: 33px;
  }

  .route-proxy {
    top: 57px;
  }

  .route-junction {
    top: 38px;
    width: 29px;
    height: 29px;
  }

  .route-local-cubes span {
    width: 17px;
    height: 17px;
  }

  .route-encryption {
    right: 22%;
    bottom: 5px;
    min-width: 72px;
    min-height: 43px;
    padding: 6px 8px;
    font-size: 0.5rem;
  }

  .route-encryption span + span {
    display: none;
  }

  .route-exit-cube {
    bottom: 7px;
    width: 23px;
    height: 23px;
  }

  .home-steps li {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .home-step-number {
    font-size: 0.86rem;
  }

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

  .home-section-link {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .home-platform-card-head {
    align-items: flex-start;
  }

  .home-platform-card-icon {
    width: 46px;
    height: 46px;
  }

  .home-workstation-facts {
    align-items: stretch;
  }

  .home-workstation-facts .fact-pill {
    width: 100%;
  }
}