/* ============================================================
   Home page sections
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--s-16);
  padding-bottom: var(--s-8);
}
@media (min-width: 640px) { .hero { padding-top: var(--s-20); padding-bottom: var(--s-10); } }

.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 80%;
  background:
    radial-gradient(60% 60% at 50% 30%, var(--p-accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 768px;
  margin: 0 auto;
  padding-left: var(--s-5);
  padding-right: var(--s-5);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--p-text-secondary);
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: 9999px;
  padding: var(--s-1) var(--s-3);
  margin-bottom: var(--s-5);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: var(--p-success);
  box-shadow: 0 0 8px var(--p-success);
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero__title em {
  font-style: normal;
  color: var(--p-primary);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--p-text-secondary);
  max-width: 56ch;
  margin: 0 auto var(--s-8);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-base);
  font-weight: 500;
  padding: var(--s-3) var(--s-6);
  border-radius: var(--radius-control);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn--primary {
  color: var(--p-primary-content);
  background: var(--p-primary);
}
.btn--primary:hover { background: var(--p-accent-bright); }

.btn--ghost {
  color: var(--p-base-content);
  background: var(--p-surface-3);
  border: 1px solid var(--p-border-default);
}
.btn--ghost:hover {
  background: var(--p-surface-raised);
  border-color: var(--p-border-strong);
}

.hero__stats {
  display: flex;
  gap: var(--s-8);
  justify-content: center;
  margin-top: var(--s-12);
  flex-wrap: wrap;
}

.hero__stat {
  text-align: center;
}

.hero__stat-value {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--p-base-content);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--p-text-dim);
  margin-top: var(--s-1);
}

/* ---------- Model cards ---------- */
.models {
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
  flex-wrap: wrap;
}

.section-head__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-head__link {
  font-size: var(--text-sm);
  color: var(--p-text-secondary);
  transition: color .15s ease;
}
.section-head__link:hover { color: var(--p-primary); }

.models__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

@media (max-width: 1023px) {
  .models__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .models__grid { grid-template-columns: 1fr; }
}

.model-card {
  position: relative;
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: var(--radius-surface);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.model-card:hover {
  border-color: var(--p-border-strong);
  background: var(--p-surface-panel);
  transform: translateY(-2px);
}

.model-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--s-2);
  border-radius: 9999px;
  background: var(--p-surface-3);
  color: var(--p-text-secondary);
}

.model-card__tag--hot { background: var(--p-accent-dim); color: var(--p-primary); }
.model-card__tag--new { background: rgba(89, 212, 153, .12); color: var(--p-success); }
.model-card__tag--discount { background: rgba(255, 197, 51, .12); color: var(--p-warning); }

.model-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
}

.model-card__desc {
  font-size: var(--text-sm);
  color: var(--p-text-secondary);
  line-height: 1.55;
  flex: 1 1 auto;
}

.model-card__meta {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-xs);
  color: var(--p-text-dim);
}

.model-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--p-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}
.model-card__link:hover { color: var(--p-accent-bright); }

/* ---------- Big feature band (Video Enhancer) ---------- */
.feature-band {
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}

.feature-band__inner {
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: var(--radius-surface);
  padding: var(--s-10);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s-8);
  align-items: center;
}

@media (max-width: 767px) {
  .feature-band__inner { grid-template-columns: 1fr; padding: var(--s-6); }
}

.feature-band__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.feature-band__subtitle {
  color: var(--p-text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--s-6);
}

.feature-band__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.feature-tile {
  background: var(--p-surface-3);
  border: 1px solid var(--p-border-default);
  border-radius: var(--radius-xl);
  padding: var(--s-4);
}

.feature-tile__label {
  font-size: var(--text-xs);
  color: var(--p-text-dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.feature-tile__value {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: var(--s-2) 0;
}

.feature-tile__note {
  font-size: var(--text-xs);
  color: var(--p-text-muted);
}

/* ---------- Changelog ---------- */
.changelog {
  padding-top: var(--s-16);
  padding-bottom: var(--s-16);
}

.changelog__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.changelog__item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--s-6);
  padding: var(--s-5);
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: var(--radius-xl);
  transition: border-color .2s ease;
}

.changelog__item:hover { border-color: var(--p-border-strong); }

