:root {
  --silver-white: #f1f0ed;
  --moon-white: #eef7f2;
  --gull-blue: #c7d2d4;
  --distant-blue: #d0dfe6;
  --clear-mountain-blue: #8fb2c9;
  --jingtailan: #2775b6;
  --dianqing: #1661ab;
  --blue-black: #131824;
  --steel-blue: #0f1423;
  --blue-gray: #2b333e;
  --ink: #111318;
  --muted: #6f7480;
  --line: rgba(19, 24, 36, 0.12);
  --paper: #fffefd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

body::selection {
  color: #ffffff;
  background: var(--dianqing);
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(18px, 4vw, 56px);
  color: rgba(17, 19, 24, 0.84);
  background: rgba(255, 254, 253, 0.76);
  border-bottom: 1px solid rgba(19, 24, 36, 0.08);
  backdrop-filter: blur(22px);
}

.brand,
.nav-links,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), transparent 38%),
    linear-gradient(145deg, var(--dianqing), var(--blue-black));
  box-shadow: 0 10px 24px rgba(22, 97, 171, 0.24);
}

.nav-links {
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(19, 24, 36, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.nav-links a {
  min-width: 76px;
  padding: 8px 16px;
  border-radius: 999px;
  color: rgba(17, 19, 24, 0.72);
  font-size: 14px;
  text-align: center;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(19, 24, 36, 0.06);
}

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  height: calc(100svh - 28px);
  padding: 64px clamp(18px, 6vw, 84px) 0;
  overflow: hidden;
  background: #f7f8f7;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(255, 254, 253, 0.9) 0%, rgba(255, 254, 253, 0.72) 28%, rgba(255, 254, 253, 0.18) 58%, rgba(17, 19, 24, 0.18) 100%),
    linear-gradient(90deg, rgba(255, 254, 253, 0.82) 0%, rgba(255, 254, 253, 0.28) 48%, rgba(255, 254, 253, 0.08) 100%);
  pointer-events: none;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  transform: scale(1.02);
}

.hero-copy {
  position: relative;
  z-index: 4;
  align-self: center;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-bottom: min(14vh, 116px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--dianqing);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.trial-intro h2,
.system-section h2 {
  margin: 0;
  color: var(--steel-blue);
  font-weight: 760;
  letter-spacing: 0;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
}

.hero-lede {
  max-width: 650px;
  margin: 24px auto 0;
  color: rgba(43, 51, 62, 0.72);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.66;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.hero-benefits span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 999px;
  color: rgba(19, 24, 36, 0.7);
  background: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 760;
  backdrop-filter: blur(16px);
}

.hero-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--steel-blue), var(--dianqing));
  box-shadow: 0 20px 48px rgba(22, 97, 171, 0.24);
}

.secondary-action {
  color: var(--steel-blue);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(19, 24, 36, 0.12);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  box-shadow: 0 24px 56px rgba(22, 97, 171, 0.3);
}

