:root {
  --home-hero-min-height: 920px;
  --home-sign-width: 88%;
  --home-sign-height: 310px;
  --home-device-top: 34px;
  --home-router-top: 324px;
  --home-router-height: 240px;
  --home-console-top: 580px;
  --home-console-min-height: 270px;
  --home-line-size: 3px;
  --home-icon-size: 58px;
  --home-feature-node-width: 224px;
  --home-feature-gap: 24px;
  --home-command-gap: 12px;
}

.home-hero {
  position: relative;
  min-height: var(--home-hero-min-height);
  overflow: hidden;
  border-bottom: 1px solid var(--color-border-light);
}

.home-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--color-wall-shadow), var(--color-transparent) 18%, var(--color-transparent) 82%, var(--color-wall-shadow)),
    radial-gradient(circle at 50% 18%, var(--color-accent-glow-soft), var(--color-transparent) 38%),
    radial-gradient(circle at 50% 58%, var(--color-success-glow-soft), var(--color-transparent) 34%);
}

.hero-wall {
  position: relative;
  min-height: var(--home-hero-min-height);
}

.home-sign-device {
  position: absolute;
  inset: 0 var(--gutter) auto;
  height: 580px;
  pointer-events: none;
}

.home-hanger {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 8px;
  height: 42px;
  border-right: 1px solid var(--color-metal-light);
  border-left: 1px solid var(--color-metal-dark);
  background: var(--color-metal);
  box-shadow: 5px 0 12px var(--color-wall-shadow);
}

.home-hanger-left {
  left: 22%;
}

.home-hanger-right {
  right: 22%;
}

.home-neon-frame {
  position: absolute;
  top: var(--home-device-top);
  left: 50%;
  z-index: 3;
  width: var(--home-sign-width);
  height: var(--home-sign-height);
  padding: 18px;
  border: 3px solid var(--color-metal-light);
  border-radius: var(--radius-zero);
  background: var(--color-metal-dark);
  box-shadow: var(--shadow-frame);
  transform: translateX(-50%);
}

.home-neon-frame::before {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid var(--color-border);
  background:
    linear-gradient(90deg, var(--color-transparent), var(--color-accent-glow-soft), var(--color-transparent)),
    linear-gradient(180deg, var(--color-bg-panel), var(--color-bg-deep));
  box-shadow: inset 0 0 52px var(--color-accent-glow-soft);
}

.home-neon-frame::after {
  position: absolute;
  right: 30px;
  bottom: -10px;
  left: 30px;
  height: 9px;
  content: "";
  background: var(--color-black);
  box-shadow: 0 14px 24px var(--color-wall-shadow);
}

.home-sign-bolt {
  position: absolute;
  z-index: 5;
  width: 9px;
  height: 9px;
  border: 1px solid var(--color-metal-dark);
  border-radius: var(--radius-circle);
  background: var(--color-bolt);
}

.home-sign-bolt-tl {
  top: 10px;
  left: 10px;
}

.home-sign-bolt-tr {
  top: 10px;
  right: 10px;
}

.home-sign-bolt-bl {
  bottom: 10px;
  left: 10px;
}

.home-sign-bolt-br {
  right: 10px;
  bottom: 10px;
}

.home-neon-lettering {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: var(--font-display);
  font-weight: 900;
}

.home-neon-shadow,
.home-neon-stroke,
.home-neon-core {
  font-size: 92px;
  letter-spacing: 0.025em;
}

.home-neon-shadow {
  fill: var(--color-accent-dark);
  stroke: var(--color-accent-dark);
  stroke-width: 14px;
  opacity: 0.62;
  transform: translate(5px, 7px);
}

.home-neon-stroke {
  fill: var(--color-bg-deep);
  stroke: var(--color-accent);
  stroke-width: 13px;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 15px var(--color-accent-glow));
}

.home-neon-core {
  fill: var(--color-accent-soft);
  stroke: var(--color-text);
  stroke-width: 2px;
  filter: drop-shadow(0 0 6px var(--color-accent)) drop-shadow(0 0 18px var(--color-accent-glow));
  animation: neon-breathe var(--transition-slow) infinite;
}