@media (max-width: 639px) {
  .changelog__item { grid-template-columns: 1fr; gap: var(--s-3); }
}

.changelog__date {
  font-size: var(--text-xs);
  color: var(--p-text-dim);
  font-family: var(--font-mono);
  padding-top: 2px;
}

.changelog__title {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--s-1);
}

.changelog__slug {
  font-size: var(--text-xs);
  color: var(--p-primary);
  font-family: var(--font-mono);
}

.changelog__body {
  font-size: var(--text-sm);
  color: var(--p-text-secondary);
  margin-top: var(--s-2);
  line-height: 1.6;
}

/* ---------- Register CTA band ---------- */

/* ===== 图片资产组件（原站品牌资产接入） ===== */
.topnav__logo-img { height: 26px; width: auto; display: block; }
.model-wordmark { height: 30px; width: auto; display: block; }
.model-wordmark--sm { height: 22px; }
.provider-icon { width: 18px; height: 18px; flex: none; opacity: .9; }
.cat-model__head { flex-wrap: wrap; }

.hero-card { position: relative; margin-top: 28px; border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 9; min-height: 240px; background: #17171c; }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.35) 55%, rgba(0,0,0,.15)); }
.hero-card__caption { position: absolute; left: 24px; right: 24px; bottom: 20px; color: #fff; }
.hero-card__caption h3 { font-size: 20px; margin: 0 0 4px; }
.hero-card__caption p { margin: 0; opacity: .8; font-size: 14px; }

.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.masonry__col { display: flex; flex-direction: column; gap: 12px; }
.masonry__item { border-radius: 14px; overflow: hidden; background: #17171c; }
.masonry__item img { width: 100%; display: block; object-fit: cover; }
@media (max-width: 640px) {
  .masonry { grid-template-columns: 1fr 1fr; }
  .masonry__col:nth-child(3) { display: none; }
  .hero-card { aspect-ratio: 16 / 10; }
}

.ba-slider { position: relative; overflow: hidden; border-radius: 16px; cursor: ew-resize; touch-action: none; user-select: none; margin-top: 16px; max-width: 860px; background: #17171c; }
.ba-slider > img { width: 100%; display: block; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); }
.ba-handle::after { content: "⇔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.ba-label { position: absolute; top: 12px; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.ba-label--before { left: 12px; }
.ba-label--after { right: 12px; }

/* ============================================================
   Homepage v2 — mirror of hiveapi.dev start page
   (duo model showcases, promo panel, tiers, enhancer compare,
    gallery masonry, featured cards, register steps)
   ============================================================ */

/* ---------- Hero (v2 copy) ---------- */
.hero__sub {
  font-size: 1.125rem;
  color: var(--p-text-secondary);
  max-width: 36rem;
  margin: 24px auto 0;
  line-height: 1.65;
  text-wrap: balance;
}
.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero__cta .btn { min-width: 176px; padding: 14px 24px; font-size: var(--text-base); }

/* ---------- Promo panel + model cards ---------- */
.promo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: stretch;
  padding-top: var(--s-16);
}
@media (min-width: 1024px) { .promo { grid-template-columns: 5fr 7fr; } }

.promo__panel {
  position: relative;
  border-radius: var(--radius-surface);
  overflow: hidden;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,.25) 100%),
    url("/assets/cdn/446d8608cab85dc5.png") center/cover no-repeat;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
@media (min-width: 640px) { .promo__panel { padding: var(--s-8); } }

.promo__panel h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
}
@media (min-width: 640px) { .promo__panel h3 { font-size: var(--text-3xl); } }
.promo__panel h3 span { color: var(--p-primary); }

.promo__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.promo__list li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.promo__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--p-primary);
  font-weight: 700;
}

.promo__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 640px) { .promo__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .promo__grid { grid-template-columns: repeat(3, 1fr); } }

.promo-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  background: var(--p-base-100);
  border: 0;
  border-radius: var(--radius-surface);
  padding: var(--s-5);
  box-shadow: 0 0 0 1px rgba(250,250,250,.06);
  transition: background .2s ease;
}
.promo-card:hover { background: rgba(250,250,250,.02); }

