/* Silk Road platform — product-grade shell */
:root {
  --ink: #0b1220;
  --ink-soft: #1c2736;
  --muted: #667384;
  --paper: #f4f5f7;
  --paper-elevated: #ffffff;
  --line: rgba(11, 18, 32, 0.1);
  --line-strong: rgba(11, 18, 32, 0.16);
  --accent: #006b5f;
  --accent-hover: #00564c;
  --hero-fg: #f7f8fa;
  --hero-muted: rgba(247, 248, 250, 0.72);
  --nav-bg: rgba(244, 245, 247, 0.88);
  --font-brand: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 70rem;
  --frame-max: 86rem;
  --frame-min-w: 48rem;
  --pad-x: clamp(1.25rem, 4vw, 2.75rem);
  --radius: 0;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.platform {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(0, 107, 95, 0.06), transparent 45%),
    linear-gradient(180deg, #eef1f4 0%, var(--paper) 18rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
}

/* —— Nav —— */
.pf-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line);
}

.pf-nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.5rem var(--pad-x);
  min-height: 3.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

/* Nav search */
.pf-search {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  flex: 1 1 14rem;
  max-width: 22rem;
  min-width: 0;
  margin: 0 0.25rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-elevated);
}

.pf-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pf-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  outline: none;
}

.pf-search__input::placeholder {
  color: var(--muted);
}

.pf-search__btn {
  flex: 0 0 auto;
  min-height: 36px;
  margin: 0;
  padding: 0 0.9rem;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.pf-search__btn:hover {
  background: rgba(0, 107, 95, 0.08);
  color: var(--accent);
}

.pf-search:focus-within {
  border-color: var(--accent);
}

.pf-search--page {
  max-width: 32rem;
  width: 100%;
  margin: 0 0 1.75rem;
  flex: none;
}

/* Home: search sits below hero, clear of carousel controls */
body.platform:not(.platform-dir) #directory {
  padding-top: clamp(2rem, 4vw, 3rem);
}

body.platform:not(.platform-dir) #directory .pf-search--page {
  margin: 0 0 2rem;
}

#directory .pf-search--page {
  max-width: none;
  width: 100%;
  margin: 0 0 2rem;
  border: 2px solid var(--ink);
  background: var(--paper-elevated);
  box-shadow: 0 10px 28px rgba(11, 18, 32, 0.12);
  position: relative;
  z-index: 2;
}

#directory .pf-search--page .pf-search__input,
#directory .pf-search--page .pf-search__btn {
  min-height: 48px;
  font-size: 0.95rem;
}

#directory .pf-search--page .pf-search__btn {
  border-left: 2px solid var(--ink);
  padding: 0 1.25rem;
  background: var(--ink);
  color: #fff;
}

#directory .pf-search--page .pf-search__btn:hover {
  background: var(--accent);
  border-left-color: var(--accent);
  color: #fff;
}

#directory .pf-search--page:focus-within {
  border-color: var(--accent);
}

#directory .pf-search--page:focus-within .pf-search__btn {
  border-left-color: var(--accent);
}

.platform-search .pf-search-page h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pf-search-hits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pf-search-hits li,
.pf-search-hit-row {
  border-bottom: 1px solid var(--line);
}

.pf-search-hit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pf-search-hit-row:hover {
  background: rgba(0, 107, 95, 0.04);
}

.pf-search-hit-row.is-active {
  border-left-color: var(--accent);
  background: rgba(0, 107, 95, 0.06);
}

.pf-search-hit {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1.3fr) minmax(0, 1.8fr) auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  width: 100%;
  margin: 0;
  padding: 1.05rem 0.35rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}

.pf-search-hit strong {
  font-size: 1.02rem;
  font-weight: 600;
}

.pf-search-hit span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pf-search-hit em {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.pf-search-hit-row.is-active .pf-search-hit em {
  color: var(--accent);
}

.pf-search-hit__open {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 36px;
  margin-right: 0.35rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

.pf-search-hit__open:hover {
  border-bottom: 1px solid currentColor;
}

@media (max-width: 800px) {
  .pf-search-hit {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }
  .pf-search-hit span {
    grid-column: 2 / -1;
  }
}

.pf-search-preview {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  background: var(--paper-elevated);
}

.pf-search-preview__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.02);
}

