/* Keep PX uppercase so the host app's pxtorem pass leaves this standalone page untouched. */
:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --bg-soft: #eef4fb;
  --ink: #121521;
  --muted: #5a5f6d;
  --primary: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #1cb884;
  --card: #ffffff;
  --stroke: #e2d9cf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: linear-gradient(
    140deg,
    var(--bg) 0%,
    #eff3ff 50%,
    var(--bg-soft) 100%
  );
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

.page-glow {
  position: fixed;
  z-index: -1;
  top: -40vh;
  right: -20vw;
  width: 60vw;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgb(29 78 216 / 22%), transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}

.site-header,
.hero,
.features,
.guide,
.site-footer {
  width: min(1200px, 100%);
  margin-inline: auto;
}

.site-header {
  padding: 24px 8vw 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
  padding: 9px 13px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 15px;
  background: #090512;
  box-shadow: 0 12px 24px rgb(18 21 33 / 15%);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid rgb(29 78 216 / 25%);
  outline-offset: 3px;
}

.btn.primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-light));
  box-shadow: 0 16px 30px rgb(29 78 216 / 25%);
}

.btn.primary:hover {
  box-shadow: 0 18px 32px rgb(29 78 216 / 32%);
}

.btn.dark {
  color: #fff;
  background: #111827;
  box-shadow: 0 16px 30px rgb(17 24 39 / 22%);
}

.btn.ghost {
  border-color: var(--stroke);
  background: rgb(255 255 255 / 72%);
  box-shadow: 0 8px 18px rgb(18 21 33 / 8%);
  backdrop-filter: blur(10px);
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 40px;
  padding: 60px 8vw 40px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  animation: fade-up 0.9s ease both;
}

