:root {
  color-scheme: dark;
  --bg: #0a0a10;
  --surface: #111119;
  --surface-dark: #0c0c14;
  --line: #262632;
  --line-light: #343343;
  --text: #f2f1f7;
  --muted: #a5a3b6;
  --subtle: #858399;
  --accent: #a791ff;
  --accent-light: #c1afff;
  --green: #79e3ba;
  --red: #ffa3b6;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button:not(:disabled) { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: #57429c; color: #fff; }
:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
h1, h2, h3, p, dl, dd { margin: 0; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(1192px, calc(100% - 88px)); margin-inline: auto; }
[id="mission"], [id="store"], [id="how"], [id="faq"] { scroll-margin-top: 24px; }

.header { border-bottom: 1px solid #21212b; }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.14rem; font-weight: 790; letter-spacing: -.045em; white-space: nowrap; }
.brand > span:last-child > span { color: #c3b2ff; }
.brand-mark { width: 33px; height: 33px; display: grid; place-items: center; background: var(--accent); border: 1px solid #b7a5ff; color: #19122b; border-radius: 9px; box-shadow: 0 0 19px #9a78ff2e; }
.brand-mark svg { width: 20px; height: 20px; }
nav { align-self: stretch; display: flex; align-items: stretch; gap: 35px; }
nav a { display: grid; place-items: center; color: var(--muted); border-bottom: 2px solid transparent; padding: 2px 3px 0; font-size: .875rem; white-space: nowrap; }
nav a:hover, nav a:focus-visible { color: var(--text); }
nav .nav-active { color: #dfd4ff; border-color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.mode { color: #d2c6fc; background: #201930; border: 1px solid #3f315d; border-radius: 20px; padding: 4px 10px; display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; white-space: nowrap; }
.mode > span { width: 6px; height: 6px; background: #bb9fff; border-radius: 100%; box-shadow: 0 0 9px #b998ffa0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; border-radius: 8px; border: 1px solid transparent; min-height: 42px; padding: 0 16px; font-size: .875rem; font-weight: 680; transition: background .18s, border-color .18s, box-shadow .18s; }
.button.outline { background: #15151e; border-color: #303040; color: #e6e4f0; }
.button.outline:hover { background: #222031; border-color: #554b73; }
.orders-button { min-height: 36px; white-space: nowrap; padding-inline: 12px; }
.primary { color: #160e2b; background: var(--accent); border-color: #b5a1ff; box-shadow: 0 3px 18px #aa84ff23; }
.primary:hover { background: #b8a7ff; box-shadow: 0 4px 24px #aa84ff3e; }
.primary:active { background: #9880ed; }
.store .primary:disabled { color: var(--muted); background: #201c2b; border-color: var(--line-light); box-shadow: none; }

.hero { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: 25px; min-height: 396px; padding-block: 44px; }
.hero-copy { position: relative; z-index: 1; }
.hero-label { width: fit-content; display: flex; align-items: center; gap: 9px; font: 650 .78rem/1.35 var(--mono); letter-spacing: .095em; color: #cbbaff; background: #171223; border: 1px solid #392a55; border-radius: 5px; padding: 7px 10px; margin-bottom: 19px; }
.hero-label > span { width: 7px; height: 7px; border: 1px solid #bd9aff; transform: rotate(45deg); box-shadow: 0 0 8px #b394ff80; }
.hero-label i { width: 1px; align-self: stretch; background: #4c3a66; }
.hero h1 { font-size: clamp(2.55rem, 4.35vw, 4.15rem); line-height: 1.15; font-weight: 850; letter-spacing: -.055em; }
.hero h1 em { font-style: normal; color: #baa5ff; }
.hero p { margin-top: 17px; color: var(--muted); font-size: 1rem; max-width: 495px; }
.hero p strong { color: #e8ddff; font: 640 .92rem var(--mono); white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.hero-actions .button { min-height: 45px; }
.hero-art { position: relative; aspect-ratio: 1.7; isolation: isolate; border: 1px solid #29243b; border-radius: 13px; overflow: hidden; background: #101020; box-shadow: inset 0 0 70px #070711, 0 25px 90px #21144521; }
.hero-art canvas { display: block; width: 100%; height: 100%; }
.art-meta, .art-caption { position: absolute; inset-inline: 17px; display: flex; justify-content: space-between; gap: 14px; color: #a5a0bd; font: .7rem var(--mono); letter-spacing: .07em; }
.art-meta { top: 15px; }
.art-meta b { display: inline-block; width: 6px; height: 6px; background: #a985ff; border-radius: 100%; margin-right: 5px; box-shadow: 0 0 9px #aa85ff; }
.art-caption { bottom: 15px; color: #b7adcf; }
.art-caption i { display: inline-block; width: 15px; height: 1px; background: #63557d; vertical-align: middle; margin-inline: 3px; }

.mission { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: clamp(24px, 5vw, 76px); padding-block: 34px 48px; border-top: 1px solid var(--line); }
.mission .section-head { align-items: start; margin-bottom: 0; }
.mission-copy { max-width: 690px; color: var(--muted); line-height: 1.8; }
.mission-copy p + p { margin-top: 12px; }
.mission-copy p:last-child { color: var(--text); }
.mission-source { color: var(--accent-light); font-size: .79rem; text-decoration: underline; text-underline-offset: .2em; }

.store { border-top: 1px solid #24232f; border-bottom: 1px solid #24232f; background: radial-gradient(ellipse at 54% 2%, #161224 0%, #0e0e16 49%, #0c0c13 100%); padding: 42px 0 48px; }
.store-notice { margin-bottom: 16px; padding: 10px 14px; border: 1px solid #392c54; border-radius: 8px; color: #e0d4ff; background: #1a1528; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.eyebrow { color: var(--accent-light); font: 620 .72rem/1.35 var(--mono); letter-spacing: .14em; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(1.65rem, 3vw, 2.18rem); font-weight: 780; line-height: 1.2; letter-spacing: -.055em; }
.steps { display: flex; list-style: none; align-items: center; margin: 0 0 2px; padding: 0; color: var(--muted); font-size: .875rem; }
.steps li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.steps li:not(:last-child)::after { content: ""; display: inline-block; width: clamp(13px, 2vw, 29px); height: 1px; background: #3a3547; margin-inline: 7px 12px; }
.steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font: .76rem var(--mono); border: 1px solid #383544; color: #a7a2b8; }
.steps li[aria-current] { color: #ebdeff; }
.steps li[aria-current] > span { background: var(--accent); border-color: var(--accent); color: #19112b; font-weight: 750; box-shadow: 0 0 13px #9b71ed42; }
.steps li.is-complete { color: var(--green); }
.steps li.is-complete > span { color: var(--green); background: #133128; border-color: #285747; }

.checkout { display: grid; grid-template-columns: minmax(0, 1.83fr) minmax(0, 1fr); align-items: start; gap: 20px; }
.panel { min-width: 0; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 9px 25px #07070d2a; }
.checkout-main { padding: 25px; min-height: 354px; }
.panel-title { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; }
.tile { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: #201932; color: #bca8ff; border: 1px solid #382c4f; flex: none; }
.tile svg { width: 21px; height: 21px; }
.panel-title h3, .workflow h3 { font-size: 1.06rem; line-height: 1.25; font-weight: 755; }
.panel-title p { font-size: .875rem; color: var(--muted); margin-top: 5px; }
.panel-title h3:focus { outline-offset: 5px; }
.field-label { display: block; font-size: .875rem; color: #e0deeb; font-weight: 680; margin-bottom: 8px; padding: 0; }
.alias-field, .destination-wrap { display: flex; align-items: center; border: 1px solid var(--line-light); background: var(--surface-dark); border-radius: 8px; min-height: 51px; overflow: hidden; }
.alias-field:focus-within, .destination-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px #a78aff24; }
.alias-field.invalid, .destination-wrap.invalid { border-color: #b0647b; }
.field-icon, .destination-wrap > svg { color: #9891ad; margin-inline: 13px 10px; }
.field-icon { display: grid; place-items: center; }
.alias-field input, .destination-wrap input { width: 100%; min-width: 0; border: 0; color: var(--text); background: transparent; outline: 0; padding: 9px 9px 9px 0; font: 520 1rem var(--mono); }
.alias-field input::placeholder, .destination-wrap input::placeholder { color: #898598; font-size: .9rem; }
.domain { align-content: center; align-self: stretch; flex: 0 1 auto; max-width: 53%; min-width: 0; overflow: hidden; text-overflow: ellipsis; border-left: 1px solid #292735; background: #191724; padding-inline: 15px; color: #d4c5ff; font: .85rem var(--mono); white-space: nowrap; }
.alias-field input { flex: 1 1 96px; }
.domain-choice-field { margin-bottom: 12px; }
.domain-choice-field select { width: min(100%, 310px); color: #e7dfff; background: #191724; border: 1px solid var(--line-light); border-radius: 7px; padding: 8px 12px; font: .9rem var(--mono); }
.field-status { min-height: 25px; display: flex; align-items: center; gap: 6px; padding-top: 4px; color: var(--green); font-size: .78rem; }
.field-status.error { color: var(--red); }
.field-status.neutral { color: var(--muted); }
.suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: .8rem; color: var(--muted); margin-top: 7px; }
#suggestions { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.suggestion { background: #191824; border: 1px solid #2c2a3b; border-radius: 5px; padding: 4px 8px; color: #ccbfec; font: .78rem var(--mono); }
.suggestion:hover { border-color: #69548f; background: #26203a; color: #e5d9ff; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #c3adff; background: none; border: 0; padding: 4px 2px; font-size: .84rem; }
.text-button:hover { color: #e3d6ff; text-decoration: underline; text-underline-offset: 3px; }
.shuffle { margin-left: auto; }
.plans { border: 0; padding: 0; margin: 21px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.plan { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 8px; min-height: 52px; padding: 8px 11px; color: #e3e0ef; border: 1px solid #323040; border-radius: 8px; background: #14141e; cursor: pointer; }
.plan:hover { border-color: #69578b; }
.plan:has(input:checked) { border-color: #9d83eb; background: #201a32; }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent-light); outline-offset: 3px; }
.plan input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 680; font-size: .875rem; white-space: nowrap; }
.radio-dot { width: 14px; height: 14px; display: grid; place-items: center; border: 1px solid #706681; border-radius: 100%; }
.plan input:checked + .plan-label .radio-dot { border-color: var(--accent); }
.plan input:checked + .plan-label .radio-dot::after { content: ""; width: 6px; height: 6px; border-radius: 100%; background: var(--accent); }
.plan-price { font: 640 .9rem var(--mono); white-space: nowrap; }
.plan-price small { font: .75rem -apple-system, "Microsoft YaHei", sans-serif; color: var(--muted); }
.savings { background: #34264f; border-radius: 4px; padding: 2px 5px; color: #dacaff; font-weight: 550; font-size: .68rem; }

.summary { padding: 23px; background: linear-gradient(153deg, #171520 0%, #12121b 62%); border-color: #302b3d; }
.summary-head { display: flex; align-items: center; gap: 8px; }
.summary-head svg { color: var(--accent-light); }
.summary-head h3 { font-size: 1rem; font-weight: 720; }
.summary-head > span { margin-left: auto; background: #23212e; border: 1px solid #383344; border-radius: 5px; padding: 2px 7px; color: #c0b7d3; font-size: .75rem; white-space: nowrap; }
.summary-head > span[data-status="done"] { background: #19312d; border-color: #265044; color: var(--green); }
.summary-address { display: flex; align-items: center; gap: 10px; min-height: 62px; margin-top: 16px; padding: 10px; background: #0f0e18; border: 1px solid #2b2639; border-radius: 8px; }
.summary-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #c0aaff; background: #231b39; flex: none; }
.summary-address span:not(.summary-icon), .detail-box span { display: block; color: var(--muted); font-size: .75rem; }
.summary-address strong { display: block; color: #e6ddff; margin-top: 2px; font: 580 .84rem/1.35 var(--mono); overflow-wrap: anywhere; }
.summary-rows { display: grid; gap: 7px; padding: 13px 0; }
.summary-rows > div, .completed-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: .875rem; }
.summary-rows dt, .completed-details dt { color: var(--muted); }
.summary-rows dd, .completed-details dd { text-align: right; overflow-wrap: anywhere; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-block: 11px 12px; }
.total > span { font-size: .875rem; color: #e0dbea; }
.total strong { color: #d1bfff; font: 720 1.7rem/1.15 var(--mono); letter-spacing: -.065em; white-space: nowrap; }
.summary-action { width: 100%; min-height: 44px; }
.summary-note { display: flex; justify-content: center; align-items: center; gap: 5px; color: var(--muted); font-size: .75rem; margin-top: 10px; }

.detail-box { padding: 14px; background: var(--surface-dark); border: 1px solid #302b3e; border-radius: 8px; }
.order-address { display: block; color: #e0d2ff; margin-top: 4px; font: 650 1rem/1.4 var(--mono); overflow-wrap: anywhere; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; margin-top: 14px; border: 1px solid #322947; background: #191426; border-radius: 8px; font-size: .875rem; color: #c7bdd9; }
.notice svg { color: var(--accent-light); margin-top: 2px; }
.notice strong { color: #dfd0ff; overflow-wrap: anywhere; }
.back { margin-top: 12px; }
.destination-wrap input { padding-block: 13px; }
.destination-wrap input.field-padded { padding-inline: 13px; }
.success-tile { color: var(--green); background: #16302b; border-color: #295547; }
.completed-address { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.copy-address { min-height: 35px; flex: none; }
.completed-details { display: grid; gap: 9px; margin-top: 17px; }
.completed-details dt { white-space: nowrap; }

.information, .faq { padding-block: 50px; }
.workflow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.workflow article { border: 1px solid var(--line); background: #101017; padding: 20px; border-radius: 11px; }
.workflow .tile { margin-bottom: 13px; }
.workflow p, .questions p { margin-top: 7px; color: var(--muted); font-size: .925rem; }
.faq { padding-top: 0; }
.questions { border: 1px solid var(--line); border-radius: 11px; background: #101017; }
.questions details + details { border-top: 1px solid var(--line); }
.questions summary { min-height: 55px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; padding: 12px 18px; font-weight: 660; font-size: .925rem; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary:hover { color: var(--accent-light); }
.questions summary svg { color: var(--accent-light); transition: transform .15s; }
.questions details[open] summary svg { transform: rotate(45deg); }
.questions p { padding: 0 18px 16px; margin-top: 0; }
footer { border-top: 1px solid #232330; }
.footer-inner { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding-block: 22px; color: var(--muted); font-size: .8rem; }
.footer-inner .brand { color: var(--text); }

dialog { width: min(520px, calc(100% - 32px)); max-height: 85vh; padding: 22px; border: 1px solid #403650; border-radius: 14px; color: var(--text); background: #14131d; box-shadow: 0 18px 55px #040408a0; overflow: auto; }
dialog::backdrop { background: #05050ac9; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; gap: 8px; }
.dialog-head .panel-title { margin-bottom: 17px; }
.icon-button { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; border: 1px solid #363243; background: #1f1b2c; color: #d2c3f0; }
.icon-button:hover { background: #312742; }
.empty-orders { color: var(--muted); font-size: .925rem; background: var(--surface-dark); padding: 15px; border-radius: 8px; }
.order-entry { padding: 12px; border: 1px solid #353044; background: var(--surface-dark); border-radius: 8px; margin-top: 8px; }
.order-entry strong { color: #dfd0ff; font: 640 .875rem var(--mono); overflow-wrap: anywhere; }
.order-entry p { margin-top: 5px; color: var(--muted); font-size: .82rem; }
.order-entry .text-button { margin-top: 5px; }
.toast { display: none; position: fixed; z-index: 2; right: 22px; bottom: 22px; max-width: calc(100% - 44px); border: 1px solid #605275; border-radius: 8px; background: #231d33; padding: 11px 16px; color: #ebdfff; box-shadow: 0 8px 25px #0008; }
.toast.visible { display: block; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 48px); }
  .header-inner { gap: 14px; }
  nav { gap: 18px; }
  .hero { gap: 19px; min-height: 350px; }
  .hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); }
  .checkout-main, .summary { padding: 19px; }
  .checkout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; }
}

@media (max-width: 860px) {
  .store-header nav { display: none; }
}

@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 60px; gap: 8px; }
  .header-inner nav { display: none; }
  .header-actions { gap: 7px; }
  .store-header .header-inner { flex-wrap: wrap; padding-block: 8px; }
  .store-header .header-actions { flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: 22px; padding-block: 28px; }
  .hero h1 { font-size: clamp(2rem, 8.1vw, 3.4rem); }
  .hero-art { aspect-ratio: 1.95; }
  .hero p { margin-top: 12px; }
  .hero-actions { margin-top: 17px; }
  .mission { grid-template-columns: 1fr; gap: 14px; padding-block: 26px 32px; }
  .store { padding-block: 28px; }
  .store-head { align-items: start; flex-direction: column; gap: 16px; }
  .steps { font-size: .79rem; }
  .checkout { grid-template-columns: 1fr; }
  .checkout-main { min-height: 0; }
  .workflow { grid-template-columns: 1fr; gap: 10px; }
  .information, .faq { padding-bottom: 32px; }
  .information { padding-top: 32px; }
}

@media (max-width: 390px) {
  .wrap { width: calc(100% - 26px); }
  .orders-button { padding-inline: 8px; }
  .mode { padding-inline: 6px; }
  .checkout-main, .summary { padding: 15px; }
  .domain { padding-inline: 8px; font-size: .76rem; }
  .plan { padding: 7px; }
  .plan-label { gap: 5px; }
  .shuffle { margin-left: 0; }
  .footer-inner > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
