:root {
  --ink: #202020;
  --ink-soft: #3e3e3e;
  --muted: #626262;
  --paper: #f6f6f6;
  --white: #ffffff;
  --maroon: #500000;
  --maroon-dark: #3c001c;
  --maroon-light: #732f2f;
  --cardinal: #990000;
  --gold: #ffcc00;
  --soft-gold: #fce300;
  --line: #d1d1d1;
  --scene: #3c001c;
  --shadow: 0 22px 60px rgba(80, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 70px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(247, 248, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--maroon);
}

.language-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(42px, 1fr));
  gap: 2px;
  padding: 3px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switch button {
  min-height: 32px;
  padding: 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.language-switch button[aria-pressed="true"] {
  color: var(--white);
  background: var(--maroon);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 118px);
  overflow: hidden;
  padding: clamp(64px, 8vw, 112px) clamp(20px, 5vw, 80px) clamp(44px, 6vw, 72px);
  color: var(--white);
  background: var(--scene);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.92), rgba(80, 0, 0, 0.72) 52%, rgba(60, 0, 28, 0.32)),
    linear-gradient(0deg, rgba(32, 32, 32, 0.76), transparent 34%);
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 70% 22%, rgba(153, 0, 0, 0.38), transparent 36%),
    linear-gradient(135deg, #202020 0%, #500000 48%, #3c001c 100%);
  background-size: 54px 54px;
}

.storm-track,
.street,
.parcel,
.scan-line,
.signal {
  position: absolute;
  display: block;
}

.storm-track {
  width: 62vw;
  height: 62vw;
  min-width: 560px;
  min-height: 560px;
  top: -22vw;
  right: -10vw;
  border: 44px solid rgba(255, 255, 255, 0.12);
  border-right-color: rgba(153, 0, 0, 0.52);
  border-bottom-color: rgba(255, 204, 0, 0.26);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.street {
  height: 22px;
  background: rgba(241, 246, 244, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.street-one {
  width: 92vw;
  top: 46%;
  left: -12vw;
  transform: rotate(18deg);
}

.street-two {
  width: 72vw;
  top: 68%;
  right: -14vw;
  transform: rotate(-27deg);
}

.street-three {
  width: 42vw;
  top: 27%;
  right: 18vw;
  transform: rotate(64deg);
}

.parcel {
  width: clamp(76px, 9vw, 130px);
  height: clamp(58px, 6vw, 92px);
  border: 2px solid rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  background: rgba(115, 47, 47, 0.72);
  box-shadow: 0 0 0 8px rgba(115, 47, 47, 0.18);
}

.parcel::after {
  position: absolute;
  right: 8px;
  bottom: 7px;
  width: 12px;
  height: 12px;
  content: "";
  background: var(--white);
  border-radius: 50%;
}

.parcel[data-risk="high"] {
  background: rgba(153, 0, 0, 0.76);
  box-shadow: 0 0 0 8px rgba(153, 0, 0, 0.18);
}

.parcel[data-risk="medium"] {
  background: rgba(255, 204, 0, 0.72);
  box-shadow: 0 0 0 8px rgba(255, 204, 0, 0.16);
}

.parcel-a {
  top: 24%;
  right: 18%;
  transform: rotate(-9deg);
}

.parcel-b {
  top: 43%;
  right: 9%;
  transform: rotate(10deg);
}

.parcel-c {
  top: 58%;
  right: 31%;
  transform: rotate(-4deg);
}

.parcel-d {
  bottom: 14%;
  right: 15%;
  transform: rotate(13deg);
}

.parcel-e {
  top: 34%;
  right: 43%;
  transform: rotate(5deg);
}

.scan-line {
  top: 0;
  right: 38%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 22px rgba(255, 204, 0, 0.72);
}

.signal {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(255, 204, 0, 0.2);
}

.signal-a {
  top: 22%;
  right: 29%;
}

.signal-b {
  top: 52%;
  right: 22%;
}

.signal-c {
  bottom: 21%;
  right: 40%;
  background: var(--cardinal);
  box-shadow: 0 0 0 8px rgba(153, 0, 0, 0.26);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow,
.feature-kicker,
.panel-row span,
.panel-metrics span,
.proof-card span {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.13rem;
  line-height: 1.2;
}

body[data-lang="zh"] {
  font-family:
    Inter, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", ui-sans-serif,
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body[data-lang="zh"] h1 {
  max-width: 840px;
  font-size: clamp(2.55rem, 6.4vw, 5.8rem);
  line-height: 1.08;
}

body[data-lang="zh"] h2 {
  line-height: 1.12;
}

body[data-lang="zh"] .eyebrow,
body[data-lang="zh"] .feature-kicker,
body[data-lang="zh"] .panel-row span,
body[data-lang="zh"] .panel-metrics span,
body[data-lang="zh"] .proof-card span {
  text-transform: none;
}

.hero-text {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--maroon);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--maroon);
}

.button.secondary {
  color: var(--maroon);
  background: var(--white);
}

.hero .button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.54);
}

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 80px);
  bottom: clamp(28px, 4vw, 52px);
  z-index: 2;
  width: min(520px, 100%);
  margin-top: 0;
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-row span,
.panel-metrics span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

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

