:root {
  color-scheme: dark;
  --canvas: #16080b;
  --surface: rgba(55, 17, 24, 0.84);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: #c0a3a8;
  --accent: #ee1934;
  --accent-bright: #ff4058;
  --focus: #aeb9ff;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Thonburi, "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #54131d 0, var(--canvas) 46%, #090506 100%);
}

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.download-card {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  padding: 34px 24px 26px;
  text-align: center;
  background: linear-gradient(145deg, rgba(83, 25, 35, 0.92), var(--surface));
  border: 1px solid var(--surface-border);
  border-radius: 30px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand img { display: block; width: min(220px, 78%); height: auto; margin: 0 auto; }
.brand span { display: block; margin-top: 11px; color: #e2b3b9; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; }

.hero { margin: 37px 0 30px; }
.android-mark { display: grid; width: 72px; height: 72px; margin: 0 auto 21px; place-items: center; color: #fff; background: linear-gradient(145deg, var(--accent-bright), var(--accent)); border-radius: 24px; box-shadow: 0 13px 28px rgba(238, 25, 52, 0.34); transform: rotate(-6deg); }
.android-mark svg { width: 39px; height: 39px; transform: rotate(6deg); }
.eyebrow { margin: 0 0 9px; color: #f8a3ae; font-size: 11px; font-weight: 800; letter-spacing: 0.17em; }
h1 { margin: 0; font-size: clamp(27px, 7vw, 34px); line-height: 1.18; letter-spacing: -0.045em; }
.subtitle { margin: 13px 0 0; color: var(--muted); font-size: 15px; }

.download-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 11px 15px;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  background: linear-gradient(105deg, var(--accent), var(--accent-bright));
  border: 0;
  border-radius: 19px;
  box-shadow: 0 14px 27px rgba(238, 25, 52, 0.25);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.download-button:hover { transform: translateY(-2px); box-shadow: 0 18px 31px rgba(238, 25, 52, 0.33); }
.download-button:active { transform: translateY(0); }
.download-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.download-button:disabled { cursor: not-allowed; opacity: 0.55; filter: grayscale(0.32); }
.ios-button {
  display: flex;
  width: 100%;
  min-height: 62px;
  margin-top: 12px;
  padding: 10px 15px;
  align-items: center;
  gap: 12px;
  color: #f4e8ea;
  text-align: left;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 19px;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.ios-button:hover { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }
.ios-button:active { transform: translateY(0); }
.ios-button:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.ios-button .download-icon { background: rgba(255, 255, 255, 0.12); }
.download-icon { display: grid; flex: 0 0 auto; width: 41px; height: 41px; place-items: center; background: rgba(255, 255, 255, 0.17); border-radius: 13px; }
.download-icon svg { width: 21px; height: 21px; }
.download-button strong, .download-button small { display: block; }
.download-button strong { font-size: 16px; }
.download-button small { margin-top: 3px; font-size: 11px; opacity: 0.78; }
.button-arrow { margin-left: auto; font-size: 25px; font-weight: 300; }
.download-status { min-height: 18px; margin: 12px 0 0; color: #f3b7bf; font-size: 12px; }

.reassurance { display: flex; justify-content: center; gap: 12px; margin-top: 18px; color: #bbb9cf; font-size: 11px; white-space: nowrap; }
.reassurance i { display: inline-grid; width: 14px; height: 14px; margin-right: 3px; place-items: center; color: #ffccd2; font-size: 10px; font-style: normal; border: 1px solid rgba(255, 129, 145, 0.55); border-radius: 50%; }

.orb { position: absolute; width: 220px; aspect-ratio: 1; border-radius: 50%; filter: blur(3px); opacity: 0.45; }
.orb-one { top: -90px; left: -120px; background: #a90d22; }
.orb-two { right: -120px; bottom: -120px; background: #d01c30; }

@media (max-width: 370px) {
  .download-card { padding-right: 18px; padding-left: 18px; border-radius: 25px; }
  .reassurance { gap: 8px; font-size: 10px; }
}

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