:root {
  color-scheme: dark;
  --bg: #12171a;
  --panel: #1c2327;
  --panel-2: #242c31;
  --text: #f7f7f2;
  --muted: #9ca3a8;
  --yellow: #ffcc32;
  --pink: #ff3b88;
  --purple: #8a00ff;
  --line: rgba(255, 255, 255, 0.1);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 59, 136, 0.2), transparent 24rem),
    radial-gradient(circle at 80% 0%, rgba(138, 0, 255, 0.24), transparent 28rem),
    var(--bg);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(18, 23, 26, 0.8);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.hero-actions,
.metrics,
.feature-row,
.footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
}

.brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
}

.nav {
  gap: clamp(1rem, 2.5vw, 2rem);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.hero,
.section {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(20rem, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
  min-height: calc(100vh - 4.5rem);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8ch;
  margin-bottom: 1.2rem;
  font-size: clamp(4rem, 11vw, 8.6rem);
  line-height: 0.86;
  letter-spacing: -0.09em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.35rem;
}

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

.hero-text {
  max-width: 34rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.button.primary {
  color: #17191c;
  background: var(--yellow);
  border-color: var(--yellow);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.05);
}

.metrics {
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0;
}

.metrics div {
  min-width: 8.6rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 1rem;
}

.metrics dt {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 950;
}

.metrics dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 12rem;
  gap: 1rem;
  align-items: end;
}

.phone-frame,
.qr-card,
.feature-row article,
.screen-card,
.company-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.phone-frame {
  overflow: hidden;
  padding: 0.55rem;
  border-radius: 2rem;
}

.phone-frame img {
  width: 100%;
  height: 36rem;
  object-fit: cover;
  object-position: top;
  border-radius: 1.45rem;
}

.main-phone {
  transform: rotate(-2deg);
}

.qr-card {
  padding: 1rem;
  text-align: center;
  border-radius: 1.35rem;
}

.qr-card img {
  width: 100%;
  margin-bottom: 0.85rem;
  border-radius: 1rem;
  background: #fff;
}

.qr-card strong,
.qr-card span {
  display: block;
}

.qr-card span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-title {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-title.compact {
  margin-bottom: 1.4rem;
}

.feature-row {
  align-items: stretch;
  gap: 1rem;
}

.feature-row article {
  flex: 1;
  padding: 1.4rem;
  border-radius: 1.4rem;
}

.feature-row span {
  display: inline-flex;
  margin-bottom: 2.8rem;
  color: var(--yellow);
  font-weight: 950;
}

.feature-row p {
  margin-bottom: 0;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  align-items: start;
}

.screen-card {
  overflow: visible;
  margin: 0;
  padding: 0.6rem;
  border-radius: 1.5rem;
}

.screen-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #151b1f;
  border-radius: 1.05rem;
}

.screen-card figcaption {
  padding: 0.9rem 0.5rem 0.35rem;
  color: var(--yellow);
  font-weight: 900;
  background: transparent;
}

.matrix-section {
  display: grid;
  grid-template-columns: 0.55fr 1fr;
  gap: 2rem;
  align-items: start;
}

.matrix-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.matrix-list span {
  padding: 0.8rem 1rem;
  background: rgba(255, 204, 50, 0.08);
  border: 1px solid rgba(255, 204, 50, 0.2);
  border-radius: 999px;
  color: #ffe08a;
  font-weight: 800;
}

.company-card {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.2rem;
  align-items: center;
  padding: clamp(1rem, 3vw, 1.6rem);
  border-radius: 1.8rem;
}

.company-card > div {
  padding: clamp(1rem, 3vw, 2rem);
}

.company-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--yellow);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 900;
  word-break: break-word;
}

.company-card img {
  width: 100%;
  max-height: 38rem;
  object-fit: cover;
  object-position: top;
  border-radius: 1.2rem;
}

.footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem clamp(1rem, 4vw, 4rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

  .hero,
  .matrix-section,
  .company-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .main-phone {
    transform: none;
  }

  .phone-frame img {
    height: 34rem;
  }

  .qr-card {
    display: grid;
    grid-template-columns: 7rem 1fr;
    align-items: center;
    gap: 1rem;
    text-align: left;
  }

  .qr-card img {
    margin-bottom: 0;
  }

  .feature-row {
    flex-direction: column;
  }

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

@media (max-width: 520px) {
  .nav {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .metrics div {
    flex: 1 1 100%;
  }

  .phone-frame img {
    height: 28rem;
  }

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