:root {
  --ink: #171311;
  --muted: #6d645f;
  --paper: #faf7f1;
  --panel: #fffdf8;
  --line: #ded6cb;
  --red: #b92825;
  --red-dark: #701a1b;
  --teal: #0e7c86;
  --gold: #d69a2d;
  --shadow: 0 18px 55px rgba(29, 18, 12, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 clamp(24px, 4vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(19, 12, 9, 0.78), rgba(19, 12, 9, 0));
}

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

.brand {
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  font-weight: 900;
}

.nav {
  gap: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  overflow: hidden;
  background: #201412;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(23, 19, 17, 0.96) 0%, rgba(23, 19, 17, 0.76) 42%, rgba(23, 19, 17, 0.12) 100%),
    linear-gradient(0deg, rgba(23, 19, 17, 0.82) 0%, rgba(23, 19, 17, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(690px, calc(100% - 48px));
  margin: 0 0 0 clamp(24px, 6vw, 92px);
  align-self: center;
  padding-top: 74px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.72;
}

.hero-actions,
.button {
  display: flex;
  align-items: center;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
}

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

.button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel {
  position: absolute;
  z-index: 2;
  right: clamp(24px, 5vw, 70px);
  bottom: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  width: min(560px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(23, 19, 17, 0.72);
  color: #fff;
  backdrop-filter: blur(12px);
}

.hero-panel div {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-panel div:last-child {
  border-right: 0;
}

.hero-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.hero-panel span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.section {
  padding: 96px clamp(24px, 5vw, 76px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.compact {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p:not(.eyebrow),
.workflow-copy p,
.cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.feature-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(44, 31, 20, 0.06);
}

.index {
  display: block;
  margin-bottom: 34px;
  color: var(--red);
  font-size: 14px;
  font-weight: 900;
}

.feature-card h3,
.case-caption h3,
.case-side h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.22;
}

.feature-card p,
.case-caption p,
.case-side p {
  color: var(--muted);
  line-height: 1.72;
}

.cases {
  background: #1b1714;
  color: #fff;
}

.cases .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(300px, 0.68fr);
  gap: 20px;
}

.case-main,
.case-side article {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.case-main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.case-caption {
  padding: 24px 26px 28px;
}

.case-side {
  display: grid;
  gap: 20px;
}

.case-side img {
  width: 100%;
  aspect-ratio: 16 / 8.8;
  object-fit: cover;
}

.case-side h3,
.case-side p {
  padding: 0 22px;
}

.case-side h3 {
  margin-top: 20px;
}

.case-side p {
  margin-bottom: 22px;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.metric-band div {
  padding: 34px clamp(18px, 3vw, 44px);
  border-right: 1px solid var(--line);
}

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

.metric-band strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red-dark);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.metric-band span {
  color: var(--muted);
  font-weight: 700;
}

.workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(380px, 1.18fr);
  gap: 54px;
  align-items: start;
}

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

.steps div {
  display: flex;
  align-items: center;
  min-height: 74px;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-weight: 800;
}

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

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 70px clamp(24px, 5vw, 76px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(112, 26, 27, 0.94), rgba(14, 124, 134, 0.88)),
    url("./assets/animation-cases.png") center/cover;
}

.cta div {
  max-width: 760px;
}

.cta .eyebrow,
.cta p {
  color: rgba(255, 255, 255, 0.82);
}

.cta h2 {
  margin-bottom: 14px;
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 780px;
  }

  .hero-panel,
  .feature-grid,
  .case-layout,
  .metric-band,
  .workflow,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 0 24px 34px;
    align-self: end;
  }

  .hero-panel div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .section-head.compact,
  .cta {
    display: block;
  }

  .cta .button {
    width: max-content;
    margin-top: 26px;
  }
}

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

  .hero-content {
    width: calc(100% - 36px);
    margin-left: 18px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .section {
    padding: 72px 18px;
  }

  .feature-card {
    min-height: 0;
  }

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

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