:root {
  --green: #2fb75a;
  --green-deep: #14723a;
  --green-soft: #edf8ee;
  --gold: #f3bd3e;
  --gold-soft: #fff6dc;
  --blue: #2f80ed;
  --blue-soft: #eaf3ff;
  --coral: #f16f52;
  --coral-soft: #fff0ea;
  --ink: #17211b;
  --text: #344137;
  --muted: #68766b;
  --line: #e2e9df;
  --paper: #fbfbf4;
  --white: #ffffff;
  --shadow-soft: 0 18px 52px rgba(30, 55, 35, 0.12);
  --shadow-phone: 0 28px 70px rgba(20, 55, 32, 0.22);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--paper);
  text-rendering: geometricPrecision;
}

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 5vw, 64px);
  color: var(--ink);
  background: rgba(251, 251, 244, 0.88);
  border-bottom: 1px solid rgba(226, 233, 223, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 720;
}

.site-nav a {
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--green-deep);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--green-deep) !important;
  background: var(--white);
  border: 1px solid rgba(47, 183, 90, 0.3);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(30, 55, 35, 0.07);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 96px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px) clamp(62px, 8vw, 92px);
  background:
    linear-gradient(90deg, rgba(251, 251, 244, 0.98) 0%, rgba(251, 251, 244, 0.82) 38%, rgba(251, 251, 244, 0.3) 100%),
    linear-gradient(135deg, #fffdf3 0%, #f1fbf0 55%, #eaf3ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 183, 90, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 183, 90, 0.055) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, transparent 100%);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-shot {
  position: absolute;
  width: clamp(180px, 21vw, 286px);
  aspect-ratio: 450 / 800;
  object-fit: cover;
  border: 8px solid #0f1511;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow-phone);
}

.hero-shot-main {
  right: clamp(42px, 10vw, 160px);
  top: clamp(58px, 8vw, 112px);
  transform: rotate(2deg);
  z-index: 2;
}

.hero-shot-left {
  right: clamp(230px, 29vw, 438px);
  bottom: 28px;
  transform: rotate(-5deg) scale(0.84);
  opacity: 0.92;
}

