/* ==========================================================================
   public/home.css — NumberMart homepage, Number Market & auction strip
   规格 023 主页科技化 → 规格 034 Neon Ledger → 规格 035 SC Airy 明亮主题
   (渣打蓝绿 + 白卡片 + 金色只留给号码)
   沿用 styles.css 变量体系 (--bg-*, --sc-*, --num-*, --cta-*, --font-*)
   ========================================================================== */

body {
  counter-reset: nmsec;
}

/* ---------------- 1. HERO SECTION ---------------- */

.home-hero {
  position: relative;
  /* first screen = header (≈58px) + hero + ticker (≈46px), so the ticker sits on the bottom edge */
  min-height: calc(100vh - 104px);
  min-height: calc(100svh - 104px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) clamp(1.25rem, 4.5vw, 4rem) clamp(4rem, 10vh, 6.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* ---------------- Hero backdrop: aurora light, dot grid, layered SG skyline ---------------- */

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: heroAurora 18s ease-in-out infinite alternate;
}

.hero-aurora.a1 {
  top: -18%;
  left: -8%;
  width: 46vw;
  height: 46vw;
  background: radial-gradient(circle, rgba(4, 115, 234, 0.35), transparent 65%);
}

.hero-aurora.a2 {
  top: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(56, 210, 0, 0.2), transparent 65%);
  animation-duration: 22s;
  animation-delay: -6s;
}

.hero-aurora.a3 {
  top: 30%;
  left: 30%;
  width: 38vw;
  height: 30vw;
  background: radial-gradient(circle, rgba(246, 196, 83, 0.22), transparent 65%);
  animation-duration: 26s;
  animation-delay: -12s;
}

@keyframes heroAurora {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-3vw, 5vh) scale(0.95); }
}

.hero-dots {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 1px 1px, rgba(4, 115, 234, 0.13) 1px, transparent 0) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 35%, #000 0%, transparent 75%);
}

.hero-skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: clamp(170px, 36vh, 360px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

.hero-skyline .sk-win {
  fill: none;
  stroke: rgba(255, 236, 179, 0.85);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hero-skyline .sk-facet {
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 1;
  stroke-linecap: round;
}

.hero-skyline .sk-ripple {
  fill: none;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 1.5;
  stroke-linecap: round;
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora { animation: none; }
}

/* ---------------- Left Column: Copy, Flip Headline, Search, Telemetry ---------------- */

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  animation: homeRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  padding: 0.36rem 0.45rem 0.36rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glow);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc-green);
  animation: statusPulse 2s ease-in-out infinite;
}

.hero-badge-tag {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--sc-green-50);
  color: var(--sc-green-ink);
  font-weight: 600;
  font-size: 0.72rem;
}

.home-headline {
  margin: 0 0 1.1rem;
  width: 100%;
  max-width: 100%;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.5vw, 3.85rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

/* 中文整行是全角字, 同字号会把主标题挤到第二行 */
:lang(zh) .home-headline {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero-flip-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0.2rem 0 0;
  white-space: nowrap;
  line-height: 1.12;
}

.hero-flip-word {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  background: var(--gold-ink-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
  position: relative;
}

/* 光标绝对定位: 词长切换时不占行内宽度, 不会单独折到下一行 */
.hero-flip-word::after {
  content: '';
  position: absolute;
  left: 100%;
  bottom: 0.16em;
  width: 0.12em;
  height: 0.8em;
  margin-left: 0.1em;
  background: #c4922a;
  animation: cursorBlink 1s steps(2) infinite;
}

/* CTA Buttons */
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.9rem;
}

.home-cta-primary,
.home-cta-secondary,
.home-cta-cyber {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.45rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.home-cta-primary svg,
.home-cta-secondary svg,
.home-cta-cyber svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.home-cta-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 1px solid transparent;
  box-shadow: var(--cta-shadow);
}

.home-cta-primary:hover {
  transform: translateY(-2px);
  background: var(--cta-bg-hover);
  box-shadow: var(--cta-shadow);
}

.home-cta-secondary,
.home-cta-cyber {
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  background: #fff;
}

.home-cta-secondary:hover,
.home-cta-cyber:hover {
  transform: translateY(-2px);
  border-color: var(--sc-green);
  box-shadow: var(--shadow-neon);
}

.home-cta-secondary .nm-i,
.home-cta-cyber .nm-i {
  color: var(--sc-blue);
}

/* ---------------- Right Column: Multi-Asset Showcase Stage ---------------- */

.holo-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.holo-card-wrap {
  position: relative;
  width: 100%;
  max-width: 500px;
  min-height: 390px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glow);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  padding: 22px;
  overflow: hidden;
}

