:root {
  --ink: #15211d;
  --muted: #5d6a65;
  --green: #2baa72;
  --green-deep: #0c2c24;
  --line: rgba(19, 46, 38, 0.14);
  --mist: #f4faf7;
  --gold: #f2cd7d;
  --page: #fbfdfc;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1220px) / 2));
  color: #10221c;
  background: rgba(248, 252, 250, 0.88);
  border-bottom: 1px solid rgba(255,255,255,0.62);
  box-shadow: 0 8px 28px rgba(21, 54, 44, 0.08);
  backdrop-filter: blur(18px) saturate(130%);
}
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand img { border-radius: 10px; box-shadow: 0 5px 16px rgba(33, 114, 90, 0.18); }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 4px; color: #60726b; font-size: 10px; }
.site-header nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 600; }
.site-header nav a { position: relative; white-space: nowrap; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--green); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.store-link { justify-self: end; padding: 8px 18px; color: #fff; background: #101514; border-radius: 7px; font-size: 13px; font-weight: 700; }

.hero {
  position: relative;
  min-height: 660px;
  height: min(820px, 88svh);
  overflow: hidden;
  color: #fff;
}
.hero__image { position: absolute; inset: 0; background: #183d31 url("/assets/hero-forest.jpg") 50% 35% / cover no-repeat; transform: scale(1.01); }
.hero__shade { position: absolute; inset: 0; background: rgba(5, 24, 18, 0.46); box-shadow: inset 0 -180px 150px rgba(2, 24, 17, 0.34); }
.hero__content {
  position: relative;
  z-index: 2;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: max(132px, 17svh);
}
.hero__logo { width: 118px; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 1px solid rgba(255,255,255,.72); box-shadow: 0 18px 56px rgba(5,32,24,.32); }
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero .eyebrow { margin-top: 24px; color: #d3f4e5; }
h1, h2, h3, p { letter-spacing: 0; }
.hero h1 { margin: 0; max-width: 560px; font-size: clamp(54px, 7vw, 94px); line-height: 1; font-weight: 750; text-shadow: 0 4px 24px rgba(0,0,0,.26); }
.hero__english { margin: 9px 0 0; font-size: 24px; font-weight: 600; }
.hero__lead { max-width: 520px; margin: 18px 0 0; color: rgba(255,255,255,.9); font-size: 19px; line-height: 1.75; }
.hero__actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-width: 182px; height: 58px; padding: 8px 17px; color: #fff; background: #080b0a; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; box-shadow: 0 11px 28px rgba(0,0,0,.16); }
.store-badge:hover { background: #1b211f; transform: translateY(-1px); }
.apple-mark { font-size: 35px; line-height: 1; }
.store-badge > span:last-child { display: grid; line-height: 1.05; }
.store-badge small { font-size: 10px; }
.store-badge strong { margin-top: 3px; font-size: 20px; }
.release-note { color: rgba(255,255,255,.78); font-size: 13px; }
.hero__next { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 13px; font-weight: 700; white-space: nowrap; }
.hero__next span { display: inline-block; margin-left: 8px; }

.section { padding: 112px max(24px, calc((100vw - 1220px) / 2)); }
.section-heading { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-heading h2, .universe h2, .privacy h2, .final-cta h2 { margin: 0; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.18; }
.section-heading > p:last-child { margin: 20px auto 0; max-width: 650px; color: var(--muted); font-size: 17px; }

.product { overflow: hidden; background: #f8fbfa; }
.screenshots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 5vw, 70px); align-items: start; }
.phone-shot { margin: 0; min-width: 0; }
.phone-shot--raised { transform: translateY(-20px); }
.phone-frame { position: relative; overflow: hidden; width: min(100%, 326px); aspect-ratio: 1206 / 2462; margin: 0 auto; padding: 7px; background: #111715; border: 2px solid #303a36; border-radius: 46px; box-shadow: 0 28px 64px rgba(25, 56, 46, 0.18), 0 5px 15px rgba(0,0,0,.12); }
.phone-frame::before { content: ""; position: absolute; z-index: 2; top: 13px; left: 50%; width: 28%; height: 18px; transform: translateX(-50%); background: #080b0a; border-radius: 11px; }
.phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; }
.phone-shot figcaption { display: grid; margin-top: 24px; text-align: center; }
.phone-shot figcaption strong { font-size: 19px; }
.phone-shot figcaption span { margin-top: 4px; color: var(--muted); font-size: 14px; }

.universe { min-height: 560px; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 84px; align-items: center; padding: 96px max(24px, calc((100vw - 1220px) / 2)); color: #f6ebcf; background: #080910; overflow: hidden; }
.universe .eyebrow { color: var(--gold); }
.universe__copy p:not(.eyebrow) { max-width: 520px; color: #bdb7a9; font-size: 17px; }
.text-link { display: inline-flex; gap: 14px; margin-top: 18px; padding-bottom: 5px; color: var(--gold); border-bottom: 1px solid rgba(242,205,125,.55); font-weight: 700; }
.constellation { position: relative; min-height: 390px; }
.constellation::before, .constellation::after { content: ""; position: absolute; left: 5%; right: 7%; height: 1px; background: rgba(242,205,125,.22); transform: rotate(9deg); transform-origin: left; }
.constellation::before { top: 32%; }
.constellation::after { top: 68%; transform: rotate(-8deg); }
.constellation span { position: absolute; left: var(--x); top: var(--y); padding: 12px 18px; color: #e7ca8e; background: #18171a; border: 1px solid rgba(242,205,125,.45); border-radius: 7px; box-shadow: 0 0 22px rgba(242,205,125,.1); font-size: 14px; white-space: nowrap; }
.constellation span::after { content: ""; position: absolute; width: 5px; height: 5px; right: -26px; top: 50%; background: var(--gold); border-radius: 50%; box-shadow: 0 0 14px var(--gold); }

.how { background: #f6faf7; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.story-grid article { position: relative; }
.story-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; border: 1px solid rgba(38,66,55,.12); }
.step { display: block; margin-top: 22px; color: var(--green); font-size: 12px; font-weight: 800; }
.story-grid h3 { margin: 5px 0 7px; font-size: 22px; }
.story-grid p { margin: 0; color: var(--muted); }

.privacy { display: grid; grid-template-columns: .86fr 1.14fr; gap: 100px; align-items: start; background: #fff; }
.privacy__intro > p:last-child { color: var(--muted); font-size: 17px; }
.principles { border-top: 1px solid var(--line); }
.principles article { display: grid; grid-template-columns: 48px 1fr; column-gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.principles span { grid-row: span 2; color: var(--green); font-size: 13px; font-weight: 800; }
.principles h3 { margin: 0 0 3px; font-size: 19px; }
.principles p { margin: 0; color: var(--muted); }

.final-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding: 76px max(24px, calc((100vw - 1100px) / 2)); color: #fff; background: var(--green-deep); }
.final-cta > img { border-radius: 20px; }
.final-cta h2 { font-size: clamp(30px, 3.2vw, 44px); }
.final-cta p { margin: 6px 0 0; color: #bcd4cc; }
.final-cta .store-badge { justify-self: end; width: max-content; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 112px; padding: 24px max(24px, calc((100vw - 1220px) / 2)); color: #6b7672; background: #f4f7f5; font-size: 13px; }
.brand--footer strong { color: var(--ink); }
.footer-links { display: flex; gap: 24px; }
footer > p { justify-self: end; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { height: 84svh; min-height: 640px; }
  .hero__content { width: min(100% - 40px, 680px); padding-top: 122px; }
  .hero__image { background-position: 50% 27%; }
  .hero__logo { width: 90px; border-radius: 20px; }
  .hero h1 { font-size: 58px; }
  .hero__lead { max-width: 430px; font-size: 17px; }
  .section { padding: 84px 24px; }
  .screenshots { gap: 22px; }
  .phone-frame { border-radius: 34px; }
  .phone-frame img { border-radius: 27px; }
  .universe, .privacy { grid-template-columns: 1fr; gap: 56px; }
  .constellation { min-height: 350px; }
  .story-grid { gap: 20px; }
  .final-cta { grid-template-columns: auto 1fr; }
  .final-cta .store-badge { grid-column: 2; justify-self: start; }
  footer { grid-template-columns: 1fr auto; }
  footer > p { display: none; }
}

@media (max-width: 640px) {
  .site-header { height: 64px; padding: 0 16px; }
  .brand img { width: 40px; height: 40px; border-radius: 9px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 9px; }
  .store-link--header { padding: 7px 12px; font-size: 12px; }
  .hero { min-height: 610px; height: 82svh; }
  .hero__content { width: calc(100% - 32px); padding-top: 104px; }
  .hero__image { background-position: 53% 24%; }
  .hero__shade { background: rgba(4, 23, 17, .52); box-shadow: inset 0 -180px 140px rgba(2,18,13,.3); }
  .hero__logo { width: 74px; border-radius: 17px; }
  .hero .eyebrow { margin-top: 18px; }
  .hero h1 { font-size: 50px; }
  .hero__english { font-size: 19px; }
  .hero__lead { max-width: 340px; margin-top: 14px; font-size: 15px; line-height: 1.7; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 20px; }
  .store-badge { height: 53px; min-width: 170px; }
  .store-badge strong { font-size: 18px; }
  .hero__next { bottom: 13px; }
  .section { padding: 72px 20px; }
  .section-heading { margin-bottom: 40px; text-align: left; }
  .section-heading h2, .universe h2, .privacy h2 { font-size: 33px; }
  .section-heading > p:last-child { font-size: 15px; }
  .screenshots { width: calc(100vw - 20px); margin-right: -20px; padding-right: 20px; display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .screenshots::-webkit-scrollbar { display: none; }
  .phone-shot { flex: 0 0 min(76vw, 300px); scroll-snap-align: center; }
  .phone-shot--raised { transform: none; }
  .phone-frame { border-radius: 39px; }
  .phone-frame img { border-radius: 32px; }
  .universe { min-height: 720px; padding: 76px 20px; gap: 22px; }
  .universe__copy p:not(.eyebrow) { font-size: 15px; }
  .constellation { min-height: 360px; transform: scale(.92); transform-origin: center top; }
  .constellation span { padding: 10px 12px; font-size: 12px; }
  .story-grid { grid-template-columns: 1fr; gap: 46px; }
  .story-grid article { display: grid; grid-template-columns: 108px 1fr; column-gap: 18px; align-items: start; }
  .story-grid img { grid-row: 1 / span 3; width: 108px; aspect-ratio: 3 / 4; }
  .step { margin: 0; }
  .story-grid h3 { margin: 2px 0 5px; font-size: 19px; }
  .story-grid p { font-size: 14px; }
  .privacy { gap: 42px; }
  .principles article { grid-template-columns: 36px 1fr; }
  .final-cta { display: flex; flex-direction: column; align-items: flex-start; padding: 64px 20px; }
  .final-cta > img { width: 74px; height: 74px; border-radius: 17px; }
  .final-cta h2 { font-size: 32px; }
  footer { grid-template-columns: 1fr; align-items: start; padding: 32px 20px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