.promo-card__tag {
  align-self: flex-start;
  display: inline-flex; align-items: center;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(250,250,250,.05);
  color: var(--p-text-muted);
}
.promo-card__tag--new, .promo-card__tag--off {
  height: 20px; padding: 0 6px; border-radius: 3px;
  background: var(--p-primary); color: #fff;
  font-family: inherit; font-size: 10px; font-weight: 700;
  letter-spacing: .02em; text-transform: uppercase;
  transform: skewX(-12deg);
}

.promo-card__name { font-size: var(--text-base); font-weight: 600; }
.promo-card__desc {
  font-size: var(--text-xs);
  color: var(--p-text-secondary);
  line-height: 1.5;
  flex: 1 1 auto;
}
.promo-card__icon {
  width: 18px;
  height: 18px;
  align-self: flex-end;
  opacity: .9;
}

/* ---------- Duo model showcases ---------- */
.duo {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: var(--s-10);
  align-items: start;
  padding-top: var(--s-14);
  padding-bottom: var(--s-14);
}

.duo__text { display: flex; flex-direction: column; gap: var(--s-5); }

.duo__lede {
  font-size: var(--text-base);
  color: var(--p-text-secondary);
  line-height: 1.7;
  margin: 0;
}
.duo__lede--below { margin-top: var(--s-2); }

.duo__title { margin: 0; }
.duo__title img { height: 34px; width: auto; display: block; }

.duo__desc {
  font-size: var(--text-xs);
  color: var(--p-text-dim);
  line-height: 1.6;
  margin: 0;
}

.duo__badges { display: flex; gap: var(--s-2); }
.duo__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px var(--s-3);
  border-radius: 9999px;
  background: var(--p-surface-3);
  color: var(--p-text-secondary);
  border: 1px solid var(--p-border-default);
}
.duo__badge--solid { background: var(--p-accent-dim); color: var(--p-primary); border-color: transparent; }

.duo__head {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
}

.duo__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.duo__videos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.video-tile {
  border-radius: 14px;
  overflow: hidden;
  background: #17171c;
  aspect-ratio: 16 / 9;
}
.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-tile--portrait { aspect-ratio: 9 / 16; }
.video-tile--square { aspect-ratio: 1 / 1; }
.video-tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }

.duo__row--triple {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.duo__row--triple .video-tile { aspect-ratio: 4 / 3; }

/* ---------- Seedance 2.0 tiers ---------- */
.tiers { padding-top: var(--s-16); padding-bottom: var(--s-16); }

.tiers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.tier-card {
  position: relative;
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: var(--radius-surface);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color .2s ease;
}
.tier-card:hover { border-color: var(--p-border-strong); }
.tier-card--featured { border-color: rgba(255,99,99,.45); }

.tier-card__discount {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--s-2);
  border-radius: 9999px;
  background: rgba(255,197,51,.14);
  color: var(--p-warning);
}

.tier-card h3 { font-size: var(--text-lg); font-weight: 600; }

.tier-card__price {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--p-base-content);
}
.tier-card__price s {
  font-weight: 400;
  color: var(--p-text-dim);
  font-size: var(--text-sm);
  margin-right: 4px;
}
.tier-card__price span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--p-text-secondary);
  margin-top: var(--s-1);
}

.tier-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1 1 auto;
}
.tier-card__list li {
  position: relative;
  padding-left: var(--s-5);
  font-size: var(--text-sm);
  color: var(--p-text-secondary);
  line-height: 1.5;
}
.tier-card__list li::before {
  content: "·";
  position: absolute;
  left: var(--s-1);
  color: var(--p-primary);
  font-weight: 700;
}

.tier-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--p-primary);
}
.tier-card__link:hover { color: var(--p-accent-bright); }

/* ---------- Video Enhancer compare ---------- */
.duo--enhancer .duo__videos--single { display: flex; flex-direction: column; gap: var(--s-4); }

.comp {
  position: relative;
  border-radius: var(--radius-surface);
  overflow: hidden;
  background: #17171c;
  aspect-ratio: 16 / 9;
  cursor: ew-resize;
  touch-action: none;
  user-select: none;
}
.comp video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comp__before {
  clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0);
}
.comp__label {
  position: absolute;
  top: 12px;
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(0,0,0,.6);
  color: #fff;
}
.comp__label--before { left: 12px; }
.comp__label--after { right: 12px; }
.comp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2px;
  margin-left: -1px;
  background: #fff;
  z-index: 3;
}
.comp__grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  display: grid;
  place-items: center;
}
.comp__grip::before {
  content: "⇔";
  color: #111;
  font-size: 15px;
}

