:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #172033;
  --muted: #64748b;
  --line: #dfe7f2;
  --primary: #246bfe;
  --primary-dark: #133b91;
  --green: #00a886;
  --gold: #e6a817;
  --cyan: #0e7490;
  --slate: #273449;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 70px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(223, 231, 242, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 22px rgba(36, 107, 254, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav a:hover::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1fr);
  align-items: center;
  padding: 76px clamp(20px, 5vw, 86px) 126px;
  background:
    radial-gradient(circle at 82% 22%, rgba(36, 107, 254, 0.18), transparent 28%),
    radial-gradient(circle at 66% 76%, rgba(0, 168, 134, 0.16), transparent 26%),
    linear-gradient(135deg, #f7fbff 0%, #eef5ff 46%, #f6fbf8 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(245, 247, 251, 0.92) 0%, rgba(245, 247, 251, 0.74) 44%, rgba(245, 247, 251, 0.2) 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 70%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #415065;
  font-size: 14px;
  font-weight: 900;
}

.brand-row img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 1.04;
  font-weight: 950;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.15;
  font-weight: 950;
}

h3 {
  font-size: 21px;
}

.hero-content p,
.section-copy p,
.child-copy p,
.download-section p {
  color: #43536a;
  font-size: 18px;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 52px;
  border-radius: 14px;
  padding: 0 24px;
  font-weight: 950;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 18px 38px rgba(36, 107, 254, 0.28);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary);
}

.hero-phone-stack {
  position: relative;
  z-index: 2;
  min-height: 640px;
}

.phone-shot {
  position: absolute;
  width: min(286px, 36vw);
  border-radius: 34px;
  border: 8px solid #172033;
  background: #fff;
  box-shadow: 0 30px 80px rgba(23, 32, 51, 0.2);
}

.shot-a {
  right: 25%;
  top: 4%;
  animation: floatMain 5.6s ease-in-out infinite;
}

.shot-b {
  right: 2%;
  top: 17%;
  transform: rotate(6deg);
  animation: floatSide 6.2s ease-in-out infinite;
}

.metric-bar {
  position: relative;
  z-index: 5;
  width: min(1140px, calc(100% - 40px));
  margin: -78px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(39, 52, 73, 0.14);
}

.metric-bar div {
  min-height: 112px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.metric-bar div:last-child {
  border-right: 0;
}

.metric-bar strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.metric-bar span {
  color: var(--muted);
  line-height: 1.55;
}

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

.section-copy {
  max-width: 760px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 950;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card,
.screenshot-card,
.flow-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(39, 52, 73, 0.08);
}

.feature-card {
  min-height: 254px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.screenshot-card:hover,
.flow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(39, 52, 73, 0.13);
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 14px;
  color: #fff;
  font-weight: 950;
}

.mark-lock {
  background: var(--slate);
}

.mark-green {
  background: var(--green);
}

.mark-cyan {
  background: var(--cyan);
}

.mark-gold {
  background: var(--gold);
}

.feature-card p,
.flow-card p {
  color: var(--muted);
  line-height: 1.72;
}

.screens-section {
  padding: 52px;
  border-radius: 28px;
  background: #ebf3ff;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}

.screenshot-card {
  margin: 0;
  padding: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #f8fbff;
}

.screenshot-card figcaption {
  padding: 14px 4px 2px;
  color: var(--text);
  font-weight: 900;
  text-align: center;
}

.child-section {
  display: grid;
  grid-template-columns: 1fr 0.86fr;
  gap: 48px;
  align-items: center;
}

.child-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.child-copy li {
  padding: 15px 18px;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  background: #fff;
  color: #344255;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(39, 52, 73, 0.07);
}

.child-device {
  position: relative;
  min-height: 580px;
}

.device-shot {
  width: min(318px, 78vw);
  margin: 0 auto;
  border-radius: 36px;
  border: 8px solid #172033;
  background: #fff;
  box-shadow: 0 26px 74px rgba(23, 32, 51, 0.2);
  animation: floatMain 5.8s ease-in-out infinite;
}

.device-badge {
  position: absolute;
  left: 8%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(39, 52, 73, 0.14);
  font-weight: 950;
}

.device-badge img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.flow-section {
  padding: 52px;
  border-radius: 28px;
  background: #f1fbf8;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.flow-card {
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.flow-card strong {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.download-section {
  width: min(1140px, calc(100% - 40px));
  margin: 96px auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 36px;
  align-items: center;
  padding: 52px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(36, 107, 254, 0.16), rgba(0, 168, 134, 0.13)),
    #172033;
  color: #fff;
  box-shadow: 0 28px 76px rgba(23, 32, 51, 0.24);
}

.download-section .eyebrow,
.download-section p {
  color: #dbe8ff;
}

.download-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
  transition: transform 180ms ease, background 180ms ease;
}

.download-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.17);
}

.download-card img {
  width: 62px;
  height: 62px;
  border-radius: 16px;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card strong {
  font-size: 18px;
}

.download-card small {
  margin-top: 5px;
  color: #cfdbef;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(18px, 4vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatMain {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes floatSide {
  0%, 100% {
    transform: rotate(6deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(16px);
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-bottom: 160px;
  }

  .hero-phone-stack {
    min-height: 520px;
    margin-top: 30px;
  }

  .shot-a {
    right: 42%;
  }

  .shot-b {
    right: 16%;
  }

  .metric-bar,
  .feature-grid,
  .screens-grid,
  .child-section,
  .flow-grid,
  .download-section,
  .download-list {
    grid-template-columns: 1fr 1fr;
  }

  .metric-bar div:nth-child(2) {
    border-right: 0;
  }

  .metric-bar div {
    border-bottom: 1px solid var(--line);
  }

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

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

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero-phone-stack {
    min-height: 420px;
  }

  .phone-shot {
    width: 210px;
    border-width: 6px;
  }

  .shot-a {
    right: 36%;
  }

  .shot-b {
    right: 3%;
  }

  .metric-bar,
  .feature-grid,
  .screens-grid,
  .flow-grid,
  .download-list {
    grid-template-columns: 1fr;
  }

  .metric-bar div {
    border-right: 0;
  }

  .screens-section,
  .flow-section,
  .download-section {
    padding: 28px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
