
:root {
  --bg: #080c14;
  --cyan: #00f0ff;
  --violet: #7c3aed;
  --mint: #10b981;
  --mint-text: #6ee7b7;
  --text: #f4f8fb;
  --muted: #c5d2e2;
  --dim: #9aadc4;
  --line: rgba(180, 220, 255, 0.16);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: #05080f;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: #05080f;
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans", "Yu Gothic UI", "Malgun Gothic", "Noto Naskh Arabic", Tahoma, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, a { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

::selection { background: rgba(0, 240, 255, 0.28); color: white; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.scene-stage {
  --px: 0;
  --py: 0;
  position: fixed;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 480px);
  transform: translateX(-50%);
  overflow: hidden;
  perspective: 880px;
  pointer-events: none;
}

.scene-fill { position: absolute; inset: 0; background: var(--bg); }

.scene-world {
  position: absolute;
  inset: -12%;
  transform-style: preserve-3d;
  animation: scene-sway 9s ease-in-out infinite;
}

.scene-parallax {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--py) * -9deg)) rotateY(calc(var(--px) * 12deg)) translate3d(calc(var(--px) * 28px), calc(var(--py) * 18px), 0);
  transition: transform 0.45s ease-out;
}

.scene-layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.scene-layer-far { transform: translateZ(-160px) scale(1.22); }
.scene-layer-mid { transform: translateZ(36px); }
.scene-layer-near { transform: translateZ(110px); }

.scene-plate, .scene-bloom, .scene-crystal, .scene-torus {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}

.scene-plate {
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 62% 40%;
  opacity: 0.92;
  animation: scene-drift 16s ease-in-out infinite;
}

.scene-bloom {
  top: 4%;
  left: -18%;
  width: 92%;
  opacity: 0.9;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 42%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 48%, #000 42%, transparent 72%);
  animation: scene-drift 14s ease-in-out infinite reverse;
}

.scene-crystal {
  top: 16%;
  right: -10%;
  width: 58%;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 48%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 46%, #000 48%, transparent 74%);
  animation: orbital-breathe 11s ease-in-out infinite;
}

.scene-torus {
  bottom: -8%;
  left: -12%;
  width: 78%;
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 50%, transparent 76%);
  mask-image: radial-gradient(circle at 50% 46%, #000 50%, transparent 76%);
  animation: orbital-breathe 12s ease-in-out infinite reverse;
}

.scene-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.55) 0%, rgba(8, 12, 20, 0.08) 16%, rgba(8, 12, 20, 0.04) 62%, rgba(8, 12, 20, 0.66) 100%);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  margin: 0 auto;
  min-height: 100dvh;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  border-radius: 999px;
  background: var(--cyan);
  color: #041018;
  padding: 0.6rem 1rem;
  font-weight: 700;
}

.skip-link:focus { top: 1rem; }

header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 12, 20, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px;
}

.brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
}

.brand-mark i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.brand-name {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.18em;
}

.brand-sub {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--dim);
}

.bar-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chip, .icon-btn {
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 14px;
}

.icon-btn {
  display: inline-flex;
  width: 44px;
  align-items: center;
  justify-content: center;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(8, 12, 20, 0.4);
}

.sheet-nav, .sheet-lang {
  position: relative;
  z-index: 40;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #0d1117;
  padding: 12px 16px 16px;
}

.sheet-nav a {
  display: block;
  border-radius: 16px;
  padding: 12px;
  font-size: 16px;
}

.lang-note { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 70dvh;
  overflow: auto;
}

.lang-btn {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 12px;
  text-align: start;
  font-size: 14px;
  color: var(--muted);
}

.lang-btn[aria-selected="true"] {
  border-color: rgba(0, 240, 255, 0.7);
  background: rgba(0, 240, 255, 0.1);
  color: white;
}

.ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 20, 0.72);
  direction: ltr;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 52s linear infinite;
}

.ticker-item {
  padding: 0.55rem 1.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  white-space: nowrap;
}

.ticker-item::before {
  content: "";
  display: inline-block;
  width: 0.4rem;
  height: 0.4rem;
  margin-inline-end: 0.7rem;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  transform: translateY(1px);
}

main { padding: 24px 16px 8px; }