.home-sign-caption {
  position: absolute;
  right: 32px;
  bottom: 23px;
  z-index: 4;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.home-router {
  position: absolute;
  top: var(--home-router-top);
  left: 50%;
  z-index: 2;
  width: var(--home-sign-width);
  height: var(--home-router-height);
  transform: translateX(-50%);
}

.home-router-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.home-wire-shadow,
.home-wire-main,
.home-wire-light {
  fill: none;
}

.home-wire-shadow {
  stroke: var(--color-bg-deep);
  stroke-width: 10px;
}

.home-wire-main {
  stroke: var(--color-success);
  stroke-width: 4px;
  filter: drop-shadow(0 0 7px var(--color-success-glow));
}

.home-wire-light {
  stroke: var(--color-success-soft);
  stroke-width: 1px;
}

.home-junction {
  position: absolute;
  top: 55px;
  left: 50%;
  display: grid;
  width: 132px;
  height: 72px;
  place-content: center;
  border: 3px solid var(--color-metal-light);
  background: linear-gradient(145deg, var(--color-metal), var(--color-metal-dark));
  box-shadow: var(--shadow-panel);
  text-align: center;
  transform: translateX(-50%);
}

.home-junction strong {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.18em;
}

.home-junction span {
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.home-route {
  position: absolute;
  top: 202px;
  display: grid;
  width: 176px;
  min-height: 65px;
  padding: 9px 16px;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  border: 2px solid var(--color-border-light);
  background: linear-gradient(180deg, var(--color-bg-panel-2), var(--color-bg-panel));
  box-shadow: var(--shadow-panel), inset 0 0 18px var(--color-success-glow-soft);
}

.home-route-lamp {
  width: 9px;
  height: 9px;
  grid-row: 1 / 3;
  border-radius: var(--radius-circle);
  background: var(--color-success);
  box-shadow: 0 0 12px var(--color-success-glow);
}

.home-route strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.home-route small {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.home-route-direct {
  left: 16.25%;
  transform: translateX(-50%);
}

.home-route-proxy {
  left: 50%;
  transform: translateX(-50%);
}

.home-route-reject {
  left: 83.75%;
  transform: translateX(-50%);
}

.home-hero-console {
  position: absolute;
  top: var(--home-console-top);
  right: calc(var(--gutter) + 6%);
  left: calc(var(--gutter) + 6%);
  z-index: 5;
  display: grid;
  min-height: var(--home-console-min-height);
  padding: clamp(28px, 4vw, 46px);
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--color-border-light);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  background: linear-gradient(100deg, var(--color-bg-panel), var(--color-bg-panel-2));
  box-shadow: var(--shadow-panel);
}

.home-hero-copy {
  min-width: 0;
}

.home-hero-copy h1 {
  max-width: 900px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.7vw, 68px);
}

.home-hero-copy .button-row {
  margin-bottom: 20px;
}

.home-hero-description {
  max-width: 820px;
  margin-bottom: 18px;
}

.home-console-note {
  display: grid;
  min-height: 142px;
  padding: 20px;
  align-content: center;
  border: 1px solid var(--color-border-light);
  border-left: 3px solid var(--color-warn);
  background: var(--color-bg-deep);
  box-shadow: inset 0 0 20px var(--color-warn-glow-soft);
  font-family: var(--font-mono);
}

.home-console-note span {
  color: var(--color-warn);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.home-console-note strong {
  margin: 8px 0;
  color: var(--color-text);
  font-size: 18px;
}

.home-console-note small {
  color: var(--color-text-muted);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.home-fact-strip {
  position: relative;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg-deep);
  box-shadow: var(--shadow-panel);
}

.home-fact-inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow-x: auto;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  scrollbar-width: thin;
}

.home-fact-inner span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.home-fact-inner b {
  color: var(--color-success);
  font-weight: 600;
}

.feature-board {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 42px;
  align-items: stretch;
}

.feature-switcher {
  position: relative;
  display: grid;
  min-height: 610px;
  padding: 12px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, 1fr);
  gap: 0 var(--home-feature-gap);
}

.feature-bus {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 50%;
  width: var(--home-line-size);
  background: var(--color-success);
  box-shadow: 0 0 14px var(--color-success-glow);
  transform: translateX(-50%);
}

.feature-node {
  position: relative;
  z-index: 2;
  display: grid;
  width: var(--home-feature-node-width);
  min-height: 116px;
  padding: 17px;
  align-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-text-muted);
  background: linear-gradient(145deg, var(--color-bg-panel-2), var(--color-bg-panel));
  box-shadow: var(--shadow-panel);
  text-align: left;
  transition: border-color var(--transition-fast), transform var(--transition-fast), color var(--transition-fast);
}

