:root {
  --home-cabinet-width: 960px;
  --home-feature-min-height: 390px;
  --home-icon-size: 54px;
  --home-line-width: 2px;
  --home-atmosphere-opacity: 0.72;
  --home-color-transparent: transparent;
}

.preview-hero {
  min-height: calc(100svh - var(--header-height));
  padding-top: clamp(28px, 5vw, 54px);
  padding-bottom: 46px;
}

.preview-hero__head {
  max-width: 980px;
}

.preview-hero h1 {
  max-width: 980px;
  font-size: clamp(34px, 6.2vw, 48px);
}

.preview-hero__actions {
  margin-top: 26px;
}

.preview-hero__facts {
  margin-bottom: 0;
}

.btn__icon {
  width: 19px;
  height: 19px;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: clip;
  pointer-events: none;
}

.hero-atmosphere__ring {
  position: absolute;
  left: 50%;
  display: block;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-3xl);
  opacity: var(--home-atmosphere-opacity);
  transform: translateX(-50%);
  animation: home-ring-breathe 9s ease-in-out infinite;
}

.hero-atmosphere__ring--outer {
  top: 300px;
  width: min(1180px, 94vw);
  height: 560px;
}

.hero-atmosphere__ring--inner {
  top: 350px;
  width: min(1020px, 88vw);
  height: 460px;
  animation-delay: 1.8s;
}

.hero-atmosphere__grid {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48%;
  background-image:
    linear-gradient(to right, var(--color-border) 1px, var(--home-color-transparent) 1px),
    linear-gradient(to bottom, var(--color-border) 1px, var(--home-color-transparent) 1px);
  background-size: 42px 42px;
  opacity: 0.34;
  mask-image: linear-gradient(to bottom, var(--home-color-transparent), var(--color-text));
  transform: perspective(500px) rotateX(58deg) scale(1.35);
  transform-origin: center bottom;
}

.home-signal {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  animation: home-signal-pulse 2.4s ease-in-out infinite;
}

.locker-stage {
  margin-top: 46px;
}

.pickup-locker {
  width: min(var(--home-cabinet-width), 100%);
}

.platform-pack:focus-visible {
  border-radius: var(--radius-sm);
}

.home-status {
  position: relative;
  z-index: 5;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-text);
  color: var(--color-bg);
}

