:root {
  --api-bg: #f7efe0;
  --api-bg-alt: #fff8ec;
  --api-card: #fffaf2;
  --api-border: #e9d9bd;
  --api-text: #2f2a24;
  --api-muted: #6d655b;
  --api-accent: #f18a1a;
  --api-accent-strong: #d86f00;
  --api-accent-soft: #ffd9ae;
  --api-shadow: 0 18px 44px rgba(111, 73, 28, 0.14);
  --api-radius-lg: 22px;
  --api-radius-md: 14px;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--api-text);
  background: radial-gradient(1000px 500px at 0% -10%, #ffe7c4 0%, transparent 65%),
    radial-gradient(850px 450px at 100% -20%, #ffe8cc 0%, transparent 62%),
    linear-gradient(180deg, #fff9ef 0%, var(--api-bg) 58%, #f2e2c6 100%);
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.api-home {
  min-height: 100%;
  position: relative;
  overflow: hidden;
}

.api-home__halo {
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.32;
}

.api-home__halo--left {
  width: 360px;
  height: 360px;
  left: -90px;
  top: -110px;
  background: #ffc680;
}

.api-home__halo--right {
  width: 300px;
  height: 300px;
  right: -72px;
  top: 96px;
  background: #ffd7a7;
}

.api-home__header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(178, 131, 66, 0.24);
  background: rgba(255, 249, 239, 0.86);
  backdrop-filter: blur(10px);
}

.api-home__brand {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #262019;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0;
}

.api-home__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-home__nav-item {
  border: 1px solid transparent;
  background: transparent;
  color: #5c5246;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.api-home__nav-item:hover {
  border-color: rgba(214, 111, 0, 0.28);
  background: rgba(255, 240, 220, 0.78);
  color: #3b2d20;
}

.api-home__nav-item.is-active {
  color: #2f2113;
  border-color: rgba(214, 111, 0, 0.35);
  background: linear-gradient(135deg, #ffd59f, #ffc17d);
}

.api-home__header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-home__header-link {
  text-decoration: none;
  color: #4f4539;
  border: 1px solid rgba(196, 156, 100, 0.45);
  background: rgba(255, 248, 235, 0.8);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.22s ease;
}

.api-home__header-link:hover {
  transform: translateY(-1px);
  border-color: rgba(216, 111, 0, 0.55);
}

.api-home__header-link--solid {
  color: #2f1e10;
  border-color: transparent;
  background: linear-gradient(135deg, #ffb563, #f28e1f);
}

.api-home__scroll {
  height: calc(100dvh - 70px);
  overflow-y: auto;
  padding: 24px 30px 34px;
  scroll-behavior: smooth;
}

.api-home__main {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.api-home__hero,
.api-home__section {
  border: 1px solid var(--api-border);
  border-radius: var(--api-radius-lg);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.88), rgba(255, 246, 232, 0.94));
  box-shadow: var(--api-shadow);
}

.api-home__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.26fr) minmax(0, 0.9fr);
  gap: 20px;
  padding: 26px;
}

.api-home__hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.api-home__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #805423;
  background: rgba(255, 214, 159, 0.66);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.api-home__hero-copy h1 {
  margin: 0;
  font-size: clamp(1.76rem, 2.8vw, 2.72rem);
  line-height: 1.2;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  letter-spacing: 0.01em;
}

.api-home__hero-copy > p {
  margin: 0;
  color: var(--api-muted);
  line-height: 1.7;
}

.api-home__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.api-home__cta {
  text-decoration: none;
  color: #493e31;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid rgba(198, 157, 102, 0.58);
  padding: 10px 14px;
  background: #fff8ec;
  transition: all 0.2s ease;
}

.api-home__cta:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 111, 0, 0.55);
}

