:root {
  --paper: #ffffff;
  --ink: #073f48;
  --ink-soft: #52686a;
  --accent: #ff6506;
  --mint: #daf2e9;
  --line: rgba(7, 63, 72, 0.13);
  --white: #ffffff;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: #ffffff;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-footer img {
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(7, 63, 72, 0.12);
}

main {
  flex: 1 0 auto;
  min-height: 100vh;
}

.hero {
  min-height: 100vh;
  padding: 76px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, 0.96fr);
  gap: 74px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow span {
  width: 28px;
  height: 1px;
  background: var(--accent);
}

h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(48px, 5.25vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 760;
}

h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}

.headline-first-line {
  display: block;
  white-space: nowrap;
}

.hero-description {
  max-width: 590px;
  margin: 27px 0 34px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.85;
}

.primary-actions {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.download-button {
  min-width: 218px;
  min-height: 62px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.download-button:hover { transform: translateY(-2px); }

.download-button:focus-visible,
.download-option:focus-visible,
.modal-close:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid rgba(34, 109, 116, 0.28);
  outline-offset: 3px;
}

.download-button-primary {
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(7, 63, 72, 0.2);
}
.download-button-primary:hover { box-shadow: 0 18px 42px rgba(7, 63, 72, 0.27); }

.download-button-secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(7, 63, 72, 0.06);
}
.download-button-secondary:hover {
  border-color: rgba(7, 63, 72, 0.3);
  background: #fbfdfd;
  box-shadow: 0 14px 30px rgba(7, 63, 72, 0.1);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 23px;
  color: var(--ink-soft);
  font-size: 11px;
}
.trust-row span { display: inline-flex; gap: 7px; align-items: center; }
.trust-row i { width: 5px; height: 5px; border-radius: 50%; background: #3a888c; }

.hero-visual {
  min-height: 530px;
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(7, 63, 72, 0.06);
  border-radius: 50%;
  background: #f2f7f7;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(7, 63, 72, 0.13);
  border-radius: 50%;
}
.orbit-large { width: 520px; height: 520px; }
.orbit-small { width: 365px; height: 365px; border-color: rgba(7, 63, 72, 0.08); }

.phone-frame {
  position: relative;
  z-index: 2;
  width: 250px;
  height: 506px;
  padding: 8px;
  border: 2px solid #143c42;
  border-radius: 42px;
  background: #073f48;
  box-shadow: 0 30px 80px rgba(7, 41, 47, 0.25), 0 4px 0 rgba(255, 255, 255, 0.24) inset;
  transform: rotate(2.4deg);
}

.phone-top {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 4;
  width: 70px;
  height: 20px;
  border-radius: 20px;
  background: #073f48;
  transform: translateX(-50%);
}
.phone-top span { display: block; width: 5px; height: 5px; margin: 7px 0 0 48px; border-radius: 50%; background: #52777a; }

.phone-screen {
  height: 100%;
  padding: 33px 17px 18px;
  overflow: hidden;
  border-radius: 34px;
  background: #ffffff;
  color: var(--ink);
}

.mini-brand { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.mini-brand img { border-radius: 50%; }
.mode-pill { width: fit-content; margin: 23px auto 12px; padding: 6px 11px; border-radius: 20px; background: #e6f4f1; color: #216d71; font-size: 9px; font-weight: 800; }

.timer-face { position: relative; width: 174px; height: 174px; margin: 0 auto; display: grid; place-items: center; align-content: center; }
.timer-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--accent) 0 75%, #e3eceb 75% 100%); }
.timer-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #ffffff; }
.timer-time { position: relative; z-index: 1; font-size: 35px; font-weight: 750; letter-spacing: -0.06em; }
.timer-label { position: relative; z-index: 1; margin-top: 3px; font-size: 8px; color: var(--ink-soft); }

.interval-card { margin-top: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #f8fbfb; }
.interval-card span, .interval-card strong { display: block; }
.interval-card span { color: var(--ink-soft); font-size: 8px; }
.interval-card strong { margin-top: 4px; font-size: 12px; }
.start-button { margin-top: 10px; padding: 12px; border-radius: 13px; background: var(--ink); color: white; text-align: center; font-size: 10px; font-weight: 800; }

.floating-note {
  position: absolute;
  z-index: 4;
  min-width: 156px;
  padding: 13px 15px;
  border: 1px solid rgba(7, 63, 72, 0.09);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 38px rgba(7, 63, 72, 0.1);
  backdrop-filter: blur(14px);
}
.floating-note-top { top: 88px; right: -9px; }
.floating-note-bottom { left: -10px; bottom: 74px; }
.floating-note small, .floating-note strong { display: block; }
.floating-note small { margin-bottom: 2px; color: var(--ink-soft); font-size: 9px; }
.floating-note strong { font-size: 11px; }
.note-dot { width: 23px; height: 23px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(255, 101, 6, 0.1); }
.pause-symbol { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--ink); background: var(--mint); font-size: 10px; font-weight: 900; }

.sound-pulse { position: absolute; z-index: 1; border: 1px solid rgba(7, 63, 72, 0.09); border-radius: 50%; }
.sound-pulse-one { width: 120px; height: 120px; right: 24px; top: 140px; }
.sound-pulse-two { width: 80px; height: 80px; right: 44px; top: 160px; }

.site-footer {
  min-height: 105px;
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 34px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 11px;
}
.site-footer > div { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .footer-meta { display: grid; justify-items: end; gap: 4px; color: var(--ink-soft); font-weight: 400; }

.modal-backdrop[hidden] { display: none !important; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(3, 29, 33, 0.56);
  backdrop-filter: blur(9px);
  animation: modal-fade-in 180ms ease-out;
}

.modal-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.download-modal {
  position: relative;
  width: min(790px, 100%);
  padding: 42px;
  border: 1px solid rgba(7, 63, 72, 0.1);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(3, 29, 33, 0.3);
  animation: modal-rise-in 220ms ease-out;
}

.modal-close {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 26px;
  line-height: 1;
}
.modal-close:hover { color: var(--ink); background: #f5f8f8; }

.modal-kicker {
  margin-bottom: 9px;
  color: #2e7378;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.download-modal h2 {
  max-width: 650px;
  margin: 0;
  padding-right: 24px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.35;
  letter-spacing: -0.035em;
}

.download-options {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.download-option {
  min-height: 104px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 19px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 13px;
  align-items: center;
  background: #ffffff;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.download-option:not(.is-pending):hover { transform: translateY(-2px); border-color: rgba(7, 63, 72, 0.28); box-shadow: 0 12px 30px rgba(7, 63, 72, 0.08); }
.download-option.is-pending { cursor: not-allowed; }

.provider-icon {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(7, 63, 72, 0.06);
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f8fafb;
}
.provider-icon img { width: 48px; height: 48px; object-fit: contain; }
.provider-copy strong, .provider-copy small { display: block; }
.provider-copy strong { margin-bottom: 5px; font-size: 13px; }
.provider-copy small { color: var(--ink-soft); font-size: 10px; }
.provider-arrow { color: var(--ink-soft); opacity: 0.55; }
.is-pending .provider-arrow { display: none; }

@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-rise-in {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr 410px; gap: 35px; }
  .hero-visual { transform: scale(0.88); }
  .primary-actions { flex-direction: column; align-items: stretch; max-width: 390px; }
  .download-button { width: 100%; }
}

@media (max-width: 820px) {
  .page-shell { width: min(100% - 28px, 680px); }
  .hero { min-height: 100svh; padding: 12px 0; grid-template-columns: 1fr; gap: 14px; align-content: center; }
  .hero-visual { order: 1; min-height: 510px; transform: scale(.78); margin-block: -56px; }
  .hero-copy { order: 2; width: min(100%, 520px); margin: 0 auto; }
  .primary-actions { max-width: none; flex-direction: row; }
  .download-button { flex: 1; min-width: 0; width: auto; }
  h1 { font-size: clamp(43px, 12vw, 64px); }
  .hero-description { font-size: 15px; }
  .hero-visual::before { width: 410px; height: 410px; }
  .orbit-large { width: 455px; height: 455px; }
  .site-footer { padding: 28px 0; grid-template-columns: 1fr; gap: 20px; }
  .site-footer nav { flex-wrap: wrap; }
  .site-footer .footer-meta { justify-items: start; }
  .download-options { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 22px, 480px); }
  .hero { padding: 8px 0; gap: 8px; }
  .eyebrow { margin-bottom: 10px; font-size: 10px; }
  h1 { font-size: clamp(31px, 9.4vw, 37px); line-height: 1.06; }
  .hero-description { margin: 12px 0 14px; font-size: 12.5px; line-height: 1.55; }
  .primary-actions { width: 100%; gap: 8px; }
  .download-button { min-height: 50px; padding: 0 9px; border-radius: 14px; gap: 8px; font-size: 12px; }
  .download-button img { width: 21px; height: 21px; }
  .trust-row { margin-top: 12px; gap: 7px 12px; font-size: 9px; }
  .trust-row span { gap: 5px; }
  .hero-visual { min-height: 460px; transform: scale(.68); margin-block: -74px; }
  .hero-visual::before { width: 330px; height: 330px; }
  .orbit-large { width: 370px; height: 370px; }
  .orbit-small { width: 275px; height: 275px; }
  .phone-frame { width: 218px; height: 444px; border-radius: 37px; }
  .phone-screen { padding: 29px 14px 15px; border-radius: 30px; }
  .timer-face { width: 148px; height: 148px; }
  .timer-time { font-size: 31px; }
  .floating-note { min-width: 138px; padding: 11px; }
  .floating-note-top { right: -6px; top: 62px; }
  .floating-note-bottom { left: -7px; bottom: 50px; }
  .site-footer nav { gap: 13px 18px; }
  .modal-backdrop { padding: 12px; }
  .download-modal { max-height: calc(100vh - 24px); padding: 34px 18px 20px; border-radius: 23px; overflow-y: auto; }
  .modal-close { top: 12px; right: 12px; }
  .download-modal h2 { padding-right: 22px; font-size: 23px; }
  .download-options { margin-top: 22px; }
  .download-option { min-height: 83px; }
}

@media (max-width: 520px) and (max-height: 700px) {
  .hero { padding: 4px 0; gap: 4px; }
  .hero-visual { transform: scale(.56); margin-block: -101px; }
  .eyebrow { margin-bottom: 7px; font-size: 9px; }
  .eyebrow span { width: 21px; }
  h1 { font-size: 30px; }
  .hero-description { margin: 8px 0 10px; font-size: 11.5px; line-height: 1.45; }
  .download-button { min-height: 44px; border-radius: 12px; font-size: 11px; }
  .download-button img { width: 19px; height: 19px; }
  .trust-row { margin-top: 8px; font-size: 8.5px; }
}

@media (max-width: 520px) and (min-height: 800px) {
  .hero-visual { transform: scale(.74); margin-block: -60px; }
}

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