:root {
  color-scheme: light;
  --bg: #fafbf8;
  --paper: #ffffff;
  --ink: #283549;
  --muted: #667485;
  --blue: #5877dd;
  --blue-dark: #3e5ec1;
  --blue-soft: #eaf0ff;
  --mint: #e3f2e9;
  --mint-ink: #407b66;
  --peach: #fff0db;
  --line: #e6eae6;
  --page: 1160px;
  --shadow: 0 18px 60px rgba(53, 72, 102, .055);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
img { display: block; max-width: 100%; }
svg.icon { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid #91abea; outline-offset: 5px; }
.container { width: min(var(--page), calc(100% - 64px)); margin-inline: auto; }
.site-main { flex: 1; }
.site-header { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--blue); color: #fff4c4; border-radius: 13px 13px 13px 5px; transform: rotate(-5deg); }
.brand-mark .icon { width: 25px; height: 25px; }
.brand-word { font-size: 26px; font-weight: 800; letter-spacing: -.8px; line-height: 1; }
.brand-label { margin-left: 8px; padding-left: 18px; border-left: 1px solid #dce2e1; color: var(--muted); font-size: 13px; font-weight: 500; }
.header-nav, .header-account { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.header-nav > a, .nav-link { color: #647080; }
.header-nav > a:hover, .nav-link:hover { color: var(--blue); }
.nav-link, .text-action { border: 0; padding: 0; background: none; font: inherit; }
.header-nav .current { color: var(--blue); font-weight: 650; }
.primary, .secondary, .soft-button, .header-button, .buy { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; border-radius: 12px; padding: 12px 22px; font-size: 14px; font-weight: 650; border: 1px solid transparent; transition: background .18s, transform .18s, box-shadow .18s; }
.primary, .buy { color: white; background: var(--blue); box-shadow: 0 5px 12px rgba(88,119,221,.13); }
.primary:hover, .buy:hover { background: var(--blue-dark); transform: translateY(-2px); }
.secondary { color: var(--ink); border-color: #dce3e7; background: var(--paper); }
.secondary:hover { border-color: #a6b9e9; background: #f4f7ff; }
.soft-button, .header-button { min-height: 40px; padding: 8px 17px; background: var(--blue-soft); color: var(--blue); }
.soft-button:hover, .header-button:hover { background: #dfe7fc; }
.text-action { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 650; min-height: 40px; }
.text-action:hover { color: var(--blue-dark); }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--blue); font-size: 12px; font-weight: 650; letter-spacing: .11em; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #eabd65; box-shadow: 0 0 0 4px #fff3d9; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(40px, 5.2vw, 64px); font-weight: 750; line-height: 1.3; letter-spacing: -.04em; margin-bottom: 24px; }
h1 em { color: var(--blue); font-style: normal; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; line-height: 1.4; letter-spacing: -.025em; }
p { color: var(--muted); }
.caption { font-size: 12px; color: var(--muted); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 12px 0 0; }
.section-heading p { max-width: 330px; margin: 0 0 5px; font-size: 14px; }
.section-kicker { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: .15em; }
.icon-box { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--blue-soft); color: var(--blue); }
.icon-box.mint { color: var(--mint-ink); background: var(--mint); }
.icon-box.peach { color: #b3843f; background: var(--peach); }
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer-inner { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; font-size: 12px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-brand .brand-word { color: var(--ink); font-size: 20px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a:hover { color: var(--blue); }
.footer-links .icon { width: 15px; height: 15px; }
.language { display: inline-flex; align-items: center; gap: 6px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
label { display: block; font-size: 13px; font-weight: 550; color: #536172; }
input, textarea { width: 100%; min-height: 48px; margin-top: 7px; border: 1px solid #dfe5e9; background: #fcfdfd; color: var(--ink); border-radius: 11px; padding: 12px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: #a1a9b4; font-weight: 400; }
input:focus, textarea:focus { border-color: #88a1e7; box-shadow: 0 0 0 3px #edf1ff; }
input, textarea { min-width: 0; }
.auth-layout { display: grid; grid-template-columns: 1fr 430px; gap: 96px; align-items: center; padding-block: 72px 48px; }
.login-copy { min-width: 0; position: relative; }
.login-copy h1 { font-size: clamp(38px, 4.2vw, 54px); margin-top: 18px; }
.login-copy > p { max-width: 400px; margin-bottom: 16px; font-size: 15px; }
.auth-art { position: relative; height: 275px; max-width: 420px; margin-top: 24px; }
.auth-art::before { content: ""; position: absolute; width: 270px; height: 224px; background: var(--blue-soft); border-radius: 45% 55% 49% 51% / 55% 45% 55% 45%; left: 55px; bottom: 2px; transform: rotate(-7deg); }
.auth-art img { position: relative; width: 310px; height: 290px; object-fit: contain; margin-left: 28px; z-index: 1; }
.art-spark { position: absolute; color: #d8af62; font-size: 26px; right: 25px; top: 38px; transform: rotate(16deg); }
.art-message { position: absolute; z-index: 2; bottom: 14px; left: 0; display: flex; gap: 8px; align-items: center; padding: 10px 16px; border: 1px solid #e1e8ed; border-radius: 12px; background: #fffffff2; font-size: 12px; color: #60728b; transform: rotate(-5deg); box-shadow: 0 8px 24px #2f4a6910; }
.art-message .icon { width: 17px; height: 17px; color: var(--mint-ink); }
.auth-panel { padding: 32px; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h2 { font-size: 25px; margin: 0 0 7px; }
.auth-heading p { font-size: 13px; margin-bottom: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin-bottom: 24px; border-radius: 12px; background: #f0f3f8; }
.auth-tabs button { min-height: 41px; padding: 8px; border: 0; border-radius: 9px; color: #8590a0; background: transparent; font-size: 13px; font-weight: 600; }
.auth-tabs button.active { background: white; color: var(--blue); box-shadow: 0 2px 6px #37476b0c; }
.auth-panel form { display: grid; gap: 19px; }
.auth-panel form > .primary { width: 100%; margin-top: 6px; }
.code-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin-top: 7px; }
.code-row input { margin: 0; }
.code-row button { min-width: 92px; padding: 8px 12px; border: 1px solid #dfe6f7; background: #f2f5fd; color: var(--blue); border-radius: 10px; font-size: 12px; font-weight: 600; }
.auth-tip { margin: 22px 0 0; font-size: 11px; color: #8b96a5; text-align: center; }
.auth-tip .icon { width: 13px; height: 13px; vertical-align: -2px; display: inline; margin-right: 4px; }
.auth-foot { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eff1f3; text-align: center; color: var(--muted); font-size: 12px; }
.auth-foot a { color: var(--blue); font-weight: 600; }
.benefit-strip { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); padding-block: 30px; gap: 32px; }
.benefit { display: flex; gap: 14px; align-items: center; }
.benefit h3 { font-size: 14px; margin: 0 0 3px; font-weight: 650; }
.benefit p { font-size: 12px; margin: 0; }
#status { position: fixed; z-index: 50; bottom: max(24px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 20px; margin: 0; border: 1px solid #dae3f5; border-radius: 14px; background: #fff; color: #4c659c; box-shadow: 0 8px 40px #34446d1c; font-size: 13px; text-align: center; }
#status:empty { display: none; }
.empty-state { padding: 44px 20px; text-align: center; background: #f6f8fc; border: 1px dashed #dce4ee; border-radius: 18px; color: #7c8aa0; }
.empty-state .icon { display: block; margin: 0 auto 13px; width: 30px; height: 30px; color: #a1b3d9; }
@media (max-width: 1000px) {
  .auth-layout { gap: 48px; grid-template-columns: minmax(0,1fr) 390px; }
  .auth-panel { padding: 27px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .site-header { height: 76px; gap: 12px; }
  .brand-word { font-size: 23px; }
  .brand-label { font-size: 11px; padding-left: 12px; margin-left: 2px; }
  .header-nav { gap: 18px; font-size: 12px; }
  .header-nav .desktop-only { display: none; }
  .header-button { padding: 8px 12px; font-size: 12px; }
  .auth-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 42px; }
  .login-copy { padding-right: 140px; min-height: 174px; }
  .login-copy h1 { font-size: 35px; margin: 14px 0; }
  .login-copy > p { font-size: 13px; }
  .auth-art { position: absolute; width: 150px; height: 170px; right: -12px; bottom: 0; margin: 0; }
  .auth-art::before { left: 10px; bottom: 10px; width: 135px; height: 130px; }
  .auth-art img { width: 160px; height: 170px; margin: 0; }
  .auth-art .art-message, .auth-art .art-spark { display: none; }
  .auth-panel { max-width: 480px; width: 100%; margin: auto; padding: 26px; }
  .benefit-strip { gap: 20px; padding: 24px 0; }
  .benefit { flex-direction: column; align-items: flex-start; gap: 10px; }
  .benefit h3 { font-size: 12px; }
  .benefit p { font-size: 11px; }
  .benefit .icon-box { width: 36px; height: 36px; border-radius: 11px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding-block: 28px; }
  .site-footer { margin-top: 36px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .header-nav { gap: 12px; }
  .brand-label { display: none; }
  .login-copy { padding-right: 112px; }
  .login-copy h1 { font-size: 30px; }
  .auth-art { width: 128px; right: -14px; }
  .auth-panel { padding: 22px; }
  .header-account { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Keep the opaque mascot artwork inside a soft silhouette on light surfaces. */
.auth-art img { border-radius: 44%; }

@media (max-width: 380px) { .auth-art::before { left: 5px; width: 110px; height: 110px; bottom: 28px; } }