.api-home__cta--solid {
  border-color: transparent;
  color: #2f1e10;
  background: linear-gradient(135deg, #ffbe71 0%, #f3922a 100%);
}

.api-home__reward-hint {
  margin: 0;
  color: #7f6547;
  font-size: 0.9rem;
}

.api-home__route-hints {
  border: 1px solid rgba(225, 199, 161, 0.7);
  border-radius: var(--api-radius-md);
  background: rgba(255, 251, 243, 0.86);
  padding: 14px 16px;
}

.api-home__route-hints h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.api-home__route-hints ul {
  margin: 0;
  padding-left: 18px;
  color: #62584c;
  display: grid;
  gap: 5px;
}

.api-home__auth {
  border: 1px solid rgba(224, 194, 147, 0.75);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf3 0%, #fff3de 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.api-home__auth-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.api-home__auth-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fba948, #f08a1b);
  color: #2d1f13;
  font-weight: 700;
}

.api-home__auth-avatar.is-guest {
  background: linear-gradient(135deg, #e8dcca, #d5c3ac);
}

.api-home__auth-profile strong {
  display: block;
  font-size: 1.02rem;
}

.api-home__auth-profile small {
  color: #756a5e;
  font-size: 0.84rem;
  line-height: 1.45;
}

.api-home__points {
  border: 1px solid rgba(235, 188, 121, 0.52);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 241, 216, 0.8);
}

.api-home__points span {
  font-size: 0.86rem;
  color: #6f5f49;
}

.api-home__points strong {
  color: #a64900;
  font-size: 1.1rem;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
}

.api-home__auth-actions,
.api-home__auth-stack,
.api-home__referral {
  display: grid;
  gap: 8px;
}

.api-home__action {
  border: 1px solid rgba(204, 164, 111, 0.55);
  background: rgba(255, 249, 238, 0.86);
  color: #4a3e31;
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  transition: all 0.2s ease;
}

.api-home__action:hover {
  border-color: rgba(212, 110, 0, 0.6);
  transform: translateY(-1px);
}

.api-home__action--solid {
  border-color: transparent;
  color: #2f1f12;
  background: linear-gradient(135deg, #ffbf70, #f3902a);
}

.api-home__action--danger {
  color: #8f291f;
}

.api-home__referral {
  border: 1px dashed rgba(205, 163, 106, 0.55);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 247, 232, 0.9);
}

.api-home__referral-title {
  margin: 0;
  font-weight: 700;
}

.api-home__referral small {
  color: #7a6a58;
  line-height: 1.45;
}

.api-home__redeem-input {
  width: 100%;
  border: 1px solid rgba(204, 164, 111, 0.55);
  background: rgba(255, 252, 246, 0.92);
  color: #4b3c2d;
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 0.89rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.api-home__redeem-input:focus {
  border-color: rgba(212, 110, 0, 0.58);
  box-shadow: 0 0 0 2px rgba(248, 183, 109, 0.24);
}

.api-home__auth-footnote {
  margin: 0;
  color: #7c705f;
  font-size: 0.84rem;
  line-height: 1.5;
}

.api-home__section {
  padding: 20px;
}

.api-home__section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.api-home__section-head h2 {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.api-home__section-meta {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.api-home__signup-offer {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 700;
  color: #7a4b15;
  background: rgba(255, 222, 182, 0.68);
  padding: 5px 10px;
}

.api-home__updated-at {
  color: #7f7467;
  font-size: 0.82rem;
}

.api-home__studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr 1fr;
  gap: 12px;
}

.api-home__studio-card {
  border: 1px solid rgba(226, 197, 154, 0.8);
  border-radius: 14px;
  background: #fffaf1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.api-home__studio-card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.api-home__studio-tip {
  margin: 0;
  color: #7a6d5d;
  font-size: 0.84rem;
  line-height: 1.5;
}

.api-home__studio-upload-box {
  border: 1px dashed rgba(220, 168, 101, 0.8);
  border-radius: 12px;
  background: rgba(255, 246, 230, 0.85);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.api-home__studio-upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.api-home__studio-upload-empty {
  text-align: center;
  display: grid;
  gap: 6px;
  color: #7f6c53;
  font-size: 0.84rem;
}

.api-home__studio-upload-empty strong {
  color: #5d4a34;
}

.api-home__studio-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-home__studio-file-input {
  display: none;
}

.api-home__studio-field {
  margin-top: 4px;
  color: #664f35;
  font-size: 0.82rem;
  font-weight: 700;
}

.api-home__studio-input,
.api-home__studio-select,
.api-home__studio-textarea {
  width: 100%;
  border: 1px solid rgba(209, 169, 116, 0.64);
  border-radius: 10px;
  background: #fffdf8;
  color: #403224;
  font-size: 0.88rem;
  padding: 9px 10px;
}

.api-home__studio-input:focus,
.api-home__studio-select:focus,
.api-home__studio-textarea:focus {
  outline: 2px solid rgba(241, 138, 26, 0.28);
  border-color: rgba(222, 118, 0, 0.66);
}

.api-home__studio-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.api-home__studio-ratio-btn {
  border: 1px solid rgba(210, 170, 116, 0.62);
  border-radius: 9px;
  background: rgba(255, 250, 242, 0.9);
  color: #5f4c39;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-home__studio-ratio-btn:hover {
  border-color: rgba(220, 116, 0, 0.56);
}

.api-home__studio-ratio-btn.is-active {
  border-color: transparent;
  color: #2f1f10;
  background: linear-gradient(135deg, #ffc37a, #f29128);
}

.api-home__studio-textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.api-home__studio-status {
  margin: 0;
  border-radius: 9px;
  border: 1px solid rgba(209, 176, 133, 0.62);
  background: rgba(255, 248, 236, 0.9);
  color: #6c5b49;
  font-size: 0.82rem;
  padding: 8px 10px;
  line-height: 1.45;
}

.api-home__studio-status.is-error {
  border-color: rgba(209, 73, 56, 0.45);
  background: rgba(255, 235, 232, 0.9);
  color: #962c20;
}

.api-home__studio-status.is-success {
  border-color: rgba(40, 153, 95, 0.45);
  background: rgba(229, 248, 238, 0.9);
  color: #1f7c4b;
}

.api-home__studio-status.is-loading {
  border-color: rgba(214, 132, 30, 0.45);
  background: rgba(255, 244, 224, 0.9);
  color: #8d5618;
}

.api-home__studio-generate {
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  color: #2d1d0f;
  font-size: 0.93rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffbf70, #f3902a);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.api-home__studio-generate:hover {
  transform: translateY(-1px);
}

.api-home__studio-generate:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.api-home__studio-result-meta {
  margin: 0;
  color: #756652;
  font-size: 0.84rem;
}

.api-home__studio-result-stage {
  border: 1px solid rgba(225, 188, 139, 0.72);
  border-radius: 12px;
  background: rgba(255, 248, 235, 0.84);
  min-height: 248px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.api-home__studio-result-main {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
}

.api-home__studio-result-empty {
  color: #85735d;
  font-size: 0.88rem;
}

.api-home__studio-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.api-home__studio-thumb {
  border: 1px solid rgba(215, 172, 117, 0.7);
  border-radius: 9px;
  background: rgba(255, 248, 236, 0.88);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-home__studio-thumb img {
  width: 100%;
  height: 68px;
  object-fit: cover;
  display: block;
}

.api-home__studio-thumb.is-active {
  border-color: rgba(226, 115, 0, 0.8);
  box-shadow: 0 0 0 1px rgba(226, 115, 0, 0.4);
}

.api-home__studio-thumb.is-error {
  display: grid;
  place-items: center;
  color: #9c2e21;
  font-size: 0.75rem;
  min-height: 68px;
  padding: 6px;
  text-align: center;
  background: rgba(255, 235, 232, 0.8);
  border-color: rgba(209, 73, 56, 0.45);
}

.api-home__studio-download {
  margin-top: auto;
  border: 1px solid rgba(201, 164, 111, 0.6);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(255, 249, 238, 0.86);
  color: #4a3e31;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.api-home__studio-download:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.api-home__studio-download:not(:disabled):hover {
  border-color: rgba(219, 118, 0, 0.58);
}

.api-home__pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vizviz-home__hero-pricing-card {
  border-radius: 14px;
  border: 1px solid rgba(224, 194, 147, 0.88);
  background: #fff9ee;
  padding: 12px;
}

.vizviz-home__hero-pricing-card-head {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.vizviz-home__hero-pricing-card-head span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #a56d2f;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  text-transform: uppercase;
}

.vizviz-home__hero-pricing-card-head strong {
  font-size: 1rem;
}

.vizviz-home__hero-pricing-card-head small {
  color: #857666;
  font-size: 0.75rem;
}

.vizviz-home__hero-pricing-placeholder {
  border-radius: 10px;
  border: 1px dashed rgba(216, 167, 103, 0.7);
  background: rgba(255, 245, 226, 0.85);
  padding: 12px;
  color: #826f59;
  font-size: 0.84rem;
}

.vizviz-home__hero-pricing-table {
  display: grid;
  gap: 6px;
}

.vizviz-home__hero-pricing-row {
  display: grid;
  grid-template-columns: minmax(148px, 1.35fr) repeat(var(--pricing-col-count, 3), minmax(56px, 1fr));
  gap: 6px;
  align-items: center;
}

.vizviz-home__hero-pricing-row--head .vizviz-home__hero-pricing-cell {
  font-size: 0.74rem;
  color: #8a7762;
  font-weight: 700;
}

.vizviz-home__hero-pricing-cell {
  background: rgba(255, 248, 236, 0.8);
  border: 1px solid rgba(229, 209, 176, 0.75);
  border-radius: 9px;
  padding: 8px 9px;
  font-size: 0.82rem;
}

.vizviz-home__hero-pricing-cell--provider {
  color: #44392d;
  font-weight: 600;
}

.vizviz-home__hero-pricing-cell--cost {
  text-align: center;
  color: #7a4003;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-weight: 700;
}

.api-home__lowest-price {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid rgba(225, 182, 115, 0.75);
  background: linear-gradient(135deg, #fff0d7 0%, #ffe2b8 100%);
  padding: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.api-home__lowest-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #8b4f08;
  background: rgba(255, 219, 170, 0.95);
  margin-bottom: 4px;
}

.api-home__lowest-price h3 {
  margin: 0;
  font-size: 1.18rem;
}

.api-home__lowest-price p {
  margin: 6px 0 0;
  color: #6f5a43;
  line-height: 1.55;
}

.api-home__lowest-tags {
  display: grid;
  gap: 7px;
  align-content: center;
}

.api-home__lowest-tags span {
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.84);
  border: 1px solid rgba(198, 148, 88, 0.56);
  color: #71410a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 10px;
  white-space: nowrap;
}

.api-home__quickstart-grid,
.api-home__feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.api-home__showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.api-home__showcase-card {
  border: 1px solid rgba(226, 197, 154, 0.8);
  border-radius: 14px;
  background: #fffaf1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.api-home__showcase-card:hover {
  transform: translateY(-3px);
  border-color: rgba(226, 132, 20, 0.58);
  box-shadow: 0 18px 28px rgba(109, 70, 23, 0.2);
}

.api-home__showcase-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(255, 245, 226, 0.85);
  border-bottom: 1px solid rgba(224, 194, 147, 0.8);
  overflow: hidden;
}

.api-home__showcase-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.34s ease, filter 0.34s ease;
}

.api-home__showcase-card:hover .api-home__showcase-cover img {
  transform: scale(1.05);
  filter: saturate(1.06) contrast(1.04);
}

.api-home__showcase-cover-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(16, 22, 34, 0) 0%, rgba(16, 22, 34, 0.86) 100%);
  color: #f6e4c5;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.api-home__showcase-card:hover .api-home__showcase-cover-overlay {
  opacity: 1;
  transform: translateY(0);
}

.api-home__showcase-body {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.api-home__showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.api-home__showcase-title {
  margin: 0;
  font-size: 1rem;
}

.api-home__showcase-remix-btn {
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(217, 141, 43, 0.62);
  background: linear-gradient(135deg, #ffd08a 0%, #efab47 100%);
  color: #291c0f;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 10px;
  white-space: nowrap;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.api-home__showcase-remix-btn:hover {
  transform: translateY(-1px);
}

.api-home__showcase-prompt {
  margin: 0;
  color: #5d5347;
  font-size: 0.84rem;
  line-height: 1.58;
  min-height: 68px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.api-home__showcase-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.api-home__link-btn--ghost {
  border: 1px solid rgba(206, 170, 120, 0.62);
  background: rgba(255, 249, 238, 0.86);
  color: #4a3d2f;
}

.api-home__showcase-empty {
  border: 1px dashed rgba(222, 189, 141, 0.85);
  border-radius: 12px;
  background: rgba(255, 246, 230, 0.82);
  color: #7f6d55;
  padding: 18px;
  text-align: center;
  font-size: 0.86rem;
}

.api-home__step-card,
.api-home__feature-card {
  border: 1px solid rgba(226, 197, 154, 0.8);
  border-radius: 14px;
  background: #fffaf1;
  padding: 14px;
}

.api-home__step-card > span,
.api-home__feature-card > span {
  display: inline-flex;
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: #8a5415;
  letter-spacing: 0.04em;
  font-size: 0.73rem;
  margin-bottom: 5px;
}

.api-home__step-card strong,
.api-home__feature-card h3 {
  display: block;
  margin: 0;
  font-size: 1.03rem;
}

.api-home__step-card p,
.api-home__feature-card p {
  margin: 7px 0 0;
  color: #6f6458;
  line-height: 1.58;
}

.api-home__inline-form {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.api-home__inline-form input {
  border: 1px solid rgba(206, 170, 120, 0.62);
  border-radius: 9px;
  padding: 9px;
  background: #fffef9;
  color: #413326;
  font-size: 0.89rem;
}

.api-home__inline-form input:focus {
  outline: 2px solid rgba(241, 138, 26, 0.3);
  border-color: rgba(226, 120, 0, 0.66);
}

.api-home__inline-form button,
.api-home__link-btn {
  border: none;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #352210;
  background: linear-gradient(135deg, #ffc37a, #f29128);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.api-home__new-key {
  margin-top: 9px;
  border: 1px solid rgba(214, 163, 96, 0.6);
  border-radius: 9px;
  background: #fff5e6;
  color: #9b4d00;
  padding: 8px;
  font-size: 0.78rem;
  word-break: break-all;
}

.api-home__keys-list {
  margin-top: 9px;
  display: grid;
  gap: 7px;
  font-size: 0.8rem;
}

.api-home__keys-list .wudi-lite-list-item {
  border: 1px solid rgba(223, 190, 145, 0.7);
  border-radius: 9px;
  padding: 8px;
  background: rgba(255, 250, 242, 0.86);
}

.api-home__code-panel {
  margin-top: 12px;
  border: 1px solid rgba(220, 189, 147, 0.86);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7ea 0%, #fff2de 100%);
  overflow: hidden;
}

.api-home__code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px;
  border-bottom: 1px solid rgba(220, 189, 147, 0.86);
}

.api-home__code-head strong {
  font-size: 0.95rem;
}

.api-home__code-head span {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  font-size: 0.76rem;
  color: #7d6d5a;
}

.api-home__code-panel pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #3b3126;
}

.api-home__code-panel code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  line-height: 1.65;
}

.api-home__footer {
  margin: 18px auto 0;
  text-align: center;
  color: #816e56;
  font-size: 0.82rem;
}

.api-home__hero,
.api-home__section {
  animation: apiFadeUp 0.42s ease both;
}

@keyframes apiFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .api-home__hero {
    grid-template-columns: 1fr;
  }

  .api-home__studio-grid {
    grid-template-columns: 1fr;
  }

  .api-home__quickstart-grid,
  .api-home__feature-grid,
  .api-home__showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-home__pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .api-home__header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 14px;
  }

  .api-home__nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .api-home__scroll {
    padding: 14px 12px 20px;
    height: calc(100dvh - 116px);
  }

  .api-home__section {
    padding: 14px;
  }

  .api-home__section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .api-home__section-meta {
    justify-items: start;
    text-align: left;
  }

  .api-home__lowest-price {
    flex-direction: column;
  }

  .api-home__quickstart-grid,
  .api-home__feature-grid,
  .api-home__showcase-grid {
    grid-template-columns: 1fr;
  }

  .api-home__studio-ratio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .api-home__studio-thumbs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-home__inline-form {
    grid-template-columns: 1fr;
  }

  .vizviz-home__hero-pricing-row {
    grid-template-columns: 1.2fr repeat(var(--pricing-col-count, 3), minmax(50px, 1fr));
  }
}

/* Deep-black premium visual override */
:root {
  --api-bg: #06080d;
  --api-bg-alt: #0b1019;
  --api-card: #101622;
  --api-border: rgba(255, 255, 255, 0.1);
  --api-text: #edf1f8;
  --api-muted: #9fa8bd;
  --api-accent: #d9b06f;
  --api-accent-strong: #f2cc8e;
  --api-accent-soft: rgba(217, 176, 111, 0.18);
  --api-shadow: 0 28px 72px rgba(0, 0, 0, 0.52);
}

body {
  color: var(--api-text);
  background:
    radial-gradient(960px 460px at 12% -10%, rgba(205, 143, 63, 0.2) 0%, rgba(205, 143, 63, 0) 62%),
    radial-gradient(900px 520px at 92% -18%, rgba(63, 132, 205, 0.14) 0%, rgba(63, 132, 205, 0) 66%),
    linear-gradient(180deg, #080b12 0%, #06080d 44%, #05070c 100%);
  font-family: "Noto Sans SC", "Manrope", "PingFang SC", "Avenir Next", "Segoe UI", sans-serif;
}

.api-home__halo {
  opacity: 0.18;
  filter: blur(14px);
}

.api-home__halo--left {
  background: #d7a45d;
}

.api-home__halo--right {
  background: #3b7fb6;
}

.api-home__header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(14px);
}

.api-home__brand {
  color: #f8f5ee;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.04em;
}

.api-home__nav-item {
  color: #b9c2d6;
}

.api-home__nav-item:hover {
  border-color: rgba(217, 176, 111, 0.38);
  background: rgba(217, 176, 111, 0.12);
  color: #eef3ff;
}

.api-home__nav-item.is-active {
  color: #120f0b;
  border-color: rgba(242, 204, 142, 0.7);
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
}

.api-home__header-link {
  color: #d2d9e7;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.api-home__header-link:hover {
  border-color: rgba(217, 176, 111, 0.55);
  color: #f5f9ff;
}

.api-home__header-link--solid {
  color: #1a140a;
  border-color: rgba(217, 176, 111, 0.55);
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
}

.api-home__hero,
.api-home__section {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(10, 15, 24, 0.98), rgba(10, 14, 22, 0.94));
  box-shadow: var(--api-shadow);
}

.api-home__eyebrow {
  color: #f1d7ab;
  background: rgba(217, 176, 111, 0.16);
}

.api-home__hero-copy h1 {
  color: #f6f8fc;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.api-home__hero-copy > p,
.api-home__reward-hint,
.api-home__updated-at,
.api-home__studio-tip,
.api-home__studio-result-meta,
.api-home__feature-card p,
.api-home__step-card p {
  color: #9ca6bc;
}

.api-home__cta {
  color: #d7deed;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.api-home__cta:hover {
  border-color: rgba(217, 176, 111, 0.58);
  color: #f8fbff;
}

.api-home__cta--solid,
.api-home__studio-ratio-btn.is-active,
.api-home__studio-generate,
.api-home__inline-form button,
.api-home__link-btn {
  color: #1a1309;
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
}

.api-home__route-hints,
.api-home__auth,
.api-home__studio-card,
.api-home__step-card,
.api-home__feature-card,
.api-home__showcase-card,
.vizviz-home__hero-pricing-card,
.api-home__code-panel {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    linear-gradient(180deg, #0d131f, #0b121d);
}

.api-home__auth-avatar {
  color: #1c1409;
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
}

.api-home__auth-avatar.is-guest {
  color: #e8edf8;
  background: linear-gradient(135deg, #344156, #2a3446);
}

.api-home__auth-profile small,
.api-home__auth-footnote,
.api-home__referral small,
.vizviz-home__hero-pricing-card-head small,
.api-home__code-head span,
.api-home__footer {
  color: #97a3ba;
}

.api-home__points,
.api-home__studio-status,
.api-home__new-key,
.api-home__keys-list .wudi-lite-list-item,
.vizviz-home__hero-pricing-cell,
.vizviz-home__hero-pricing-placeholder {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.api-home__points span,
.api-home__studio-status,
.api-home__studio-upload-empty,
.api-home__studio-result-empty,
.vizviz-home__hero-pricing-row--head .vizviz-home__hero-pricing-cell {
  color: #a0abc2;
}

.api-home__points strong,
.vizviz-home__hero-pricing-cell--cost {
  color: #f0c989;
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.api-home__action {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.025);
  color: #d3dcec;
}

.api-home__action:hover {
  border-color: rgba(217, 176, 111, 0.58);
}

.api-home__action--solid {
  color: #1a1309;
  border-color: rgba(217, 176, 111, 0.55);
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
}

.api-home__action--danger {
  color: #ff9f98;
}

.api-home__referral {
  border-color: rgba(217, 176, 111, 0.42);
  background: rgba(217, 176, 111, 0.08);
}

.api-home__studio-upload-box,
.api-home__studio-result-stage {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.28);
}

.api-home__showcase-cover {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.api-home__showcase-cover-overlay {
  background: linear-gradient(180deg, rgba(5, 8, 13, 0) 0%, rgba(5, 8, 13, 0.86) 100%);
  color: #ebd0a4;
}

.api-home__showcase-remix-btn {
  color: #1a1309;
  border-color: rgba(217, 176, 111, 0.62);
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
}

.api-home__showcase-card:hover {
  border-color: rgba(217, 176, 111, 0.58);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.4);
}

.api-home__showcase-prompt {
  color: #d4ddeb;
}

.api-home__studio-input,
.api-home__studio-select,
.api-home__studio-textarea,
.api-home__inline-form input {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.025);
  color: #edf1f7;
}

.api-home__studio-input::placeholder,
.api-home__studio-textarea::placeholder,
.api-home__inline-form input::placeholder {
  color: #8592aa;
}

.api-home__studio-field,
.vizviz-home__hero-pricing-card-head span,
.api-home__step-card > span,
.api-home__feature-card > span {
  color: #d8bb84;
}

.api-home__studio-input:focus,
.api-home__studio-select:focus,
.api-home__studio-textarea:focus,
.api-home__inline-form input:focus {
  outline: 2px solid rgba(217, 176, 111, 0.3);
  border-color: rgba(217, 176, 111, 0.7);
}

.api-home__studio-ratio-btn {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #c3cce0;
}

.api-home__studio-ratio-btn:hover {
  border-color: rgba(217, 176, 111, 0.48);
}

.api-home__studio-status.is-error,
.api-home__studio-thumb.is-error {
  border-color: rgba(255, 123, 123, 0.45);
  background: rgba(255, 80, 80, 0.12);
  color: #ffb2a8;
}

.api-home__studio-status.is-success {
  border-color: rgba(106, 210, 168, 0.45);
  background: rgba(55, 159, 117, 0.14);
  color: #93e8c6;
}

.api-home__studio-status.is-loading {
  border-color: rgba(217, 176, 111, 0.45);
  background: rgba(217, 176, 111, 0.14);
  color: #f2d7ac;
}

.api-home__studio-thumb {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.api-home__studio-thumb.is-active {
  border-color: rgba(217, 176, 111, 0.88);
  box-shadow: 0 0 0 1px rgba(217, 176, 111, 0.45);
}

.api-home__studio-download {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: #dbe4f2;
}

.api-home__studio-download:not(:disabled):hover {
  border-color: rgba(217, 176, 111, 0.6);
}

.api-home__link-btn--ghost {
  color: #d7deec;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
}

.api-home__showcase-empty {
  border-color: rgba(217, 176, 111, 0.4);
  background: rgba(217, 176, 111, 0.09);
  color: #d6c194;
}

.api-home__signup-offer,
.api-home__lowest-kicker,
.api-home__lowest-tags span {
  color: #f3d8a7;
  border-color: rgba(217, 176, 111, 0.38);
  background: rgba(217, 176, 111, 0.12);
}

.api-home__lowest-price {
  border-color: rgba(217, 176, 111, 0.4);
  background:
    radial-gradient(120% 220% at 0% 0%, rgba(217, 176, 111, 0.2), rgba(217, 176, 111, 0) 52%),
    linear-gradient(135deg, rgba(20, 26, 37, 0.98), rgba(13, 18, 29, 0.98));
}

.api-home__lowest-price p {
  color: #a4aec4;
}

.api-home__code-head {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.api-home__code-panel pre {
  color: #d6e1f3;
}

.api-home__code-panel code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

.api-home__new-key {
  color: #f0d29d;
}

/* Showcase image wall */
.api-home__showcase-grid {
  display: block;
  column-count: 3;
  column-gap: 14px;
}

.api-home__showcase-card {
  position: relative;
  display: inline-block;
  width: 100%;
  line-height: 0;
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.24s ease, border-color 0.24s ease;
}

.api-home__showcase-card:hover,
.api-home__showcase-card:focus-within {
  border-color: rgba(217, 176, 111, 0.6);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.42);
}

.api-home__showcase-media {
  display: block;
  width: 100%;
}

.api-home__showcase-media img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.api-home__showcase-hover {
  position: absolute !important;
  inset: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(5, 8, 13, 0) 34%, rgba(5, 8, 13, 0.94) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.api-home__showcase-card:hover .api-home__showcase-hover,
.api-home__showcase-card:focus-within .api-home__showcase-hover {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.api-home__showcase-title {
  margin: 0;
  color: #f4f8ff;
  font-size: 1.18rem;
  line-height: 1.3;
}

.api-home__showcase-prompt {
  margin: 0;
  color: rgba(236, 242, 252, 0.92);
  font-size: 0.96rem;
  line-height: 1.56;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.api-home__showcase-remix-btn {
  width: fit-content;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid rgba(217, 176, 111, 0.62);
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
  color: #1a1309;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 12px 20px;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.api-home__showcase-remix-btn:hover {
  transform: translateY(-1px);
}

.api-home__showcase-empty {
  break-inside: avoid;
}

@media (max-width: 1200px) {
  .api-home__showcase-grid {
    column-count: 2;
  }
}

@media (max-width: 860px) {
  .api-home__showcase-grid {
    column-count: 1;
  }

  .api-home__showcase-hover {
    opacity: 1;
    transform: none;
    background: linear-gradient(180deg, rgba(5, 8, 13, 0.08) 34%, rgba(5, 8, 13, 0.9) 100%);
  }
}

/* Studio immersive layout (inspired interaction, original implementation) */
.api-home__studio--immersive {
  background:
    radial-gradient(130% 180% at -8% -10%, rgba(217, 176, 111, 0.14), rgba(217, 176, 111, 0) 52%),
    radial-gradient(130% 180% at 108% -14%, rgba(87, 132, 212, 0.16), rgba(87, 132, 212, 0) 58%),
    linear-gradient(180deg, rgba(12, 17, 27, 0.98), rgba(9, 13, 21, 0.96));
}

.api-home__studio--immersive .api-home__studio-grid {
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1.12fr) minmax(0, 0.95fr);
  gap: 14px;
  align-items: stretch;
}

.api-home__studio--immersive .api-home__studio-card {
  min-height: 760px;
  border-radius: 16px;
  border-color: rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #0c121c, #0a111a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 60px rgba(0, 0, 0, 0.36);
  gap: 11px;
}

.api-home__studio-upload-head {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.api-home__studio-upload-head strong {
  font-size: 0.92rem;
  color: #ebeff8;
}

.api-home__studio-upload-head small {
  font-size: 0.77rem;
  color: #91a0bc;
}

.api-home__studio-selected-style {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(217, 176, 111, 0.3);
  background: rgba(217, 176, 111, 0.1);
  color: #f2dcb6;
  font-size: 0.82rem;
}

.api-home__studio-style-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 364px;
  overflow-y: auto;
  padding-right: 2px;
}

.api-home__studio-style-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  display: grid;
  gap: 6px;
  padding: 6px;
}

.api-home__studio-style-card.is-active {
  border-color: rgba(217, 176, 111, 0.86);
  box-shadow: 0 0 0 1px rgba(217, 176, 111, 0.42);
}

.api-home__studio-style-preview {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 5px;
}

.api-home__studio-style-thumb {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.api-home__studio-style-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.api-home__studio-style-thumb-empty {
  color: #8e9bb3;
  font-size: 0.72rem;
}

.api-home__studio-style-title {
  display: block;
  color: #edf1fa;
  font-size: 0.75rem;
  line-height: 1.3;
  min-height: 2em;
}

.api-home__studio-style-tags {
  display: block;
  color: #9ba8bf;
  font-size: 0.67rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.api-home__studio-style-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.api-home__studio-style-btn {
  border: 1px solid rgba(217, 176, 111, 0.54);
  border-radius: 8px;
  padding: 5px 4px;
  background: linear-gradient(135deg, #f2cc8e 0%, #d9b06f 100%);
  color: #1a1309;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
}

.api-home__studio-style-btn--ghost {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #d9e2f1;
}

.api-home__studio-style-empty {
  grid-column: 1 / -1;
  border-radius: 10px;
  border: 1px dashed rgba(217, 176, 111, 0.38);
  padding: 14px 10px;
  text-align: center;
  color: #c7b389;
  font-size: 0.82rem;
  background: rgba(217, 176, 111, 0.08);
}

.api-home__studio-result-main.is-demo {
  filter: saturate(0.92) brightness(0.92);
  opacity: 0.9;
}

.api-home__studio-card--result .api-home__studio-result-stage {
  min-height: 360px;
}

.api-home__studio-card--result .api-home__studio-thumbs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1320px) {
  .api-home__studio-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 300px;
  }
}

@media (max-width: 1100px) {
  .api-home__studio--immersive .api-home__studio-card {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .api-home__studio-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }
}

@media (max-width: 640px) {
  .api-home__studio-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