.feature-node::after {
  position: absolute;
  top: 50%;
  width: calc(var(--home-feature-gap) / 2 + 2px);
  height: var(--home-line-size);
  content: "";
  background: var(--color-success);
  box-shadow: 0 0 9px var(--color-success-glow);
}

.feature-node-left {
  grid-column: 1;
  justify-self: end;
}

.feature-node-left::after {
  right: calc(var(--home-feature-gap) / -2 - 2px);
}

.feature-node-right {
  grid-column: 2;
  justify-self: start;
}

.feature-node-right::after {
  left: calc(var(--home-feature-gap) / -2 - 2px);
}

.feature-node:nth-of-type(2) {
  grid-row: 1;
}

.feature-node:nth-of-type(3) {
  grid-row: 2;
}

.feature-node:nth-of-type(4) {
  grid-row: 3;
}

.feature-node:nth-of-type(5) {
  grid-row: 4;
}

.feature-node:hover,
.feature-node[aria-selected="true"] {
  border-color: var(--color-accent);
  color: var(--color-text);
  transform: translateY(-2px);
}

.feature-node[aria-selected="true"] {
  box-shadow: var(--shadow-frame);
}

.feature-node[aria-selected="true"]::before {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  content: "";
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

.feature-node-code {
  margin-bottom: 8px;
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
}

.feature-node strong {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 20px;
}

.feature-node small {
  color: var(--color-text-muted);
  font-size: 12px;
}

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

.feature-detail-panel {
  min-height: 610px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-small);
  background:
    linear-gradient(135deg, var(--color-success-glow-soft), var(--color-transparent) 40%),
    linear-gradient(145deg, var(--color-bg-panel-2), var(--color-bg-panel));
  box-shadow: var(--shadow-panel);
}

.feature-detail-panel h3 {
  max-width: 720px;
}

.feature-detail-panel p {
  max-width: 760px;
  line-height: 1.9;
}

.feature-detail-panel .button-row {
  margin-top: 28px;
}

.home-platform-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-deep);
}

.platform-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 3px solid var(--color-success);
  box-shadow: 0 -6px 18px var(--color-success-glow-soft);
}

.platform-stop {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 410px;
  padding: 28px 22px 24px;
  flex-direction: column;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg-panel-2), var(--color-bg-panel));
}

.platform-stop:first-child {
  border-left: 1px solid var(--color-border);
}

.platform-stop::before {
  position: absolute;
  top: -8px;
  left: 28px;
  width: 13px;
  height: 13px;
  border: 2px solid var(--color-bg-deep);
  border-radius: var(--radius-circle);
  content: "";
  background: var(--color-success);
  box-shadow: 0 0 11px var(--color-success-glow);
}

.platform-symbol {
  display: grid;
  width: var(--home-icon-size);
  height: var(--home-icon-size);
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-small);
  color: var(--color-accent-soft);
  background: var(--color-bg-deep);
}

.platform-symbol svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2px;
}

.platform-symbol rect {
  fill: none;
}

.platform-code {
  margin-bottom: 7px;
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.platform-stop h3 {
  font-size: 22px;
}

.platform-stop p {
  flex-grow: 1;
  font-size: 14px;
}

.platform-stop .button {
  width: 100%;
  margin-top: 12px;
}

.home-section-link {
  margin-top: 30px;
  text-align: right;
}

.quickstart-line {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quickstart-line li {
  display: grid;
  padding: 30px 0;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 28px;
  border-top: 1px solid var(--color-border);
}

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

.quickstart-number {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--color-border-light);
  border-radius: var(--radius-circle);
  color: var(--color-warn);
  background: var(--color-bg-deep);
  box-shadow: 0 0 0 7px var(--color-bg-panel), var(--shadow-warn);
  font-family: var(--font-mono);
  font-weight: 700;
}

.quickstart-line h3 {
  margin-bottom: 10px;
}

.quickstart-line p {
  max-width: 980px;
  margin-bottom: 0;
}

.home-trust-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-deep);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 28px;
  align-items: start;
}

.trust-copy {
  display: grid;
  gap: 16px;
}

.trust-entry {
  padding: 27px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-success);
  background: linear-gradient(100deg, var(--color-bg-panel), var(--color-bg-panel-2));
  box-shadow: var(--shadow-panel);
}

.trust-entry h3 {
  font-size: 22px;
}

.trust-entry p {
  margin-bottom: 0;
}

.repo-panel {
  position: sticky;
  top: 20px;
}

.command-box {
  display: grid;
  margin: 24px 0;
  gap: var(--home-command-gap);
}

