/* Mirage Avenue — landing. Night-city palette shared with the city itself. */
:root {
  --bg: #07050d;
  --bg-2: #0d0917;
  --panel: rgba(17, 12, 29, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5efe4;
  --muted: rgba(245, 239, 228, 0.66);
  --dim: rgba(245, 239, 228, 0.4);
  --gold: #f3c56b;
  --gold-2: #ffe1a3;
  --pink: #ff2d95;
  --cyan: #27e2ff;
  --green: #3dff9a;
  --display: 'Tektur', 'PingFang SC', sans-serif;
  --body: 'Onest', 'PingFang SC', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --neon-line: linear-gradient(90deg, transparent, var(--gold) 20%, var(--pink) 55%, var(--cyan) 85%, transparent);
  --wrap: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--pink); color: #fff; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px;
  text-decoration: none; white-space: nowrap; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1206; box-shadow: 0 10px 40px rgba(243, 197, 107, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.gold:hover { box-shadow: 0 16px 50px rgba(243, 197, 107, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn.gold small { font-family: var(--mono); font-size: 12px; text-transform: none; letter-spacing: 0; opacity: 0.7; }
.btn.ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn.small { padding: 8px 14px; font-size: 12px; }
.btn.big { padding: 16px 28px; font-size: 16px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px; padding: 16px var(--gutter);
  transition: background 0.3s, border-color 0.3s, padding 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled, .nav.open {
  background: rgba(7, 5, 13, 0.82); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line); padding-top: 10px; padding-bottom: 10px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 2; }
.logo svg .moon { fill: var(--pink); stroke: none; }
.logo span { font-family: var(--display); font-weight: 800; letter-spacing: 0.18em; font-size: 15px; }
.logo em { font-style: normal; color: var(--gold); margin-left: 6px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color 0.2s; }
.links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.lang button.on { background: var(--text); color: var(--bg); }
.menu { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 12px; background: none; position: relative; }
.menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform 0.3s var(--ease); }
.menu span:first-child { top: 15px; }
.menu span:last-child { top: 23px; }
.nav.open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 60% 50%; animation: drift 38s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.08) translateX(0); } to { transform: scale(1.18) translateX(-3%); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 5, 13, 0.55) 0%, rgba(7, 5, 13, 0) 22%, rgba(7, 5, 13, 0.2) 50%, rgba(7, 5, 13, 0.92) 86%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7, 5, 13, 0.85) 0%, rgba(7, 5, 13, 0.35) 45%, rgba(7, 5, 13, 0) 70%);
}
.hero-inner { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 140px var(--gutter) 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7, 5, 13, 0.5); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }
.title { margin: 0; font-family: var(--display); font-weight: 800; line-height: 0.86; letter-spacing: 0.04em; font-size: clamp(56px, 12.5vw, 184px); }
.title span { display: block; }
.t1 { background: linear-gradient(95deg, var(--gold-2) 0%, var(--gold) 22%, var(--pink) 55%, var(--cyan) 95%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 40px rgba(255, 45, 149, 0.35)); }
.t2 { color: transparent; -webkit-text-stroke: 1.5px rgba(245, 239, 228, 0.85); letter-spacing: 0.12em; }
.scripts { margin: 18px 0 0; font-family: var(--body); font-size: clamp(16px, 2vw, 22px); letter-spacing: 0.3em; color: var(--gold); }
.scripts i { font-style: normal; color: var(--pink); margin: 0 6px; }
.lede { max-width: 620px; margin: 22px 0 32px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(245, 239, 228, 0.82); text-shadow: 0 1px 12px rgba(7, 5, 13, 0.9), 0 0 2px rgba(7, 5, 13, 0.8); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 760px; margin: 48px 0 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--line); }
.counters div { padding: 16px 18px; background: rgba(9, 6, 17, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.counters dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.counters dd { margin: 4px 0 0; font-family: var(--display); font-size: clamp(24px, 3vw, 36px); font-weight: 700; color: var(--gold-2); text-shadow: 0 0 22px rgba(243, 197, 107, 0.45); font-variant-numeric: tabular-nums; }
.counters dd.live { color: var(--green); text-shadow: 0 0 22px rgba(61, 255, 154, 0.45); }

/* vertical neon sign, like the ones on Chinese high streets */
.vsign {
  position: absolute; right: clamp(16px, 5vw, 80px); top: 22%; z-index: 1;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px;
  border: 2px solid var(--pink); border-radius: 10px; background: rgba(40, 4, 22, 0.55);
  box-shadow: 0 0 30px rgba(255, 45, 149, 0.55), inset 0 0 20px rgba(255, 45, 149, 0.35);
  font-family: var(--body); font-weight: 700; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; color: #ffd6ea;
  text-shadow: 0 0 8px var(--pink), 0 0 24px var(--pink);
  animation: flicker 7s infinite;
}
@keyframes flicker { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: 0.45; } }

/* LED ticker */
.ticker { display: flex; align-items: stretch; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #050309; }
.ticker-label { flex: none; display: flex; align-items: center; padding: 0 18px; background: var(--pink); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; }
.ticker-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-run { display: inline-flex; gap: 22px; padding: 12px 0; white-space: nowrap; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: #ffc46b; text-shadow: 0 0 10px rgba(255, 170, 60, 0.7); animation: ticker 60s linear infinite; }
.ticker-run:empty::before { content: 'MIRAGE AVENUE ✦ 海市蜃楼 ✦ سراب ✦ MIRAGE AVENUE ✦ 海市蜃楼 ✦ سراب'; }
.ticker-run i { font-style: normal; color: var(--pink); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter) 40px; }
.sec-head { max-width: 780px; margin-bottom: 48px; }
.kicker { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kicker b { color: var(--gold); font-weight: 700; }
.kicker b::after { content: ''; display: inline-block; width: 36px; height: 1px; margin-left: 12px; vertical-align: middle; background: var(--neon-line); }
.kicker i { font-style: normal; letter-spacing: 0.05em; color: var(--dim); text-transform: none; }
.sec h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.005em; }
.sub { margin: 18px 0 0; font-size: 18px; color: var(--muted); }
h3 { font-family: var(--display); font-weight: 600; letter-spacing: 0.01em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- avenue ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars article { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)); position: relative; overflow: hidden; }
.pillars article::before { content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: var(--neon-line); opacity: 0.8; }
.pill-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(243, 197, 107, 0.4); color: var(--gold); font-size: 20px; }
.pillars h3 { margin: 18px 0 8px; font-size: 20px; }
.pillars p { margin: 0; color: var(--muted); font-size: 15px; }