/* Faint blue→green gradient edge */
.holo-card-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--sc-blue), transparent 35%, transparent 65%, var(--sc-green));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.holo-hud-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 1px dashed var(--glass-border);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.holo-hud-id {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--sc-blue-ink);
}

.holo-hud-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sc-green-ink);
  white-space: nowrap;
}

.holo-hud-status::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sc-green);
}

/* Switchable Showcase Decks */
.holo-decks {
  position: relative;
  z-index: 3;
  min-height: 265px;
}

.holo-deck {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.95rem;
  animation: deckFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.holo-deck.is-active {
  display: flex;
}

.holo-svg-stage {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--num-plate-bg);
  border: 1px solid var(--num-plate-border);
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.holo-svg-stage svg {
  width: 100%;
  height: auto;
  max-height: 168px;
  display: block;
}

.holo-svg-stage svg text,
.eco-svg-banner svg text {
  font-family: var(--font-display);
}

.holo-svg-stage svg text[font-family*="monospace"],
.eco-svg-banner svg text[font-family*="monospace"] {
  font-family: var(--font-mono);
}

.holo-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.holo-meta-box {
  background: var(--bg-tint);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
}

.holo-meta-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.holo-meta-v {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.12rem;
  font-variant-numeric: tabular-nums;
}

.holo-meta-v.gold { color: var(--gold-ink); }
.holo-meta-v.cyan { color: var(--sc-blue-ink); }
.holo-meta-v.green { color: var(--sc-green-ink); }

/* Deck Switcher Tabs below Card */
.holo-tabs {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  width: 100%;
  max-width: 500px;
}

.holo-tab-btn {
  appearance: none;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.7rem;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: all 0.22s ease;
}

.holo-tab-btn:hover {
  border-color: var(--sc-green);
}

.holo-tab-btn strong {
  display: block;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.82rem;
  margin-bottom: 0.1rem;
}

.holo-tab-btn span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.holo-tab-btn.is-active {
  border-color: var(--sc-green);
  background: #fff;
}

.holo-tab-btn.is-active strong {
  color: var(--text-primary);
}

.holo-tab-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background: var(--sc-green);
  transition: width 0.1s linear;
}

.holo-tab-btn.is-active .holo-tab-progress {
  width: 100%;
  animation: tabProgress 5.5s linear infinite;
}

/* ---------------- 2. LIVE TICKER MARQUEE ---------------- */

.tech-marquee {
  /* pinned to the bottom of the first screen until the page scrolls to it (mobile hero is taller than one screen) */
  position: sticky;
  bottom: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.66rem 0;
  z-index: 3;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 2.4rem;
  animation: marqueeScroll 40s linear infinite;
}

.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

a.marquee-item {
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s ease;
}

a.marquee-item:hover .marquee-val {
  filter: brightness(0.85);
}

a.marquee-item:hover .marquee-code {
  border-color: var(--sc-blue);
  color: var(--sc-blue-ink);
}