.system-grid span {
  color: var(--dianqing);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.trial-section,
.system-section {
  padding: clamp(76px, 10vw, 132px) clamp(18px, 6vw, 84px);
}

.trial-section {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(62px, 7vw, 96px);
  background: #ffffff;
}

.trial-intro {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.trial-intro .eyebrow {
  margin-bottom: 2px;
}

.trial-intro h2,
.system-section h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.trial-intro h2 {
  font-size: clamp(32px, 3.4vw, 48px);
}

.trial-intro p:not(.eyebrow) {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}


.trial-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.trial-products,
.trial-main,
.trial-proof,
.preview-content,
.trial-result-wrap {
  min-width: 0;
}

.trial-products {
  padding: 0;
  border: 0;
  background: transparent;
}

.trial-main {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(430px, 1.1fr);
  align-items: start;
}

.step-heading {
  display: grid;
  gap: 4px;
}

.step-heading > span {
  display: none;
}

.step-heading h3,
.proof-head h3,
.form-head h3,
.result-title-row h3 {
  margin: 0;
  color: var(--steel-blue);
  font-size: 18px;
  line-height: 1.2;
}

.step-heading p,
.proof-head p,
.form-head p,
.result-title-row p,
.selected-summary,
.trial-limit,
.submit-status {
  margin: 5px 0 0;
  color: rgba(43, 51, 62, 0.66);
  font-size: 13px;
  line-height: 1.5;
}

.product-list {
  display: grid;
  gap: 10px;
  max-height: 580px;
  margin-top: 16px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.product-option {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 10px;
  color: var(--steel-blue);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.product-option:hover {
  border-color: rgba(22, 97, 171, 0.24);
  transform: translateY(-1px);
}

.product-option.is-active {
  color: #ffffff;
  border-color: rgba(22, 97, 171, 0.56);
  background: linear-gradient(135deg, #123d70, var(--dianqing));
}

.product-thumb {
  position: relative;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 97, 171, 0.14), rgba(82, 183, 136, 0.12)),
    #eef7f2;
}

.product-thumb::before,
.product-thumb::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--dianqing);
}

.product-thumb::before {
  width: 19px;
  height: 22px;
  box-shadow:
    -7px 4px 0 rgba(22, 97, 171, 0.24),
    7px -4px 0 rgba(22, 97, 171, 0.18);
}

.product-thumb::after {
  width: 22px;
  height: 2px;
  transform: translateY(11px);
  opacity: 0.42;
}

.product-option.is-active .product-thumb {
  background: rgba(255, 255, 255, 0.92);
}

.product-option.is-active .product-thumb::before,
.product-option.is-active .product-thumb::after {
  background: var(--dianqing);
}

.product-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.product-meta strong,
.product-meta small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta strong {
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
}

.product-meta small {
  display: -webkit-box;
  color: currentColor;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0.68;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-option i {
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.62;
  transform: rotate(45deg);
}

.trial-proof,
.preview-content,
.trial-result-wrap {
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 12px;
  background: rgba(255, 254, 253, 0.88);
}

.trial-proof {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.proof-head,
.result-title-row {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
}

.more-cases-btn {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 8px;
  color: var(--dianqing);
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.more-cases-btn[hidden] {
  display: none;
}

.proof-body,
.result-delivery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.case-strip-wide,
.result-thumbs {
  display: flex;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  padding: 0 0 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.wide-case-card,
.result-thumbs button {
  flex: 0 0 108px;
  min-width: 0;
  border-radius: 8px;
  scroll-snap-align: start;
}

.case-more-card {
  display: grid;
  flex: 0 0 108px;
  aspect-ratio: 3 / 4;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(22, 97, 171, 0.16);
  border-radius: 8px;
  color: var(--dianqing);
  background: rgba(238, 247, 242, 0.6);
  cursor: pointer;
  scroll-snap-align: start;
}

.case-more-card strong {
  font-size: 24px;
  line-height: 1;
}

.case-more-card span {
  font-size: 12px;
  font-weight: 760;
}

.wide-case-card,
.result-thumbs button {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 24, 36, 0.1);
  background: #ffffff;
  cursor: zoom-in;
}

.wide-case-card img,
.result-thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.wide-case-card span,
.result-thumbs button span {
  position: absolute;
  top: 6px;
  left: 6px;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 12, 20, 0.58);
  font-size: 11px;
  font-weight: 760;
  text-align: center;
  backdrop-filter: blur(12px);
}

.case-copy-panel {
  display: grid;
  align-content: start;
  min-width: 0;
  padding: 2px 0 0;
}

.publish-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(19, 24, 36, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.primary-case-action,
.secondary-case-action {
  min-height: 38px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.primary-case-action {
  border: 0;
  color: #ffffff;
  background: #ff2442;
}

.secondary-case-action {
  border: 1px solid rgba(19, 24, 36, 0.1);
  color: var(--steel-blue);
  background: #ffffff;
}

.case-text-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.case-input-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.case-input-copy span {
  color: rgba(43, 51, 62, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.case-input-single {
  color: var(--steel-blue);
  font-size: 16px;
  font-weight: 820;
  line-height: 1.45;
}

.case-input-list {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.case-input-list.is-compact {
  max-height: 176px;
  gap: 6px;
}

.case-input-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
}

.case-input-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 6px;
  color: rgba(43, 51, 62, 0.62);
  background: rgba(19, 24, 36, 0.05);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.case-input-pair {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(19, 24, 36, 0.07);
}

.case-input-row:last-child .case-input-pair {
  padding-bottom: 0;
  border-bottom: 0;
}

.case-input-pair strong,
.case-input-pair em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--steel-blue);
  font-size: 14px;
  line-height: 1.38;
  font-style: normal;
}

.case-input-pair strong {
  font-weight: 820;
}

.case-input-pair em {
  color: rgba(43, 51, 62, 0.72);
  font-weight: 680;
}

.case-note-copy {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(19, 24, 36, 0.08);
  color: rgba(43, 51, 62, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.case-copy-source {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(19, 24, 36, 0.08);
}

.case-copy-source span,
.publish-copy-head span,
.copy-block span {
  color: rgba(43, 51, 62, 0.56);
  font-size: 12px;
  font-weight: 760;
}

.case-copy-source strong,
.publish-copy-head strong,
.copy-block strong {
  color: var(--steel-blue);
  font-size: 15px;
  line-height: 1.35;
}

.copy-block {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.copy-block > div,
.publish-copy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.copy-block button {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 7px;
  color: var(--dianqing);
  background: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.copy-block p,
.publish-copy.is-empty p,
.case-copy-panel > p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(43, 51, 62, 0.72);
  font-size: 13px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.copy-block .tag-line {
  color: var(--dianqing);
  font-weight: 720;
  -webkit-line-clamp: 2;
}

.preview-content {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

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

.trial-form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.trial-form-row label:first-child {
  grid-column: 1 / -1;
}

.preview-content label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.preview-content label span {
  color: rgba(19, 24, 36, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.preview-content textarea,
.preview-content input {
  width: 100%;
  border: 1px solid rgba(19, 24, 36, 0.12);
  border-radius: 9px;
  color: var(--steel-blue);
  background: rgba(255, 255, 255, 0.88);
  outline: 0;
}

.preview-content textarea {
  min-height: 46px;
  max-height: 92px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.45;
}

.preview-content input {
  min-height: 46px;
  padding: 0 13px;
}

.trial-action-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.preview-content > button,
.trial-form-row > button,
.trial-action-buttons > button {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  color: #ffffff;
  background: #ff2442;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.trial-action-buttons > button[type="button"] {
  border: 1px solid rgba(19, 24, 36, 0.12);
  color: var(--steel-blue);
  background: rgba(255, 255, 255, 0.88);
}

.preview-content > button:disabled,
.trial-form-row > button:disabled,
.trial-action-buttons > button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.trial-lookup-list {
  display: grid;
  gap: 8px;
}

.trial-lookup-list[hidden] {
  display: none;
}

.lookup-result-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 9px;
  color: var(--steel-blue);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.lookup-result-card strong {
  display: block;
  overflow: hidden;
  color: var(--steel-blue);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lookup-result-card span,
.lookup-result-card small {
  color: rgba(43, 51, 62, 0.62);
  font-size: 12px;
}

.lookup-result-card small {
  justify-self: end;
  white-space: nowrap;
}

.trial-result-wrap {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
}

.trial-result {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.result-headline {
  display: grid;
  gap: 4px;
}

.result-headline strong {
  color: var(--steel-blue);
  font-size: 15px;
}

.result-headline span {
  color: rgba(43, 51, 62, 0.7);
  font-size: 13px;
  line-height: 1.5;
}

.result-placeholder {
  display: grid;
  flex: 0 0 132px;
  min-width: 0;
  min-height: auto;
  aspect-ratio: 3 / 4;
  place-items: center;
  gap: 8px;
  padding: 10px 8px;
  border: 1px dashed rgba(22, 97, 171, 0.24);
  border-radius: 8px;
  color: rgba(43, 51, 62, 0.62);
  background: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  text-align: center;
  scroll-snap-align: start;
}

.result-placeholder i {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(22, 97, 171, 0.18);
  border-top-color: var(--dianqing);
  border-radius: 999px;
  animation: spin 900ms linear infinite;
}

.result-placeholder b {
  position: relative;
  width: 24px;
  height: 18px;
  border: 2px solid rgba(19, 24, 36, 0.42);
  border-radius: 5px;
}

.result-placeholder b::before {
  content: "";
  position: absolute;
  left: 4px;
  top: -13px;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(19, 24, 36, 0.42);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.result-placeholder.is-locked {
  border-style: solid;
  color: rgba(43, 51, 62, 0.56);
  background: linear-gradient(135deg, rgba(248, 249, 250, 0.88), rgba(255, 255, 255, 0.68));
}

.trial-empty {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px dashed rgba(22, 97, 171, 0.2);
  border-radius: 10px;
  color: rgba(43, 51, 62, 0.62);
  background: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.trial-empty.compact {
  min-height: 0;
  padding: 12px;
}

.trial-sample,
.trial-effect,
.trial-cases,
.case-grid,
.case-item,
.case-carousel,
.case-strip,
.case-head {
  min-width: 0;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 72px 18px 28px;
  background: rgba(8, 12, 20, 0.82);
  backdrop-filter: blur(18px);
}

.image-modal[hidden] {
  display: none;
}

.image-modal img {
  max-width: min(92vw, 760px);
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 12, 20, 0.42);
  backdrop-filter: blur(18px);
}

.case-modal[hidden] {
  display: none;
}

.case-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(1120px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background: rgba(255, 254, 253, 0.96);
  box-shadow: 0 34px 100px rgba(8, 12, 20, 0.24);
}

.case-modal-head,
.case-modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}

.case-modal-head {
  border-bottom: 1px solid rgba(19, 24, 36, 0.08);
}

.case-modal-head .eyebrow {
  margin-bottom: 6px;
}

.case-modal-head h3 {
  margin: 0;
  color: var(--steel-blue);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.case-modal-head p:not(.eyebrow) {
  margin: 8px 0 0;
  color: rgba(43, 51, 62, 0.66);
  font-size: 14px;
  line-height: 1.5;
}

.case-modal-close {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 999px;
  color: var(--steel-blue);
  background: #ffffff;
  cursor: pointer;
  font-weight: 760;
}

.case-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: 16px;
  min-height: 0;
  padding: 18px 22px;
  overflow: hidden;
}

.case-modal-gallery,
.case-modal-copy {
  min-width: 0;
}

.case-modal-gallery {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.case-modal-input {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(19, 24, 36, 0.08);
  border-radius: 10px;
  background: rgba(248, 249, 250, 0.74);
}

.case-modal-input span {
  color: rgba(43, 51, 62, 0.56);
  font-size: 12px;
  font-weight: 760;
}

.case-modal-input .case-input-single {
  color: var(--steel-blue);
  font-size: 16px;
  font-weight: 820;
  line-height: 1.35;
}

.case-modal-input small {
  color: rgba(43, 51, 62, 0.56);
  font-size: 12px;
}

.case-modal-images {
  display: grid;
  grid-auto-columns: minmax(148px, 176px);
  grid-auto-flow: column;
  gap: 10px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.modal-case-image {
  position: relative;
  display: block;
  width: 100%;
  height: max-content;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(19, 24, 36, 0.1);
  border-radius: 9px;
  background: #ffffff;
  cursor: zoom-in;
  scroll-snap-align: start;
}

.modal-case-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.modal-case-image span {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(8, 12, 20, 0.58);
  font-size: 11px;
  font-weight: 760;
  backdrop-filter: blur(12px);
}

.case-modal-copy {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding: 14px;
  border: 1px solid rgba(19, 24, 36, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.case-modal-copy > p {
  margin: 0;
  color: rgba(43, 51, 62, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.case-modal-actions {
  justify-content: flex-end;
  border-top: 1px solid rgba(19, 24, 36, 0.08);
}

.primary-case-action,
.secondary-case-action {
  min-width: 132px;
  padding: 0 18px;
}

.system-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(520px, 1.18fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: 760px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 22%),
    linear-gradient(145deg, #111722, #17202c 52%, #242b35);
}

.system-section .eyebrow {
  color: var(--clear-mountain-blue);
}

.system-section h2 {
  color: #ffffff;
}

.system-copy {
  display: grid;
  align-content: start;
  gap: 20px;
  max-width: 520px;
}

.system-copy > p:not(.eyebrow) {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.65;
}

.system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.system-actions .primary-action {
  color: var(--steel-blue);
  background: #ffffff;
  box-shadow: none;
}

.system-actions .secondary-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.system-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.system-stats div {
  display: grid;
  gap: 6px;
  padding: 18px 18px 18px 0;
}

.system-stats div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.system-stats strong {
  color: #ffffff;
  font-size: clamp(28px, 3vw, 46px);
  line-height: 0.95;
}

.system-stats span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 720;
}

.template-library {
  display: grid;
  gap: 18px;
  min-width: 0;
  max-height: min(680px, calc(100svh - 120px));
  overflow-y: auto;
  padding: 2px 8px 2px 2px;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  scrollbar-width: thin;
}

.template-set {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.template-set-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.template-set-head span {
  color: #ffffff;
  font-size: 15px;
  font-weight: 860;
  white-space: nowrap;
}

.template-set-head strong {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 640;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.template-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease;
}

.template-strip img:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: hero-copy-in 700ms ease both;
  }

  .hero-image {
    animation: hero-image-in 1100ms ease both;
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-image-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: scale(1.02);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 660px;
  }

  .hero-copy {
    padding-bottom: 120px;
  }

  .trial-workbench {
    grid-template-columns: 1fr;
  }

  .trial-main {
    grid-template-columns: 1fr;
  }

  .proof-transform,
  .proof-body,
  .result-delivery,
  .trial-form-row {
    grid-template-columns: 1fr;
  }

  .product-list {
    max-height: 390px;
  }

  .proof-transform > i {
    display: none;
  }

  .case-copy-panel,
  .publish-copy {
    min-height: 0;
  }

  .case-modal-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .case-modal-panel {
    max-height: calc(100vh - 34px);
  }

  .case-modal-images {
    grid-auto-columns: minmax(118px, 148px);
  }

  .case-modal-head,
  .case-modal-actions {
    padding: 16px 18px;
  }

  .system-section {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .system-copy {
    max-width: 720px;
  }

  .template-library {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

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

@media (max-width: 640px) {
  .site-header {
    height: 58px;
    padding: 0 14px;
  }

  .brand {
    font-size: 14px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    min-width: 60px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .hero {
    height: auto;
    min-height: 650px;
    padding-top: 58px;
  }

  .hero-copy {
    align-self: start;
    padding-top: 72px;
    padding-bottom: 170px;
  }

  .hero h1 {
    font-size: clamp(44px, 13vw, 66px);
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
    margin-right: auto;
    margin-left: auto;
  }

  .hero-image {
    object-position: center bottom;
  }

  .trial-section {
    padding: 42px 18px 72px;
  }

  .system-section {
    padding: 72px 18px;
  }

  .system-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .system-actions .primary-action,
  .system-actions .secondary-action {
    width: 100%;
  }

  .system-stats {
    grid-template-columns: 1fr;
  }

  .system-stats div {
    padding: 14px 0;
  }

  .system-stats div + div {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

  .trial-intro h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .trial-workbench {
    grid-template-columns: 1fr;
  }

  .product-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
  }

  .product-option {
    flex: 0 0 min(270px, 82vw);
    min-height: 86px;
  }

  .proof-head,
  .form-head,
  .result-title-row {
    display: grid;
    gap: 8px;
  }

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

  .wide-case-card,
  .result-thumbs button,
  .result-placeholder {
    flex-basis: min(124px, 38vw);
  }

  .trial-form-row > button {
    width: 100%;
  }

  .case-copy-panel,
  .publish-copy {
    padding: 12px;
  }

  .copy-block p {
    -webkit-line-clamp: 5;
  }

  .template-set {
    padding: 12px;
    border-radius: 12px;
  }

  .template-set-head {
    display: grid;
    gap: 4px;
  }

  .template-set-head strong {
    text-align: left;
  }

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