:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #201844;
  background: #f5f5ff;
  --ink: #201844;
  --muted: #5a546f;
  --indigo: #4230b9;
  --outline: #e0dcef;
  --background: #f5f5ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; background: var(--background); transition: background-color .25s ease; }
body[data-theme="mint"] { --background: #dff8ed; }
body[data-theme="peach"] { --background: #ffeadc; }
body[data-theme="blue"] { --background: #e1f0ff; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .74; }
:focus-visible { outline: 3px solid #7655e9; outline-offset: 4px; }
.hero :focus-visible { outline-color: #ddff86; }
:target { scroll-margin-top: 1.2rem; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  inset: .5rem auto auto .5rem;
  z-index: 5;
  padding: .65rem 1rem;
  background: #fff;
  border-radius: .5rem;
}
.masthead { background: #ffffffdc; border-bottom: 1px solid #eae6f6; }
.header-inner {
  min-height: 73px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-weight: 780;
  letter-spacing: -.025em;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 11px;
  background: var(--indigo);
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
}
.brand-mark i { width: 4px; height: 7px; border-radius: 3px; background: #fff; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; background: #dcff95; }
.navigation { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.navigation a, .footer a { color: var(--muted); text-decoration: none; font-weight: 640; font-size: .92rem; }
.navigation a:hover, .footer a:hover { color: var(--indigo); text-decoration: underline; text-underline-offset: 4px; }
.languages { display: flex; gap: 2px; border: 1px solid #e7e1f5; background: #f7f4ff; border-radius: 12px; padding: 3px; }
.languages button { color: #554a70; background: transparent; border: 0; border-radius: 8px; padding: .4rem .65rem; white-space: nowrap; font-size: .85rem; font-weight: 680; }
.languages [aria-pressed="true"] { background: white; color: #3b249e; box-shadow: 0 1px 4px #2820561f; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 370px;
  margin-top: 28px;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: 28px;
  color: #fff;
  background: radial-gradient(ellipse at 89% 30%, #775cf4 0%, transparent 65%), linear-gradient(125deg, #30229e 14%, #4934c0 68%, #503fc5 100%);
}
.hero-text { z-index: 1; align-self: center; }
.hero-meta { display: flex; align-items: center; gap: .75rem; color: #e8e2ff; font-size: .81rem; font-weight: 760; letter-spacing: .12em; margin-bottom: .8rem; }
.version { padding: .25rem .6rem; border: 1px solid #d9d0ff66; border-radius: 100vw; letter-spacing: .04em; background: #ffffff18; }
h1, h2, h3, p, figure { margin: 0; }
.hero h1 { max-width: 13ch; font-size: clamp(2.75rem, 6vw, 4.4rem); line-height: .99; letter-spacing: -.067em; font-weight: 820; }
html[lang="zh-CN"] .hero h1 { max-width: none; line-height: 1.18; letter-spacing: -.035em; }
.hero-translation { margin-top: .64rem; color: #e3dcff; font-size: clamp(1.02rem, 2.1vw, 1.43rem); font-weight: 690; }
.hero-description { max-width: 29rem; margin-top: .92rem; color: #f1edff; line-height: 1.53; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: .64rem .98rem;
  font-weight: 750;
  line-height: 1.22;
  text-decoration: none;
  transition: background-color .16s, border-color .16s, box-shadow .16s;
}
.hero-button { background: #dcff95; color: #302565; margin-top: 1.16rem; }
.hero-button:hover { background: #edffc4; }
.hero-art {
  position: absolute;
  z-index: -1;
  width: clamp(330px, 45vw, 560px);
  aspect-ratio: 1;
  top: 50%;
  right: clamp(-36px, 0vw, 4px);
  transform: translateY(-50%);
  background: radial-gradient(circle at center, #b69aff46, transparent 65%);
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .46;
  background-image: radial-gradient(circle, #e6ddff 1px, transparent 1.5px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse, #000 10%, transparent 69%);
}
.orbit { position: absolute; border: 1px solid #e5d6ff55; border-radius: 50%; }
.orbit-outer { inset: 10%; transform: rotate(-18deg) scaleY(.84); }
.orbit-middle { inset: 20%; transform: rotate(20deg) scaleY(.93); }
.orbit-inner { inset: 30%; background: #d1bdff1a; border-color: #ede2ff70; }
.signal-core {
  position: absolute;
  inset: 38%;
  border: 1px solid #f1e7ffb5;
  border-radius: 27%;
  transform: rotate(-12deg);
  background: linear-gradient(145deg, #b299ffdd, #8364ee66);
  box-shadow: 0 15px 55px #3023806e, inset 0 0 20px #e1d6ff28;
}
.signal-core i { position: absolute; inset: auto auto 27% 25%; width: 8.5%; height: 14%; border-radius: 12px; background: #f8f5ff; }
.signal-core i:nth-child(2) { left: 39%; height: 23%; }
.signal-core i:nth-child(3) { left: 53%; height: 33%; }
.signal-core i:nth-child(4) { left: 67%; height: 44%; background: #ddff96; }
.signal-dot, .spark { position: absolute; width: 16px; aspect-ratio: 1; border-radius: 50%; }
.dot-mint { left: 26%; top: 30%; background: #dfff9b; box-shadow: 0 0 20px #dcff9590; }
.dot-gold { left: 78%; top: 40%; width: 12px; background: #ffcf87; box-shadow: 0 0 20px #ffcf8770; }
.dot-pink { left: 62%; top: 74%; width: 19px; background: #ffafdc; box-shadow: 0 0 20px #ffafdc70; }
.spark { background: #eae2ff; width: 5px; }
.spark-one { left: 35%; top: 66%; }
.spark-two { left: 68%; top: 23%; }

.section { margin-top: 2.6rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: .9rem; margin-bottom: 1rem; }
h2 { font-size: clamp(1.66rem, 3.1vw, 2.12rem); font-weight: 800; line-height: 1.16; letter-spacing: -.048em; }
.section-heading p, .card-title p { color: var(--muted); line-height: 1.45; margin-top: .33rem; }
.image-status { background: #e4f7ed; color: #1a6247 !important; border: 1px solid #caeddb; border-radius: 100vw; padding: .36rem .69rem; font-size: .88rem; white-space: nowrap; }
.image-status.incomplete { background: #fff4e4; border-color: #ebd0af; color: #76421d !important; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.gallery-card { min-width: 0; overflow: hidden; border-radius: 17px; border: 1px solid var(--outline); background: #fff; box-shadow: 0 4px 11px #2e235308; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; background: #ebe7fa; color: var(--muted); }
.gallery figcaption { display: flex; align-items: center; gap: .55rem; font-weight: 690; padding: .72rem .9rem; }
.caption-dot { width: 10px; height: 10px; border-radius: 50%; background: #0d9e99; }
.city .caption-dot { background: #7855d4; }
.market .caption-dot { background: #ee9241; }

.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tool-stack { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.card { padding: clamp(1rem, 2.4vw, 1.5rem); border-radius: 18px; background: #fff; border: 1px solid var(--outline); }
.card-title { display: flex; align-items: flex-start; gap: .8rem; margin-bottom: 1rem; }
.card-title h3 { font-size: 1.19rem; font-weight: 780; letter-spacing: -.026em; line-height: 1.18; }
.card-title p { font-size: .96rem; }
.tool-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-content: center; position: relative; flex: none; }
.calculator-icon { background: #eee8ff; grid-template-columns: 6px 6px; gap: 3px; }
.calculator-icon i { aspect-ratio: 1; border-radius: 2px; background: #6446c6; }
.calculator-icon i:nth-child(2) { opacity: .63; }
.colour-icon { background: #ffe2d1; grid-template-columns: 7px 7px; gap: 2px; transform: rotate(0); }
.colour-icon i { aspect-ratio: 1; border-radius: 50%; background: #bb4d64; }
.colour-icon i:nth-child(2) { background: #db7b30; }
.colour-icon i:nth-child(3) { background: #6475d6; }
.colour-icon i:nth-child(4) { background: #1d9a84; }
.pdf-icon { background: #dddcff; }
.pdf-icon i { position: relative; width: 14px; height: 18px; border: 2px solid #5140b9; border-radius: 3px; }
.pdf-icon i::before, .pdf-icon i::after { content: ""; position: absolute; top: 5px; left: 2px; width: 6px; height: 2px; border-radius: 1px; background: #5140b9; }
.pdf-icon i::after { top: 9px; }
.calculator-display { background: #f6f2ff; border: 1px solid #e8dffc; padding: .39rem .85rem .45rem; text-align: end; min-height: 76px; border-radius: 11px; overflow-wrap: anywhere; }
.calculation { color: #5f507e; font-size: .86rem; min-height: 1.25rem; }
#calculator-result { display: block; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; font-weight: 760; font-variant-numeric: tabular-nums; }
#calculator-result.calculator-error { color: #8c2549; font-size: 1.18rem; padding: .2rem 0; }
.keypad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .37rem; margin-top: .57rem; }
.keypad button { min-height: 45px; border: 1px solid #e8e4f4; border-radius: 8px; color: #2b204d; background: #faf9ff; font-weight: 720; font-size: 1.03rem; padding: .2rem; }
.keypad button:hover { background: #ede7fa; }
.keypad .wide { grid-column: span 2; }
.keypad .operator { color: #442cb5; background: #f1ebff; }
.keypad .secondary-key { font-size: .9rem; color: #54456f; }
.keypad .equals, .send-button { background: #4932bd; color: #fff; border-color: #4932bd; }
.keypad .equals:hover, .send-button:hover { background: #382299; }
.tint-card { background: #fff3ed; border-color: #f0ded4; }
.file-card { background: #eeedff; border-color: #e1def5; }
.tool-stack .card { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.outline-button { background: #fff; color: #4130a3; border-color: #dcd4eb; }
.outline-button:hover { background: #fdfaff; border-color: #a797da; }
.colour-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .85rem; }
.swatches { display: flex; align-items: center; gap: .45rem; padding: .25rem; }
.swatch { width: 16px; height: 16px; border: 1px solid #81759477; border-radius: 50%; background: #eee9fd; }
.swatch:nth-child(2) { background: #c6f5df; }
.swatch:nth-child(3) { background: #ffd9c1; }
.swatch:nth-child(4) { background: #c7e6ff; }
.swatch.active { outline: 2px solid #6752af; outline-offset: 2px; }

.message-section { margin-top: 2.65rem; background: #eaf8f1; border: 1px solid #d1ede0; border-radius: 22px; display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(1.25rem, 5vw, 4rem); padding: clamp(1.2rem, 4vw, 2.5rem); }
.message-icon { background: #d1efdf; margin-bottom: .85rem; }
.message-icon i { width: 19px; height: 14px; border: 2px solid #247e69; border-radius: 4px; position: relative; }
.message-icon i::after { position: absolute; content: ""; left: 2px; bottom: -5px; width: 5px; height: 5px; border-left: 2px solid #247e69; transform: skewY(-28deg); background: #d1efdf; }
.message-intro p { margin-top: .55rem; max-width: 26rem; line-height: 1.53; color: #3f6257; }
form { display: flex; flex-direction: column; align-items: flex-start; gap: .43rem; }
form label { font-weight: 730; font-size: .95rem; }
.optional { color: #527061; font-weight: 510; font-size: .87rem; }
form input, form textarea { width: 100%; min-width: 0; min-height: 44px; padding: .59rem .7rem; border: 1px solid #bdd8ce; border-radius: 9px; background: #ffffff; color: var(--ink); }
form input { margin-bottom: .28rem; }
form textarea { resize: vertical; }
form textarea::placeholder { color: #6b6977; }
.send-button { margin-top: .3rem; }
.form-status { overflow-wrap: anywhere; font-weight: 640; color: #1a644a; border-radius: 8px; line-height: 1.45; }
.form-status.is-error { color: #8a2a49; }
.footer { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: .8rem; color: var(--muted); font-size: .87rem; border-top: 1px solid var(--outline); margin-top: 2rem; }

@media (max-width: 790px) {
  .hero { grid-template-columns: 1.4fr .6fr; }
  .hero-art { right: -10%; }
  .navigation { gap: .92rem; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: .65rem .5rem; padding-block: .65rem; }
  .brand { font-size: .9rem; gap: .44rem; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; padding-bottom: 7px; }
  .navigation { order: 3; flex-basis: 100%; justify-content: start; gap: 1.25rem; }
  .navigation a { padding-block: .24rem; }
  .languages button { padding-inline: .45rem; font-size: .78rem; }
  .hero { grid-template-columns: 1fr; min-height: 320px; margin-top: 17px; border-radius: 20px; background: radial-gradient(ellipse at 100% 38%, #694cde 0%, transparent 65%), linear-gradient(125deg, #30229e 22%, #4934c0 85%); }
  .hero-art { opacity: .78; right: -157px; top: 42%; width: 340px; }
  .hero-description { max-width: 17rem; }
  .section { margin-top: 1.9rem; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr; gap: .7rem; }
  .gallery img { aspect-ratio: 2/1; }
  .tool-grid, .message-section { grid-template-columns: 1fr; }
  .message-section { margin-top: 1.9rem; }
  .footer { min-height: 68px; }
}
@media (max-width: 350px) {
  .header-inner { gap: .5rem .25rem; }
  .brand { font-size: .82rem; }
  .languages button { padding-inline: .32rem; }
  .hero { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
