:root {
  --bg: #f4efe6;
  --bg-soft: #fbf7ef;
  --ink: #1f211f;
  --ink-strong: #0f1210;
  --muted: #6f7169;
  --line: rgba(31, 33, 31, 0.12);
  --line-strong: rgba(31, 33, 31, 0.2);
  --panel: rgba(255, 252, 245, 0.78);
  --panel-solid: #fffaf1;
  --coal: #171915;
  --coal-soft: #242821;
  --accent: #b86d3b;
  --accent-deep: #8d4e2c;
  --sage: #586f58;
  --sand: #d7c3a1;
  --shadow-soft: 0 18px 56px rgba(49, 39, 24, 0.1);
  --shadow-strong: 0 28px 80px rgba(26, 23, 18, 0.18);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 109, 59, 0.16), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(88, 111, 88, 0.15), transparent 28%),
    linear-gradient(180deg, #f0e6d5 0%, var(--bg) 42%, #eee4d4 100%);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(31, 33, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 33, 31, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(31, 33, 31, 0.2) 0.6px, transparent 0.6px),
    radial-gradient(rgba(31, 33, 31, 0.12) 0.6px, transparent 0.6px);
  background-position: 0 0, 11px 11px;
  background-size: 22px 22px;
}

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

.topbar,
.section,
.footer {
  width: min(calc(100% - 44px), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 12px 14px 12px 16px;
  border: 1px solid rgba(31, 33, 31, 0.1);
  border-radius: 999px;
  background: rgba(253, 248, 238, 0.78);
  box-shadow: 0 12px 36px rgba(49, 39, 24, 0.08);
  backdrop-filter: blur(18px);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.topbar.scrolled {
  background: rgba(253, 248, 238, 0.96);
  box-shadow: 0 18px 44px rgba(49, 39, 24, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  color: var(--ink-strong);
  font-size: 16px;
  line-height: 1;
}

.brand-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink-strong);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.topbar-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.topbar-cta,
.button-primary {
  color: #fff8ee;
  background: linear-gradient(135deg, var(--coal) 0%, #30362e 100%);
  box-shadow: 0 12px 28px rgba(31, 33, 31, 0.18);
}

.topbar-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.button-ghost {
  color: var(--ink-strong);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.3);
}

.section {
  padding: 34px 0 58px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.88fr);
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 94px);
  padding-top: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.data-copy h2,
.contact-card h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "Songti SC", "Noto Serif SC", "STSong", serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 {
  --hero-title-size: clamp(40px, 4vw, 50px);
  max-width: 720px;
  font-size: var(--hero-title-size);
  line-height: 1.14;
}

.hero h1 span {
  display: block;
  font-size: calc(var(--hero-title-size) - 14px);
  white-space: nowrap;
  color: var(--sage);
}

.hero-text,
.section-heading p,
.feature-card p,
.timeline-card p,
.role-card p,
.matrix-item span,
.contact-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.hero-text {
  max-width: 620px;
  margin: 20px 0 0;
}

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

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.signal-card,
.stage-panel,
.feature-card,
.timeline-card,
.role-card,
.matrix-item,
.contact-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.signal-card {
  padding: 16px;
  border-radius: 18px;
}

.signal-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-strong);
  font-family: "DIN Condensed", "Bahnschrift Condensed", sans-serif;
  font-size: 28px;
  line-height: 1;
}

.signal-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-stage {
  position: relative;
}

.stage-shell {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
  color: #f7f0e4;
  background:
    linear-gradient(180deg, rgba(28, 31, 26, 0.96) 0%, rgba(17, 19, 16, 0.94) 100%);
  box-shadow: var(--shadow-strong);
}

.stage-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(184, 109, 59, 0.25), transparent 36%),
    radial-gradient(circle at 100% 100%, rgba(88, 111, 88, 0.28), transparent 34%);
}

.stage-head,
.stage-grid {
  position: relative;
  z-index: 1;
}