.pf-search-preview__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pf-search-preview__open {
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.pf-search-preview__open:hover {
  border-bottom: 1px solid currentColor;
}

.pf-frame-scale {
  --pf-frame-scale: 0.72;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #fff;
}

/*
 * Featured preview: render a fixed desktop "photo" (1440×900),
 * then shrink the whole capture to fit the panel width.
 */
.pf-frame-panel .pf-frame-scale {
  --pf-frame-vw: 1440;
  --pf-frame-vh: 900;
  container-type: inline-size;
  container-name: pf-frame;
  width: 100%;
  aspect-ratio: 1440 / 900;
  height: auto;
  min-height: 0;
}

.pf-search-preview .pf-frame-scale {
  height: min(72vh, 42rem);
}

.pf-frame-scale iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--pf-frame-scale));
  height: calc(100% / var(--pf-frame-scale));
  border: 0;
  background: #fff;
  transform: scale(var(--pf-frame-scale));
  transform-origin: top left;
}

.pf-frame-panel .pf-frame-scale iframe {
  width: calc(var(--pf-frame-vw) * 1px);
  height: calc(var(--pf-frame-vh) * 1px);
  transform: scale(calc(100cqi / var(--pf-frame-vw)));
  transform-origin: top left;
}

.pf-nav__brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 40px;
}

.pf-nav__brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.pf-nav__mark {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  display: block;
  border-radius: 0.2rem;
  object-fit: cover;
}

.pf-nav__brand-en {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pf-nav__brand-zh {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  padding-left: 0.65rem;
  border-left: 1px solid var(--line-strong);
}

.pf-nav__links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
}

.pf-nav__links a,
.pf-nav__tools-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.2rem 0.7rem;
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.pf-nav__links a:hover,
.pf-nav__tools-btn:hover,
.pf-nav__tools.is-open .pf-nav__tools-btn {
  color: var(--accent);
  text-decoration: none;
}

.pf-nav__tools {
  position: relative;
}

.pf-nav__tools-btn {
  margin: 0;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.pf-nav__tools-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  min-width: 13.5rem;
  padding: 0.35rem 0;
  margin-top: 0;
  border: 1px solid var(--line);
  background: var(--paper-elevated);
  box-shadow: 0 8px 24px rgba(11, 18, 32, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.25rem);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

/* Bridge the gap so hover doesn't drop when moving into the menu */
.pf-nav__tools-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.45rem;
  height: 0.45rem;
}

.pf-nav__tools:hover .pf-nav__tools-menu,
.pf-nav__tools:focus-within .pf-nav__tools-menu,
.pf-nav__tools.is-open .pf-nav__tools-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.pf-nav__tools-menu a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.tool-mark {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  object-fit: cover;
}

.pf-nav__tools-menu a:hover {
  background: rgba(0, 107, 95, 0.06);
  color: var(--accent);
}

.pf-nav__cta {
  margin-left: 0.35rem;
  background: var(--ink) !important;
  color: #fff !important;
  padding: 0.35rem 0.85rem !important;
  min-height: 36px !important;
  font-weight: 600 !important;
}

.pf-nav__guide {
  color: #1a7f4a !important;
  font-weight: 600;
}

.pf-nav__guide:hover {
  color: #14663b !important;
  text-decoration: none;
}

.pf-nav__cta:hover {
  background: var(--accent) !important;
  color: #fff !important;
}

@media (max-width: 880px) {
  .pf-nav__inner {
    flex-wrap: wrap;
  }
  .pf-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }
}

@media (max-width: 560px) {
  .pf-nav__brand-zh {
    display: none;
  }
  .pf-nav__links a:not(.pf-nav__cta) {
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
  }
}

/* —— Hero —— */
.pf-hero {
  position: relative;
  min-height: min(92svh, 46rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x) clamp(2.75rem, 6vw, 4rem);
  color: var(--hero-fg);
  overflow: hidden;
  isolation: isolate;
}

.pf-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.pf-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 7s ease-out;
  filter: saturate(1.02) contrast(1.04);
}

