.home-hero {
  min-height: 940px;
}

.home-hero::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  background: linear-gradient(180deg, var(--black-clear), var(--bg));
  content: "";
  pointer-events: none;
}

.home-hero .hero-core {
  z-index: 12;
  max-width: 900px;
  padding-top: 112px;
}

.home-hero .hero-title {
  max-width: 850px;
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.14;
}

.hero-title-detail {
  color: var(--hero-title-soft);
}

.hero-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  margin-right: 8px;
  border-radius: var(--radius-pill);
  background: var(--cta);
  box-shadow: 0 0 0 6px var(--hero-pill);
  animation: home-status-breathe 3.8s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  border-radius: var(--radius-pill);
  opacity: 0.42;
  filter: blur(54px);
  animation: home-glow-drift 20s ease-in-out infinite alternate;
}

.hero-glow-left {
  top: 18%;
  left: 11%;
  width: 360px;
  height: 360px;
  background: var(--accent);
}

.hero-glow-right {
  top: 31%;
  right: 9%;
  width: 300px;
  height: 300px;
  background: var(--hero-pale);
  animation-delay: -8s;
}

.hero-grid-plane {
  position: absolute;
  right: -12%;
  bottom: 0;
  left: -12%;
  height: 48%;
  background-image:
    linear-gradient(var(--panel-ring-soft) 1px, var(--black-clear) 1px),
    linear-gradient(90deg, var(--panel-ring-soft) 1px, var(--black-clear) 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, var(--black-clear), var(--text));
  transform: perspective(500px) rotateX(62deg) scale(1.3);
  transform-origin: bottom center;
  opacity: 0.4;
}

.hero-chip-row {
  display: flex;
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.hero-chip-row span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--hero-border);
  border-radius: var(--radius-pill);
  background: var(--hero-pill);
  color: var(--hero-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
}

.home-hero .import-panel {
  margin-top: 28px;
}

.home-hero .platform-row {
  position: relative;
  z-index: 14;
  margin-top: 24px;
}

.home-hero .platform-row a {
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.home-hero .platform-row a:hover {
  transform: translateY(-2px);
}

.workbench-copy {
  padding-top: 28px;
}

.workbench-copy h3 {
  margin-bottom: 12px;
}

.workbench-copy p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.home-log {
  margin-bottom: 0;
  border-radius: 0;
}

.home-platform-section,
.home-blog-section {
  background: var(--bg-panel);
}

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

.home-platform-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  padding: 28px;
  flex-direction: column;
  border-radius: var(--radius-card);
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.home-platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.platform-icon-tile {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: var(--radius-control);
  background: var(--accent-soft);
  color: var(--accent);
}

.platform-icon-tile svg {
  width: 25px;
  height: 25px;
}

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

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

.home-platform-card p {
  flex: 1;
  color: var(--text-muted);
}

.home-platform-card .button {
  width: 100%;
  margin-top: 8px;
}

.platform-footer-link,
.blog-footer-link {
  margin-top: 38px;
  text-align: center;
}

.platform-footer-link a,
.blog-footer-link a {
  display: inline-flex;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.ecosystem-main {
  box-shadow: var(--shadow-card);
}

.ecosystem-main h3:not(:first-child) {
  margin-top: 34px;
}

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

.ecosystem-main p:last-child {
  margin-bottom: 0;
}

.ecosystem-side {
  display: grid;
  gap: 18px;
}

.ecosystem-client-card:hover {
  transform: none;
  box-shadow: none;
}

.ecosystem-client-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.ecosystem-client-card p {
  margin-bottom: 0;
  color: var(--text-muted);
}

.ecosystem-code {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.home-reference-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}

.home-reference-grid h3 {
  font-size: 22px;
}

.home-reference-grid p {
  color: var(--text-muted);
}

.home-reference-grid a {
  font-weight: 750;
  text-decoration: none;
}

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

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

@keyframes home-glow-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(24px, -18px, 0);
  }
}

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

  .home-hero {
    min-height: 920px;
  }
}

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

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

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

  .home-hero {
    min-height: auto;
  }

  .home-hero .hero-core {
    padding-top: 104px;
  }

  .home-hero .hero-lede {
    line-height: 1.72;
  }

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

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

  .home-hero::after {
    height: 120px;
  }

  .home-hero .hero-topline {
    display: flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .home-hero .hero-title {
    margin-top: 20px;
  }

  .home-hero .hero-actions {
    margin-top: 24px;
  }

  .home-hero .hero-lede {
    margin-top: 20px;
    font-size: 15px;
  }

  .hero-chip-row {
    justify-content: center;
  }

  .home-hero .import-panel {
    margin-top: 24px;
  }

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

  .home-hero .platform-row a {
    padding-inline: 12px;
  }

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

  .home-platform-card {
    padding: 24px;
  }

  .hero-glow {
    width: 210px;
    height: 210px;
  }

  .hero-grid-plane {
    height: 34%;
    background-size: 36px 36px;
  }
}

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