.command-box code {
  display: block;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-success);
  border-radius: var(--radius-small);
  color: var(--color-success-soft);
  background: var(--color-bg-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.command-copy {
  width: 100%;
}

.repo-note {
  font-size: 13px;
}

.home-faq-list {
  max-width: 980px;
}

.home-blog-section {
  border-top: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, var(--color-transparent), var(--color-success-glow-soft)),
    var(--color-bg);
}

@media (max-width: 1120px) {
  .feature-board {
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 28px;
  }

  .feature-node {
    width: 184px;
  }

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

  .platform-stop {
    min-height: 340px;
    border-left: 1px solid var(--color-border);
  }

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

  .repo-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  :root {
    --home-hero-min-height: 900px;
    --home-sign-width: calc(100% - var(--gutter) * 2);
    --home-sign-height: 244px;
    --home-device-top: 24px;
    --home-router-top: 250px;
    --home-router-height: 224px;
    --home-console-top: 492px;
    --home-console-min-height: 360px;
  }

  .home-sign-device {
    right: 0;
    left: 0;
  }

  .home-neon-lettering {
    overflow: hidden;
  }

  .home-neon-shadow,
  .home-neon-stroke,
  .home-neon-core {
    font-size: 72px;
  }

  .home-router {
    width: calc(100% - var(--gutter) * 2);
  }

  .home-route {
    top: 188px;
    width: 29%;
    padding: 8px 10px;
  }

  .home-hero-console {
    right: var(--gutter);
    left: var(--gutter);
    grid-template-columns: minmax(0, 1fr);
  }

  .home-console-note {
    display: none;
  }

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

  .feature-switcher {
    min-height: auto;
    padding-left: 24px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 12px;
  }

  .feature-bus {
    top: 12px;
    bottom: 12px;
    left: 8px;
    transform: none;
  }

  .feature-node,
  .feature-node-left,
  .feature-node-right {
    width: 100%;
    min-height: 92px;
    grid-column: 1;
    grid-row: auto;
    justify-self: stretch;
  }

  .feature-node::after,
  .feature-node-left::after,
  .feature-node-right::after {
    top: 50%;
    right: auto;
    left: -18px;
    width: 18px;
  }

  .feature-detail-panel {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --home-hero-min-height: 850px;
    --home-sign-height: 214px;
    --home-router-top: 220px;
    --home-router-height: 208px;
    --home-console-top: 446px;
    --home-console-min-height: 360px;
    --home-icon-size: 52px;
  }

  .home-hanger {
    height: 28px;
  }

  .home-neon-frame {
    padding: 10px;
  }

  .home-neon-shadow,
  .home-neon-stroke,
  .home-neon-core {
    font-size: 61px;
    letter-spacing: 0;
  }

  .home-neon-shadow {
    stroke-width: 10px;
  }

  .home-neon-stroke {
    stroke-width: 9px;
  }

  .home-sign-caption {
    right: 18px;
    bottom: 15px;
    font-size: 8px;
  }

  .home-junction {
    top: 48px;
    width: 104px;
    height: 62px;
  }

  .home-junction strong {
    font-size: 20px;
  }

  .home-route {
    top: 174px;
    min-height: 58px;
    column-gap: 6px;
  }

  .home-route strong {
    font-size: 14px;
  }

  .home-route small {
    font-size: 7px;
  }

  .home-route-lamp {
    width: 7px;
    height: 7px;
  }

  .home-hero-console {
    padding: 22px 18px;
  }

  .home-hero-copy h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .home-hero-description {
    font-size: 13px;
  }

  .home-fact-inner {
    justify-content: flex-start;
  }

  .feature-detail-panel {
    padding: 22px 18px;
  }

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

  .platform-stop {
    min-height: 0;
  }

  .quickstart-line li {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .quickstart-number {
    width: 62px;
    height: 62px;
  }

  .trust-entry {
    padding: 21px 18px;
  }

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

@media (max-width: 380px) {
  :root {
    --home-hero-min-height: 875px;
    --home-console-top: 438px;
  }

  .home-neon-shadow,
  .home-neon-stroke,
  .home-neon-core {
    font-size: 54px;
  }

  .home-route {
    width: 31%;
    padding-inline: 7px;
  }

  .home-route-direct {
    left: 16%;
  }

  .home-route-reject {
    left: 84%;
  }

  .home-route small {
    display: none;
  }

  .home-hero-console {
    padding-inline: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-neon-core {
    animation: none;
  }
}