.home-status__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-status__track span {
  min-width: 0;
  padding: 18px 20px;
  overflow-wrap: anywhere;
  border-right: 1px solid var(--color-text-muted);
  color: var(--color-border);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.home-status__track span:last-child {
  border-right: 0;
}

.home-status__track b {
  margin-right: 6px;
  color: var(--color-accent);
  letter-spacing: 0.06em;
}

.platform-entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.platform-entry {
  display: flex;
  min-height: 100%;
  padding: 26px;
  flex-direction: column;
  align-items: flex-start;
}

.platform-entry__top {
  display: flex;
  width: 100%;
  margin-bottom: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.platform-entry__icon {
  display: inline-flex;
  width: var(--home-icon-size);
  height: var(--home-icon-size);
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  color: var(--color-text);
}

.platform-entry__icon svg {
  width: 29px;
  height: 29px;
}

.platform-entry h3 {
  font-size: 24px;
}

.platform-entry p {
  margin-bottom: 24px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.platform-entry .btn {
  width: 100%;
  margin-top: auto;
}

.platform-selection {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  margin-top: 28px;
  padding: clamp(26px, 4vw, 42px);
  align-items: start;
  gap: clamp(24px, 5vw, 62px);
}

.platform-selection__copy {
  color: var(--color-text-muted);
}

.platform-selection__copy .article-card__link {
  display: inline-block;
}

.home-tabs .tab-panel {
  grid-column: 1;
  grid-row: 1;
  min-height: var(--home-feature-min-height);
}

.home-feature-panel {
  position: relative;
  overflow: clip;
}

.home-feature-panel::after {
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--gradient-glow-amber);
  content: "";
  pointer-events: none;
}

.home-feature-panel > * {
  position: relative;
  z-index: 1;
}

.home-feature-panel__code,
.ecosystem-map__code {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.home-feature-panel p {
  max-width: 760px;
  color: var(--color-text-muted);
}

.home-feature-panel .fact-pill {
  color: var(--color-text);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.home-feature-panel .fact-pill:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-2px);
}

.home-workflow {
  display: grid;
  margin-top: clamp(38px, 6vw, 70px);
  border-top: 1px solid var(--color-border);
}

.home-workflow__item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  padding-top: 28px;
  padding-bottom: 28px;
  gap: 22px;
  border-bottom: 1px solid var(--color-border);
}

.home-workflow__number {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.home-workflow__item h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.home-workflow__item p {
  max-width: 860px;
  color: var(--color-text-muted);
}

.ecosystem-map {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  overflow: clip;
}

.ecosystem-map__origin {
  padding: clamp(28px, 5vw, 52px);
  background: var(--color-text);
  color: var(--color-bg);
}

.ecosystem-map__origin h3 {
  color: var(--color-bg);
}

.ecosystem-map__origin p {
  color: var(--color-border);
}

.ecosystem-map__origin .ecosystem-map__code {
  color: var(--color-accent);
}

.ecosystem-map__branch {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ecosystem-map__branch article {
  padding: clamp(28px, 4vw, 46px);
}

.ecosystem-map__branch article + article {
  border-top: 1px solid var(--color-border);
}

.ecosystem-map p {
  margin-bottom: 0;
}

.ecosystem-clients {
  margin-top: 24px;
}

.ecosystem-clients .card {
  box-shadow: none;
}

.ecosystem-clients p {
  color: var(--color-text-muted);
}

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

.trust-note {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: clamp(24px, 4vw, 38px);
  gap: 18px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.trust-note__index {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.trust-note h3 {
  font-size: 21px;
}

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

.inline-link {
  color: var(--color-accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-color: var(--color-accent-dark);
}

.home-blog-more {
  display: flex;
  margin-top: 34px;
  justify-content: center;
}

@keyframes home-ring-breathe {
  0%,
  100% {
    opacity: var(--home-atmosphere-opacity);
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.38;
    transform: translateX(-50%) scale(1.025);
  }
}

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

  50% {
    opacity: 0.46;
    transform: scale(0.76);
  }
}

@media (max-width: 1080px) {
  .platform-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .home-status__track span:nth-child(2) {
    border-right: 0;
  }

  .home-status__track span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-text-muted);
  }
}

@media (max-width: 820px) {
  .home-tabs .tab-panels {
    display: grid;
  }

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

  .ecosystem-map__branch article + article {
    border-left: 0;
  }

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

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

  .preview-hero h1 {
    font-size: clamp(24px, 10vw, 30px);
  }

  .preview-hero__actions {
    width: 100%;
  }

  .preview-hero__actions .btn {
    flex: 1 1 150px;
  }

  .hero-atmosphere__ring--outer {
    top: 320px;
    height: 500px;
  }

  .hero-atmosphere__ring--inner {
    top: 360px;
    height: 420px;
  }

  .locker-stage {
    margin-top: 42px;
  }

  .home-status__track,
  .platform-entry-grid,
  .platform-selection,
  .ecosystem-map__branch {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-status__track span {
    border-right: 0;
    border-bottom: 1px solid var(--color-text-muted);
    text-align: left;
  }

  .home-status__track span:last-child {
    border-bottom: 0;
  }

  .platform-entry {
    padding: 22px;
  }

  .platform-selection {
    gap: 8px;
  }

  .home-tabs .tab-button {
    min-width: 0;
  }

  .home-tabs .tab-panel {
    grid-column: 1;
    grid-row: 1;
    min-height: 0;
  }

  .home-workflow__item {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .home-workflow__number {
    width: 42px;
    height: 42px;
  }

  .ecosystem-map__branch article + article {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .trust-note {
    grid-template-columns: 42px minmax(0, 1fr);
    padding-inline: 20px;
    gap: 12px;
  }
}

@media (max-width: 390px) {
  .preview-hero__actions .btn {
    width: 100%;
    flex-basis: 100%;
  }

  .platform-entry__top {
    margin-bottom: 18px;
  }

  .ecosystem-map__origin,
  .ecosystem-map__branch article {
    padding-inline: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-atmosphere__ring,
  .home-signal {
    animation: none;
  }
}