.pf-hero__media img.is-active {
  opacity: 1;
  transform: scale(1.06);
  z-index: 1;
}

/* Non-carousel heroes (products / directory / news): single still is always visible */
.pf-hero:not([data-pf-hero]) .pf-hero__media img {
  opacity: 1;
  transform: none;
}

.pf-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(5, 10, 18, 0.28) 0%,
      rgba(5, 10, 18, 0.22) 38%,
      rgba(5, 10, 18, 0.72) 100%
    ),
    linear-gradient(90deg, rgba(5, 10, 18, 0.42) 0%, rgba(5, 10, 18, 0.12) 48%, transparent 70%);
}

.pf-hero__inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
}

.pf-brand-en {
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(3.4rem, 11vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  animation: pf-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pf-brand-zh {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--hero-muted);
  animation: pf-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.pf-hero__stage {
  position: relative;
  margin-top: 0;
  min-height: 11.5rem;
}

.pf-hero__slide {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.6rem);
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  pointer-events: none;
}

.pf-hero__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.pf-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(247, 248, 250, 0.7);
}

.pf-headline {
  margin: 0;
  max-width: 18em;
  font-family: var(--font-body);
  font-size: clamp(1.3rem, 2.7vw, 1.75rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.pf-lead {
  margin: 0.75rem 0 0;
  max-width: 28rem;
  color: var(--hero-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.pf-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.pf-hero__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.pf-hero__dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pf-hero__dots button {
  position: relative;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.pf-hero__dots button.on {
  width: 2.75rem;
}

.pf-hero__dot-track {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  background: rgba(247, 248, 250, 0.28);
}

.pf-hero__dot-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.pf-hero.is-paused .pf-hero__dot-fill {
  transition: none !important;
}

.pf-hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(247, 248, 250, 0.35);
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pf-hero__arrow:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.pf-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-cta__primary {
  background: #fff;
  color: var(--ink);
}

.pf-cta__primary:hover {
  background: #e8eaed;
}

.pf-cta__ghost {
  border: 1px solid rgba(247, 248, 250, 0.4);
  color: var(--hero-fg);
  background: transparent;
}

.pf-cta__ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Frame preview with side prev/next */
.pf-frame-panel {
  width: 100%;
  min-width: min(100%, var(--frame-min-w));
  min-height: 0;
}

.pf-frame-panel__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  background: var(--paper-elevated);
  overflow: hidden;
}

.pf-frame-panel__bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pf-frame-panel__bar-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
}

.pf-frame-panel__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pf-frame-panel__nav:hover {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #fff;
}

.pf-frame-panel__bar-nav span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.pf-frame-panel__bar > a {
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  white-space: nowrap;
}

.pf-frame-panel__bar > a:hover {
  border-bottom: 1px solid currentColor;
}

.pf-frame-panel__stage .pf-frame-scale {
  flex: 0 0 auto;
  min-height: 0;
}

@media (max-width: 860px) {
  .pf-frame-panel {
    min-width: 0;
    min-height: 0;
  }
}

/* —— Sections —— */
.pf-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--pad-x);
}

.pf-section:has(.pf-frame-panel) {
  max-width: var(--frame-max);
}

.pf-section--band {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: var(--paper-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pf-section--band + .pf-section--band {
  border-top: 0;
}

.pf-section--band > .pf-section__wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.pf-section--band > .pf-section__wrap:has(.pf-frame-panel) {
  max-width: var(--frame-max);
}

.pf-section__head {
  margin-bottom: 2rem;
  max-width: none;
}

.pf-section__head h1,
.pf-section__head h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.pf-section__head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 34rem;
  font-size: 0.92rem;
}

/* Gate rows */
.pf-gates {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pf-gates li {
  border-bottom: 1px solid var(--line);
}

.pf-gates a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1.3fr) minmax(0, 1.8fr) auto;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 1.15rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
  transition: background 0.15s ease;
}

.pf-gates a:hover {
  color: var(--ink);
  background: rgba(0, 107, 95, 0.04);
}

.pf-gates__n {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pf-gates strong {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pf-gates a:hover strong {
  color: var(--accent);
}

.pf-gates span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pf-gates em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.pf-gates a:hover em {
  color: var(--accent);
}

@media (max-width: 800px) {
  .pf-gates a {
    grid-template-columns: 2rem minmax(0, 1fr) auto;
  }
  .pf-gates span {
    grid-column: 2 / -1;
  }
}

/* Tools — compact index */
.pf-tools {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (min-width: 720px) {
  .pf-tools {
    grid-template-columns: 1fr 1fr;
    column-gap: 2.5rem;
  }
}

.pf-tools li {
  border-bottom: 1px solid var(--line);
}

.pf-tools a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.pf-tools a:hover {
  color: var(--accent);
}

.pf-tools strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.pf-tools span {
  display: none;
}

@media (min-width: 960px) {
  .pf-tools a {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
    gap: 1rem;
  }
  .pf-tools span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
  }
}

.pf-tools em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Directory */
.pf-dir-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.pf-dir-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.pf-dir-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pf-dir {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 1.5rem;
}

@media (min-width: 640px) {
  .pf-dir {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .pf-dir {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pf-dir li {
  min-width: 0;
}

.pf-dir a,
.pf-dir__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 44px;
  transition: color 0.15s ease;
}

.pf-dir__logo {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.pf-dir__name {
  min-width: 0;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-dir__badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.22rem 0.42rem;
  border-radius: 2px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.pf-dir__badge--unclaimed {
  color: #6b7280;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.pf-dir__badge--claimed {
  color: #fff;
  background: #c45c26;
  border-color: #c45c26;
}

.pf-dir a span {
  min-width: 0;
  line-height: 1.35;
}

.pf-dir a:hover,
.pf-dir__link:hover {
  color: var(--accent);
}

/* Companies page: factory brand rows */
body.platform-dir .pf-dir {
  display: block;
  border-top: 1px solid var(--line);
  gap: 0;
}

body.platform-dir .pf-dir li {
  border-bottom: 1px solid var(--line);
}

body.platform-dir .pf-dir__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0.55rem 1.5rem;
  align-items: center;
  padding: 0.85rem 0.1rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 52px;
  transition: color 0.15s ease;
}

body.platform-dir .pf-dir__main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

body.platform-dir .pf-dir__name {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  min-width: 0;
}

body.platform-dir .pf-dir__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.35rem 0.85rem;
  min-width: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

body.platform-dir .pf-dir__blurb {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18rem;
}

body.platform-dir .pf-dir__row:hover {
  color: var(--accent);
}

body.platform-dir .pf-dir__row:hover .pf-dir__meta {
  color: color-mix(in srgb, var(--muted) 70%, var(--accent) 30%);
}

@media (max-width: 720px) {
  body.platform-dir .pf-dir__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0.85rem 0.05rem;
  }

  body.platform-dir .pf-dir__meta {
    justify-content: flex-start;
  }

  body.platform-dir .pf-dir__blurb {
    max-width: 100%;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

/* Featured covers (static photos, no iframe) */
.pf-featured {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .pf-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .pf-featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pf-featured li {
  min-width: 0;
}

.pf-featured__item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.pf-featured__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(0, 107, 95, 0.18), rgba(11, 18, 32, 0.08)),
    var(--paper);
}

.pf-featured__media.is-empty {
  background:
    linear-gradient(160deg, rgba(0, 107, 95, 0.22), rgba(11, 18, 32, 0.12) 55%, rgba(11, 18, 32, 0.05));
}

.pf-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.pf-featured__item:hover .pf-featured__media img {
  transform: scale(1.03);
}

.pf-featured__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.pf-featured__body strong {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.pf-featured__body em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pf-featured__item:hover strong {
  color: var(--accent);
}

/* Products grid */
.pf-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1rem;
}

@media (min-width: 720px) {
  .pf-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}

@media (min-width: 1080px) {
  .pf-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pf-products li {
  min-width: 0;
}

.pf-product {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 100%;
}

.pf-product__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid var(--line);
}

.pf-product__badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.45rem;
  background: var(--accent);
  color: #fff;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.pf-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pf-product:hover .pf-product__media img {
  transform: scale(1.03);
}

.pf-product__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.pf-product__body strong {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.pf-product__body em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 500;
}

.pf-product__body span {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pf-product:hover strong {
  color: var(--accent);
}

/* Visit ranking */
.pf-visits {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

/* Platform trust strip (below hero) */
.pf-trust {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 92%, var(--accent) 8%);
}

.pf-trust__inner {
  max-width: var(--max, 72rem);
  margin: 0 auto;
  padding: 1.35rem 1.25rem 1.5rem;
  text-align: center;
}

.pf-trust p {
  margin: 0;
  display: inline-block;
  text-align: center;
  font-family: var(--font-brand);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.pf-trust strong {
  color: var(--accent);
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 1.22em;
  font-variant-numeric: tabular-nums;
  margin: 0 0.2rem;
  letter-spacing: 0.02em;
}

.pf-trust__sep {
  margin: 0 0.85rem;
  opacity: 0.4;
  font-weight: 600;
}

@media (max-width: 640px) {
  .pf-trust__inner {
    padding: 1.15rem 1rem 1.25rem;
  }
  .pf-trust p {
    font-size: 1.05rem;
    line-height: 1.55;
    letter-spacing: 0.02em;
  }
  .pf-trust strong {
    font-size: 1.18em;
  }
  .pf-trust__sep {
    display: block;
    height: 0.4rem;
    margin: 0;
    opacity: 0;
  }
}

.pf-visits li {
  border-bottom: 1px solid var(--line);
}

.pf-visits a {
  display: grid;
  grid-template-columns: 2.2rem auto minmax(0, 1fr) auto;
  gap: 0.65rem 0.85rem;
  align-items: center;
  padding: 0.85rem 0.05rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.pf-visits--compact a {
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 0.05rem;
}

.pf-visits--compact .pf-dir__logo {
  display: none;
}

.pf-section--visits {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.pf-section--visits .pf-section__head {
  margin-bottom: 1rem;
}

.pf-section--visits .pf-section__head h2 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.pf-section--visits .pf-section__head p {
  font-size: 0.86rem;
}

.pf-visits a:hover {
  color: var(--accent);
}

.pf-visits__rank {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pf-visits strong {
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 0;
}

.pf-visits em {
  font-style: normal;
  font-size: 0.84rem;
  color: var(--muted);
  white-space: nowrap;
}

.pf-visits em b {
  color: var(--ink-soft);
  font-weight: 700;
}

.pf-empty {
  margin: 0;
  padding: 1.75rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.pf-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 600;
}

.pf-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.pf-empty__actions a,
.pf-more a {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}

.pf-empty__actions a:hover,
.pf-more a:hover {
  border-bottom-color: currentColor;
}

.pf-more {
  margin: 1.5rem 0 0;
}

/* Footer */
.pf-footer {
  background: var(--ink);
  color: rgba(247, 248, 250, 0.55);
  font-size: 0.8rem;
  padding: 2.75rem var(--pad-x) 3rem;
  margin-top: 0;
  border-top: 0;
  max-width: none;
}

.pf-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .pf-footer__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
    align-items: start;
  }
}

.pf-footer__brand a {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.pf-footer__brand a:hover {
  color: #fff;
}

.pf-footer__brand span {
  display: inline-block;
  margin-left: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: rgba(247, 248, 250, 0.45);
}

.pf-footer p {
  margin: 0 0 0.45rem;
  max-width: 36rem;
  line-height: 1.65;
}

.pf-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.15rem;
  margin-top: 1rem;
}

.pf-footer a {
  color: rgba(247, 248, 250, 0.78);
  text-decoration: none;
}

.pf-footer a:hover {
  color: #fff;
}

/* Directory / products hero — shorter than home */
body.platform-dir .pf-hero,
.pf-hero--dir {
  min-height: min(54svh, 27.2rem);
  justify-content: flex-end;
  padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

body.platform-dir .pf-hero .pf-headline {
  max-width: 18em;
}

body.platform-dir .pf-hero .pf-lead {
  max-width: 34rem;
}

/* Trade-show still is bright; keep title readable */
body.platform-dir .pf-hero__shade {
  background:
    linear-gradient(
      180deg,
      rgba(5, 10, 18, 0.52) 0%,
      rgba(5, 10, 18, 0.42) 38%,
      rgba(5, 10, 18, 0.82) 100%
    );
}

.pf-search--hero {
  max-width: 28rem;
  width: 100%;
  margin: 1.15rem 0 0;
  flex: none;
  border: 1px solid rgba(247, 248, 250, 0.35);
  background: rgba(11, 18, 32, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pf-search--hero .pf-search__input {
  min-height: 44px;
  color: var(--hero-fg);
  font-size: 0.92rem;
}

.pf-search--hero .pf-search__input::placeholder {
  color: rgba(247, 248, 250, 0.55);
}

.pf-search--hero .pf-search__btn {
  min-height: 44px;
  border-left-color: rgba(247, 248, 250, 0.22);
  color: var(--hero-fg);
}

.pf-search--hero .pf-search__btn:hover {
  background: rgba(247, 248, 250, 0.12);
  color: #fff;
}

.pf-search--hero:focus-within {
  border-color: rgba(247, 248, 250, 0.7);
}

@keyframes pf-rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pf-kenburns {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

/* —— Guide page —— */
.platform-guide .pf-guide {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad-x) clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: 2.5rem 3rem;
}

@media (min-width: 960px) {
  .platform-guide .pf-guide {
    grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
    align-items: start;
  }
}

.platform-guide .pf-guide__main > .pf-section {
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  scroll-margin-top: 1.25rem;
}

.platform-guide .pf-guide__main > .pf-section:first-child {
  padding-top: 0;
}

.platform-guide .pf-guide__main > .pf-section:last-child {
  padding-bottom: 0;
}

.platform-guide .pf-guide__main > .pf-section--band {
  max-width: none;
  margin-left: calc(-1 * var(--pad-x));
  margin-right: calc(-1 * var(--pad-x));
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

@media (min-width: 960px) {
  .platform-guide .pf-guide__main > .pf-section--band {
    margin-left: calc(-1 * (var(--pad-x) + 14rem + 3rem));
    margin-right: calc(-1 * var(--pad-x));
  }

  .platform-guide .pf-guide__main > .pf-section--band > .pf-section__wrap {
    margin-left: calc(14rem + 3rem);
  }
}

.pf-guide__toc {
  position: sticky;
  top: 4.25rem;
  padding: 1.25rem 1rem;
  background: var(--paper-elevated);
  border: 1px solid var(--line);
}

.pf-guide__toc-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-guide__toc ol {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.pf-guide__toc a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.pf-guide__toc a:hover {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.pf-guide__main {
  min-width: 0;
}

.pf-guide__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.pf-guide__steps li {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.pf-guide__steps strong {
  font-size: 1rem;
  font-weight: 600;
}

.pf-guide__steps span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pf-guide__list {
  margin: 0;
  padding: 0 0 0 1.2rem;
  display: grid;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.55;
}

.pf-guide__note {
  margin: 1.25rem 0 0;
  padding: 0.85rem 1rem;
  background: rgba(0, 107, 95, 0.05);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.pf-guide__cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pf-guide__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.pf-guide__card {
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pf-guide__card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.pf-guide__card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.pf-guide__card ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.pf-guide__compare {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .pf-guide__compare {
    grid-template-columns: 1fr 1fr;
  }
}

.pf-guide__compare-col {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  background: var(--paper-elevated);
}

.pf-guide__compare-col--highlight {
  border-color: rgba(0, 107, 95, 0.35);
  background: rgba(0, 107, 95, 0.04);
}

.pf-guide__compare-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pf-guide__compare-col ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.pf-guide__compare-muted {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.pf-guide__faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.pf-guide__faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.15rem 0;
}

.pf-guide__faq summary {
  padding: 1rem 0.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
}

.pf-guide__faq summary::-webkit-details-marker {
  display: none;
}

.pf-guide__faq summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}

.pf-guide__faq details[open] summary::after {
  content: "−";
}

.pf-guide__faq p {
  margin: 0 0 1rem;
  padding: 0 0 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.pf-guide__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.5rem 0 0;
}

.pf-guide__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pf-guide__btn--primary {
  background: var(--accent);
  color: #fff;
}

.pf-guide__btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.pf-guide__btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.pf-guide__btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* —— Home landing (dark / orange) —— */
body.platform-home {
  --land-bg: #0a0e17;
  --land-card: rgba(20, 27, 41, 0.75);
  --land-card-hover: rgba(30, 41, 61, 0.85);
  --land-primary: #f97316;
  --land-primary-deep: #ea580c;
  --land-glow: rgba(249, 115, 22, 0.2);
  --land-border: rgba(255, 255, 255, 0.08);
  --land-border-glow: rgba(249, 115, 22, 0.4);
  --land-text: #f8fafc;
  --land-muted: #94a3b8;
  --land-radius: 16px;
  color: var(--land-text);
  background-color: var(--land-bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(234, 88, 12, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
}

body.platform-home a {
  color: inherit;
}

body.platform-home .pf-nav {
  background: rgba(10, 14, 23, 0.85);
  border-bottom: 1px solid var(--land-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.platform-home .pf-nav__brand-en,
body.platform-home .pf-nav__brand-zh {
  color: #fff;
}

body.platform-home .pf-nav__links a,
body.platform-home .pf-nav__tools-btn {
  color: var(--land-muted);
}

body.platform-home .pf-nav__links a:hover,
body.platform-home .pf-nav__tools-btn:hover,
body.platform-home .pf-nav__tools.is-open .pf-nav__tools-btn {
  color: var(--land-primary);
}

body.platform-home .pf-nav__guide:hover {
  color: var(--land-primary);
}

body.platform-home .pf-nav__cta {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--land-border);
  color: #fff;
}

body.platform-home .pf-nav__cta:hover {
  border-color: var(--land-primary);
  background: var(--land-glow);
  color: var(--land-primary);
}

body.platform-home .pf-nav__tools-menu {
  background: #111726;
  border: 1px solid var(--land-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

body.platform-home .pf-nav__tools-menu a {
  color: var(--land-muted);
}

body.platform-home .pf-nav__tools-menu a:hover {
  background: var(--land-glow);
  color: var(--land-primary);
}

body.platform-home .pf-footer {
  border-top: 1px solid var(--land-border);
  background: rgba(10, 14, 23, 0.95);
  color: var(--land-muted);
}

body.platform-home .pf-footer a {
  color: var(--land-muted);
}

body.platform-home .pf-footer a:hover {
  color: var(--land-primary);
}

body.platform-home .pf-footer__brand a {
  color: #fff;
}

.pf-land-hero {
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad-x) 4rem;
  text-align: center;
  max-width: 52rem;
  margin: 0 auto;
}

.pf-land-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0.4rem 1.2rem;
  background: rgba(249, 115, 22, 0.1);
  color: var(--land-primary);
  border: 1px solid var(--land-border-glow);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.pf-land-title {
  margin: 0 0 1.15rem;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pf-land-title span {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pf-land-sub {
  margin: 0 auto 2.5rem;
  max-width: 40rem;
  color: var(--land-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.pf-land-gen {
  display: flex;
  gap: 0.5rem;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.55rem;
  background: rgba(20, 27, 41, 0.7);
  border: 1.5px solid var(--land-border-glow);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px var(--land-glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pf-land-gen__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pf-land-gen__input {
  flex: 1;
  min-width: 0;
  border: 1px solid transparent;
  outline: none;
  padding: 1rem 1.35rem;
  font: inherit;
  font-size: 1.02rem;
  border-radius: 14px;
  background: rgba(10, 14, 23, 0.8);
  color: #fff;
  transition: border-color 0.2s;
}

.pf-land-gen__input::placeholder {
  color: #64748b;
}

.pf-land-gen__input:focus {
  border-color: var(--land-primary);
}

.pf-land-gen__btn {
  flex-shrink: 0;
  border: none;
  padding: 1rem 1.75rem;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  color: #000;
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pf-land-gen__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(249, 115, 22, 0.55);
}

.pf-land-foot {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--land-muted);
  opacity: 0.85;
}

.pf-land-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad-x);
  max-width: 72rem;
  margin: 0 auto;
}

.pf-land-section--tight {
  padding-top: 0;
}

.pf-land-h2 {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: var(--font-brand);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.pf-land-desc {
  margin: 0 auto 2.75rem;
  text-align: center;
  color: var(--land-muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.pf-land-steps,
.pf-land-modules,
.pf-land-pricing {
  display: grid;
  gap: 1.5rem;
}

.pf-land-steps {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.pf-land-card,
.pf-land-module,
.pf-land-price {
  background: var(--land-card);
  border: 1px solid var(--land-border);
  border-radius: var(--land-radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.pf-land-card {
  padding: 2rem;
}

.pf-land-card:hover,
.pf-land-module:hover {
  border-color: var(--land-border-glow);
  transform: translateY(-3px);
  background: var(--land-card-hover);
}

.pf-land-step-n {
  margin-bottom: 0.45rem;
  font-family: var(--font-brand);
  font-size: 2.35rem;
  font-weight: 800;
  line-height: 1;
  color: var(--land-primary);
  opacity: 0.85;
}

.pf-land-card h3,
.pf-land-module h4,
.pf-land-price h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: #fff;
}

.pf-land-card p,
.pf-land-module p {
  margin: 0;
  color: var(--land-muted);
  font-size: 0.95rem;
}

.pf-land-modules {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pf-land-module {
  padding: 1.65rem;
}

.pf-land-module h4 {
  color: var(--land-primary);
  font-size: 1.05rem;
}

.pf-land-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  margin-top: 2.75rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--land-card);
  border: 1px solid var(--land-border);
  border-radius: var(--land-radius);
}

.pf-land-comp {
  padding: 1.65rem;
  border-radius: 12px;
  background: rgba(10, 14, 23, 0.6);
  border: 1px solid var(--land-border);
}

.pf-land-comp--hi {
  border-color: var(--land-border-glow);
  background: rgba(249, 115, 22, 0.04);
}

.pf-land-comp__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.pf-land-comp__title--bad {
  color: #f87171;
}

.pf-land-comp__title--good {
  color: var(--land-primary);
}

.pf-land-comp ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pf-land-comp li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: var(--land-muted);
}

.pf-land-comp li:last-child {
  margin-bottom: 0;
}

.pf-land-comp li strong {
  color: #fff;
  font-weight: 600;
}

.pf-land-pricing {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.pf-land-price {
  position: relative;
  padding: 2.35rem 1.65rem 1.75rem;
  text-align: center;
}

.pf-land-price--popular {
  border-color: var(--land-primary);
  box-shadow: 0 0 45px rgba(249, 115, 22, 0.2);
  background: linear-gradient(180deg, rgba(30, 41, 61, 0.9) 0%, rgba(10, 14, 23, 0.9) 100%);
}

.pf-land-price--soon {
  opacity: 0.72;
  filter: grayscale(0.35);
}

.pf-land-price__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.95rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  color: #000;
}

.pf-land-price__badge--soon {
  background: rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-weight: 600;
}

.pf-land-price__num {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-brand);
  font-size: 2.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.pf-land-price__num span {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--land-muted);
}

.pf-land-price__tag {
  margin: 0 0 1.15rem;
  color: var(--land-muted);
  font-size: 0.9rem;
}

.pf-land-price__list {
  margin: 0 0 1.5rem;
  padding: 1.15rem 0 0;
  list-style: none;
  border-top: 1px solid var(--land-border);
  text-align: left;
}

.pf-land-price__list li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: var(--land-muted);
}

.pf-land-price--popular .pf-land-price__list li {
  color: #e2e8f0;
}

.pf-land-price__list li strong {
  color: var(--land-primary);
  font-weight: 600;
}

.pf-land-price__btn {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--land-border);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.pf-land-price__btn:hover {
  border-color: var(--land-primary);
  background: var(--land-glow);
  color: var(--land-primary);
}

.pf-land-price__btn--primary {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
  color: #000;
  border: none;
  font-weight: 700;
}

.pf-land-price__btn--primary:hover {
  color: #000;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.55);
}

.pf-land-price__btn--disabled,
.pf-land-price__btn--disabled:hover {
  cursor: not-allowed;
  opacity: 0.85;
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  box-shadow: none;
}

@media (max-width: 768px) {
  .pf-land-gen {
    flex-direction: column;
  }

  .pf-land-compare {
    grid-template-columns: 1fr;
  }
}