.eyebrow {
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: #0b2a6b;
  background: rgb(29 78 216 / 10%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

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

h1,
h2 {
  font-family: "Avenir Next", Inter, "PingFang SC", system-ui, sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 3.6vw, 54px);
  line-height: 1.15;
}

.lead {
  max-width: 480px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.cta-group {
  display: grid;
  width: min(100%, 480px);
  gap: 12px;
  margin-top: 6px;
}

.cta-group .btn {
  width: 100%;
}

.cta-note {
  color: var(--muted);
  font-size: 12px;
}

.hero-visual {
  display: grid;
  min-width: 0;
  place-items: center;
}

.device-stack {
  position: relative;
  width: min(440px, 80vw);
  height: 520px;
}

.device {
  position: absolute;
  display: block;
  height: auto;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 24px;
  box-shadow: 0 30px 50px rgb(9 16 30 / 28%);
}

.shot-main {
  top: 0;
  left: 0;
  width: 88%;
  transform: rotate(-2deg) translateY(10px);
  animation: float-main 6s ease-in-out infinite;
}

.shot-alt {
  z-index: 1;
  top: 18%;
  right: -3%;
  width: 62%;
  transform: rotate(4deg);
  animation: float-alt 7s ease-in-out infinite reverse;
}

.features,
.guide {
  padding: 40px 8vw;
}

.section-title {
  margin-bottom: 28px;
  text-align: center;
}

.section-title h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.feature-card {
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 16px 32px rgb(9 16 30 / 14%);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
  animation: fade-up 0.8s ease both;
}

.feature-card:nth-child(2) {
  animation-delay: 70ms;
}

.feature-card:nth-child(3) {
  animation-delay: 140ms;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 38px rgb(9 16 30 / 18%);
}

.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(18 21 33 / 6%);
  border-radius: 14px;
  color: #13223f;
  font-size: 22px;
  font-weight: 800;
}

.feature-icon-blue {
  background: linear-gradient(145deg, #dce9ff, #eef8ff);
}

.feature-icon-green {
  background: linear-gradient(145deg, #d9f7ec, #f3f5e8);
}

.feature-icon-violet {
  background: linear-gradient(145deg, #ede5ff, #f6edf0);
}

.feature-card h3,
.guide-step h3,
.download-panel h3 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.feature-card p,
.guide-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-steps {
  margin-bottom: 24px;
}

.guide-step {
  padding: 20px;
  border: 1px dashed rgb(17 24 39 / 15%);
  border-radius: 20px;
  background: rgb(255 255 255 / 70%);
}

.guide-step > span {
  color: var(--primary);
  font-family: "Avenir Next", Inter, sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.guide-step h3 {
  margin-top: 8px;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  color: #fff;
  background: #111827;
  box-shadow: 0 20px 36px rgb(9 16 30 / 30%);
}

.download-panel h3 {
  margin-top: 0;
}

.download-panel p {
  margin-bottom: 0;
  color: rgb(255 255 255 / 66%);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel-link {
  border-color: rgb(255 255 255 / 15%);
  color: #fff;
  background: rgb(255 255 255 / 7%);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px 8vw 40px;
  color: var(--muted);
  font-size: 13px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

@keyframes float-main {
  0%,
  100% {
    transform: rotate(-2deg) translateY(10px);
  }
  50% {
    transform: rotate(-2deg) translateY(0);
  }
}

@keyframes float-alt {
  0%,
  100% {
    transform: rotate(4deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-12px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .device-stack {
    height: 420px;
  }

  .feature-grid,
  .guide-steps {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .site-header,
  .hero,
  .features,
  .guide,
  .site-footer {
    padding-right: 6vw;
    padding-left: 6vw;
  }

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

  .brand {
    width: 156px;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
  }

  .hero-visual {
    overflow: hidden;
  }

  .device-stack {
    width: min(100%, 360px);
    height: 360px;
  }

  .shot-main {
    width: 92%;
  }

  .shot-alt {
    top: 17%;
    right: -2%;
    width: 65%;
  }

  .cta-group,
  .cta-group .btn {
    width: 100%;
  }

  .download-buttons {
    width: 100%;
  }

  .download-buttons .btn {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

button {
  font-family: inherit;
  cursor: pointer;
}
.brand {
  gap: 10px;
  height: 56px;
  color: #fff;
}
.brand-symbol {
  color: #3385ff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.brand-name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
}
@media (min-width: 981px) {
  .device-stack {
    height: 640px;
  }
  .shot-main {
    height: 640px;
    object-fit: cover;
    object-position: top;
  }
  .hero {
    padding-bottom: 40px;
  }
}
dialog {
  width: min(420px, calc(100% - 32px));
  border: 0;
  border-radius: 22px;
  padding: 32px;
  color: #121521;
  box-shadow: 0 20px 60px #11182733;
}
dialog::backdrop {
  background: #11182766;
}
dialog h2 {
  font-size: 22px;
  margin: 10px 0 14px;
}
dialog p {
  font-size: 14px;
  color: #5a5f6d;
  line-height: 1.7;
}
.close {
  position: absolute;
  right: 15px;
  top: 10px;
  border: 0;
  background: none;
  font-size: 25px;
  color: #777;
}

/* User-supplied product images, in filename order. */
.brand {
  height: auto;
}
.product-gallery {
  width: min(100%, 360px);
  min-width: 0;
}
.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 45px #09101e26;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-track img {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 100%;
  object-fit: contain;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.gallery-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin-top: 15px;
}
.gallery-nav button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}
.gallery-arrow {
  width: 30px;
  height: 30px;
  background: #ffffffb3;
  color: #36527a;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}
.gallery-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery-dots {
  display: flex;
  gap: 9px;
}
.gallery-dots button {
  width: 27px;
  height: 27px;
  background: #dce4f1;
  border-radius: 50%;
  font-size: 11px;
  color: #667894;
}
.gallery-dots button.active {
  background: #2462ed;
  color: white;
}
.gallery-nav button:focus-visible {
  outline: 3px solid #99bbff;
  outline-offset: 3px;
}
@media (max-width: 980px) {
  .hero-visual {
    overflow: visible;
  }
  .product-gallery {
    width: min(100%, 330px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-track {
    scroll-behavior: auto;
  }
}

.brand svg {
  display: block;
  width: 100%;
  height: auto;
  flex-shrink: 0;
}

/* Supplied square brand artwork. */
.brand {
  width: 72px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: #000;
}
.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
