:root {
  color-scheme: light;
  --ink: #101413;
  --paper: #f3f0e8;
  --surface: #fffdf8;
  --surface-soft: #f7f4ec;
  --line: rgba(16, 20, 19, 0.14);
  --muted: #626a66;
  --green: #0f6a52;
  --green-deep: #0b342c;
  --blue: #245f85;
  --gold: #a56f21;
  --red: #954d40;
  --shadow: 0 24px 80px rgba(16, 20, 19, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

p {
  margin: 0;
  line-height: 1.75;
}

.site-header {
  min-height: 92vh;
  padding: 18px clamp(18px, 4vw, 58px) 34px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 13, 12, 0.92), rgba(8, 13, 12, 0.58) 48%, rgba(8, 13, 12, 0.28)),
    url("warehouse-assets/hero-poster.png") center / cover no-repeat,
    #111614;
}

.nav-bar {
  position: sticky;
  top: 18px;
  z-index: 20;
  max-width: 1480px;
  min-height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(16, 20, 19, 0.48);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  white-space: nowrap;
}

.brand small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-links a {
  min-height: 38px;
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero {
  max-width: 1480px;
  min-height: calc(92vh - 124px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(22px, 5vw, 82px);
  padding: clamp(54px, 8vw, 108px) 0 36px;
}

.hero-copy {
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: #78d1b8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: 1.04;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action,
.card-actions button,
.card-actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 900;
  white-space: nowrap;
}

.primary-action {
  background: var(--ink);
  color: #fff;
}

.secondary-action {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(14px);
}

.primary-action.small {
  min-height: 40px;
  align-self: flex-start;
  padding: 0 14px;
  font-size: 14px;
}

.hero-board {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(250, 248, 241, 0.12);
  backdrop-filter: blur(22px);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.28);
}

.board-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.board-top strong {
  color: #fff;
}

.spotlight {
  min-height: 172px;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
}

.spotlight small {
  display: block;
  color: var(--green);
  font-weight: 900;
}

.spotlight strong {
  display: block;
  margin: 8px 0 6px;
  font-size: clamp(22px, 2.4vw, 32px);
}

.spotlight p {
  color: var(--muted);
}

.spotlight a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--green-deep);
  color: #fff;
  font-weight: 900;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.16);
}

.board-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.board-metrics div {
  min-height: 94px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.board-metrics strong {
  font-size: clamp(26px, 3vw, 38px);
}

.board-metrics span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
}

.section {
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 92px) clamp(18px, 4vw, 58px);
}

.intro-strip {
  width: min(1480px, calc(100% - clamp(36px, 8vw, 116px)));
  margin-top: -34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.intro-strip div {
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
}

.intro-strip span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.intro-strip strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.22;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head h2,
.sync-section h2 {
  margin: 0;
  font-size: clamp(34px, 5.5vw, 68px);
  line-height: 1.02;
}

.section-note {
  max-width: 520px;
  color: var(--muted);
}

.models-section {
  padding-top: clamp(68px, 8vw, 106px);
}

.model-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  min-width: min(320px, 100%);
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-box input,
.model-tools select {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.search-box input:focus,
.model-tools select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(15, 106, 82, 0.12);
}

.stage-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.stage-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--muted);
  padding: 0 14px;
  font-size: 14px;
  font-weight: 900;
}

.stage-tabs button.active,
.stage-tabs button:hover {
  background: var(--ink);
  color: #fff;
}

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

.model-card,
.detail-card,
.control-table,
.sync-steps > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(16, 20, 19, 0.08);
}

.model-card {
  min-width: 0;
  min-height: 392px;
  display: flex;
  flex-direction: column;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(15, 106, 82, 0.34);
  box-shadow: 0 24px 70px rgba(16, 20, 19, 0.13);
}