.hero-shot-right {
  right: clamp(-16px, 2vw, 34px);
  bottom: 52px;
  transform: rotate(6deg) scale(0.78);
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(46px, 7vw, 86px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 600px;
  margin: 24px 0 0;
  color: #3f4e43;
  font-size: clamp(18px, 2.1vw, 24px);
  line-height: 1.62;
  font-weight: 680;
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 820;
}

.button.primary {
  color: #fff;
  background: linear-gradient(180deg, #38c765 0%, #24a94d 100%);
  box-shadow: 0 14px 28px rgba(47, 183, 90, 0.28);
}

.button.secondary {
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 183, 90, 0.28);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 580px;
  margin: 34px 0 0;
}

.hero-facts div {
  padding: 14px 16px;
  border: 1px solid rgba(226, 233, 223, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-facts dt {
  color: var(--ink);
  font-size: 21px;
  font-weight: 920;
  line-height: 1.15;
}

.hero-facts dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.hero-cue {
  position: absolute;
  left: clamp(20px, 5vw, 72px);
  bottom: 18px;
  z-index: 3;
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 820;
}

.quick-band {
  position: relative;
  z-index: 4;
  padding: 18px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: #eaf3ec;
}

.quick-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.quick-grid p {
  margin: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 5px;
}

.quick-grid strong {
  color: #fff;
  font-size: 16px;
  font-weight: 850;
}

.quick-grid span {
  color: rgba(234, 243, 236, 0.76);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(72px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.section-head {
  max-width: var(--max-width);
  margin: 0 auto 34px;
}

.section-head h2,
.preview-copy h2,
.trust-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.12;
  font-weight: 920;
  letter-spacing: 0;
}

.section-head p:not(.section-kicker),
.preview-copy p:not(.section-kicker),
.trust-section p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 570;
}

.flow-section {
  background: var(--white);
}

.flow-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  counter-reset: flow;
}

.flow-list li {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdf9;
}

.step-number {
  display: inline-block;
  color: var(--gold);
  font-size: 15px;
  font-weight: 920;
}

.flow-list h3,
.feature-card h3,
.scenario-grid h3 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 880;
}

.flow-list p,
.feature-card p,
.scenario-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.feature-section {
  background:
    linear-gradient(180deg, #f8fbf1 0%, #fff 100%);
}

.feature-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 226px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 22px;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-icon,
.feature-card:nth-child(5) .feature-icon {
  color: #8a6100;
  background: var(--gold-soft);
}

.feature-card:nth-child(3) .feature-icon,
.feature-card:nth-child(6) .feature-icon {
  color: #185aa0;
  background: var(--blue-soft);
}

.feature-card:nth-child(4) .feature-icon {
  color: #a53f2c;
  background: var(--coral-soft);
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
  gap: clamp(36px, 8vw, 92px);
  align-items: center;
  padding: clamp(76px, 9vw, 118px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(105deg, rgba(23, 33, 27, 0.92), rgba(23, 33, 27, 0.82)),
    url("./assets/huawei-real-ui-contact-sheet.png") center / cover;
  color: #f6f8f2;
}

.preview-copy {
  justify-self: end;
  max-width: 560px;
}

.preview-copy h2,
.preview-copy p,
.preview-copy .section-kicker {
  color: inherit;
}

.preview-copy p:not(.section-kicker) {
  color: rgba(246, 248, 242, 0.78);
}

.preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.preview-tab {
  min-width: 70px;
  min-height: 42px;
  padding: 0 14px;
  color: rgba(246, 248, 242, 0.78);
  border: 1px solid rgba(246, 248, 242, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.preview-tab.is-active {
  color: #13331f;
  background: #fff;
  border-color: #fff;
  font-weight: 850;
}

.phone-preview {
  width: min(310px, 100%);
  margin: 0;
  justify-self: start;
}

.phone-preview img {
  width: 100%;
  aspect-ratio: 450 / 800;
  object-fit: cover;
  border: 9px solid #0f1511;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.phone-preview figcaption {
  margin-top: 14px;
  color: rgba(246, 248, 242, 0.78);
  font-size: 14px;
  text-align: center;
  font-weight: 760;
}

.scenarios-section {
  background: #fff;
}

.scenario-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.scenario-grid article {
  min-height: 178px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfdf8);
}

.scenario-grid article:nth-child(2) {
  background: linear-gradient(180deg, #fffdf5, #fff8e4);
}

.scenario-grid article:nth-child(3) {
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 44px;
  align-items: start;
  padding: clamp(76px, 9vw, 116px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(135deg, #fffdf4 0%, #f3fbf0 58%, #edf5ff 100%);
}

.trust-section > div,
.trust-list {
  max-width: 590px;
}

.trust-section > div {
  justify-self: end;
}

.trust-list {
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
}

.trust-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  padding: 18px;
  color: #344137;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(226, 233, 223, 0.9);
  border-radius: 8px;
  font-weight: 660;
  line-height: 1.65;
}

.trust-list span {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(47, 183, 90, 0.14);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px clamp(20px, 5vw, 72px);
  color: rgba(246, 248, 242, 0.72);
  background: var(--ink);
}

.site-footer strong {
  color: #fff;
  font-size: 17px;
}

.site-footer p {
  margin: 6px 0 0;
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
  font-size: 13px;
  font-weight: 760;
}

.site-footer a:hover {
  color: #fff;
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a.is-active {
    background: var(--green-soft);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 6px;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: min(780px, calc(100svh - 88px));
    align-items: start;
    padding-top: 50px;
    background:
      linear-gradient(180deg, rgba(251, 251, 244, 0.98) 0%, rgba(251, 251, 244, 0.91) 48%, rgba(251, 251, 244, 0.48) 100%),
      linear-gradient(135deg, #fffdf3 0%, #f1fbf0 55%, #eaf3ff 100%);
  }

  .hero-inner {
    width: min(610px, 100%);
  }

  .hero-media {
    top: auto;
    height: 46%;
  }

  .hero-shot {
    width: clamp(122px, 32vw, 210px);
    border-width: 6px;
    border-radius: 28px;
  }

  .hero-shot-main {
    right: 8%;
    top: auto;
    bottom: 4px;
  }

  .hero-shot-left {
    left: 8%;
    right: auto;
    bottom: -10px;
    transform: rotate(-5deg) scale(0.78);
  }

  .hero-shot-right {
    right: -2%;
    bottom: -22px;
    transform: rotate(6deg) scale(0.7);
  }

  .quick-grid,
  .flow-list,
  .feature-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .preview-copy,
  .trust-section > div,
  .phone-preview,
  .trust-list {
    justify-self: center;
    max-width: 680px;
  }

  .phone-preview {
    width: min(300px, 76vw);
  }
}

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

  .brand span {
    font-size: 15px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

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

  .hero {
    min-height: min(720px, calc(100svh - 78px));
    padding: 40px 18px 58px;
  }

  .hero-copy {
    max-width: 95%;
  }

  .hero-actions {
    gap: 10px;
  }

  .button {
    flex: 1 1 0;
    min-width: 0;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 22px;
  }

  .hero-facts div {
    padding: 8px 7px;
    background: rgba(255, 255, 255, 0.94);
  }

  .hero-facts dt {
    font-size: 16px;
  }

  .hero-facts dd {
    margin-top: 3px;
    font-size: 11px;
  }

  .hero-shot {
    width: clamp(112px, 38vw, 156px);
  }

  .hero-shot-main {
    right: 15%;
    bottom: 0;
  }

  .hero-shot-left {
    left: -4%;
    bottom: -20px;
  }

  .hero-shot-right {
    right: -10%;
    bottom: -28px;
  }

  .quick-grid,
  .flow-list,
  .feature-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .quick-grid p {
    min-height: auto;
    padding: 8px 0;
  }

  .flow-list li,
  .feature-card,
  .scenario-grid article {
    min-height: auto;
  }

  .preview-section {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .preview-tab {
    min-width: 0;
    padding: 0 8px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