.map { position: relative; margin-top: 28px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(120% 140% at 50% 120%, rgba(255, 45, 149, 0.14), transparent 60%), var(--bg-2); }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.map-head h3 { margin: 0; font-size: 18px; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend em { font-style: normal; }
.lg { width: 12px; height: 12px; border-radius: 3px; }
.lg.built { background: linear-gradient(var(--pink), var(--cyan)); }
.lg.held { border: 1.5px solid var(--pink); }
.lg.free { border: 1.5px dashed var(--gold); }
.map-scroll { overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.map-strip { display: flex; align-items: flex-end; gap: 3px; height: 150px; min-width: 760px; border-bottom: 1px solid rgba(243, 197, 107, 0.35); }
.plot { flex: 1; min-width: 5px; border-radius: 3px 3px 0 0; display: block; transition: transform 0.2s var(--ease), filter 0.2s; transform-origin: bottom; }
.plot:hover, .plot:focus-visible { transform: scaleY(1.06); filter: brightness(1.4); outline: none; }
.plot.built { height: var(--h); background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 25%, #07050d)); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 45%, transparent); }
.plot.free { height: 12px; border: 1.5px dashed rgba(243, 197, 107, 0.7); border-bottom: 0; }
.plot.free:hover { background: rgba(243, 197, 107, 0.2); }
.plot.held { height: 12px; border: 1.5px solid var(--pink); border-bottom: 0; animation: pulse 1.2s ease-in-out infinite; }
.plot.unknown { height: 12px; background: rgba(255, 255, 255, 0.08); }
.map-tip { position: absolute; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: #000; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; white-space: nowrap; pointer-events: none; z-index: 2; }
.map-note { margin: 14px 0 0; font-size: 13px; color: var(--dim); }

/* ---------- gallery ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 14px; }
.bento figure { position: relative; margin: 0; overflow: hidden; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.bento .b-wide { grid-column: span 2; grid-row: span 2; }
.bento figure:last-child { grid-column: span 2; }
.bento img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bento figure:hover img { transform: scale(1.06); }
.bento figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgba(7, 5, 13, 0.9)); font-size: 14px; color: var(--text); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 24px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel); }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 46px; right: -17px; width: 18px; height: 1px; background: var(--gold); opacity: 0.6; }
.floor { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px var(--gold); }
.steps h3 { margin: 16px 0 8px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- designer ---------- */
.designer { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.stage {
  position: relative; border-radius: 24px; border: 1px solid var(--line); overflow: hidden; min-height: 520px;
  background:
    linear-gradient(rgba(39, 226, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(39, 226, 255, 0.05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(80% 60% at 40% 100%, rgba(255, 45, 149, 0.18), transparent 70%),
    linear-gradient(#0a0714, #07050d);
}
#tower-svg { display: block; width: 100%; height: 100%; max-height: 640px; }
#tower-svg .ground-line { stroke: rgba(243, 197, 107, 0.4); }
#tower-svg .edges { animation: edge 2.6s ease-in-out infinite; }
@keyframes edge { 50% { opacity: 0.55; } }
#tower-svg .beacon { animation: beam 5s ease-in-out infinite alternate; }
@keyframes beam { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
#tower-svg .scan { animation: scan 2.4s linear infinite; }
@keyframes scan { to { transform: translateY(var(--sh)); } }
#tower-svg .screen-text { font-family: var(--display); font-weight: 800; letter-spacing: 0.06em; }
#tower-svg .board line { stroke: #3a3448; stroke-width: 3; }
#tower-svg .b-letter { font-family: var(--display); font-weight: 800; font-size: 16px; fill: #07050d; }
#tower-svg .b-name { font-family: var(--display); font-weight: 700; font-size: 10px; fill: #fff; }
#tower-svg .b-nick { font-family: var(--mono); font-size: 7.5px; }
#tower-svg .floors-mark line { stroke: var(--gold); stroke-width: 1; opacity: 0.6; }
#tower-svg .floors-mark text { font-family: var(--mono); font-size: 11px; fill: var(--gold); }
#tower-svg .callouts polyline { fill: none; stroke: rgba(245, 239, 228, 0.35); stroke-width: 1; }
#tower-svg .callouts circle { fill: var(--gold); }
#tower-svg .callouts text { fill: var(--text); }
#tower-svg .callouts .lh { font-family: var(--display); font-weight: 600; font-size: 12.5px; }
#tower-svg .callouts .ls { font-family: var(--body); font-size: 10px; fill: var(--muted); }
.labels { display: none; }

.controls { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.field > span b { font-weight: 400; }
.field output { font-family: var(--display); font-size: 16px; color: var(--gold-2); letter-spacing: 0; }
.field input:not([type]), .field input[type='text'] {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35); color: var(--text);
  font-family: var(--display); font-size: 16px; letter-spacing: 0.06em; text-transform: uppercase; outline: none;
}
.field input:focus { border-color: var(--gold); }
input[type='range'] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold), var(--pink), var(--cyan)); outline: none; }
input[type='range']::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); box-shadow: 0 0 16px rgba(255, 45, 149, 0.7); cursor: grab; }
input[type='range']::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); cursor: grab; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; font-size: 13px; color: var(--muted); transition: all 0.2s; }
.chip:hover { color: var(--text); border-color: var(--dim); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); background: var(--c); transition: transform 0.2s var(--ease); }
.sw:hover { transform: scale(1.12); }
.sw.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15), 0 0 16px var(--c); }
.addons { gap: 10px; }
.toggle { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.2s; }
.toggle:hover { border-color: var(--line-2); }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.knob { width: 38px; height: 22px; border-radius: 22px; background: rgba(255, 255, 255, 0.12); position: relative; transition: background 0.2s; }
.knob::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.25s var(--ease); }
.toggle input:checked + .knob { background: var(--pink); box-shadow: 0 0 14px rgba(255, 45, 149, 0.5); }
.toggle input:checked + .knob::after { transform: translateX(16px); }
.toggle input:focus-visible + .knob { outline: 2px solid var(--gold); outline-offset: 2px; }
.tl b { display: block; font-weight: 600; font-size: 14px; }
.tl small { color: var(--dim); font-size: 12px; }
.toggle em { font-style: normal; font-family: var(--mono); color: var(--gold); font-size: 13px; }
.price { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.price span { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.price strong { display: block; font-family: var(--display); font-size: 48px; line-height: 1.05; color: var(--gold-2); text-shadow: 0 0 30px rgba(243, 197, 107, 0.4); }
.price small { display: block; font-family: var(--mono); font-size: 12px; color: var(--dim); }

/* ---------- prices ---------- */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.offer { display: flex; flex-direction: column; padding: 14px 14px 22px; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.offer-img { height: 160px; border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.offer-img img { width: 100%; height: 100%; object-fit: cover; }
.offer h3, .offer p, .offer ul, .offer table { margin-left: 10px; margin-right: 10px; }
.offer h3 { margin-top: 0; margin-bottom: 6px; font-size: 22px; }
.offer > p { margin-top: 0; color: var(--muted); font-size: 15px; }
.big-price { margin: 0 0 10px; }
.big-price span { font-family: var(--display); font-size: 44px; font-weight: 700; color: var(--gold-2); }
.big-price small { color: var(--dim); font-size: 14px; }
.offer ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--muted); }
.offer li { padding-left: 18px; position: relative; }
.offer li::before { content: '✦'; position: absolute; left: 0; color: var(--pink); font-size: 11px; top: 3px; }
.offer li b { color: var(--gold); font-weight: 600; }
.plans { width: calc(100% - 20px); border-collapse: collapse; font-size: 14px; margin-top: auto; }
.plans tr { border-top: 1px solid var(--line); }
.plans th { text-align: left; font-weight: 500; padding: 11px 0; }
.plans th em { font-style: normal; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 2px 7px; margin-left: 6px; border-radius: 999px; background: var(--pink); color: #fff; }
.plans td { padding: 11px 0; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.plans td:last-child { text-align: right; }
.plans td b { font-family: var(--display); font-size: 18px; color: var(--gold-2); }
.plans tr.pop th { color: var(--text); }

/* ---------- lore ---------- */
.lore-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lore-card { position: relative; overflow: hidden; padding: 30px; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(150deg, rgba(39, 226, 255, 0.06), rgba(255, 45, 149, 0.04) 60%, transparent), var(--bg-2); }
.lore-tag { display: inline-block; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(243, 197, 107, 0.45); font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold); }
.lore-card h3 { margin: 16px 0 10px; font-size: 24px; }
.lore-card p { margin: 0; color: var(--muted); }
.lore-card.name { grid-column: span 2; }
.lore-card.name::after {
  content: '海市蜃楼'; position: absolute; right: -10px; bottom: -40px; pointer-events: none;
  font-size: clamp(90px, 14vw, 180px); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255, 45, 149, 0.22);
}
.lore-card.name p { max-width: 760px; position: relative; z-index: 1; }

/* ---------- payments ---------- */
.pay-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.pay-flow { list-style: none; margin: 0; padding: 0; counter-reset: p; display: flex; flex-direction: column; gap: 12px; }
.pay-flow li { counter-increment: p; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); }
.pay-flow li::before { content: '0' counter(p); grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(39, 226, 255, 0.1); border: 1px solid rgba(39, 226, 255, 0.35); color: var(--cyan); font-family: var(--mono); font-weight: 700; font-size: 14px; }
.pay-flow b { font-family: var(--display); font-weight: 600; font-size: 17px; }
.pay-flow span { color: var(--muted); font-size: 15px; }
.wallet-card { position: sticky; top: 100px; padding: 28px; border-radius: 24px; border: 1px solid rgba(61, 255, 154, 0.3); background: radial-gradient(100% 80% at 100% 0%, rgba(61, 255, 154, 0.12), transparent 60%), var(--bg-2); }
.wallet-net { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(61, 255, 154, 0.14); color: var(--green); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.wallet-card p { color: var(--muted); font-size: 15px; }
.wallet-card code { display: block; padding: 14px; margin-bottom: 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 14px; word-break: break-all; color: var(--text); }
.wallet-card .warn { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }

/* ---------- roadmap: a tower read from the ground up ---------- */
.roadmap { position: relative; max-width: 900px; }
.crane { width: 120px; margin-left: 20px; }
.crane svg { width: 120px; height: 70px; fill: none; stroke: var(--gold); stroke-width: 2; opacity: 0.75; }
.crane rect { fill: rgba(243, 197, 107, 0.3); }
.phase { display: grid; grid-template-columns: 160px 1fr; gap: 28px; }
.phase-floor { display: flex; justify-content: center; }
.phase-floor span {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 150px;
  font-family: var(--display); font-weight: 800; font-size: 28px; color: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--line-2); border-bottom: 0;
}
.phase-floor span { width: var(--w, 120px); }
.phase.done .phase-floor span {
  border-color: var(--gold); color: #1a1206; text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(0, 0, 0, 0.35) 10px 12px), repeating-linear-gradient(90deg, #ffd98a 0 12px, #d89a3a 12px 16px);
  box-shadow: 0 0 30px rgba(243, 197, 107, 0.35);
}
.phase.now .phase-floor span {
  border-color: var(--pink); color: #fff;
  background: repeating-linear-gradient(0deg, transparent 0 10px, rgba(0, 0, 0, 0.5) 10px 12px), repeating-linear-gradient(90deg, rgba(255, 45, 149, 0.8) 0 12px, rgba(80, 10, 45, 0.9) 12px 16px);
  animation: build 1.6s ease-in-out infinite; box-shadow: 0 0 30px rgba(255, 45, 149, 0.45);
}
@keyframes build { 50% { filter: brightness(0.6); } }
.phase.next .phase-floor span, .phase.later .phase-floor span, .phase.vision .phase-floor span { border-style: dashed; color: var(--dim); background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(255, 255, 255, 0.03) 8px 10px); }
.phase.vision .phase-floor span { border-color: rgba(39, 226, 255, 0.35); color: rgba(39, 226, 255, 0.6); }
.phase.vision .phase-status { border-color: rgba(39, 226, 255, 0.4); color: var(--cyan); }
/* floor 05: the token — a gold coin in the blueprint */
.phase.token .phase-floor span { position: relative; flex-direction: column; gap: 6px; border-color: rgba(243, 197, 107, 0.6); color: var(--gold); }
.phase.token .phase-floor span::before {
  content: 'M'; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: var(--display); font-size: 22px; color: #1a1206;
  background: radial-gradient(circle at 35% 30%, #fff3cf, var(--gold) 45%, #a8742a);
  box-shadow: 0 0 0 3px rgba(243, 197, 107, 0.25), 0 0 26px rgba(243, 197, 107, 0.55);
  animation: coin 4s ease-in-out infinite;
}
@keyframes coin { 0%, 100% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } }
.phase.token .phase-status { border-color: rgba(243, 197, 107, 0.55); color: var(--gold); }
.phase.token h3 { background: linear-gradient(90deg, var(--gold-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* floor 06: the ring */
.phase.ring .phase-floor span { position: relative; flex-direction: column; gap: 6px; border-color: rgba(255, 45, 149, 0.45); color: var(--pink); }
.phase.ring .phase-floor span::before {
  content: ''; width: 44px; height: 44px; border-radius: 50%;
  border: 3px dotted var(--pink); box-shadow: 0 0 18px rgba(255, 45, 149, 0.5), inset 0 0 12px rgba(255, 45, 149, 0.4);
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.phase-body { padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
.phase-status { display: inline-block; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--dim); }
.phase.done .phase-status { border-color: rgba(243, 197, 107, 0.5); color: var(--gold); }
.phase.now .phase-status { border-color: var(--pink); color: #fff; background: rgba(255, 45, 149, 0.2); }
.phase-body h3 { margin: 0 0 10px; font-size: 24px; }
.phase-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.phase-body li { padding-left: 18px; position: relative; }
.phase-body li::before { content: ''; position: absolute; left: 0; top: 10px; width: 8px; height: 2px; background: var(--dim); }
.phase.done li::before { background: var(--gold); }
.phase.now li::before { background: var(--pink); }
.ground { height: 3px; width: 230px; margin-left: -35px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rm-note { margin: 18px 0 0; font-size: 13px; color: var(--dim); }

/* ---------- faq ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 600; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); font-family: var(--mono); color: var(--gold); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 720px; color: var(--muted); }

/* ---------- final ---------- */
.final { position: relative; margin-top: 120px; padding: 140px var(--gutter); text-align: center; overflow: hidden; isolation: isolate; }
.final-bg { position: absolute; inset: 0; z-index: -1; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.final-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--bg), rgba(7, 5, 13, 0.4) 40%, rgba(7, 5, 13, 0.6) 70%, var(--bg)); }
.final-count { margin: 0; font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.final-count span:first-child { display: block; font-family: var(--display); font-size: clamp(80px, 14vw, 170px); font-weight: 800; line-height: 1; letter-spacing: 0; color: transparent; -webkit-text-stroke: 2px var(--gold); text-shadow: 0 0 60px rgba(243, 197, 107, 0.35); }
.final h2 { margin: 18px 0 34px; font-family: var(--display); font-size: clamp(32px, 5vw, 60px); line-height: 1.05; }
.support { margin: 26px 0 0; color: var(--muted); }
.support a { color: var(--gold); }

/* ---------- footer ---------- */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; max-width: var(--wrap); margin: 0 auto; padding: 36px var(--gutter) 48px; border-top: 1px solid var(--line); }
.foot-brand b { display: block; font-family: var(--display); letter-spacing: 0.2em; }
.foot-brand span { font-size: 13px; color: var(--dim); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.foot nav a:hover { color: var(--text); }
.fine { flex-basis: 100%; margin: 0; font-size: 13px; color: var(--dim); }

body.offline .counters dd::after { content: ''; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .links { display: none; }
  .menu { display: block; }
  .nav.open .links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    padding: 12px var(--gutter) 20px; background: rgba(7, 5, 13, 0.96); border-bottom: 1px solid var(--line);
  }
  .nav.open .links a { padding: 10px 0; font-size: 17px; color: var(--text); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li::after { display: none; }
  .designer, .pay-grid { grid-template-columns: 1fr; }
  .wallet-card { position: static; }
  .offers { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav .btn.small { display: none; }
  .vsign { top: 92px; font-size: 26px; padding: 10px 8px; }
  .eyebrow { max-width: calc(100% - 64px); }
  .hero-inner { padding-top: 120px; }
  .hero-shade { background: linear-gradient(180deg, rgba(7, 5, 13, 0.6) 0%, rgba(7, 5, 13, 0.35) 25%, rgba(7, 5, 13, 0.78) 55%, rgba(7, 5, 13, 0.95) 80%, var(--bg) 100%); }
  .t2 { -webkit-text-stroke-width: 1px; }
  .counters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-row .btn { flex: 1 1 100%; }
  .sec { padding-top: 84px; }
  .sub { font-size: 16px; }
  .pillars, .lore-grid { grid-template-columns: 1fr; }
  .lore-card.name { grid-column: auto; }
  .map { padding: 18px 14px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .bento .b-wide, .bento figure:last-child { grid-column: auto; grid-row: auto; }
  .bento .b-wide { grid-row: span 1; }
  .steps { grid-template-columns: 1fr; }
  .stage { min-height: 420px; }
  .controls, .lore-card { padding: 20px; }
  .phase { grid-template-columns: 96px 1fr; gap: 16px; }
  .phase-floor span { width: calc(var(--w, 120px) * 0.62); }
  .phase.token .phase-floor span::before, .phase.ring .phase-floor span::before { width: 32px; height: 32px; font-size: 16px; }
  .phase-floor span { font-size: 20px; }
  .crane { width: 90px; margin-left: 0; }
  .crane svg { width: 90px; height: 52px; }
  .ground { width: 130px; margin-left: -17px; }
  .faq summary { font-size: 17px; }
  .final { padding: 100px var(--gutter); }
}

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