.marquee-code {
  padding: 0.08rem 0.4rem;
  border: 1px dashed var(--glass-border-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.marquee-item::before {
  content: '◆';
  color: var(--glass-border-strong);
  font-size: 0.6rem;
}

.marquee-tag {
  padding: 0.14rem 0.48rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee-tag.gold {
  background: var(--gold-tint-bg);
  color: var(--gold-ink);
  border: 1px solid var(--gold-tint-border);
}

.marquee-tag.cyan {
  background: var(--sc-blue-50);
  color: var(--sc-blue-ink);
  border: 1px solid rgba(4, 115, 234, 0.25);
}

.marquee-tag.violet {
  background: var(--sc-green-50);
  color: var(--sc-green-ink);
  border: 1px solid rgba(31, 138, 0, 0.35);
}

.marquee-val {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.marquee-val.is-num {
  background: var(--gold-ink-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

/* ---------------- Shared section heads ---------------- */

.section-eyebrow {
  counter-increment: nmsec;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sc-blue);
  margin-bottom: 0.55rem;
}

.section-eyebrow::before {
  content: counter(nmsec, decimal-leading-zero);
  flex: none;
  padding: 0.08rem 0.42rem;
  border-radius: 4px;
  border: 1px solid rgba(4, 115, 234, 0.25);
  background: var(--sc-blue-50);
  color: var(--sc-blue-ink);
  letter-spacing: 0.06em;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.2rem;
}

.section-head h2,
.home-browse-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

/* ---------------- 3. MULTI-ASSET ECOSYSTEM PILLARS (3 SVG CARDS) ---------------- */

.eco-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 2rem;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.eco-card {
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--glass-border);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.eco-card:hover {
  transform: translateY(-4px);
  border-color: var(--sc-green);
  box-shadow: var(--shadow-neon);
}

.eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}

.eco-phase-pill {
  padding: 0.22rem 0.62rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eco-phase-pill.live {
  background: var(--sc-green-50);
  color: var(--sc-green-ink);
  border: 1px solid rgba(31, 138, 0, 0.3);
}

.eco-phase-pill.phase4 {
  background: var(--sc-blue-50);
  color: var(--sc-blue-ink);
  border: 1px solid rgba(4, 115, 234, 0.35);
}

.eco-svg-banner {
  width: 100%;
  height: 110px;
  border-radius: var(--radius-sm);
  background: var(--num-plate-bg);
  border: 1px solid var(--num-plate-border);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.5rem;
}

.eco-svg-banner svg {
  width: 100%;
  height: 100%;
}

.eco-blurb {
  margin: 0 0 1.2rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}

.eco-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.eco-card-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--sc-green-ink);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}

.eco-card-link:hover {
  gap: 0.65rem;
}

/* ---------------- 4. DUAL-TRACK INTERACTIVE SVG ARCHITECTURE ---------------- */

.arch-section {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3.5rem;
}

.arch-shell {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  background: #fff;
  border: 1px solid var(--glass-border);
  padding: clamp(1.5rem, 3.5vw, 30px);
  box-shadow: var(--shadow-glow);
}

.arch-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.arch-top h2 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.arch-switch {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  background: var(--bg-tint);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.28rem;
  gap: 0.3rem;
}

.arch-tab-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arch-tab-btn:hover {
  color: var(--text-primary);
}

.arch-tab-btn.is-active {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
  box-shadow: var(--cta-shadow);
}

.arch-panel {
  display: none;
  animation: deckFadeIn 0.38s ease forwards;
}

.arch-panel.is-active {
  display: block;
}

.arch-more {
  margin: 0.9rem 0 0;
  text-align: right;
}

.arch-more a {
  color: var(--sc-blue-ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}

.arch-more a:hover {
  color: var(--sc-blue);
}

/* ---------------- 5. HERO SEARCH BAR, FEATURED PREVIEW & NUMBER MARKET ---------------- */

.hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: min(600px, 100%);
  margin-bottom: 0.75rem;
  padding: 7px 7px 7px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  width: 100%;
  max-width: min(600px, 100%);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  min-width: 0;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: #fff;
  box-shadow: var(--shadow-glow);
}

.hero-facts li.hero-fact-web3:hover {
  border-color: var(--sc-green);
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-facts li:nth-child(1) strong {
  color: var(--sc-blue-ink);
}

.hero-facts li:nth-child(2) strong {
  color: var(--sc-green-ink);
}

.hero-facts li:nth-child(3) strong {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-facts span {
  display: block;
  margin-top: 0.16rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.hero-facts a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.hero-search-form:focus-within {
  border-color: var(--sc-green);
  box-shadow: var(--shadow-neon);
}

.hero-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-placeholder);
  flex-shrink: 0;
}

.hero-search-input {
  flex: 1;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem;
  padding: 0.45rem 0.25rem !important;
  outline: none !important;
  box-shadow: none !important;
}

.hero-search-input::placeholder {
  color: var(--text-placeholder);
}

.hero-search-btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.64rem 1.15rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--cta-shadow);
  transition: transform 0.18s ease, background 0.18s ease;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  background: var(--cta-bg-hover);
}

.hero-offer {
  margin: 0 0 0.85rem;
  max-width: min(600px, 100%);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.45;
}

.hero-offer a {
  color: var(--sc-green-ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.hero-offer a:hover,
.hero-offer a:focus-visible {
  color: var(--sc-green-ink);
}

/* Floating sell action. The hero stays a search bar; this pill sits in the
   corner so it does not compete with Search. */
.sell-dock {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  /* sits above the sticky ticker (≈46px) instead of covering it */
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3rem);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: calc(100vw - 2rem);
  padding: 0.55rem 0.95rem 0.55rem 0.55rem;
  border-radius: 999px;
  border: 0;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--cta-shadow);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.sell-dock-ic {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0.32rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.sell-dock:hover,
.sell-dock:focus-visible {
  transform: translateY(-2px);
  background: var(--cta-bg-hover);
  outline: none;
  box-shadow: var(--cta-shadow);
}

body:has(.sell-dock) footer {
  padding-bottom: 4.6rem;
}

/* body 是纵向 flex 容器: auto 外边距会让分区退化为内容宽度, 显式 width 撑满 */
.home-browse {
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.home-featured-section .home-browse-head {
  border-top: none;
  padding-top: 0.5rem;
}

.home-browse-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--divider);
}

.home-browse-head h2 {
  margin: 0.25rem 0 0.4rem;
}

.home-featured-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.85rem;
  padding-top: 1.35rem;
  border-top: 1px dashed var(--divider);
}

/* Dedicated Number Market Page (market.html) */
.market-page-shell {
  min-height: 72vh;
}

.market-page-browse {
  padding-top: 2rem;
}

.market-page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--divider);
}

