:root {
  color-scheme: light;
  --bg: #fbfaf6;
  --panel: #ffffff;
  --ink: #151715;
  --muted: #6d716b;
  --line: #e8e2d8;
  --brand: #f47b20;
  --brand-dark: #bf5512;
  --green: #2f6a5d;
  --mint: #cfeee8;
  --cream: #f5ede3;
  --rose: #f6e8df;
  --shadow: 0 28px 90px rgba(40, 49, 39, 0.14);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(251, 250, 246, 0.88);
  border-bottom: 1px solid rgba(232, 226, 216, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.text-link:hover {
  color: var(--brand-dark);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(26px, 6vw, 92px);
  align-items: center;
  width: 100%;
  min-height: calc(100vh - 74px);
  padding: 58px clamp(20px, 5vw, 72px) 54px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251, 250, 246, 0.98) 0%, rgba(251, 250, 246, 0.86) 38%, rgba(251, 250, 246, 0.52) 100%),
    radial-gradient(circle at 82% 15%, rgba(244, 123, 32, 0.2), transparent 36%),
    linear-gradient(145deg, #fbfaf6 0%, #eef6f2 56%, #f7e8db 100%);
}

.hero-bg {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(50vw, 700px);
  height: 54%;
  background: linear-gradient(135deg, rgba(47, 106, 93, 0.1), rgba(244, 123, 32, 0.08));
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 6% 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 9vw, 112px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #3e4a43;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 30px rgba(244, 123, 32, 0.25);
}

.button.secondary {
  background: #fff;
  color: var(--green);
}

.button.large {
  min-height: 54px;
  padding: 15px 22px;
}

.hero-media {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 560px;
}

.carousel-slides {
  position: absolute;
  inset: 36px 0 74px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 70px rgba(40, 49, 39, 0.09);
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px 42px 54px;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.13) saturate(0.98);
}

.carousel-slide figcaption {
  position: absolute;
  left: 28px;
  bottom: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.scale-slide {
  background: #050505;
}

.scale-slide img {
  filter: none;
}

.scale-slide figcaption {
  color: rgba(255, 255, 255, 0.82);
}

.device-strip {
  display: block;
}

.strip-images {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr 0.92fr;
  gap: 18px;
  width: 100%;
  height: calc(100% - 34px);
  align-items: center;
}

.strip-images img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}

.carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.carousel-dots button {
  width: 36px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(21, 23, 21, 0.22);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--brand);
}

.section {
  padding: 88px 0;
}

.section-copy {
  max-width: 720px;
}

.section-copy p,
.section-heading p,
.service-list p,
.device-card p,
.download-section p,
.content-page p,
.content-page li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  min-height: 190px;
  padding: 26px 24px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.feature-grid article:last-child {
  border-right: 0;
}

.service-list article,
.content-page section {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.service-list article {
  padding: 22px;
}

.feature-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--brand);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.phone-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 330px));
  gap: 28px;
  align-items: start;
}

.phone-preview {
  margin: 0;
  overflow: hidden;
  border: 10px solid #151715;
  border-radius: 34px;
  background: #151715;
  box-shadow: 0 24px 70px rgba(33, 49, 39, 0.18);
}

.phone-preview img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
}

.phone-preview figcaption {
  padding: 14px 18px 18px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.device-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.device-card {
  overflow: hidden;
}

.device-card img {
  width: 100%;
  aspect-ratio: 1.34;
  object-fit: contain;
  padding: 18px;
  background: #fff;
}

.device-card h3,
.device-card p {
  padding: 0 20px;
}

.device-card p {
  padding-bottom: 20px;
}

.device-card.wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.device-card.wide img {
  aspect-ratio: 1.6;
  object-fit: contain;
  object-position: center;
  filter: brightness(1.08) saturate(0.96);
}

.device-card.wide div {
  padding: 24px 10px 24px 0;
}

.device-card.scale-card {
  grid-column: span 2;
}

.device-card.scale-card img {
  aspect-ratio: 2.4;
  padding: 22px;
  object-fit: contain;
  background: #050505;
}

.services-section,
.download-section {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 28px;
  align-items: center;
}

.service-list {
  display: grid;
  gap: 12px;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 700;
}

.download-section {
  margin-bottom: 60px;
  padding: 36px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
}

.download-section p,
.download-section .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 2px 0 0;
}

.content-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.content-page h1 {
  font-size: clamp(36px, 6vw, 58px);
}

.content-page section {
  margin-top: 18px;
  padding: 26px;
}

.content-page ul {
  padding-left: 1.3em;
}

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

  .hero,
  .services-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    width: 100%;
    padding-top: 34px;
    min-height: auto;
  }

  .hero-media {
    min-height: 540px;
  }

  .carousel-slides {
    top: 0;
    right: 0;
    width: 100%;
  }


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

  .feature-grid article:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article {
    border-bottom: 1px solid var(--line);
  }

  .device-card.wide {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .device-card.wide div {
    padding: 0 20px 20px;
  }
}

@media (max-width: 620px) {
  .nav {
    gap: 10px;
  }

  .app-meta,
  .feature-grid,
  .device-grid,
  .phone-preview-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(48px, 18vw, 72px);
  }

  .hero-media {
    min-height: 460px;
  }

  .carousel-slides {
    inset: 0 0 62px;
  }

  .carousel-slide {
    padding: 22px 18px 48px;
  }

  .carousel-slide figcaption {
    left: 18px;
    bottom: 18px;
  }

  .strip-images {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .strip-images img {
    max-height: 31%;
  }

  .feature-grid {
    border-bottom: 0;
  }

  .feature-grid article {
    min-height: auto;
    border-right: 0;
  }

  .device-card.wide {
    grid-column: span 1;
  }

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