.section { padding-top: 32px; }
.section:first-child { padding-top: 0; }

.kicker {
  margin: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

html[lang^="zh"] .kicker,
html[lang="ja"] .kicker,
html[lang="ko"] .kicker,
html[lang="ar"] .kicker {
  letter-spacing: 0.04em;
  text-transform: none;
}

.mint { color: var(--mint-text); }
.slash { padding: 0 8px; color: rgba(255, 255, 255, 0.25); }

h1, h2, h3, h4, p { margin: 0; }

h1 {
  margin-top: 12px;
  font-size: 1.85rem;
  font-weight: 650;
  line-height: 1.2;
}

h2.block {
  margin-top: 12px;
  font-size: 1.85rem;
  font-weight: 650;
  line-height: 1.2;
}

.aurora {
  display: block;
  margin-top: 8px;
  background: linear-gradient(115deg, #f7fbff 0%, #00f0ff 38%, #d6c7ff 68%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.actions { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 650;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(180deg, #7af6ff, #00d7e6);
  color: #041018;
}

.btn-ghost {
  border: 1px solid rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.05);
  color: #f4fbff;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.glass-card { position: relative; overflow: hidden; }

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.85), transparent);
  pointer-events: none;
}

.stat { border-radius: 16px; padding: 12px; }
.stat b {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 24px;
  font-weight: 500;
  direction: ltr;
}
.stat span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.4; color: var(--dim); }

.orbital {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto 8px;
  aspect-ratio: 1;
  direction: ltr;
}

.orbit-ring {
  position: absolute;
  inset: 6%;
  border-radius: 999px;
  border: 1px dashed rgba(0, 240, 255, 0.38);
  animation: spin 36s linear infinite;
}

.piece-slot {
  position: absolute;
  width: 30%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(0, 240, 255, 0.28);
  box-shadow: 0 0 28px rgba(0, 240, 255, 0.16);
}

.piece-n { top: 14%; left: 50%; transform: translateX(-50%); }
.piece-e { top: 50%; right: 12%; transform: translateY(-50%); }
.piece-s { bottom: 14%; left: 50%; transform: translateX(-50%); }
.piece-w { top: 50%; left: 12%; transform: translateY(-50%); }

.piece {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: orbital-breathe 9s ease-in-out infinite;
}

.piece-s .piece { object-position: center 18%; }