.comp__tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.comp__tier {
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: 12px;
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.comp__tier strong { font-size: var(--text-base); font-weight: 600; }
.comp__tier span { font-size: var(--text-sm); color: var(--p-primary); font-weight: 500; }
.comp__tier small { font-size: var(--text-xs); color: var(--p-text-dim); line-height: 1.4; }

/* ---------- Z-Image Pro gallery (masonry) ---------- */
.gallery {
  column-count: 3;
  column-gap: 12px;
  margin-top: var(--s-6);
}
.gallery img {
  width: 100%;
  display: block;
  margin-bottom: 12px;
  border-radius: 12px;
  break-inside: avoid;
}

.gallery__more { margin-top: var(--s-6); text-align: center; }
.gallery__more a { font-size: var(--text-sm); color: var(--p-text-secondary); }
.gallery__more a:hover { color: var(--p-primary); }

/* ---------- Featured models ---------- */
.featured { padding-top: var(--s-16); padding-bottom: var(--s-16); }

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}

.featured-card {
  background: var(--p-surface-sunken);
  border: 1px solid var(--p-border-default);
  border-radius: var(--radius-surface);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.featured-card:hover {
  border-color: var(--p-border-strong);
  background: var(--p-surface-panel);
  transform: translateY(-2px);
}

.featured-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-2);
}
.featured-card__top img { width: 20px; height: 20px; opacity: .9; }

.featured-card__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px var(--s-2);
  border-radius: 9999px;
  background: var(--p-accent-dim);
  color: var(--p-primary);
}
.featured-card__tag--off { background: rgba(255,197,51,.12); color: var(--p-warning); }

.featured-card h3 { font-size: var(--text-base); font-weight: 600; }
.featured-card p { font-size: var(--text-sm); color: var(--p-text-secondary); }
.featured-card__meta { font-size: var(--text-xs); color: var(--p-text-dim); margin-top: auto; }

.featured__more { margin-top: var(--s-6); text-align: center; }
.featured__more a { font-size: var(--text-sm); color: var(--p-text-secondary); }
.featured__more a:hover { color: var(--p-primary); }

/* ---------- Section heads (v2) ---------- */
.section-head h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.section-sub { font-size: var(--text-sm); color: var(--p-text-secondary); margin: var(--s-2) 0 0; }
.section-head--split { align-items: center; }

/* ---------- Changelog (v2) ---------- */
.changelog__items {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.changelog__item time {
  font-size: var(--text-xs);
  color: var(--p-text-dim);
  font-family: var(--font-mono);
  padding-top: 2px;
}
.changelog__item h3 { font-size: var(--text-base); font-weight: 600; margin-bottom: var(--s-2); }
.changelog__item p { font-size: var(--text-sm); color: var(--p-text-secondary); line-height: 1.6; margin: 0; }
.changelog__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-5);
  flex-wrap: wrap;
}
.changelog__foot a { font-size: var(--text-sm); color: var(--p-text-secondary); }
.changelog__foot a:hover { color: var(--p-primary); }

