:root {
  color-scheme: light;
  --ink: #21134d;
  --muted: #655d78;
  --pink: #cf3e70;
  --purple: #7659e8;
  --line: rgba(33, 19, 77, .12);
  --paper: #fff;
  --wash: #f6f2ff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #fbf9ff 0, #fff 45%); }
body.is-modal-open { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.hero { min-height: 680px; padding: 40px 0 56px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { margin: 0 0 12px; color: var(--purple); font-weight: 700; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(3.2rem, 5vw, 4.5rem); line-height: .96; letter-spacing: -.06em; }
h1 strong { color: var(--pink); font-weight: 900; white-space: nowrap; }
.lede { max-width: 30rem; margin: 26px 0; color: var(--muted); font-size: 1.15rem; line-height: 1.8; }
.primary-button { min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(120deg, var(--pink), var(--purple)); box-shadow: 0 14px 34px rgba(118, 89, 232, .28); font-weight: 800; font-size: 1rem; }
.primary-button:focus-visible, .contact a:focus-visible, .contact button:focus-visible, .qr-modal__close:focus-visible { outline: 3px solid rgba(118, 89, 232, .35); outline-offset: 3px; }
.button-note { color: var(--muted); font-size: .88rem; }
.hero-visual { margin: 52px 0 0; overflow: hidden; border-radius: 32px; background: #eee8ff; box-shadow: 0 24px 70px rgba(33, 19, 77, .16); }
.hero-visual img { display: block; width: 100%; height: auto; }

.about { padding: 64px 0; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; border-top: 1px solid var(--line); }
.about-copy h2 { max-width: 36rem; margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.about-copy > p:last-child { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.85; text-wrap: pretty; }
.coverage { padding-left: 64px; border-left: 1px solid var(--line); }
.coverage strong { display: flex; align-items: flex-start; color: var(--pink); font-size: clamp(3.6rem, 7vw, 5.8rem); line-height: .9; letter-spacing: -.06em; }
.coverage sup { margin: .08em 0 0 .08em; font-size: .38em; letter-spacing: 0; }
.coverage h3 { margin: 18px 0 12px; font-size: 1.4rem; line-height: 1.35; }
.coverage p { margin: 0; color: var(--muted); line-height: 1.75; }
.coverage small { display: block; margin-top: 16px; color: var(--muted); font-size: .78rem; line-height: 1.6; }

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits article { padding: 32px 24px 36px; border-right: 1px solid var(--line); }
.benefits article:last-child { border-right: 0; }
.benefits span { color: var(--pink); font-weight: 800; }
.benefits h2 { margin: 18px 0 8px; font-size: 1.35rem; }
.benefits p { margin: 0; color: var(--muted); line-height: 1.75; }

.code-card { margin: 84px 0; padding: 64px; border-radius: 36px; display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: center; background: var(--ink); color: #fff; box-shadow: 0 24px 70px rgba(33, 19, 77, .2); }
.code-card h2 { margin: 0 0 16px; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.code-card > div > p:not(.eyebrow) { color: rgba(255,255,255,.72); font-size: 1.05rem; line-height: 1.7; }
.code-wrap { padding: 20px; border-radius: 26px; background: #fff; color: var(--ink); text-align: center; }
.code-wrap img { width: 100%; border-radius: 14px; }
.code-wrap p { margin: 12px 0 0 !important; color: var(--ink) !important; font-weight: 700; }

.contact { margin-bottom: 96px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--wash); }
.contact p { margin: 0; font-weight: 800; }
.contact a, .contact button { color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; text-decoration: none; }
.contact [data-copy-status] { color: var(--purple); }
footer { padding: 32px max(16px, calc((100% - 1120px)/2)); color: var(--muted); background: #f5f3f8; font-size: .88rem; line-height: 1.7; }
.sticky-cta { display: none; }

.qr-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; }
.qr-modal[hidden] { display: none; }
.qr-modal__backdrop { position: absolute; inset: 0; background: rgba(19, 11, 45, .72); backdrop-filter: blur(8px); }
.qr-modal__dialog { position: relative; width: min(460px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow: auto; padding: 30px 36px; border-radius: 30px; background: #fff; box-shadow: 0 28px 90px rgba(8, 3, 24, .38); text-align: center; }
.qr-modal__dialog .eyebrow { margin-bottom: 8px; }
.qr-modal__dialog h2 { margin: 0 44px 22px; font-size: 2rem; line-height: 1.2; }
.qr-modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: var(--wash); font-size: 1.8rem; line-height: 1; }
.qr-modal__code { position: relative; width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.qr-modal__code img { position: absolute; top: -57.1%; left: -17.4%; width: 135%; max-width: none; height: auto; }
.qr-modal__hint { margin: 20px 0 0; color: var(--muted); line-height: 1.7; }

@media (max-width: 820px) {
  main { width: min(100% - 24px, 600px); }
  .hero { min-height: 0; padding: 38px 0; grid-template-columns: 1fr; gap: 22px; }
  h1 { font-size: clamp(2.9rem, 13vw, 3.6rem); }
  .lede { margin: 20px 0; font-size: 1rem; }
  .hero-copy .primary-button { width: 100%; }
  .hero-visual { margin: 4px 0 0; border-radius: 22px; }
  .about { padding: 48px 0; grid-template-columns: 1fr; gap: 36px; }
  .about-copy h2 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .coverage { padding: 36px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .coverage strong { font-size: clamp(4rem, 19vw, 5.4rem); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .benefits article:nth-child(2) { border-right: 0; }
  .benefits article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .benefits article { padding: 24px 18px; }
  .code-card { margin: 56px 0 88px; padding: 32px 22px; grid-template-columns: 1fr; gap: 28px; border-radius: 26px; }
  .code-wrap { width: min(100%, 330px); margin: 0 auto; }
  .contact { margin-bottom: 110px; align-items: stretch; flex-direction: column; }
  .contact a, .contact button { text-align: center; }
  footer { padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .sticky-cta { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; display: block; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.92); border-top: 1px solid var(--line); backdrop-filter: blur(14px); }
  .sticky-cta .primary-button { width: 100%; }
  .qr-modal { padding: 14px; }
  .qr-modal__dialog { max-height: calc(100vh - 28px); max-height: calc(100dvh - 28px); padding: 32px 22px 26px; border-radius: 24px; }
  .qr-modal__dialog h2 { margin-bottom: 18px; font-size: 1.75rem; }
  .qr-modal__code { width: min(260px, 78vw); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
