:root {
  --background-primary: #000000;
  --background-secondary: #0f0f0f;
  --background-third: #1b1b1b;
  --background-forth: #363636;
  --surface-rest: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.16);
  --surface-disabled: rgba(255, 255, 255, 0.04);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --text-tertiary: rgba(255, 255, 255, 0.4);
  --border-primary: rgba(255, 255, 255, 0.12);
  --border-secondary: rgba(255, 255, 255, 0.06);
  --success: #4ac97e;
  --warning: #e26f20;
  --button-primary: #f2f2f2;
  --button-primary-hover: #dadada;
  --text-dark: #000000;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --header-height: 56px;
  --content-width: 1480px;
  color-scheme: dark;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--background-primary);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 19px;
}

button,
input,
select {
  font: inherit;
  letter-spacing: 0;
  touch-action: manipulation;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--text-dark);
  background: var(--button-primary);
  border-radius: var(--radius-md);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid var(--border-secondary);
  backdrop-filter: blur(32px);
}

.brand-lockup,
.app-header nav {
  display: flex;
  align-items: center;
}

.brand-lockup {
  min-width: 0;
  gap: 10px;
}

.revolve-logo {
  width: 108px;
  height: auto;
  filter: brightness(0) invert(1);
}

.pixverse-logo {
  width: 24px;
  height: 24px;
}

.brand-lockup > span[aria-hidden] {
  color: var(--text-tertiary);
}

.brand-label {
  padding-left: 10px;
  border-left: 1px solid var(--border-primary);
  color: var(--text-secondary);
  white-space: nowrap;
}

.app-header nav {
  gap: 8px;
}

.app-header nav a {
  min-height: 32px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: background-color 150ms ease, color 150ms ease;
}

.app-header nav a:hover {
  color: var(--text-primary);
  background: var(--surface-hover);
}

.app-header nav .download-link {
  background: var(--surface-rest);
  color: var(--text-primary);
}

main,
footer {
  width: min(100%, var(--content-width));
  margin: 0 auto;
}

.handoff-intro {
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.78fr);
  gap: 56px;
  align-items: end;
  border-bottom: 1px solid var(--border-primary);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 17px;
  font-weight: 600;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 60px;
  font-weight: 700;
}

.intro-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 23px;
}

.release-summary {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-primary);
  border-left: 1px solid var(--border-primary);
}

.release-summary div {
  min-height: 88px;
  padding: 16px;
  border-right: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.release-summary dt,
.settings-grid dt,
.job-grid dt {
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 17px;
}

.release-summary dd {
  margin: 8px 0 0;
  font-family: "Inconsolata", monospace;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
}

.status-approved {
  color: var(--success);
}

.workflow-section,
.catalog-section {
  padding: 48px 24px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.workflow-section {
  border-bottom: 1px solid var(--border-primary);
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 38px;
}

.section-heading > a,
.job-links a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section-heading > a:hover,
.job-links a:hover {
  color: var(--text-primary);
}

.workflow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--border-primary);
  border-left: 1px solid var(--border-primary);
  counter-reset: workflow;
}

.workflow-steps li {
  min-height: 152px;
  padding: 16px;
  border-right: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
  color: var(--text-secondary);
  counter-increment: workflow;
}

.workflow-steps li::before {
  content: counter(workflow, decimal-leading-zero);
  display: block;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-family: "Inconsolata", monospace;
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
}

