:root {
  --bg: #f6f1e8;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(24, 46, 35, 0.1);
  --text: #173127;
  --muted: #62786d;
  --primary: #244e3b;
  --primary-strong: #173c2b;
  --shadow: 0 28px 90px rgba(18, 35, 28, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shell: min(1160px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(222, 237, 226, 0.94), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(204, 175, 122, 0.18), transparent 22%),
    linear-gradient(180deg, #faf7f1 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-one {
  top: 72px;
  left: 6vw;
  width: 240px;
  height: 240px;
  background: rgba(133, 171, 145, 0.28);
}

.ambient-two {
  top: 34%;
  right: 8vw;
  width: 280px;
  height: 280px;
  background: rgba(198, 154, 85, 0.18);
}

.site-shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 52px;
  height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), #376650);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 36px rgba(23, 60, 43, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
}

.brand-copy strong {
  color: var(--text);
  font-size: 16px;
}

.header-download,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 180ms ease;
}

.header-download,
.button-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 18px 36px rgba(23, 60, 43, 0.2);
}

.header-download:hover,
.button:hover {
  transform: translateY(-1px);
}

.button.is-disabled,
.header-download.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  box-shadow: none;
}

.page {
  padding: 28px 0 84px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 130px);
}

.hero-copy {
  grid-column: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(36, 78, 59, 0.12);
  background: rgba(255, 255, 255, 0.54);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 20px 0 10px;
  font-size: clamp(40px, 8.4vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(16px, 2.8vw, 22px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-text {
  margin: 0;
  max-width: 28ch;
  color: var(--muted);
  font-size: clamp(17px, 2.3vw, 19px);
  line-height: 1.9;
}

.hero-actions {
  margin-top: 28px;
}

.download-status {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  grid-column: 1;
}

.meta-item {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.meta-item {
  padding: 18px;
  border-radius: var(--radius-md);
}

.meta-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.meta-item strong {
  display: block;
  line-height: 1.6;
  font-size: 16px;
}

.hero-media {
  display: grid;
  grid-template-columns: 380px;
  gap: 18px;
  align-items: end;
  justify-content: center;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.media-card {
  overflow: visible;
  border-radius: 18px;
  background: transparent;
  border: none;
  box-shadow: none;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(18, 35, 28, 0.16);
}

.media-phone {
  min-height: auto;
}

.media-phone-only {
  width: min(360px, calc(100vw - 88px));
  transform: translateX(-28px);
}

.device-frame {
  position: relative;
  padding: 14px;
  border-radius: 42px;
  background:
    linear-gradient(180deg, #5d6068 0%, #23252a 12%, #121316 100%);
  box-shadow:
    0 34px 80px rgba(18, 35, 28, 0.24),
    0 8px 20px rgba(10, 11, 13, 0.2);
}

.device-frame::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 41px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.device-frame::after {
  content: "";
  position: absolute;
  top: 140px;
  right: -3px;
  width: 3px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(180deg, #5f636c, #191b20);
  box-shadow:
    -1px 0 0 rgba(255, 255, 255, 0.18),
    0 6px 10px rgba(0, 0, 0, 0.18);
}

.device-island {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 34%;
  min-width: 116px;
  max-width: 138px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #060607 0%, #17191d 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.22);
}

.device-screen {
  overflow: hidden;
  border-radius: 30px;
  background: #0c0d10;
  aspect-ratio: 1080 / 2400;
}

.device-screen img {
  border-radius: 30px;
  box-shadow: none;
  object-fit: cover;
}

.site-footer {
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 8px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 16px;
  }

  .hero-copy,
  .hero-media,
  .hero-meta {
    grid-column: auto;
    grid-row: auto;
  }

  .media-phone,
  .media-card {
    min-height: 260px;
  }

  .hero-media {
    grid-template-columns: 1fr;
    justify-content: center;
    margin-top: 6px;
  }

  .hero-meta {
    margin-top: 14px;
  }

  .media-phone-only {
    width: min(340px, calc(100vw - 88px));
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 16px;
    align-items: center;
    justify-content: center;
  }

  .page {
    padding-top: 18px;
  }

  .header-download {
    display: none;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-media {
    margin-top: 2px;
  }

  .media-phone-only {
    width: min(310px, calc(100vw - 64px));
  }

  .device-frame {
    padding: 16px;
    border-radius: 40px;
  }

  .device-frame::before {
    border-radius: 39px;
  }

  .device-frame::after {
    top: 120px;
    height: 82px;
  }

  .device-island {
    top: 16px;
    min-width: 104px;
    height: 28px;
  }

  .device-screen {
    border-radius: 28px;
  }

  .device-screen img {
    border-radius: 28px;
  }
}
