:root {
  color: #092f55;
  background: #eaf7ff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --blue-950: #06365f;
  --blue-800: #075f9f;
  --blue-600: #078fdc;
  --blue-500: #18a8ed;
  --blue-200: #aee7ff;
  --gold: #ffd94f;
  --panel: rgba(255, 255, 255, 0.88);
  --line: rgba(40, 156, 219, 0.18);
  --shadow: 0 18px 52px rgba(0, 102, 170, 0.16);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 7%, rgba(255, 255, 255, 0.95) 0 4%, transparent 23%),
    linear-gradient(180deg, #0a9bea 0, #66cfff 22rem, #eaf8ff 46rem, #f5fbff 100%);
}

button { font: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid rgba(255, 217, 79, 0.9); outline-offset: 3px; }

.sky { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sky__light {
  position: absolute; width: 28rem; height: 28rem; right: -9rem; top: -13rem;
  border-radius: 50%; background: rgba(255,255,255,.28); filter: blur(10px);
}
.cloud { position: absolute; width: 13rem; height: 4.4rem; border-radius: 50%; background: rgba(255,255,255,.42); filter: blur(1px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 6.5rem; height: 6.5rem; left: 2rem; top: -2.8rem; }
.cloud::after { width: 8rem; height: 8rem; right: 1rem; top: -4rem; }
.cloud--one { left: -5rem; top: 13rem; transform: scale(.85); }
.cloud--two { right: -7rem; top: 25rem; transform: scale(1.15); opacity: .6; }
.cloud--three { left: -4rem; top: 58rem; opacity: .35; }

.page-shell {
  position: relative;
  width: min(100%, 34rem);
  margin: 0 auto;
  padding: max(1rem, env(safe-area-inset-top)) 1rem calc(2rem + env(safe-area-inset-bottom));
}

.brand-bar { display: flex; align-items: center; gap: .75rem; color: #fff; margin: .25rem .2rem 1.25rem; }
.brand-bar img { width: 3rem; height: 3rem; border-radius: 1rem; box-shadow: 0 8px 22px rgba(0,74,128,.24); }
.brand-bar div { display: grid; gap: .08rem; }
.brand-bar strong { font-size: 1.08rem; letter-spacing: .04em; }
.brand-bar span { font-size: .72rem; opacity: .86; }
.official-pill { margin-left: auto; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; padding: .35rem .7rem; background: rgba(255,255,255,.16); backdrop-filter: blur(10px); }

.hero-card {
  position: relative; min-height: 15.5rem; padding: 2rem 1.5rem; overflow: hidden;
  border-radius: 2rem; color: #fff;
  background:
    linear-gradient(145deg, rgba(4,86,161,.96), rgba(12,168,234,.86)),
    url("./assets/people-cloud-chat-logo-v1.png") 115% 130% / 14rem no-repeat;
  box-shadow: 0 22px 60px rgba(0, 88, 158, .28), inset 0 1px 0 rgba(255,255,255,.28);
}
.hero-card::after { content: ""; position: absolute; inset: auto -12% -44% 25%; height: 13rem; background: rgba(255,255,255,.13); border-radius: 50%; filter: blur(3px); }
.hero-card__eyebrow { display: block; font-size: .68rem; letter-spacing: .18em; opacity: .72; }
.hero-card h1 { position: relative; z-index: 1; margin: 1rem 0 .7rem; font-size: clamp(2rem, 9vw, 3rem); line-height: 1.16; letter-spacing: -.03em; }
.hero-card h1 em { color: var(--gold); font-style: normal; text-shadow: 0 3px 12px rgba(0,45,88,.22); }
.hero-card p { position: relative; z-index: 1; margin: 0; font-size: .92rem; opacity: .82; }
.hero-card__clouds { position: absolute; right: -1rem; bottom: -2rem; width: 15rem; height: 7rem; border-radius: 60% 30% 0 0; background: rgba(255,255,255,.24); filter: blur(2px); }

.invite-card, .download-card {
  position: relative; margin-top: 1rem; border: 1px solid rgba(255,255,255,.86); border-radius: 1.75rem;
  background: var(--panel); box-shadow: var(--shadow); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.invite-card { padding: 1.1rem; }
.profile-row { display: flex; align-items: center; gap: .85rem; }
.avatar-wrap { flex: 0 0 auto; display: grid; place-items: center; width: 4.3rem; height: 4.3rem; overflow: hidden; border: 3px solid #fff; border-radius: 1.35rem; color: #fff; background: linear-gradient(145deg, #35c4f6, #0788dc); box-shadow: 0 10px 26px rgba(0,127,203,.23); }
.avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-wrap span { font-size: 1.7rem; font-weight: 700; }
.profile-copy { min-width: 0; display: grid; flex: 1; gap: .25rem; }
.profile-copy > span { color: #6b8aa4; font-size: .72rem; }
.profile-copy strong { overflow: hidden; font-size: 1.25rem; white-space: nowrap; text-overflow: ellipsis; }
.profile-copy small { color: #7694aa; }
.verified-mark { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: #fff; background: #1fb189; box-shadow: 0 5px 14px rgba(31,177,137,.25); }

.invite-code-panel { display: flex; align-items: center; gap: .75rem; margin-top: 1rem; padding: 1rem; border: 1px solid rgba(24,168,237,.16); border-radius: 1.25rem; background: linear-gradient(135deg, rgba(237,250,255,.95), rgba(255,255,255,.92)); }
.invite-code-panel > div { min-width: 0; display: grid; flex: 1; gap: .12rem; }
.invite-code-panel span, .invite-code-panel small { color: #6e8ea7; font-size: .7rem; }
.invite-code-panel strong { color: #087fc5; font-size: 1.7rem; letter-spacing: .16em; }

.download-card { padding: 1.35rem; }
.section-heading { text-align: center; }
.section-heading > span { color: #1196db; font-size: .66rem; font-weight: 700; letter-spacing: .18em; }
.section-heading h2 { margin: .35rem 0 .4rem; font-size: 1.3rem; }
.section-heading p { margin: 0; color: #7591a8; font-size: .8rem; line-height: 1.55; }
.section-heading--left { text-align: left; }

.inline-status { min-height: 1.1rem; margin: .6rem 0 0; color: #6f8da4; font-size: .7rem; text-align: center; }
.inline-status[data-error="true"] { color: #d75c53; }
.retry-button { display: block; min-height: 2.7rem; margin: .65rem auto 0; padding: .55rem 1rem; border: 1px solid rgba(8,125,202,.24); border-radius: 999px; color: #0878bd; font-size: .78rem; font-weight: 700; background: rgba(255,255,255,.9); box-shadow: 0 7px 18px rgba(8,125,202,.1); }
.retry-button:active { transform: translateY(1px); }

.download-card { margin-bottom: 1rem; }
.download-button { display: flex; align-items: center; width: 100%; min-height: 4.25rem; margin-top: .8rem; padding: .7rem .85rem; border: 0; border-radius: 1.25rem; color: #fff; text-align: left; background: linear-gradient(135deg, #087dca, #14b4eb); box-shadow: 0 12px 28px rgba(8,125,202,.22); }
.download-button > span:nth-child(2) { display: grid; flex: 1; gap: .12rem; }
.download-button small { opacity: .72; }
.download-button strong { font-size: .95rem; }
.download-button b { font-size: 1.8rem; font-weight: 300; }
.download-button:disabled { opacity: .58; box-shadow: none; }
.download-button:disabled { color: #6d8aa1; background: #edf6fb; }
.platform-icon { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; margin-right: .8rem; border-radius: .85rem; color: #087bc4; font-weight: 800; background: #fff; }
.platform-icon--ios { color: #7995a8; }
.load-state { margin-top: .9rem; padding: .8rem .9rem; border: 1px solid rgba(24,168,237,.13); border-radius: 1rem; background: rgba(238,248,254,.86); text-align: center; }
.load-state p { margin: 0; color: #6f8da4; font-size: .74rem; line-height: 1.5; }
.load-state p[data-error="true"] { color: #d75c53; }
.download-note { margin: .85rem 0 0; color: #7290a8; font-size: .68rem; text-align: center; }
.download-note span { color: #1baa84; }

.page-footer { display: grid; justify-items: center; gap: .25rem; padding: 1.5rem 1rem calc(.5rem + env(safe-area-inset-bottom)); color: rgba(8,75,117,.58); text-align: center; }
.page-footer img { width: 2.8rem; height: 2.8rem; border-radius: .9rem; }
.page-footer p { margin: .35rem 0 0; font-size: .75rem; }
.page-footer span { font-size: .65rem; }

@media (min-width: 36rem) {
  .page-shell { padding-inline: 0; }
  .hero-card { min-height: 17rem; }
}

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