/* ---------- Register steps (v3, original skeleton mocks) ---------- */
.register__grid { max-width: 896px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 768px) { .register__grid { grid-template-columns: repeat(3, 1fr); } }
.register__step { display: flex; flex-direction: column; gap: 16px; }
.register__head { display: flex; align-items: center; gap: 12px; }
.register__num {
  width: 32px; height: 32px; border-radius: 9999px;
  background: rgba(255,99,99,.1); color: var(--p-primary);
  font-size: var(--text-sm); font-weight: 500;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.register__step h3 { font-size: var(--text-base); font-weight: 600; margin: 0; }
@media (min-width: 768px) { .register__step h3 { font-size: 18px; } }
.register__step > p { min-height: 48px; margin: 0; font-size: var(--text-sm); color: var(--p-text-secondary); line-height: 1.55; }
.register__step > p a { color: inherit; text-decoration: underline; }
.register__step > p a:hover { color: var(--p-primary); }
.register__mock { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 224px; padding-top: 8px; }
.register__skels { display: flex; align-items: center; gap: 8px; }
.skel { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.skel i { display: block; height: 4px; border-radius: 2px; background: rgba(250,250,250,.15); }
.skel i + i { height: 2px; background: rgba(250,250,250,.08); }
.skel--w6 { width: 24px; } .skel--w12 { width: 48px; }
.register__icons { display: flex; gap: 8px; }
.register__icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-control); border: 1px solid var(--p-border-default);
  background: rgba(18,18,18,.6); color: var(--p-text-muted);
}
.register__icon svg { width: 18px; height: 18px; }
.register__prices { display: flex; flex-direction: column; gap: 8px; }
.register__price { display: flex; align-items: center; height: 24px; border-radius: 2px; background: rgba(250,250,250,.04); padding: 0 8px; }
.register__price > span:first-child { font-size: var(--text-xs); color: var(--p-text-muted); }
.register__bars { display: flex; flex: 1; gap: 8px; margin: 0 8px; }
.register__bars i { height: 8px; flex: 1; border-radius: 2px; background: rgba(250,250,250,.1); }
.register__price strong { font-size: var(--text-sm); font-weight: 500; font-variant-numeric: tabular-nums; }
.register__keyline { display: flex; align-items: center; gap: 8px; }
.register__keyrow {
  display: flex; align-items: center; height: 24px; border-radius: 2px;
  background: rgba(250,250,250,.04); padding: 0 8px;
  font-family: var(--font-mono); font-size: .7rem; color: var(--p-text-muted); letter-spacing: .025em;
}
.register__keyrow--flex { flex: 1; }
.register__keyrow--dots { font-size: var(--text-xs); letter-spacing: .05em; }
.register__note { margin: 40px auto 0; max-width: 896px; text-align: center; font-size: var(--text-xs); color: var(--p-text-muted); }
.register__note a { color: inherit; text-decoration: underline; }
.register__note a:hover { color: var(--p-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .promo { grid-template-columns: 1fr; }
  .tiers__grid, .featured__grid { grid-template-columns: 1fr 1fr; }
  .gallery { column-count: 2; }
}
@media (max-width: 767px) {
  .duo { grid-template-columns: 1fr; gap: var(--s-6); padding: var(--s-10) 0; }
  .duo__videos { grid-template-columns: 1fr 1fr; }
  .comp__tiers { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .tiers__grid, .featured__grid, .promo__grid { grid-template-columns: 1fr; }
  .duo__videos, .duo__row--triple { grid-template-columns: 1fr; }
  .video-tile--portrait, .video-tile--wide { aspect-ratio: 16 / 9; }
  .gallery { column-count: 1; }
}

/* ============================================================
   v3 — original-fidelity components (hiveapi.dev start page)
   ============================================================ */

/* ---------- Kicker pill + skew badges ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: var(--radius-control);
  background: var(--p-surface-raised); color: var(--p-text-secondary);
  font-size: var(--text-xs); font-weight: 600; line-height: 1.33;
  letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06);
}
.badge-off, .badge-new {
  display: inline-flex; align-items: center; height: 20px; padding: 0 6px;
  border-radius: 3px; background: var(--p-primary); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  transform: skewX(-12deg); white-space: nowrap;
}
.badge-off--lg { height: 24px; padding: 0 10px; font-size: var(--text-xs); }

/* ---------- Showcase card (Wan 3.0 / Seedance 2.5) ---------- */
.showcase {
  position: relative; overflow: hidden;
  border-radius: var(--radius-surface); background: var(--p-base-200);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.showcase__head {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 32px 24px;
}
.showcase__side {
  display: none; flex: 1; min-width: 0; margin: 0;
  flex-direction: column; align-items: center; justify-content: center; text-align: center;
  font-size: var(--text-sm); font-weight: 600; line-height: 22px; text-transform: uppercase;
}
.showcase__side br { display: none; }
.showcase__side span { display: block; color: var(--p-text-muted); }
.showcase__center { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.showcase__wordmark { position: relative; height: 80px; width: 240px; margin: 0; }
.showcase__wordmark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.showcase__body { position: relative; overflow: hidden; padding: 0 12px 12px; }
.showcase__grid { display: flex; flex-wrap: nowrap; justify-content: center; gap: 8px; margin: 0 -4px; padding: 4px 0; }
.showcase__col { width: 33.3333%; flex: none; display: flex; flex-direction: column; gap: 8px; }
.tile { margin: 0; overflow: hidden; border-radius: 8px; background: var(--p-base-300); }
.tile video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile__zoom { transform: scale(1.25); transform-origin: bottom; }
.showcase__fade, .gallery-fade {
  pointer-events: none; position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  height: 88px; padding: 16px 0;
  background-image: linear-gradient(to top, var(--p-base-200) 0%, rgba(18,18,18,.6) 50%, rgba(18,18,18,0) 100%);
}
.glass-btn {
  pointer-events: auto; display: inline-grid; grid-auto-flow: column;
  place-content: center; align-items: center; gap: 8px;
  height: 56px; min-width: 56px; padding: 0 14px;
  border-radius: var(--radius-control); background: rgba(8,8,8,.6);
  color: var(--p-base-content); font-size: var(--text-lg); font-weight: 600; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(4px);
  transition: background .15s ease;
}
.glass-btn:hover { background: rgba(8,8,8,.8); }
.glass-btn__arrow { display: inline-flex; color: var(--p-primary); }
.glass-btn__arrow svg { width: 24px; height: 24px; }
@media (min-width: 768px) {
  .showcase__head { padding: 40px 32px 32px; }
  .showcase__center { gap: 8px; }
  .showcase__wordmark { height: 96px; width: 288px; }
  .showcase__body { padding: 0 16px 32px; }
  .tile { border-radius: 12px; }
}
@media (min-width: 1024px) {
  .showcase__side { display: flex; }
}

/* ---------- Seedance 2.0 tiers inside showcase ---------- */
.showcase__tiers { display: grid; grid-template-columns: 1fr; grid-auto-rows: 1fr; gap: 8px; padding: 0 12px 12px; }
.tier {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--radius-surface); background: rgba(8,8,8,.4);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.tier__media { margin: 0; overflow: hidden; background: var(--p-base-300); }
.tier__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tier__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.tier__body h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--text-lg); font-weight: 600; }
.tier__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 0; }
.tier__price s { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--text-lg); color: rgba(250,250,250,.4); }
.tier__price strong { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--text-2xl); font-weight: 600; }
.tier__price span { font-size: var(--text-sm); color: var(--p-text-muted); }
.tier__note { margin: 4px 0 0; font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--text-xs); color: var(--p-text-muted); }
.tier__list {
  margin: 16px 0 0; padding: 16px 0 0; list-style: none;
  border-top: 1px solid rgba(250,250,250,.06);
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.tier__list li { display: flex; gap: 8px; font-size: var(--text-sm); line-height: 24px; color: rgba(250,250,250,.72); }
.tier__list li span { color: var(--p-primary); }
.tier__cta { margin-top: 20px; width: 100%; }
@media (min-width: 768px) {
  .showcase__tiers { grid-template-columns: repeat(3, 1fr); padding: 0 16px 16px; }
  .tier__body { padding: 20px; }
}

/* ---------- Z-Image Pro gallery card ---------- */
.gallery-card { overflow: hidden; border-radius: var(--radius-surface); background: var(--p-base-200); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.gallery-card__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 16px 16px; }
.gallery-card__lede { margin: 8px 0 0; max-width: 36rem; font-size: var(--text-lg); color: var(--p-text-secondary); }
.gallery-card__window { position: relative; overflow: hidden; }
.gallery-clip { height: 448px; overflow: hidden; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.gallery-col { display: flex; flex-direction: column; gap: 8px; }
.gallery-tile {
  display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: 8px; background: var(--p-base-300); cursor: pointer;
}
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gallery-tile:hover img { transform: scale(1.03); }
@media (min-width: 640px) { .gallery-card__head { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 768px) {
  .gallery-card__head { padding-left: 32px; padding-right: 32px; }
  .gallery-clip { height: 832px; }
  .gallery-grid { gap: 12px; padding: 0 16px; }
  .gallery-col { gap: 12px; }
  .gallery-tile { border-radius: 12px; }
}

/* ---------- Video Enhancer card ---------- */
.enhancer-card { overflow: hidden; border-radius: var(--radius-surface); background: var(--p-base-200); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.enhancer-card__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 16px 20px; }
.enhancer-card__badges { display: flex; align-items: center; gap: 8px; }
.enhancer-card__title { margin: 12px 0 0; font-size: var(--text-2xl); font-weight: 600; }
.enhancer-card__lede { margin: 8px 0 0; max-width: 42rem; font-size: var(--text-sm); line-height: 24px; color: rgba(250,250,250,.72); }
.enhancer-card__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.enhancer-card__body { padding: 0 12px 16px; }
.enhancer-card__body .comp { box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.enhancer-card__body .comp__tiers { margin-top: 16px; }
@media (min-width: 640px) {
  .enhancer-card__head { padding-left: 24px; padding-right: 24px; }
  .enhancer-card__body { padding: 0 16px 24px; }
  .enhancer-card__lede { font-size: var(--text-base); }
}
@media (min-width: 768px) {
  .enhancer-card__head { padding-left: 32px; padding-right: 32px; }
  .enhancer-card__title { font-size: var(--text-3xl); }
  .enhancer-card__body { padding: 0 24px 24px; }
}
.comp__tier {
  background: rgba(8,8,8,.5); border: 0; border-radius: var(--radius-control);
  padding: 12px 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px;
}
.comp__tier strong { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--text-sm); font-weight: 600; }
.comp__tier span { font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--text-sm); font-weight: 500; color: var(--p-base-content); }
.comp__tier small { flex-basis: 100%; font-size: var(--text-xs); line-height: 20px; color: var(--p-text-muted); }
@media (max-width: 639px) { .comp__tiers { grid-template-columns: 1fr; } }

/* ---------- Featured models (v3) ---------- */
.featured__grid { gap: 20px; }
.featured-card {
  padding: 20px; border: 0; background: rgba(18,18,18,.5);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}
.featured-card:hover { background: rgba(18,18,18,.7); border-color: transparent; }
.featured-card__icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--radius-control); background: rgba(250,250,250,.05);
  box-shadow: 0 0 0 1px rgba(250,250,250,.1);
}
.featured-card__icon img { width: 20px; height: 20px; opacity: 1; }
.featured-card h3 { margin-top: 16px; font-size: var(--text-lg); }
.featured-card p { margin-top: 4px; line-height: 24px; color: rgba(250,250,250,.72); }
.featured-card__meta { margin-top: 12px; font-family: var(--font-mono, ui-monospace, monospace); font-size: var(--text-xs); color: var(--p-text-muted); }
.featured__more { display: none; margin-top: 32px; text-align: center; }
@media (max-width: 1023px) { .featured__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) {
  .featured__grid { grid-template-columns: 1fr; }
  .featured__more { display: block; }
}

