:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #61708e;
  --line: rgba(20, 33, 61, .10);
  --purple: #635bff;
  --cyan: #00d4ff;
  --coral: #ff6b6b;
  --paper: #f6f9fc;
  --white: rgba(255, 255, 255, .82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 40px));
  height: 76px;
  margin: auto;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(255, 100, 62, .20);
}
.nav { display: flex; align-items: center; gap: 28px; color: rgba(20,33,61,.72); font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--purple); }
.lang-switch {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.account-link { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); }

.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  padding: 90px 20px 80px;
}
.aurora {
  position: absolute;
  z-index: 0;
  top: -210px;
  right: -12vw;
  width: 72vw;
  height: 720px;
  transform: rotate(-12deg);
  border-radius: 30% 0 45% 55%;
  background:
    radial-gradient(circle at 28% 62%, #ffe26c 0 12%, transparent 34%),
    radial-gradient(circle at 65% 68%, #ff80c7 0 16%, transparent 42%),
    linear-gradient(135deg, #00d4ff 5%, #635bff 48%, #ff6fb1 82%, #ffb760);
  filter: saturate(112%);
  opacity: .96;
}
.aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 38px, rgba(255,255,255,.13) 39px 40px);
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 70px;
  align-items: center;
  width: min(1120px, 100%);
  margin: auto;
}
.eyebrow { margin: 0 0 18px; color: var(--purple); font-size: 14px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 720px; margin: 0; font-size: clamp(52px, 7vw, 86px); line-height: .98; letter-spacing: -.065em; }
.gradient-text { color: transparent; background: linear-gradient(90deg, #635bff, #9a55d8 55%, #ef5b8f); background-clip: text; -webkit-background-clip: text; }
.lead { max-width: 590px; margin: 28px 0 32px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: white; box-shadow: 0 12px 28px rgba(20,33,61,.18); }
.button.secondary { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.phone {
  position: relative;
  width: min(340px, 82vw);
  margin: 16px auto 0;
  padding: 10px;
  border-radius: 48px;
  background: #17182b;
  box-shadow: 0 44px 90px rgba(28, 32, 75, .35), inset 0 0 0 1px rgba(255,255,255,.18);
  transform: rotate(4deg);
}
.screen { min-height: 610px; overflow: hidden; padding: 50px 18px 20px; border-radius: 39px; background: linear-gradient(160deg, #f8faff, #edf1ff); }
.dynamic-island { position: absolute; top: 20px; left: 50%; width: 96px; height: 27px; transform: translateX(-50%); border-radius: 999px; background: #050509; }
.app-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 26px; font-size: 13px; font-weight: 700; }
.app-head span:last-child { color: var(--purple); }
.bubble { margin-bottom: 13px; padding: 17px; border-radius: 21px; background: white; box-shadow: 0 12px 30px rgba(41, 52, 98, .08); }
.bubble.theirs { margin-right: 34px; border-top-left-radius: 6px; }
.bubble.mine { margin-left: 34px; border-top-right-radius: 6px; background: linear-gradient(145deg, #6a62ff, #554de8); color: white; }
.bubble small { display: block; margin-bottom: 7px; color: #8490aa; font-weight: 650; }
.bubble.mine small { color: rgba(255,255,255,.68); }
.bubble p { margin: 0; font-size: 16px; line-height: 1.4; }
.voice-control { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 60px 5px 0 auto; border-radius: 50%; color: white; background: linear-gradient(145deg, #7068ff, #544be7); box-shadow: 0 15px 30px rgba(99,91,255,.32); font-size: 24px; }

.section { padding: 108px 20px; }
.section-inner { width: min(1120px, 100%); margin: auto; }
.section-kicker { color: var(--purple); font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h2 { max-width: 720px; margin: 12px 0 48px; font-size: clamp(36px, 5vw, 56px); line-height: 1.06; letter-spacing: -.045em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { min-height: 285px; padding: 30px; border: 1px solid rgba(20,33,61,.07); border-radius: 26px; background: rgba(255,255,255,.72); box-shadow: 0 20px 50px rgba(41,52,98,.06); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eeecff; color: var(--purple); font-size: 22px; }
.feature h3 { margin: 56px 0 12px; font-size: 22px; letter-spacing: -.025em; }
.feature p { margin: 0; color: var(--muted); line-height: 1.65; }

.language-band { padding: 70px 20px; overflow: hidden; color: white; background: #10162f; }
.language-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.language-row span { padding: 12px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); }
.language-band h2 { margin-bottom: 0; }

.cta { padding: 90px 20px; text-align: center; background: white; }
.cta h2 { margin: 0 auto 22px; }
.cta p { margin: 0 auto 30px; color: var(--muted); font-size: 18px; }

.footer { padding: 42px 20px; border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1120px, 100%); margin: auto; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 22px; }

.legal-hero { padding: 76px 20px 42px; text-align: center; background: linear-gradient(180deg, #f0eeff, var(--paper)); }
.legal-hero h1 { margin: auto; font-size: clamp(42px, 6vw, 66px); }
.legal-hero p { color: var(--muted); }
.legal-card { width: min(780px, calc(100% - 40px)); margin: 10px auto 100px; padding: clamp(28px, 6vw, 64px); border: 1px solid var(--line); border-radius: 30px; background: white; box-shadow: 0 25px 65px rgba(41,52,98,.07); }
.legal-card h2 { margin: 38px 0 12px; font-size: 24px; letter-spacing: -.02em; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #52617d; line-height: 1.75; }
.legal-card a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.support-item { padding: 22px; border-radius: 18px; background: var(--paper); }
.support-item strong { display: block; margin-bottom: 8px; }

.account-page { min-height: 100vh; background: #f6f9fc; }
.account-main { position: relative; display: grid; place-items: start center; min-height: calc(100vh - 76px); overflow: hidden; padding: 64px 20px 110px; }
.account-glow { position: absolute; top: -320px; left: 50%; width: 920px; height: 680px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 35% 55%, rgba(0,212,255,.45), transparent 38%), radial-gradient(circle at 62% 50%, rgba(99,91,255,.48), transparent 42%), radial-gradient(circle at 73% 68%, rgba(255,107,107,.34), transparent 34%); filter: blur(18px); }
.auth-card { position: relative; z-index: 1; display: grid; grid-template-columns: .92fr 1.08fr; width: min(900px, 100%); overflow: hidden; border: 1px solid rgba(255,255,255,.75); border-radius: 32px; background: rgba(255,255,255,.88); box-shadow: 0 35px 90px rgba(25,38,85,.16); backdrop-filter: blur(22px); }
.auth-intro { padding: 58px 48px; color: white; background: linear-gradient(150deg, #161e3d, #2d2b68 58%, #5e4ce2); }
.auth-logo { width: 56px; height: 56px; margin-bottom: 64px; border-radius: 17px; object-fit: cover; box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.auth-intro .eyebrow { color: #9eefff; }
.auth-intro h1 { margin: 0 0 22px; font-size: clamp(42px, 5vw, 58px); line-height: 1; }
.auth-intro > p:last-child, .auth-intro > p:nth-last-child(2) { margin: 0; color: rgba(255,255,255,.72); line-height: 1.65; }
.auth-panel { align-self: center; padding: 48px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 30px; padding: 5px; border-radius: 15px; background: #eef1f7; }
.auth-tab { padding: 10px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.auth-tab.is-active { color: var(--ink); background: white; box-shadow: 0 3px 12px rgba(20,33,61,.09); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { margin-top: 8px; font-size: 13px; font-weight: 750; }
.auth-form input { width: 100%; padding: 14px 15px; border: 1px solid #d8deea; border-radius: 13px; outline: none; background: white; color: var(--ink); font: inherit; transition: border .2s, box-shadow .2s; }
.auth-form input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(99,91,255,.11); }
.field-note, .auth-fineprint { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.auth-submit { width: 100%; margin-top: 12px; border: 0; cursor: pointer; }
.auth-submit:disabled { cursor: wait; opacity: .7; }
.auth-message { min-height: 20px; margin: 5px 0 -2px; color: #b42318; font-size: 13px; line-height: 1.45; }
.auth-message.success { color: #147a4b; }
.auth-fineprint { margin-top: 20px; text-align: center; }
.account-badge { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #147a4b; background: #e6f7ee; font-size: 12px; font-weight: 750; }
.account-summary h2 { margin: 18px 0 6px; font-size: 30px; }
.account-email { margin: 0 0 30px; color: var(--muted); word-break: break-all; }
.account-stat { display: grid; gap: 7px; padding: 20px; border-radius: 18px; background: var(--paper); }
.account-stat > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.account-stat strong { font-size: 34px; }
.account-stat small { color: var(--muted); line-height: 1.5; }
.wechat-purchase, .payment-coming, .link-device { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.link-device h3 { margin: 0 0 8px; font-size: 17px; }
.link-device > p { margin: 0 0 13px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.link-code { margin: 12px 0; padding: 13px; border-radius: 13px; background: #f0efff; color: var(--purple); font: 800 28px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; text-align: center; }
.link-code-button { width: 100%; border: 0; cursor: pointer; }
.link-code-button:disabled { cursor: wait; opacity: .6; }
.wechat-purchase h3 { margin: 0 0 13px; font-size: 17px; }
.wechat-product-list { display: grid; gap: 9px; }
.wechat-product-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; text-align: left; font: inherit; cursor: pointer; }
.wechat-product-option.is-selected { border-color: rgba(7,193,96,.65); background: rgba(7,193,96,.06); box-shadow: 0 0 0 2px rgba(7,193,96,.08); }
.wechat-product-option div { display: grid; gap: 4px; }
.wechat-product-option small, .payment-coming p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.wechat-product-option b { font-size: 18px; white-space: nowrap; }
.wechat-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: white; background: #07c160; font-weight: 900; }
.wechat-button { width: 100%; margin-top: 16px; border: 0; color: white; background: #07c160; cursor: pointer; }
.wechat-button:disabled { cursor: wait; opacity: .55; }
.payment-message { min-height: 18px; margin: 10px 2px 0; color: var(--muted); font-size: 12px; text-align: center; }
.payment-message.error { color: #b42318; }
.payment-message.success { color: #078a45; font-weight: 700; }
.wechat-qr { display: grid; justify-items: center; gap: 8px; margin-top: 14px; padding: 16px; border-radius: 15px; background: #f7faf8; text-align: center; }
.wechat-qr img { width: min(240px, 100%); aspect-ratio: 1; }
.wechat-qr small { color: var(--muted); line-height: 1.45; }
.payment-coming p { margin-top: 7px; }
.auth-logout { width: 100%; margin-top: 22px; border: 0; cursor: pointer; }
.auth-loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 21px; height: 21px; border: 2px solid #dce1ec; border-top-color: var(--purple); border-radius: 50%; animation: auth-spin .75s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }

[data-lang="zh"] { display: none; }
html.zh [data-lang="en"] { display: none; }
html.zh [data-lang="zh"] { display: revert; }

@media (max-width: 800px) {
  .nav > a { display: none; }
  .nav > a.account-link { display: inline-flex; }
  .hero { padding-top: 55px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .actions { justify-content: center; }
  .aurora { top: 510px; right: -55vw; width: 150vw; opacity: .72; }
  .phone { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 220px; }
  .feature h3 { margin-top: 38px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .support-grid { grid-template-columns: 1fr; }
  .account-main { padding-top: 30px; }
  .auth-card { grid-template-columns: 1fr; border-radius: 25px; }
  .auth-intro { padding: 34px 28px; }
  .auth-logo { width: 46px; height: 46px; margin-bottom: 34px; }
  .auth-intro h1 { font-size: 39px; }
  .auth-panel { padding: 32px 26px; }
}
