:root {
  color-scheme: light;
  --ink: #17181c;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --line: #e5e7eb;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --blue: #3b63f6;
  --blue-soft: #eef3ff;
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(229, 231, 235, 0.84);
  background: rgba(247, 248, 250, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand {
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.brand-mark {
  width: 30px;
  height: 30px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.72);
}

.nav-links {
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

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

.hero,
.features-section,
.work-section,
.scan-section,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 14px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.image2-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 16px;
  padding: 0 12px;
  border: 1px solid rgba(59, 99, 246, 0.22);
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 900;
}

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

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.8vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.hero-text {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.primary-action {
  color: #fff;
  background: var(--ink);
}

.secondary-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: #fff;
}

.preview-panel {
  overflow: visible;
}

.preview-body {
  height: auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
  border-radius: 8px;
  background: transparent;
}

.phone-preview {
  object-fit: contain;
  object-position: top;
  width: min(330px, 100%);
  height: auto;
  aspect-ratio: 1080 / 2340;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
}

.features-section,
.work-section {
  padding-top: 72px;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

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

.feature-list article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-list span {
  display: block;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.feature-list h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.feature-list p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.work-grid {
  width: min(940px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 12px;
  grid-auto-flow: dense;
}

.work-card {
  position: relative;
  height: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: zoom-in;
}

.work-card.large {
  grid-row: span 2;
  height: auto;
}

.work-card.wide {
  grid-column: span 2;
  height: auto;
}

.work-card img {
  width: 100%;
  height: auto;
  object-fit: initial;
  transition: transform 240ms ease;
}

.work-card:hover img {
  transform: scale(1.02);
}

.work-card div {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 64px 20px 20px;
  color: #fff;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 82%);
}

.work-card span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  font-weight: 800;
}

.work-card h3 {
  margin-bottom: 0;
  font-size: clamp(20px, 2.5vw, 30px);
  line-height: 1.18;
}

.scan-section {
  margin-top: 84px;
  margin-bottom: 34px;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.scan-section h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.scan-section p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.qr-panel {
  width: 210px;
  margin: 0;
  padding: 14px 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.qr-panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.qr-panel figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.site-footer {
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(17, 24, 39, 0.86);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(1040px, 92vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 920px) {
  .hero,
  .scan-section {
    grid-template-columns: 1fr;
  }

  .preview-body {
    height: auto;
  }

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

  .work-card.large,
  .work-card.wide {
    grid-row: auto;
    grid-column: auto;
    height: auto;
  }

}

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

  .nav-links {
    display: none;
  }

  .hero,
  .features-section,
  .work-section,
  .scan-section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    padding-top: 18px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .preview-body {
    height: auto;
    padding: 0;
  }

  .phone-preview {
    width: min(320px, 100%);
  }

  .feature-list,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .features-section,
  .work-section {
    padding-top: 62px;
  }

  .work-card,
  .work-card.large,
  .work-card.wide {
    height: auto;
  }

  .scan-section {
    padding: 28px 0;
    justify-items: start;
  }
}