.market-page-title {
  margin: 0.2rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-primary);
}

.market-page-title span {
  background: var(--gold-ink-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.market-page-sub {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 64ch;
}

.market-page-sub code {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(4, 115, 234, 0.25);
  background: var(--sc-blue-50);
  color: var(--sc-blue-ink);
}

.number-container > .plate-gate {
  box-sizing: border-box;
  grid-column: 1 / -1;
  width: min(100%, 36rem);
  justify-self: start;
  margin: 0.25rem 0 1rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: #fff;
  box-shadow: var(--shadow-glow);
}

.plate-gate h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.plate-gate p {
  margin: 0 0 0.75rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.plate-gate a {
  font-weight: 600;
}

.plate-gate form {
  display: grid;
  gap: 0.75rem;
}

.plate-gate label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.plate-gate input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border-strong);
  background: #fff;
  color: var(--text-primary);
}

.plate-gate input:focus {
  border-color: var(--sc-blue);
  box-shadow: var(--focus-ring);
  outline: none;
}

.plate-gate .submit-btn {
  width: 100%;
  margin-top: 0.15rem;
}

.plate-gate .plate-msg {
  min-height: 1.2em;
  margin: 0;
}

.plate-gate .plate-msg.is-error { color: var(--red-ink); }
.plate-gate .plate-msg.is-ok { color: var(--sc-green-ink); }

.market-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--glass-border);
}

.market-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}

.market-mode-tab:hover {
  color: var(--text-primary);
  background: var(--bg-deep);
}

.market-mode-tab.is-active {
  background: var(--sc-blue-50);
  border-color: rgba(4, 115, 234, 0.35);
  color: var(--sc-blue-ink);
}

.market-mode-badge {
  padding: 0.1rem 0.48rem;
  border-radius: 5px;
  background: var(--sc-blue-50);
  border: 1px solid rgba(4, 115, 234, 0.25);
  color: var(--sc-blue-ink);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

.browse-quick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.browse-quick-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.pattern-chip {
  appearance: none;
  border: 1px solid var(--glass-border);
  background: #fff;
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.18s ease;
}

.pattern-chip code {
  font-family: var(--font-mono);
  color: inherit;
  font-weight: 700;
}

.pattern-chip:hover {
  color: var(--sc-blue-ink);
  border-color: var(--sc-blue);
  background: var(--sc-blue-50);
  transform: translateY(-1px);
}

.pattern-chip.is-active {
  color: var(--sc-blue-ink);
  border-color: rgba(4, 115, 234, 0.35);
  background: var(--sc-blue-50);
}

.home-browse .main-content {
  padding: 0;
  max-width: 100%;
  margin: 1rem 0 0;
}

/* ---------------- 6. KEYFRAME ANIMATIONS ---------------- */

@keyframes homeRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes deckFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

@keyframes tabProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------------- 7. RESPONSIVE ---------------- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-flip-word::after {
    display: none;
  }

  .home-cta {
    justify-content: center;
  }

  .eco-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------- AUCTIONS (规格 025 → 035 SC Airy cards) ---------------- */

.home-auction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 14px;
}