.spot {
  position: absolute;
  z-index: 2;
  display: flex;
  max-width: 5.5rem;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.spot-n { top: 1%; left: 50%; transform: translateX(-50%); }
.spot-e { top: 50%; right: 4%; transform: translateY(-50%); }
.spot-s { bottom: 1%; left: 50%; transform: translateX(-50%); }
.spot-w { top: 50%; left: 4%; transform: translateY(-50%); }

.spot i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.spot span { font-size: 10px; line-height: 1.25; color: #d5e4f2; }

.cards, .stack, .layers, .pair { display: grid; gap: 12px; }
.cards { margin-top: 24px; }
.card { display: flex; height: 100%; flex-direction: column; border-radius: 24px; padding: 20px; }
.card-top, .card-name, .lens-top, .modal-top, .product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glyph {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.num {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--dim);
  direction: ltr;
}
.card h2, .group h3 { margin-top: 16px; font-size: 18px; font-weight: 650; line-height: 1.35; }
.card > p, .muted { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.group h3 { margin-top: 0; }

.mark {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.06);
  padding: 12px;
}

.mark .dot {
  width: 8px;
  height: 8px;
  flex: none;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

.mark-copy { min-width: 0; flex: 1; }
.mark-label { display: block; font-size: 10px; letter-spacing: 0.04em; color: #9af7ff; }
.mark-name { display: block; margin-top: 2px; font-size: 14px; font-weight: 650; }
.mark-note { display: block; margin-top: 4px; font-size: 12px; line-height: 1.55; color: var(--muted); }
html[dir="rtl"] .flip { transform: scaleX(-1); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  font-size: 12px;
  color: #d7f9ff;
}

.note { margin-top: 12px; font-size: 14px; color: var(--dim); }

.scroller {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }

.choice {
  min-height: 48px;
  min-width: 78%;
  flex: none;
  scroll-snap-align: start;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 16px;
  text-align: start;
  font-size: 14px;
  color: var(--muted);
}

.choice[aria-pressed="true"] {
  border-color: rgba(0, 240, 255, 0.7);
  background: rgba(0, 240, 255, 0.1);
  color: white;
}

.product { margin-top: 16px; border-radius: 28px; padding: 20px; }
.product h3 { font-size: 24px; font-weight: 650; }
.org { margin-top: 4px; font-size: 14px; color: var(--dim); }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; }
.status-label { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dim); }
.badge { border-radius: 999px; border: 1px solid; padding: 4px 12px; font-size: 14px; }
.summary { margin-top: 20px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.layer {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  opacity: 0.45;
}
.layer.on { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); opacity: 1; }
.layer p { margin-top: 4px; font-size: 12px; color: var(--dim); }
.panel { border-radius: 24px; padding: 16px; }
.panel h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.panel ul { margin: 12px 0 0; padding: 0; list-style: none; }
.panel li { display: flex; gap: 8px; margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.panel-cyan { border: 1px solid rgba(0, 240, 255, 0.2); background: rgba(0, 240, 255, 0.05); }
.panel-cyan h4 { color: #bffbff; }
.panel-mint { border: 1px solid rgba(16, 185, 129, 0.25); background: rgba(16, 185, 129, 0.05); }
.panel-mint h4 { color: var(--mint-text); }
.check { flex: none; margin-top: 2px; color: var(--cyan); }

.groups { display: grid; gap: 24px; margin-top: 24px; }
.group-mark { max-width: none; }
.link-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-radius: 24px;
  padding: 20px;
}
.link-card strong { font-size: 18px; }
.link-card p { margin-top: 12px; flex: 1; font-size: 14px; line-height: 1.65; color: var(--muted); }
.link-card em { margin-top: 16px; font-style: normal; font-size: 14px; color: #9af7ff; }

.lenses { display: grid; gap: 12px; margin-top: 24px; }
.lens { border-radius: 24px; padding: 16px; }
.lens button { width: 100%; text-align: start; }
.lens h3 { display: block; margin-top: 12px; font-size: 16px; font-weight: 650; line-height: 1.4; }
.lens .body { display: block; margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.lens .toggle { display: block; margin-top: 12px; font-size: 12px; color: #9af7ff; }
.points { margin: 12px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.points li { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--muted); }
.violet { color: #a78bfa; }
.cyan { color: var(--cyan); }

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 16px max(24px, env(safe-area-inset-bottom));
}
.footer-brand {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 14px;
  letter-spacing: 0.18em;
}
footer .blurb { margin-top: 12px; max-width: 28rem; font-size: 14px; line-height: 1.65; color: var(--muted); }
footer .rights { margin-top: 24px; font-size: 12px; color: var(--dim); }
.legal-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.legal-nav button {
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  padding: 0 16px;
  text-align: start;
  font-size: 14px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 7, 13, 0.75);
}

.modal .overlay { z-index: 0; }
.dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: 88dvh;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
}
.dialog h2 { font-size: 24px; font-weight: 650; }
.dialog .copy { margin-top: 20px; display: grid; gap: 16px; }
.dialog p { font-size: 14px; line-height: 1.7; color: var(--muted); }

.ico { width: 16px; height: 16px; flex: none; }
.ico-lg { width: 20px; height: 20px; }

section[id] { scroll-margin-top: 7.75rem; }

@keyframes scene-sway {
  0%, 100% { transform: rotateX(3deg) rotateY(-6deg) translate3d(0, 0, 0); }
  50% { transform: rotateX(-4deg) rotateY(7deg) translate3d(0, -2.2%, 48px); }
}
@keyframes scene-drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3.5%, -2.4%, 0) scale(1.08); }
}
@keyframes orbital-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.07) rotate(3deg); }
}
@keyframes ticker {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.safari-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(4, 7, 13, 0.82);
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
}

.safari-card {
  width: min(100%, 480px);
  border-radius: 28px;
  padding: 24px 20px 20px;
}

.safari-card p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.55;
}

.safari-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.safari-actions .btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene-world, .scene-plate, .scene-bloom, .scene-crystal, .scene-torus, .piece, .ticker-track, .orbit-ring {
    animation: none !important;
  }
}