.command-strip {
  margin-top: 24px;
  background: var(--background-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.command-heading,
.detail-toolbar {
  min-height: 44px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border-secondary);
}

.command-heading span {
  font-weight: 600;
}

button,
.primary-action,
.secondary-action {
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

button,
.secondary-action {
  color: var(--text-primary);
  background: var(--surface-rest);
}

button:hover,
.secondary-action:hover {
  background: var(--surface-hover);
}

.primary-action {
  color: var(--text-dark);
  background: var(--button-primary);
}

.primary-action:hover {
  background: var(--button-primary-hover);
}

pre {
  margin: 0;
  overflow: auto;
  color: var(--text-secondary);
  font-family: "Inconsolata", monospace;
  font-size: 13px;
  line-height: 19px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.command-strip pre {
  max-height: 320px;
  padding: 16px;
}

.qa-gates {
  margin-top: 12px;
  border-bottom: 1px solid var(--border-primary);
}

details > summary {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
}

.qa-gates summary {
  padding: 16px 0;
}

.qa-gates ul {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-secondary);
}

.qa-gates li + li {
  margin-top: 8px;
}

.catalog-heading {
  align-items: center;
}

.catalog-controls {
  display: flex;
  gap: 8px;
}

input,
select {
  height: 40px;
  min-width: 220px;
  padding: 0 12px;
  color: var(--text-primary);
  background: var(--surface-rest);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
}

input::placeholder {
  color: var(--text-tertiary);
}

.catalog-list {
  border-top: 1px solid var(--border-primary);
}

.product-record {
  padding: 32px 0;
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 32px;
  border-bottom: 1px solid var(--border-primary);
}

.output-column {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.video-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: var(--background-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: var(--background-primary);
}

.video-poster {
  position: absolute;
  inset: 0 0 44px;
  z-index: 1;
  width: 100%;
  height: calc(100% - 44px);
  object-fit: contain;
  background: var(--background-primary);
  pointer-events: none;
  transition: opacity 150ms ease;
}

.video-poster.hidden {
  opacity: 0;
}

.record-index {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 32px;
  height: 24px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2;
  font-family: "Inconsolata", monospace;
  font-size: 12px;
  line-height: 17px;
}

.output-actions {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.output-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.record-column {
  min-width: 0;
}

.record-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.record-sku {
  margin-bottom: 6px;
  color: var(--text-tertiary);
  font-family: "Inconsolata", monospace;
  font-size: 12px;
  line-height: 17px;
}

.record-header h3 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 32px;
}

.approval-label {
  padding: 4px 8px;
  border-radius: 9999px;
  color: var(--success);
  background: rgba(74, 201, 126, 0.12);
  font-size: 12px;
  line-height: 17px;
  white-space: nowrap;
}

.settings-grid {
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--border-primary);
  border-left: 1px solid var(--border-primary);
}

.settings-grid div {
  min-height: 64px;
  padding: 10px;
  border-right: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.settings-grid dd,
.job-grid dd {
  margin: 6px 0 0;
  font-family: "Inconsolata", monospace;
  color: var(--text-primary);
}

.job-links {
  margin: 16px 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  line-height: 17px;
}

.record-detail {
  border-top: 1px solid var(--border-primary);
}

.record-detail:last-child {
  border-bottom: 1px solid var(--border-primary);
}

.record-detail summary {
  padding: 16px 0;
}

.record-detail .detail-toolbar {
  padding: 0 0 8px;
  justify-content: flex-end;
  border: 0;
}

.record-detail pre {
  max-height: 360px;
  margin-bottom: 16px;
  padding: 16px;
  background: var(--background-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
}

.job-grid {
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border-primary);
  border-left: 1px solid var(--border-primary);
}

.job-grid div {
  padding: 12px;
  border-right: 1px solid var(--border-primary);
  border-bottom: 1px solid var(--border-primary);
}

.source-files {
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.source-files span {
  padding: 4px 8px;
  border-radius: var(--radius-md);
  background: var(--surface-rest);
  color: var(--text-secondary);
  font-family: "Inconsolata", monospace;
  font-size: 12px;
  line-height: 17px;
}

.empty-state {
  padding: 64px 0;
  color: var(--text-secondary);
  text-align: center;
}

footer {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--border-primary);
  color: var(--text-tertiary);
  font-size: 12px;
  line-height: 17px;
}

footer p {
  margin-bottom: 0;
}

footer a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.copy-status {
  position: fixed;
  top: 68px;
  left: 50%;
  z-index: 30;
  margin: 0;
  padding: 10px 14px;
  transform: translateX(-50%);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  background: rgba(27, 27, 27, 0.86);
  backdrop-filter: blur(32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.copy-status.visible {
  opacity: 1;
}

@media (max-width: 1100px) {
  .handoff-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .workflow-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .app-header {
    padding: 0 16px;
  }

  .brand-label,
  .app-header nav a:not(.download-link) {
    display: none;
  }

  .app-header nav .download-link {
    padding: 6px 10px;
    font-size: 12px;
    line-height: 17px;
  }

  .handoff-intro,
  .workflow-section,
  .catalog-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .handoff-intro {
    padding-top: 40px;
  }

  h1 {
    font-size: 36px;
    line-height: 44px;
  }

  .section-heading,
  .catalog-heading,
  footer {
    align-items: stretch;
    flex-direction: column;
  }

  .section-heading h2 {
    font-size: 24px;
    line-height: 32px;
  }

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

  .workflow-steps li {
    min-height: 132px;
  }

  .catalog-controls {
    flex-direction: column;
  }

  input,
  select {
    width: 100%;
    min-width: 0;
  }

  .product-record {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .output-column {
    position: static;
    width: min(100%, 420px);
    margin: 0 auto;
  }

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

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

@media (max-width: 420px) {
  .revolve-logo {
    width: 92px;
  }

  .release-summary,
  .workflow-steps {
    grid-template-columns: 1fr;
  }

  .workflow-steps li {
    min-height: auto;
  }

  .workflow-steps li::before {
    margin-bottom: 10px;
  }

  .settings-grid,
  .job-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