.card-top,
.card-foot,
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.model-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.type-pill,
.stage-label {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(36, 95, 133, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.type-pill.live {
  background: rgba(15, 106, 82, 0.12);
  color: var(--green);
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 26px 0 18px;
}

.card-body h3 {
  margin: 0;
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.08;
}

.card-body p,
.outcome strong,
.detail-card p,
.dialog-note p {
  color: var(--muted);
}

.outcome {
  margin-top: auto;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.outcome small {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-weight: 900;
}

.outcome strong {
  display: block;
  font-size: 15px;
  line-height: 1.55;
}

.card-actions {
  padding-top: 6px;
}

.card-actions button,
.card-actions a {
  flex: 1 1 0;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.card-actions a {
  background: var(--ink);
  color: #fff;
}

.card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.5);
}

.control-section {
  border-top: 1px solid var(--line);
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  gap: 16px;
  align-items: start;
}

.control-table {
  overflow: hidden;
}

.control-row {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 112px;
  gap: 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0 18px;
  text-align: left;
}

.control-row:last-child {
  border-bottom: 0;
}

.control-row:hover,
.control-row.active {
  background: var(--surface-soft);
}

.control-row span,
.control-row strong,
.control-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-row span {
  font-weight: 900;
}

.control-row strong {
  color: var(--green);
  font-size: 13px;
}

.control-row small {
  color: var(--muted);
  font-weight: 800;
}

.detail-card {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: 22px;
}

.detail-card h3 {
  margin: 18px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
}

.detail-card dl {
  display: grid;
  gap: 1px;
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.detail-card dl div {
  min-width: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 14px;
  background: var(--surface);
}

.detail-card dt,
.detail-card dd {
  margin: 0;
  min-width: 0;
}

.detail-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.detail-card dd {
  overflow-wrap: anywhere;
  font-weight: 800;
  line-height: 1.45;
}

.sync-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 78px);
  align-items: start;
  border-top: 1px solid var(--line);
}

.sync-section .eyebrow,
.models-section .eyebrow,
.control-section .eyebrow {
  color: var(--green);
}

.sync-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sync-steps > div {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.sync-steps span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.sync-steps strong,
.sync-steps small {
  display: block;
}

.sync-steps strong {
  margin-top: 20px;
  font-size: 22px;
  line-height: 1.22;
}

.sync-steps small {
  color: var(--muted);
  line-height: 1.55;
}

.model-dialog {
  width: min(760px, calc(100vw - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.model-dialog::backdrop {
  background: rgba(16, 20, 19, 0.58);
  backdrop-filter: blur(8px);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 20, 19, 0.36);
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.dialog-hero {
  padding: 42px 28px 30px;
  color: #fff;
  background: linear-gradient(135deg, #0e342d, #17302e 42%, #2f2719);
}

.dialog-hero .type-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.dialog-hero h2 {
  margin: 16px 0 10px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
}

.dialog-hero p {
  color: rgba(255, 255, 255, 0.74);
}

.dialog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.dialog-grid div {
  min-width: 0;
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
}

.dialog-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.dialog-grid strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.dialog-note {
  padding: 24px 28px 0;
}

.dialog-note strong {
  display: block;
  margin-bottom: 8px;
}

.model-dialog .primary-action {
  margin: 24px 28px 28px;
}

@media (max-width: 1180px) {
  .hero,
  .control-layout,
  .sync-section {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
  }

  .hero-board {
    max-width: 760px;
  }

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

  .detail-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
    padding: 12px 12px 26px;
  }

  .nav-bar {
    width: min(330px, calc(100vw - 40px));
    max-width: min(330px, calc(100vw - 40px));
    margin-left: 8px;
    top: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-links a {
    flex: 1;
    min-width: 0;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    display: block;
    min-height: auto;
    padding: 48px 0 8px;
  }

  .hero-copy {
    width: min(330px, calc(100vw - 40px));
    max-width: min(330px, calc(100vw - 40px));
    margin-left: 8px;
  }

  .hero-board {
    width: min(330px, calc(100vw - 40px));
    max-width: min(330px, calc(100vw - 40px));
    margin-left: 8px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 44px);
    line-height: 1.12;
    word-break: keep-all;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 15px;
    word-break: break-all;
  }

  .hero-actions a,
  .card-actions a,
  .card-actions button {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
  }

  .hero-board {
    padding: 12px;
  }

  .spotlight {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .spotlight a {
    grid-column: 1 / -1;
  }

  .board-metrics,
  .intro-strip,
  .model-grid,
  .sync-steps,
  .dialog-grid {
    grid-template-columns: 1fr;
  }

  .intro-strip {
    width: calc(100% - 24px);
    margin-top: 18px;
  }

  .section {
    padding: 48px 14px;
  }

  .section-head,
  .model-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .model-tools,
  .search-box,
  .model-tools select {
    width: 100%;
  }

  .control-row {
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-content: center;
  }

  .detail-card dl div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .model-dialog .primary-action {
    width: calc(100% - 56px);
  }
}
