:root {
  --ink: #4f3541;
  --muted: #806b75;
  --wine: #88485f;
  --pink: #ec5d91;
  --pink-dark: #d94479;
  --pink-soft: #fff0f6;
  --pink-pale: #fff8fb;
  --yellow: #ffd66b;
  --white: #ffffff;
  --border: rgba(136, 72, 95, 0.12);
  --shadow: 0 24px 70px rgba(136, 72, 95, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; padding: 10px 16px; border-radius: 8px; background: var(--wine); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(136, 72, 95, 0.07);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--wine); font-size: 18px; font-weight: 800; letter-spacing: 0.03em; text-decoration: none; }
.brand img { width: 43px; height: 43px; object-fit: contain; border-radius: 12px; }
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a, .footer-links a { position: relative; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color 180ms ease; }
.site-nav a:hover, .footer-links a:hover { color: var(--pink-dark); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 9px; border: 0; border-radius: 12px; background: var(--pink-soft); }
.nav-toggle > span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--wine); transition: transform 180ms ease, opacity 180ms ease; }

.invite-landing { margin: -42px 0 48px; padding: 0; }
.invite-landing[hidden] { display: none; }
.invite-landing-inner { display: grid; grid-template-columns: 1fr auto; gap: 42px; align-items: center; padding: 30px 38px; border: 1px solid rgba(236, 93, 145, 0.2); border-radius: 28px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 18px 48px rgba(136, 72, 95, 0.1); }
.invite-landing-copy .eyebrow { margin-bottom: 12px; }
.invite-landing-copy h2 { margin: 0; color: var(--ink); font-size: clamp(27px, 3vw, 38px); line-height: 1.3; }
.invite-landing-copy > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.invite-landing-actions { min-width: 255px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.invite-code-copy { min-height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 20px; border: 1px dashed rgba(236, 93, 145, 0.48); border-radius: 18px; color: var(--wine); background: var(--pink-soft); cursor: pointer; }
.invite-code-copy span, .invite-code-copy small { color: var(--muted); font-size: 12px; }
.invite-code-copy strong { margin: 5px 0; color: var(--pink-dark); font-size: 25px; letter-spacing: 0.14em; }
.invite-code-copy:hover { border-color: var(--pink); background: #ffe7f1; }
.invite-download-button { width: 100%; }
.invite-copy-status { min-height: 18px; margin: 0; color: var(--pink-dark); font-size: 12px; text-align: center; }

.hero { position: relative; min-height: 720px; padding: 84px 0 100px; overflow: hidden; background: linear-gradient(150deg, #fff 6%, #fff8fb 55%, #fff1f7 100%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; background: linear-gradient(to top, #fff, transparent); }
.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.hero-copy { padding: 24px 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--pink-dark); font-size: 14px; font-weight: 700; letter-spacing: 0.14em; }
.eyebrow > span { width: 27px; height: 2px; border-radius: 2px; background: currentColor; }
.eyebrow.centered { justify-content: center; }
.eyebrow.light { color: #ffe4ef; }
.hero h1 { margin: 0; color: var(--ink); font-size: clamp(48px, 5.2vw, 76px); line-height: 1.15; letter-spacing: -0.045em; }
.hero h1 em { color: var(--pink); font-style: normal; }
.hero-description { max-width: 590px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 38px; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 25px; border: 1px solid transparent; border-radius: 16px; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button svg { width: 21px; height: 21px; fill: currentColor; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: linear-gradient(135deg, var(--pink), var(--pink-dark)); box-shadow: 0 14px 28px rgba(217, 68, 121, 0.25); }
.button-primary:hover { box-shadow: 0 18px 34px rgba(217, 68, 121, 0.32); }
.button-secondary { border-color: var(--border); color: var(--wine); background: rgba(255, 255, 255, 0.8); }
.version-note { margin: 15px 0 0 4px; color: #aa929c; font-size: 13px; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-card { position: relative; width: min(470px, 100%); aspect-ratio: 0.95; border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 48px; background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 222, 235, 0.75)); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-card::before { content: ""; position: absolute; inset: 22px; border: 1px dashed rgba(236, 93, 145, 0.25); border-radius: 35px; }
.hero-logo-wrap { position: absolute; width: 78%; left: 11%; bottom: 0; filter: drop-shadow(0 20px 20px rgba(80, 42, 58, 0.12)); }
.hero-logo-wrap img { width: 100%; }
.hero-badge { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 15px 10px 10px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; color: var(--wine); background: rgba(255, 255, 255, 0.94); box-shadow: 0 12px 30px rgba(94, 53, 70, 0.14); font-size: 14px; font-weight: 700; transform: rotate(-2deg); }
.badge-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--pink-soft); }
.hero-badge-left { left: -35px; bottom: 90px; }
.hero-badge-right { right: -28px; top: 90px; }
.spark { position: absolute; color: var(--yellow); font-size: 30px; text-shadow: 0 4px 10px rgba(255, 185, 49, 0.25); }
.spark-one { left: 45px; top: 45px; }
.spark-two { right: 65px; bottom: 42px; font-size: 22px; }
.spark-three { right: 110px; top: 25px; font-size: 15px; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(1px); opacity: 0.6; }
.hero-glow-one { width: 330px; height: 330px; right: -100px; top: -130px; background: rgba(255, 205, 225, 0.58); }
.hero-glow-two { width: 210px; height: 210px; left: -90px; bottom: 40px; background: rgba(255, 224, 142, 0.24); }

.section-heading { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-heading h2, .about-copy h2, .download-copy h2 { margin: 0; color: var(--ink); font-size: clamp(34px, 4vw, 50px); line-height: 1.25; letter-spacing: -0.03em; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.features-section { background: white; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.feature-card { overflow: hidden; border: 1px solid var(--border); border-radius: 28px; background: white; box-shadow: 0 16px 50px rgba(86, 51, 66, 0.07); transition: transform 220ms ease, box-shadow 220ms ease; }
.feature-card:hover { transform: translateY(-7px); box-shadow: 0 24px 60px rgba(86, 51, 66, 0.12); }
.feature-card-raised { margin-top: -18px; }
.feature-image { height: 330px; display: grid; place-items: center; padding: 28px 30px 0; overflow: hidden; }
.feature-image img { max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(87, 54, 67, 0.08)); }
.feature-image-pink { background: linear-gradient(145deg, #fff4f8, #ffe8f1); }
.feature-image-yellow { background: linear-gradient(145deg, #fffaf0, #fff0c7); }
.feature-image-blue { background: linear-gradient(145deg, #f7fbff, #e9f4ff); }
.feature-content { position: relative; min-height: 210px; padding: 30px; }
.feature-number { position: absolute; right: 27px; top: 25px; color: rgba(236, 93, 145, 0.18); font-size: 35px; font-weight: 900; }
.feature-content h3 { margin: 0 0 13px; color: var(--wine); font-size: 22px; }
.feature-content p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.85; }

.about-section { background: var(--pink-pale); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-copy > p:not(.eyebrow) { margin: 23px 0 0; color: var(--muted); font-size: 17px; line-height: 1.95; }
.about-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.about-tags span { padding: 9px 15px; border: 1px solid rgba(236, 93, 145, 0.18); border-radius: 999px; color: var(--wine); background: white; font-size: 13px; font-weight: 600; }
.app-facts { margin: 0; padding: 16px 34px; border: 1px solid var(--border); border-radius: 28px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 20px 60px rgba(95, 55, 72, 0.08); }
.app-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.app-facts div:last-child { border-bottom: 0; }
.app-facts dt { color: #a48a95; font-size: 14px; }
.app-facts dd { min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }

.download-section { padding: 90px 0; background: white; }
.download-panel { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 66px 70px; border-radius: 36px; color: white; background: linear-gradient(130deg, #8b4962, #d54d7e 72%, #ed739d); box-shadow: 0 28px 70px rgba(136, 72, 95, 0.22); }
.download-copy { position: relative; z-index: 2; max-width: 550px; }
.download-copy h2 { color: white; }
.download-copy > p:last-child { margin: 16px 0 0; color: #ffeaf2; font-size: 16px; }
.download-actions { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.platform-button { min-height: 70px; display: flex; align-items: center; gap: 13px; padding: 10px 18px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 18px; text-decoration: none; }
.platform-button-active { color: var(--wine); background: white; box-shadow: 0 12px 30px rgba(69, 27, 45, 0.18); transition: transform 180ms ease; }
.platform-button-active:hover { transform: translateY(-2px); }
.platform-button-disabled { color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.08); cursor: not-allowed; }
.platform-icon { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; color: white; background: #79b950; font-weight: 900; }
.platform-button small, .platform-button strong { display: block; }
.platform-button small { margin-bottom: 3px; font-size: 11px; opacity: 0.72; }
.platform-button strong { font-size: 16px; }
.apple-icon { color: #555; background: #e7e7e7; font-size: 12px; }
.download-decoration { position: absolute; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; }
.download-decoration-one { width: 310px; height: 310px; right: -80px; top: -150px; }
.download-decoration-two { width: 180px; height: 180px; left: 42%; bottom: -130px; }

.site-footer { padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid var(--border); background: #fffafd; }
.footer-main { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-links { display: flex; gap: 30px; }
.footer-bottom { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); color: #9d8791; font-size: 12px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--pink-dark); }

.legal-page { min-height: 100vh; background: var(--pink-pale); }
.legal-header { background: rgba(255, 255, 255, 0.94); }
.legal-main { padding: 70px 0 100px; }
.legal-card { max-width: 880px; margin: 0 auto; padding: 56px 64px 70px; border: 1px solid var(--border); border-radius: 28px; background: white; box-shadow: 0 20px 60px rgba(95, 55, 72, 0.08); }
.legal-back { color: var(--pink-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.legal-title { margin: 30px 0 10px; font-size: clamp(30px, 4vw, 44px); }
.legal-meta { margin: 0 0 35px; color: #a28b95; font-size: 13px; }
.legal-content { color: #654c57; font-size: 15px; line-height: 2; white-space: pre-wrap; overflow-wrap: anywhere; }
.legal-state { padding: 55px 0; color: var(--muted); text-align: center; }
.retry-button { margin-top: 18px; padding: 10px 20px; border: 0; border-radius: 12px; color: white; background: var(--pink-dark); cursor: pointer; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 70px; }
  .hero-layout { grid-template-columns: 1fr 0.9fr; gap: 35px; }
  .hero-badge-left { left: -15px; }
  .hero-badge-right { right: -15px; }
  .feature-grid { gap: 18px; }
  .feature-image { height: 270px; }
  .feature-content { padding: 25px; }
  .about-layout { gap: 45px; }
  .download-panel { padding: 55px 45px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 620px); }
  .section { padding: 78px 0; }
  .header-inner { min-height: 68px; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] > span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; top: 68px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255, 255, 255, 0.98); box-shadow: 0 18px 50px rgba(86, 51, 66, 0.13); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 14px; border-radius: 10px; }
  .site-nav a:hover { background: var(--pink-soft); }
  .invite-landing { margin: -38px 0 36px; padding: 0; }
  .invite-landing-inner { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; text-align: center; }
  .invite-landing-copy .eyebrow { justify-content: center; }
  .invite-landing-actions { width: 100%; min-width: 0; }
  .hero { padding: 54px 0 80px; }
  .hero-layout { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { padding: 0; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-description { font-size: 16px; line-height: 1.8; }
  .hero-actions { justify-content: center; }
  .hero-visual { width: min(430px, 94%); margin: 0 auto; }
  .hero-badge { font-size: 12px; }
  .hero-badge-left { left: -12px; bottom: 55px; }
  .hero-badge-right { right: -12px; top: 65px; }
  .feature-grid { grid-template-columns: 1fr; gap: 22px; }
  .feature-card-raised { margin-top: 0; }
  .feature-image { height: 340px; }
  .feature-content { min-height: auto; }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .download-panel { flex-direction: column; align-items: stretch; padding: 46px 28px; text-align: center; }
  .download-copy .eyebrow { justify-content: center; }
  .download-actions { width: 100%; min-width: 0; }
  .platform-button { justify-content: center; }
  .footer-main { flex-direction: column; justify-content: center; padding: 30px 0; }
  .footer-bottom { flex-direction: column; justify-content: center; padding: 22px 0; text-align: center; }
  .legal-main { padding: 35px 0 70px; }
  .legal-card { padding: 36px 28px 50px; border-radius: 22px; }
}

@media (max-width: 430px) {
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-card { border-radius: 34px; }
  .hero-badge-right { top: 45px; }
  .feature-image { height: 285px; }
  .app-facts { padding: 10px 22px; }
  .app-facts div { grid-template-columns: 88px 1fr; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 18px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
}
