.hero {
  display: block;
  min-height: auto;
  padding: 54px 24px 96px;
  text-align: left;
}

.hero-layout {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.hero-copy {
  max-width: none;
  margin: 0 0 46px;
}

.hero-message {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.hero-text {
  max-width: 820px;
}

.hero-message .hero-badge {
  flex: 0 0 auto;
  width: max-content;
  margin-top: 18px;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(48px, 5vw, 68px);
  letter-spacing: -4px;
}

.hero-text > p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.quick-product:hover {
  transform: translateY(-3px);
}

.quick-product:focus-visible,
.product:focus-visible {
  outline: 3px solid #25c7b966;
  outline-offset: 4px;
}

.hero-product-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  scroll-margin-top: 24px;
}

.quick-product {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 23px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.quick-api {
  min-height: 430px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: #111c31;
  box-shadow: 0 22px 55px #17243b20;
}

.quick-tools {
  min-height: 430px;
  padding: 24px;
  color: #17233a;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #dfe6ef;
  box-shadow: 0 22px 55px #263c6310;
}

.quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.quick-head b {
  padding: 6px 8px;
  color: #73dacc;
  background: #1b2b46;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0;
}

.quick-tools .quick-head b {
  color: #61728c;
  background: #eef2f7;
}

.quick-network {
  position: relative;
  height: 250px;
  margin: 8px -4px 0;
}

.quick-network::before {
  content: "";
  position: absolute;
  inset: 28px 18%;
  border: 1px solid #35445e;
  border-radius: 50%;
}

.quick-network strong {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #316bff, #25c7b9);
  border-radius: 22px;
  font-size: 18px;
  box-shadow: 0 16px 35px #071123;
}

.quick-node {
  position: absolute;
  z-index: 2;
  min-width: 60px;
  height: 42px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  color: #a9bad3;
  background: #1c2b46;
  border: 1px solid #40516d;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.node-gpt { left: 2%; top: 25%; }
.node-grok { right: 1%; top: 27%; }
.node-image { left: 7%; bottom: 10%; }
.node-gemini { left: 50%; top: 2%; transform: translateX(-50%); }
.node-claude { right: 7%; bottom: 10%; }

.quick-line {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50%;
  width: calc(50% - 54px);
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, #316bff, #647b9e);
}

.line-gpt { width: calc(50% - 60px); transform: rotate(190deg); }
.line-grok { width: calc(50% - 58px); transform: rotate(-10deg); }
.line-image { width: calc(50% - 50px); transform: rotate(162deg); }
.line-gemini { width: 96px; transform: rotate(-90deg); }
.line-claude { width: calc(50% - 50px); transform: rotate(18deg); }

.quick-copy {
  margin-top: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.quick-copy small,
.quick-tools-body small {
  color: #7f91ac;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.quick-copy h2,
.quick-tools-body h2 {
  margin: 7px 0 7px;
  font-size: 27px;
  letter-spacing: -1px;
}

.quick-copy p,
.quick-tools-body p {
  margin: 0;
  color: #aab6c8;
  font-size: 11px;
  line-height: 1.6;
}

.quick-tools-body p {
  color: #718096;
}

.quick-arrow {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #1c2b46;
  border-radius: 50%;
  font-size: 17px;
}

.quick-tools-body {
  height: calc(100% - 30px);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mini-tool-icon {
  width: 58px;
  height: 58px;
  margin-bottom: auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #316bff, #25c7b9);
  border-radius: 16px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 14px 28px #316bff35;
}

.quick-tools-body .quick-arrow {
  margin-top: 24px;
  align-self: flex-end;
}

.api-endpoint-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.api-endpoint-mini span {
  color: #6f819e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
}

.api-endpoint-mini code {
  padding: 9px 11px;
  color: #dbe7ff;
  background: #1c2b46;
  border: 1px solid #34445e;
  border-radius: 9px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  white-space: nowrap;
  user-select: all;
}

.api-node.n2,
.api-node.n3 {
  width: 72px;
}

@media (max-width: 980px) {
  .hero-copy {
    margin: 0 0 42px;
    text-align: left;
  }

  .hero-text > p {
    margin: 0;
  }

  .hero-message .hero-badge {
    margin: 18px 0 0;
  }

}

@media (max-width: 700px) {
  .hero-message {
    display: block;
  }

  .hero-message .hero-badge {
    margin-top: 20px;
  }

  .hero-product-stage {
    grid-template-columns: 1fr;
  }

  .quick-api,
  .quick-tools {
    min-height: 340px;
  }

  .quick-tools-body {
    min-height: 275px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 40px 18px 70px;
  }

  .hero-copy h1 {
    font-size: 43px;
    letter-spacing: -2.6px;
  }

  .quick-api,
  .quick-tools {
    padding: 20px;
  }

  .quick-network {
    height: 220px;
  }

  .node-gpt { left: 0; }
  .node-grok { right: 0; }

  .api-endpoint-mini {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-endpoint-mini code {
    width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
