:root {
  --home-hero-copy-width: 670px;
  --home-feature-index-width: 260px;
  --home-line-width: 2px;
  --home-icon-size: 54px;
  --home-card-cut: 18px;
  --home-section-rule: 1px;
  --home-hero-min-height: 820px;
  --home-feature-gap: clamp(30px, 6vw, 86px);
  --home-copy-gap: clamp(22px, 4vw, 54px);
}

.home-hero {
  height: max(var(--home-hero-min-height), 100svh);
  min-height: var(--home-hero-min-height);
}

.home-hero .hero-preview-content {
  padding-top: clamp(120px, 15vh, 164px);
}

.home-hero .hero-preview-copy {
  width: min(var(--home-hero-copy-width), 56%);
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(52px, 5.2vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.home-status {
  min-height: 30px;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 5px 11px;
  overflow: hidden;
  border: 1px solid var(--color-accent-24);
  border-radius: var(--radius-pill);
  background: var(--color-accent-05);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-status .status-dot {
  animation: home-status-breathe 2.8s var(--ease-smooth) infinite;
}

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

.home-hero-chips {
  margin-top: 22px;
}

.home-node-layer .hero-download-node {
  transition:
    transform 180ms var(--ease-smooth),
    border-color 180ms ease;
}

.home-node-layer .hero-download-node:hover {
  transform: translateX(-5px);
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  align-items: end;
  gap: var(--home-copy-gap);
  margin-bottom: clamp(44px, 7vw, 82px);
}

.home-section-heading h2,
.home-section-heading p {
  margin-bottom: 0;
}

.home-features {
  background:
    linear-gradient(180deg, var(--color-accent-03), var(--color-transparent) 20%),
    var(--color-bg);
}

.feature-flow {
  display: grid;
  grid-template-columns: var(--home-feature-index-width) minmax(0, 1fr);
  align-items: start;
  gap: var(--home-feature-gap);
}

.feature-index {
  position: sticky;
  top: calc(var(--header-height) + 22px);
  padding: 22px 0 22px 20px;
  border-left: var(--home-line-width) solid var(--color-accent-18);
}

.feature-index::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: calc(var(--home-line-width) * -1);
  width: var(--home-line-width);
  content: "";
  background: linear-gradient(var(--color-accent), var(--color-accent-dark), var(--color-accent-10));
  box-shadow: 0 0 18px var(--color-accent-36);
}

.feature-index-label {
  display: block;
  margin-bottom: 18px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.feature-tab-list {
  display: grid;
  gap: 5px;
}

.feature-tab-list [role="tab"] {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 12px;
  border: 1px solid var(--color-transparent);
  border-radius: var(--radius-none);
  background: var(--color-transparent);
  color: var(--color-text-muted);
  text-align: left;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.feature-tab-list [role="tab"] span {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
}

.feature-tab-list [role="tab"]:hover {
  transform: translateX(3px);
  background: var(--color-accent-05);
  color: var(--color-text);
}

.feature-tab-list [role="tab"][aria-selected="true"] {
  border-color: var(--color-accent-24);
  background: var(--color-accent-10);
  color: var(--color-accent);
}

.feature-sections {
  min-width: 0;
  border-top: var(--home-section-rule) solid var(--color-border);
}

.feature-slice {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(110px, 0.22fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 50px);
  padding-top: clamp(42px, 6vw, 72px);
  padding-bottom: clamp(42px, 6vw, 72px);
  border-bottom: var(--home-section-rule) solid var(--color-border);
  scroll-margin-top: calc(var(--header-height) + 28px);
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.feature-slice.is-current {
  border-bottom-color: var(--color-accent-48);
  background: linear-gradient(90deg, var(--color-accent-05), var(--color-transparent) 58%);
}

.feature-slice-number {
  padding-top: 7px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.feature-slice-body {
  min-width: 0;
  max-width: 850px;
}

.feature-slice-body p {
  color: var(--color-text-muted);
}

.feature-fact {
  max-width: 100%;
  display: inline-block;
  margin-bottom: 14px;
  overflow: hidden;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  overflow-wrap: anywhere;
}

.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.feature-links a,
.section-tail-link a {
  color: var(--color-warn);
  font-weight: 800;
}

.feature-links a:hover,
.section-tail-link a:hover {
  color: var(--color-text);
}

.feature-rule-line {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
  overflow: hidden;
  border-top: 1px solid var(--color-accent-24);
  border-bottom: 1px solid var(--color-accent-14);
}

.feature-rule-line span {
  position: relative;
  min-width: 0;
  padding: 13px 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: center;
}

.feature-rule-line span:not(:last-child) {
  border-right: 1px dashed var(--color-border);
}

.feature-rule-line span:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -4px;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
  background: var(--color-bg);
  transform: translateY(-50%) rotate(45deg);
}

.home-downloads {
  background:
    linear-gradient(135deg, var(--color-accent-05), var(--color-transparent) 36%),
    var(--color-bg-panel);
}

.platform-download-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);
}

.platform-download-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 42px);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(145deg, var(--color-accent-05), var(--color-transparent) 42%),
    var(--color-bg-panel);
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}

.platform-download-card:hover {
  border-color: var(--color-accent-48);
  background-color: var(--color-bg-panel-2);
}

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

.platform-download-icon {
  width: var(--home-icon-size);
  height: var(--home-icon-size);
  display: grid;
  flex-shrink: 0;
  place-items: center;
  border: 1px solid var(--color-accent-24);
  color: var(--color-accent);
  box-shadow: inset 0 0 24px var(--color-accent-05);
}

.platform-download-icon svg {
  width: 28px;
  height: 28px;
}

.platform-download-code {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.platform-download-card h3 {
  margin-top: 3px;
  margin-bottom: 0;
}

.platform-download-card p {
  color: var(--color-text-muted);
}

.platform-download-note {
  padding-top: 15px;
  border-top: 1px dashed var(--color-border);
  font-size: 13px;
}

.platform-download-card .btn {
  width: fit-content;
  margin-top: auto;
}

.section-tail-link {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.home-trust {
  background:
    linear-gradient(90deg, var(--color-bg-panel) 0%, var(--color-bg) 48%),
    var(--color-bg);
}

.trust-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.5fr);
  align-items: start;
  gap: var(--home-feature-gap);
}

.trust-heading {
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.trust-rail {
  display: grid;
  margin-top: 42px;
  border-top: 1px solid var(--color-accent-24);
  border-bottom: 1px solid var(--color-accent-10);
}

.trust-rail span {
  position: relative;
  padding: 12px 13px 12px 30px;
  border-bottom: 1px dashed var(--color-accent-14);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.trust-rail span:last-child {
  border-bottom: 0;
}

.trust-rail span::before {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid var(--color-accent);
  background: var(--color-accent-10);
  transform: translateY(-50%) rotate(45deg);
}

.trust-content {
  min-width: 0;
  border-top: 1px solid var(--color-border);
}

.trust-block {
  padding-top: clamp(36px, 5vw, 58px);
  padding-bottom: clamp(36px, 5vw, 58px);
  border-bottom: 1px solid var(--color-border);
}

.trust-block p {
  color: var(--color-text-muted);
}

.trust-block-index {
  display: inline-block;
  margin-bottom: 13px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.home-blog {
  background:
    linear-gradient(180deg, var(--color-accent-03), var(--color-transparent) 34%),
    var(--color-bg);
}

.article-list {
  border-bottom: 1px solid var(--color-border);
}

@keyframes home-status-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 1120px) {
  .home-hero .hero-preview-copy {
    width: min(620px, 62%);
  }

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

  .trust-layout {
    grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr);
  }
}

@media (max-width: 900px) {
  .home-hero {
    height: max(780px, 100svh);
    min-height: 780px;
  }

  .home-hero .hero-preview-content {
    padding-top: 108px;
  }

  .home-hero .hero-preview-copy {
    width: 100%;
    max-width: 690px;
  }

  .home-hero h1 {
    max-width: 680px;
    font-size: clamp(48px, 9vw, 72px);
  }

  .home-node-layer {
    display: none;
  }

  .home-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .feature-index {
    position: relative;
    top: auto;
    z-index: 5;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    background: var(--color-bg-panel);
  }

  .feature-index::before,
  .feature-index-label {
    display: none;
  }

  .feature-tab-list {
    display: flex;
    gap: 4px;
  }

  .feature-tab-list [role="tab"] {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .trust-layout {
    grid-template-columns: 1fr;
  }

  .trust-heading {
    position: relative;
    top: auto;
  }

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

  .trust-rail span {
    padding: 32px 8px 10px;
    border-right: 1px dashed var(--color-accent-14);
    border-bottom: 0;
    text-align: center;
  }

  .trust-rail span:last-child {
    border-right: 0;
  }

  .trust-rail span::before {
    top: 14px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
  }
}

@media (max-width: 640px) {
  :root {
    --home-hero-min-height: 760px;
  }

  .home-hero {
    height: max(var(--home-hero-min-height), 100svh);
    min-height: var(--home-hero-min-height);
  }

  .home-hero .hero-preview-content {
    padding-top: 88px;
  }

  .home-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(38px, 12vw, 54px);
    line-height: 1.01;
  }

  .home-status {
    margin-bottom: 13px;
  }

  .home-hero-actions {
    margin-bottom: 14px;
  }

  .home-hero .hero-preview-summary {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.62;
  }

  .home-hero-chips {
    margin-top: 13px;
  }

  .home-hero-chips .chip {
    min-height: 25px;
    padding: 3px 8px;
    font-size: 9px;
  }

  .home-hero .platform-strip {
    bottom: 18px;
  }

  .feature-slice {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .feature-slice-number {
    padding-top: 0;
  }

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

  .feature-rule-line span {
    border-bottom: 1px dashed var(--color-border);
  }

  .feature-rule-line span:nth-child(2) {
    border-right: 0;
  }

  .feature-rule-line span:nth-child(2)::after {
    display: none;
  }

  .platform-download-grid {
    grid-template-columns: 1fr;
  }

  .platform-download-card .btn {
    width: 100%;
  }

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

  .trust-rail span:nth-child(2) {
    border-right: 0;
  }

  .trust-rail span:nth-child(-n + 2) {
    border-bottom: 1px dashed var(--color-accent-14);
  }

  .section-tail-link {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .home-hero .hero-preview-content {
    padding-top: 82px;
  }

  .home-hero h1 {
    font-size: clamp(34px, 11vw, 43px);
  }

  .home-status {
    font-size: 8px;
  }

  .home-hero .hero-preview-summary {
    font-size: 12px;
  }

  .home-hero-chips .chip:nth-child(4) {
    display: none;
  }

  .platform-link {
    font-size: 9px;
  }
}

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