:root {
  --brand: #0f62fe;
  --brand-deep: #0039a6;
  --leaf: #1f8a4c;
  --ink: #102018;
  --muted: #4a5b52;
  --paper: #f4f7f2;
  --foam: #ffffff;
  --line: rgba(16, 32, 24, 0.12);
  --shadow: 0 24px 60px rgba(8, 40, 24, 0.14);
  --radius: 1.25rem;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "DM Sans", "Noto Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
}

.site-header .wrap,
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.brand-lockup img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #fff;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  background: #b8f0c8;
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 50% 40% at 82% 22%, rgba(167, 243, 188, 0.45), transparent 55%),
    radial-gradient(ellipse 45% 35% at 18% 78%, rgba(15, 98, 254, 0.35), transparent 60%),
    linear-gradient(125deg, #062816 0%, #0b3d2a 28%, #0f62fe 58%, #0a4a30 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% 35% auto -5%;
  height: 70%;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 20%, rgba(184, 240, 200, 0.2) 0 120px, transparent 121px),
    radial-gradient(circle at 55% 65%, rgba(15, 98, 254, 0.25) 0 90px, transparent 91px);
  transform: rotate(-8deg);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(to top, rgba(6, 24, 16, 0.72), transparent);
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: rotate(-8deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-4deg) translate3d(2%, 3%, 0);
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 8rem 0 5.5rem;
  max-width: 40rem;
  animation: rise 0.9s ease both;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 5.8rem);
  line-height: 1.05;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.hero-copy p {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: var(--brand-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
  backdrop-filter: blur(8px);
}

.section {
  padding: 5.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.apps-stage {
  display: grid;
  gap: 1.25rem;
}

.app-feature {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  background: var(--foam);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(16, 40, 28, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.app-feature img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.app-feature h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.app-feature p {
  margin: 0;
  color: var(--muted);
}

.app-feature .meta {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.service-item {
  padding: 1.6rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(15, 98, 254, 0.08), transparent 42%),
    var(--foam);
  border: 1px solid var(--line);
}

.service-item .index {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}

.service-item h3 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.service-item p {
  margin: 0;
  color: var(--muted);
}

.flow-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.flow-step {
  position: relative;
  padding: 1.2rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, #103528, #0b4a2c);
  color: #eafff1;
  min-height: 8.5rem;
}

.flow-step strong {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
}

.flow-step span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.download-band {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  padding: 3rem;
  color: #fff;
  background:
    radial-gradient(circle at 90% 10%, rgba(184, 240, 200, 0.28), transparent 30%),
    linear-gradient(125deg, #0f62fe 0%, #0a4d2d 68%);
}

.download-band h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
}

.download-band p {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero {
  padding: 8.5rem 0 3.5rem;
  color: #fff;
  background:
    linear-gradient(120deg, #0a3d28 0%, #0f62fe 58%, #146b3a 100%);
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.88);
}

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.contact-card,
.info-card {
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--foam);
  border: 1px solid var(--line);
}

.contact-card dt {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  background: #ebf1e8;
}

.site-footer .brand-lockup {
  color: var(--ink);
}

.site-footer .nav {
  color: var(--muted);
}

.site-footer small {
  display: block;
  margin-top: 1.25rem;
  color: var(--muted);
}

.inner-header .brand-lockup,
.inner-header .nav {
  color: #fff;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .service-grid,
  .flow-strip,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .app-feature {
    grid-template-columns: 72px 1fr;
  }

  .app-feature .meta {
    grid-column: 2;
  }

  .download-band {
    padding: 2rem;
  }

  .hero-copy {
    padding-bottom: 4rem;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .site-footer .nav {
    display: flex;
  }
}