.panel-metrics div {
  padding: 13px;
  background: #f8f8f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-metrics strong {
  display: block;
  font-size: 1.25rem;
}

.hero-panel p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: clamp(58px, 8vw, 100px) clamp(20px, 5vw, 80px);
}

.intro-band,
.team-band {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band,
.roadmap-band {
  background: #f6eeee;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.method-section {
  background: var(--paper);
}

.section-heading {
  max-width: 880px;
  margin-bottom: 34px;
}

.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.section .eyebrow,
.closing .eyebrow {
  color: var(--maroon);
}

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

.feature,
.proof-card,
.customer-list article,
.method-flow li,
.timeline li {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature p,
.proof-card p,
.customer-list p,
.method-flow p,
.timeline p {
  color: var(--muted);
}

.feature-kicker {
  display: block;
  color: var(--maroon);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  gap: clamp(26px, 5vw, 76px);
  align-items: start;
}

.customer-list {
  display: grid;
  gap: 14px;
}

.customer-list article {
  display: grid;
  grid-template-columns: minmax(140px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
}

.customer-list h3,
.customer-list p {
  margin-bottom: 0;
}

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

.proof-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.proof-card span {
  display: block;
  color: var(--cardinal);
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.source-row a {
  padding: 8px 12px;
  color: var(--maroon);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.method-flow,
.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.method-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.method-flow span,
.timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--cardinal);
  font-weight: 900;
}

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

.timeline li {
  min-height: 150px;
  background: #fafafa;
}

.closing {
  padding: clamp(70px, 10vw, 120px) clamp(20px, 5vw, 80px);
  color: var(--white);
  background: var(--ink);
}

.closing h2 {
  max-width: 900px;
}

.closing .eyebrow {
  color: var(--gold);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 80px);
  color: var(--muted);
  background: #1a1616;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1060px) {
  .feature-grid,
  .proof-grid,
  .method-flow,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(32, 32, 32, 0.94), rgba(80, 0, 0, 0.68)),
      linear-gradient(0deg, rgba(32, 32, 32, 0.72), transparent 34%);
  }

  .hero-panel {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: clamp(40px, 8vw, 76px);
  }
}

@media (max-width: 820px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .split,
  .customer-list article {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .proof-grid,
  .method-flow,
  .timeline {
    grid-template-columns: 1fr;
  }

  .storm-track {
    right: -360px;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 10px;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 12px;
  }

  .language-switch {
    width: 100%;
    max-width: 150px;
  }

  h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  body[data-lang="zh"] h1 {
    font-size: clamp(2.25rem, 12vw, 3.3rem);
  }

  .hero-content {
    padding-top: 8px;
  }

  .panel-row,
  .panel-metrics {
    grid-template-columns: 1fr;
  }

  .panel-row {
    display: grid;
  }

  .hero-panel {
    display: none;
  }

  .parcel {
    width: 72px;
    height: 54px;
  }
}