.stage-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.head-pill {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(247, 240, 228, 0.76);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.head-pill.active {
  color: #f4d4bd;
  background: rgba(184, 109, 59, 0.22);
}

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

.stage-panel {
  padding: 16px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.panel-wide {
  grid-column: span 2;
}

.panel-accent {
  background: linear-gradient(135deg, rgba(184, 109, 59, 0.18), rgba(88, 111, 88, 0.18));
}

.panel-kicker {
  color: rgba(247, 240, 228, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stage-panel h3,
.stage-panel h4 {
  margin: 9px 0 0;
  font-size: 20px;
  line-height: 1.28;
}

.stage-panel p {
  margin: 8px 0 0;
  color: rgba(247, 240, 228, 0.72);
  font-size: 14px;
  line-height: 1.62;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row span,
.mini-list span,
.stack-flow span {
  color: #f1c8aa;
}

.chip-row span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

.mini-list,
.stack-flow,
.role-card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.mini-list li,
.stack-flow li,
.role-card li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.mini-list li:last-child,
.stack-flow li:last-child,
.role-card li:last-child {
  border-bottom: none;
}

.ribbon {
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 38px;
}

.ribbon-track {
  display: flex;
  width: max-content;
  gap: 12px;
  padding: 8px 0;
  color: rgba(31, 33, 31, 0.72);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: drift 28s linear infinite;
}

.ribbon-track span {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-20%); }
}

.section-heading {
  max-width: none;
  margin-bottom: 22px;
}

.section-heading h2,
.data-copy h2,
.contact-card h2 {
  font-size: clamp(26px, 2.7vw, 38px);
  white-space: nowrap;
}

.data-copy h2 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.section-heading p {
  margin-top: 12px;
}

.feature-grid,
.role-grid,
.matrix-grid {
  display: grid;
  gap: 14px;
}

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

.feature-card,
.timeline-card,
.role-card,
.matrix-item {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--accent-deep);
  background: rgba(184, 109, 59, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.feature-card h3,
.timeline-card h3,
.role-card h3,
.matrix-item strong {
  display: block;
  margin: 14px 0 0;
  color: var(--ink-strong);
  font-size: 19px;
  line-height: 1.3;
}

.feature-card p,
.timeline-card p,
.role-card p {
  margin-bottom: 0;
}

.journey {
  position: relative;
}

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

.timeline-card {
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sage));
}

.timeline-card span {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--sage);
  background: rgba(88, 111, 88, 0.09);
  font-size: 11px;
  font-weight: 800;
}

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

.role-card ul {
  margin-top: 14px;
}

.role-card li {
  justify-content: flex-start;
  color: var(--muted);
  border-bottom-color: rgba(31, 33, 31, 0.09);
}

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

.matrix-item {
  min-height: 148px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.92), rgba(248, 241, 230, 0.82));
}

.matrix-item span {
  display: block;
  margin-top: 10px;
}

.data-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: end;
  padding: 24px;
  border-radius: 30px;
  color: #f8f0e3;
  background: linear-gradient(135deg, rgba(23, 25, 21, 0.95), rgba(71, 91, 71, 0.92));
  box-shadow: var(--shadow-strong);
}

.data-copy .eyebrow,
.data-copy h2,
.data-copy p {
  color: #f8f0e3;
}

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

.data-flow span {
  display: block;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.94), rgba(248, 239, 226, 0.88));
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 38px;
  color: var(--muted);
  font-size: 14px;
}

.footer strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink-strong);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 560ms ease, transform 560ms ease;
}

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

@media (max-width: 1120px) {
  .hero,
  .data-band,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

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

  .section-heading h2,
  .data-copy h2,
  .contact-card h2 {
    white-space: normal;
  }

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

@media (max-width: 860px) {
  .topbar {
    border-radius: 24px;
    padding: 12px;
  }

  .nav {
    display: none;
  }

  .signal-row,
  .role-grid,
  .feature-grid,
  .timeline,
  .matrix-grid,
  .stage-grid,
  .data-flow {
    grid-template-columns: 1fr;
  }

  .panel-wide {
    grid-column: auto;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar,
  .section,
  .footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .topbar {
    top: 10px;
    align-items: stretch;
    gap: 12px;
    border-radius: 22px;
  }

  .brand {
    justify-content: center;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .topbar-cta {
    width: 100%;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    --hero-title-size: 32px;
    font-size: var(--hero-title-size);
  }

  .hero h1 span {
    white-space: normal;
  }

  .section-heading h2,
  .data-copy h2,
  .contact-card h2 {
    font-size: 28px;
  }

  .section {
    padding: 26px 0 44px;
  }

  .stage-shell,
  .data-band,
  .contact-card {
    padding: 16px;
    border-radius: 24px;
  }

  .feature-card,
  .timeline-card,
  .role-card,
  .matrix-item {
    padding: 17px;
  }
}