.home-auction-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-auction-card:hover {
  border-color: var(--sc-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

.home-auction-when {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.home-auction-when::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sc-blue);
}

.home-auction-card.is-scheduled .home-auction-when {
  color: var(--sc-blue-ink);
}

.home-auction-card.is-live .home-auction-when {
  color: var(--sc-green-ink);
}

.home-auction-card.is-live .home-auction-when::before {
  background: var(--sc-green);
  animation: nmPulse 1.6s ease-in-out infinite;
}

.hac-plate {
  margin: 0.35rem 0;
  padding: 0.85rem 0.5rem;
  border-radius: 10px;
  background: var(--num-plate-bg);
  border: 1px solid var(--num-plate-border);
  text-align: center;
}

.home-auction-phone {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.15;
  background: var(--gold-ink-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.home-auction-price {
  margin-top: 0.35rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--glass-border);
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
}

.home-auction-price em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.1rem;
}

.home-auction-meta,
.home-auction-empty {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.home-auction-empty {
  grid-column: 1 / -1;
  padding: 1.2rem;
  background: #fff;
  border: 1px dashed var(--glass-border-strong);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .hero-skyline {
    height: 140px;
  }

  .home-hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    justify-content: center;
    border-radius: 16px;
  }

  .hero-badge-tag {
    display: none;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts li {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.5rem 0.75rem;
  }

  .hero-facts strong,
  .hero-facts span {
    display: inline;
    margin-top: 0;
  }

  .hero-facts a {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
  }

  .holo-card-wrap {
    padding: 1.1rem;
    min-height: 0;
  }

  .holo-hud-top {
    font-size: 0.58rem;
  }

  .holo-meta-grid,
  .holo-tabs {
    grid-template-columns: 1fr;
  }

  .home-cta {
    flex-direction: column;
    width: 100%;
  }

  .home-cta-primary,
  .home-cta-cyber,
  .home-cta-secondary {
    width: 100%;
  }

  .hero-search-btn {
    padding: 0.6rem 0.8rem;
  }

  .browse-quick-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }

  .browse-quick-bar::-webkit-scrollbar {
    display: none;
  }

  .browse-quick-bar .pattern-chip,
  .browse-quick-label {
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .tech-marquee-track,
  .holo-tab-btn.is-active .holo-tab-progress {
    animation: none !important;
  }
}

/* ---------------- 8. ICON SYSTEM, CHIPS, ICON ROWS & PROTOCOL STEPPER (de-text pass) ---------------- */

.nm-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.nm-i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Section-head icon chips (replace support paragraphs) */
.home-chips {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.68rem 0.3rem 0.52rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: #fff;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.home-chip .nm-i {
  width: 15px;
  height: 15px;
  color: var(--sc-blue);
}

/* Eco cards: icon rows */
.eco-card-region {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.eco-card-region.is-cyan {
  color: var(--sc-blue-ink);
}

/* Protocol section */
.arch-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.arch-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.arch-tab-btn .nm-i {
  width: 16px;
  height: 16px;
}

.flow {
  list-style: none;
  margin: 0.4rem 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flow-step {
  --c: var(--sc-blue);
  --c-next: var(--c);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  min-width: 0;
}

.flow-step.c-cyan { --c: #1aa3a8; }
.flow-step.c-violet { --c: var(--sc-blue); }
.flow-step.c-green { --c: var(--sc-green); }

.flow-step:has(+ .flow-step.c-gold) { --c-next: var(--sc-blue); }
.flow-step:has(+ .flow-step.c-cyan) { --c-next: #1aa3a8; }
.flow-step:has(+ .flow-step.c-violet) { --c-next: var(--sc-blue); }
.flow-step:has(+ .flow-step.c-green) { --c-next: var(--sc-green); }

.flow-node {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin-bottom: 0.55rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 8%, #fff);
  border: 1px solid var(--c);
  transition: color 0.35s ease, border-color 0.35s ease, transform 0.35s ease, background-color 0.35s ease;
}

.flow-node .nm-i {
  width: 24px;
  height: 24px;
}

.flow-node::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 1px solid var(--c);
  opacity: 0;
  pointer-events: none;
}

/* connector from this node to the next */
.flow-link {
  position: absolute;
  top: 26px;
  left: calc(50% + 34px);
  width: calc(100% + 1rem - 68px);
  height: 2px;
  border-radius: 2px;
  background: var(--glass-border);
  overflow: hidden;
}

.flow-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--c), var(--c-next));
  opacity: 0.6;
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.flow-k {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.flow-t {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  transition: color 0.35s ease;
}

.flow-v {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: opacity 0.35s ease;
}

/* JS-driven stepper states (only when home-fx.js adds .is-live) */
.flow.is-live .flow-step:not(.is-on) .flow-node {
  color: var(--text-muted);
  background-color: #fff;
  border-color: var(--glass-border-strong);
}

.flow.is-live .flow-step:not(.is-on) .flow-t {
  color: var(--text-secondary);
}

.flow.is-live .flow-step:not(.is-on) .flow-v {
  opacity: 0.4;
}

.flow.is-live .flow-step.is-on:not(:first-child) .flow-node {
  transition-delay: 0.45s;
}

.flow.is-live .flow-link::after {
  transform: scaleX(0);
}

.flow.is-live .flow-step.is-done .flow-link::after {
  transform: none;
}

.flow.is-live .flow-step.is-active .flow-node {
  transform: translateY(-4px) scale(1.06);
}

.flow.is-live .flow-step.is-active .flow-node::after {
  animation: flowPing 1.3s ease-out 0.5s;
}

.flow.is-live .flow-step.is-active .flow-t {
  color: var(--text-primary);
}

/* Outcome tiles */
.flow-outcomes {
  list-style: none;
  margin: 0;
  padding: 1.15rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  border-top: 1px dashed var(--glass-border);
}

.flow-out {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.8rem;
  row-gap: 0.1rem;
  align-items: center;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  background: var(--bg-tint);
  border: 1px solid var(--glass-border);
}

.flow-out-ic {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--sc-blue-ink);
  background: var(--sc-blue-50);
  border: 1px solid rgba(4, 115, 234, 0.3);
}

.flow-out.ok .flow-out-ic {
  color: var(--sc-green-ink);
  background: var(--sc-green-50);
  border-color: rgba(31, 138, 0, 0.3);
}

.flow-out.warn .flow-out-ic {
  color: var(--red);
  background: var(--red-50);
  border-color: rgba(220, 38, 38, 0.3);
}

.flow-out strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.flow-out > span:not(.flow-out-ic) {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Scroll reveal (html.nm-reveal is set by home-fx.js; no-JS = everything visible) */
.nm-reveal [data-reveal]:not(.is-in) {
  opacity: 0;
}

.nm-reveal [data-reveal].is-in {
  animation: nmReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.nm-reveal .eco-grid > .eco-card:nth-child(2).is-in { animation-delay: 0.1s; }
.nm-reveal .eco-grid > .eco-card:nth-child(3).is-in { animation-delay: 0.2s; }

.nm-reveal .arch-shell.is-in .flow-out {
  animation: nmReveal 0.6s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: 0.35s;
}

.nm-reveal .arch-shell.is-in .flow-out:nth-child(2) { animation-delay: 0.47s; }
.nm-reveal .arch-shell.is-in .flow-out:nth-child(3) { animation-delay: 0.59s; }

@keyframes nmReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes flowPing {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 900px) {
  .flow-outcomes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .arch-top {
    margin-bottom: 1.25rem;
  }

  .arch-switch {
    width: 100%;
  }

  .arch-tab-btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 0.55rem 0.6rem;
  }

  /* Stepper becomes a vertical rail */
  .flow {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    grid-template-areas:
      "node k v"
      "node t v";
    column-gap: 0.85rem;
    row-gap: 0.1rem;
    align-items: center;
    text-align: left;
  }

  .flow-node {
    grid-area: node;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 15px;
  }

  .flow-node .nm-i {
    width: 24px;
    height: 24px;
  }

  .flow-k { grid-area: k; align-self: end; }
  .flow-t { grid-area: t; align-self: start; font-size: 0.95rem; }
  .flow-v { grid-area: v; margin: 0; }

  .flow-link {
    top: 55px;
    left: 25px;
    width: 2px;
    height: calc(100% + 1.5rem - 58px);
  }

  .flow-link::after {
    background: linear-gradient(180deg, var(--c), var(--c-next));
    transform-origin: center top;
  }

  .flow.is-live .flow-link::after {
    transform: scaleY(0);
  }

  .flow.is-live .flow-step.is-active .flow-node {
    transform: scale(1.06);
  }
}

@media (max-width: 380px) {
  .flow-step {
    grid-template-areas:
      "node k"
      "node t"
      "node v";
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .flow-v { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .nm-reveal [data-reveal],
  .nm-reveal .flow-out,
  .flow-node::after {
    animation: none !important;
  }

  .flow-link::after,
  .flow-node {
    transition: none !important;
  }
}
