:root {
  --red: #c91612;
  --red-strong: #a80f0b;
  --ink: #17191c;
  --muted: #646970;
  --line: #e6e8eb;
  --soft: #f5f6f7;
  --paper: #ffffff;
  --green: #1e7b58;
  --amber: #c77a19;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 30px rgba(23, 25, 28, 0.06);
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.08;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 650;
  color: #30343a;
}

.site-nav a {
  position: relative;
  white-space: nowrap;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta,
.btn {
  border: 1px solid var(--ink);
  border-radius: 8px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-cta {
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
}

.nav-cta:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: center;
  padding: 126px 42px 64px;
  background-image: url("assets/hero-instant-retail.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.32);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  margin-left: max(0px, calc((100vw - var(--max)) / 2));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 620px;
  font-size: 64px;
  line-height: 1.08;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  font-size: 38px;
  line-height: 1.18;
  font-weight: 850;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.28;
}

p {
  color: var(--muted);
  line-height: 1.82;
}

.hero-copy {
  max-width: 590px;
  color: #33373d;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 750;
}

.btn-primary {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}

.btn-primary:hover {
  background: var(--red-strong);
  border-color: var(--red-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.btn-secondary:hover {
  background: #fff;
  transform: translateY(-1px);
}

.metrics-band {
  max-width: var(--max);
  margin: -36px auto 0;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 25, 28, 0.08);
}

.metric {
  min-height: 122px;
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--red);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px 42px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading p,
.section-copy p {
  font-size: 17px;
}

.split,
.visual-section,
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

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

.challenge-grid,
.capability-list,
.policy-grid,
.case-grid,
.steps {
  display: grid;
  gap: 16px;
}

.challenge-grid,
.capability-list,
.policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.challenge-card,
.capability-list article,
.policy-grid article,
.case-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.challenge-card {
  min-height: 166px;
  padding: 24px;
}

.challenge-card span {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 850;
}

.challenge-card p,
.capability-list p,
.case-card p,
.steps p {
  margin-bottom: 0;
  font-size: 15px;
}

.capability {
  max-width: none;
  margin-top: 0;
  background: var(--soft);
}

.capability .section-heading,
.capability .capability-list {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.capability-list article {
  min-height: 152px;
  padding: 26px;
}

.capability-list strong,
.policy-grid strong,
.steps strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.feature-list span {
  padding: 9px 12px;
  border: 1px solid #d7dadd;
  border-radius: 8px;
  background: #fff;
  color: #30343a;
  font-size: 14px;
  font-weight: 700;
}

.media-frame,
.wide-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 25, 28, 0.08);
}

.media-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.wide-media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.showcase {
  padding-top: 34px;
}

.highlight-box {
  margin-top: 28px;
  padding: 22px;
  border-left: 4px solid var(--red);
  background: #fff;
}

.highlight-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.highlight-box span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.steps article {
  min-height: 198px;
  padding: 24px;
}

.steps span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  color: var(--red);
  font-weight: 850;
}

.map-section {
  padding-top: 32px;
}

.cases {
  max-width: none;
  background: #191b1f;
}

.cases .section-heading,
.case-grid {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.cases h2,
.cases h3 {
  color: #fff;
}

.cases .section-heading p:not(.eyebrow),
.cases .case-card p,
.cases dt {
  color: #bec3ca;
}

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

.case-card {
  min-height: 360px;
  padding: 28px;
  background: #22252a;
  border-color: #353941;
}

.case-tag {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 10px;
  border: 1px solid #454b55;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
}

.case-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.case-card dl div {
  min-height: 72px;
  padding: 12px;
  border: 1px solid #353941;
  border-radius: 8px;
}

.case-card dt {
  font-size: 12px;
}

.case-card dd {
  margin: 6px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
}

.policy {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: start;
}

.policy-grid article {
  min-height: 144px;
  padding: 24px;
}

.policy-grid span {
  color: var(--muted);
  line-height: 1.7;
}

.policy-grid article:nth-child(2) {
  border-color: rgba(201, 22, 18, 0.38);
  background: #fff7f6;
}

.revenue {
  padding-top: 0;
}

.revenue-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 25, 28, 0.07);
}

.revenue-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.revenue-table div {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  min-height: 62px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.revenue-table div:last-child {
  border-bottom: 0;
}

.revenue-table span,
.revenue-table strong,
.revenue-table em {
  padding: 16px;
  font-style: normal;
}

.revenue-table strong {
  color: var(--red);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.contact {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 520px);
  gap: 64px;
  align-items: start;
  padding-left: max(42px, calc((100vw - var(--max)) / 2 + 42px));
  padding-right: max(42px, calc((100vw - var(--max)) / 2 + 42px));
  background: var(--soft);
}

.contact-copy {
  max-width: 620px;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(23, 25, 28, 0.07);
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form span {
  font-size: 14px;
  font-weight: 750;
}

.lead-form input,
.lead-form select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d8dbe0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid rgba(201, 22, 18, 0.22);
  border-color: var(--red);
}

.form-submit {
  width: 100%;
  margin-top: 6px;
}

.form-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.form-note.is-success {
  color: var(--green);
  font-weight: 750;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 34px 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer div {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.site-footer strong {
  color: var(--ink);
  font-size: 18px;
}

.site-footer p {
  max-width: 760px;
  margin: 0;
  font-size: 13px;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 22px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 8px 22px 24px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 180ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 12px;
    padding: 13px 16px;
    text-align: center;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 31px;
  }

  .metrics-band,
  .split,
  .visual-section,
  .showcase,
  .policy,
  .revenue-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .metrics-band {
    margin-left: 22px;
    margin-right: 22px;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 84px 22px;
  }

  .contact {
    padding-left: 22px;
    padding-right: 22px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .case-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }

  .site-nav {
    inset: 66px 0 auto 0;
  }

  .hero {
    min-height: 78svh;
    padding: 102px 22px 54px;
    background-position: 62% center;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.62);
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-copy,
  .section-heading p,
  .section-copy p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .metrics-band,
  .challenge-grid,
  .capability-list,
  .policy-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 102px;
  }

  .case-card dl {
    grid-template-columns: 1fr;
  }

  .revenue-panel,
  .lead-form {
    padding: 22px;
  }

  .revenue-table div {
    grid-template-columns: 1fr;
  }

  .revenue-table strong {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