/* ---------- Section head links (v3) ---------- */
.section-head__link { display: inline-flex; align-items: center; gap: 6px; }
.section-head__link svg { width: 16px; height: 16px; }
@media (max-width: 639px) { .section-head__link { display: none; } }

/* ---------- Footer language row ---------- */
.footer__langs { display: flex; flex-wrap: wrap; gap: 4px 16px; padding-top: var(--s-4); padding-bottom: var(--s-2); }
.footer__langs a { font-size: var(--text-xs); color: var(--p-text-muted); }
.footer__langs a:hover { color: var(--p-base-content); }
.footer__langs a[aria-current] { color: var(--p-text-secondary); }
.promo__panel .btn { margin-top: 24px; width: 100%; height: 48px; font-size: var(--text-base); }

/* ---------- Changelog (v3, 3-col panels) ---------- */
.changelog { border-top: 1px solid rgba(250,250,250,.06); }
.changelog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.changelog__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .changelog__grid { grid-template-columns: repeat(3, 1fr); } }
.changelog__card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--p-surface-panel); border: 1px solid rgba(250,250,250,.06);
  border-radius: var(--radius-surface); padding: 20px;
}
.changelog__card time { font-size: var(--text-xs); font-weight: 500; color: var(--p-text-dim); }
.changelog__card h3 { margin: 8px 0 0; font-size: var(--text-base); font-weight: 600; line-height: 24px; transition: color .15s ease; }
.changelog__card:hover h3 { color: var(--p-primary); }
.changelog__card p {
  margin: 8px 0 0; font-size: var(--text-sm); line-height: 24px; color: rgba(250,250,250,.55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.changelog__foot { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.changelog__foot a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); color: var(--p-text-secondary); }
.changelog__foot a:hover { color: var(--p-base-content); }
.changelog__foot svg { width: 16px; height: 16px; }
