/* ==========================================================================
   GoldenNumbers / SGNB — Cyber-Luxury Hero, 3D Holographic Stage,
   Seamless Telemetry Marquee & Quick Pattern Filter Bar
   ========================================================================== */

/* ---------------- 1. HERO STAGE & MATRIX BACKGROUND ---------------- */

.home-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: clamp(2.4rem, 5vw, 4.4rem) clamp(1.25rem, 4vw, 3rem) clamp(2.8rem, 5.5vw, 4.8rem);
  border-bottom: 1px solid rgba(120, 170, 255, 0.14);
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  pointer-events: none;
  opacity: 0.72;
}

/* Synthwave perspective grid floor */
.hero-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24%;
  height: 62%;
  z-index: -2;
  pointer-events: none;
  transform: perspective(460px) rotateX(68deg);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse 65% 75% at 50% 90%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 65% 75% at 50% 90%, #000 20%, transparent 72%);
}

.hero-floor::before {
  content: '';
  position: absolute;
  inset: -64px 0 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 196, 83, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: floorScroll 5s linear infinite;
}

/* Ambient halo + dark readable veil behind the left copy column */
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(48% 68% at 24% 44%, rgba(4, 7, 16, 0.82) 0%, rgba(4, 7, 16, 0.45) 55%, transparent 82%),
    radial-gradient(42% 52% at 76% 42%, rgba(34, 211, 238, 0.2), transparent 68%),
    radial-gradient(36% 44% at 72% 56%, rgba(246, 196, 83, 0.16), transparent 68%),
    radial-gradient(50% 36% at 50% 100%, rgba(139, 92, 246, 0.18), transparent 72%);
}

/* Decorative orbital SVG overlay */
.hero-ambient-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.hero-orbit-ring {
  transform-origin: center;
  animation: heroOrbitSpin 48s linear infinite;
}

.hero-orbit-ring-reverse {
  transform-origin: center;
  animation: heroOrbitSpinReverse 64s linear infinite;
}

.hero-pulse-line {
  stroke-dasharray: 8 14;
  animation: svgDashFlow 18s linear infinite;
}

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

/* ---------------- 1A. LEFT COLUMN: BRAND NARRATIVE & TELEMETRY ---------------- */

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.14), rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.12));
  border: 1px solid rgba(246, 196, 83, 0.38);
  color: var(--gold-1);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  box-shadow: 0 0 28px -6px rgba(246, 196, 83, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

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

.hero-badge-tag {
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--cyan-soft);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.home-headline {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #f8fbff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.65);
}

.home-headline .hero-flip-wrap {
  display: block;
  min-height: 1.24em;
  margin-top: 0.15rem;
}

.hero-flip-word {
  display: inline-block;
  background: linear-gradient(120deg, #fff5c0 0%, #f6c453 38%, #22d3ee 78%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 26px rgba(246, 196, 83, 0.35));
}

.hero-flip-word::after {
  content: '▋';
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.78em;
  vertical-align: 0.04em;
  -webkit-text-fill-color: var(--cyan);
  color: var(--cyan);
  filter: drop-shadow(0 0 8px var(--cyan));
  animation: cursorBlink 1.05s steps(2) infinite;
}

.hero-flip-word.is-scrambling {
  filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.75));
}

.hero-offer {
  margin: 0 0 1.2rem;
  color: #c3d2ec;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  max-width: 56ch;
}

.hero-offer a {
  color: #f6c453;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 196, 83, 0.45);
}

.hero-offer a:hover {
  color: #ffe7a8;
  border-bottom-color: #f6c453;
}

/* Hero Search Bar — submits directly to numbers.html */
.hero-search-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: min(600px, 100%);
  margin-bottom: 0.7rem;
  padding: 0.4rem 0.42rem 0.4rem 0.95rem;
  border-radius: 13px;
  background: rgba(3, 6, 14, 0.9);
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow:
    0 18px 40px -16px rgba(0, 0, 0, 0.95),
    0 0 34px -12px rgba(34, 211, 238, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-form:focus-within {
  border-color: var(--cyan);
  box-shadow:
    0 18px 40px -16px rgba(0, 0, 0, 0.95),
    0 0 0 3px rgba(34, 211, 238, 0.16),
    0 0 44px -8px rgba(34, 211, 238, 0.7);
}

.hero-search-icon {
  width: 18px;
  height: 18px;
  color: var(--cyan);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.7));
}

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

.hero-search-input::placeholder {
  color: rgba(147, 163, 196, 0.62);
  font-family: var(--font-body);
}

.hero-search-btn {
  position: relative;
  overflow: hidden;
  appearance: none;
  border: none;
  border-radius: 9px;
  padding: 0.64rem 1.15rem;
  background: var(--gold-gradient);
  color: var(--gold-text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 22px -6px rgba(246, 196, 83, 0.75);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px -4px rgba(246, 196, 83, 0.9);
}

.hero-popular-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
  margin-bottom: 1.15rem;
  font-size: 0.78rem;
}

.hero-popular-lbl {
  color: var(--text-muted);
  margin-right: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-popular-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(246, 196, 83, 0.06);
  border: 1px solid rgba(246, 196, 83, 0.28);
  color: var(--gold-1);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.hero-popular-tag::before {
  content: '#';
  margin-right: 0.15rem;
  color: rgba(34, 211, 238, 0.75);
}

.hero-popular-tag:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.6);
  color: #fff;
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.8);
  transform: translateY(-1px);
}

/* Hero facts strip */
.hero-facts {
  list-style: none;
  padding: 0;
  margin: 0.35rem 0 0;
  width: 100%;
  max-width: 580px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.hero-facts li {
  position: relative;
  min-width: 0;
  padding: 0.6rem 0.75rem 0.58rem 0.9rem;
  border-radius: 10px;
  background: rgba(8, 13, 28, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.hero-facts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 2.5px;
  border-radius: 2px;
  background: var(--fact-accent, #f6c453);
}

.hero-fact-count { --fact-accent: #f6c453; }
.hero-fact-guard { --fact-accent: #34d399; }
.hero-fact-web3  { --fact-accent: #38bdf8; }

.hero-facts strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #f8fafc;
}

.hero-fact-count strong { color: #fde68a; }
.hero-fact-guard strong { color: #a7f3d0; }
.hero-fact-web3 strong  { color: #7dd3fc; }

.hero-facts span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.74rem;
  line-height: 1.3;
  color: #cbd5e1;
}

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

/* ---------------- 1B. RIGHT COLUMN: 3D HOLOGRAPHIC STAGE ---------------- */

.holo-stage {
  position: relative;
  perspective: 1200px;
  animation: homeRise 0.8s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.holo-card-wrap {
  --hud-c: rgba(34, 211, 238, 0.6);
  position: relative;
  isolation: isolate;
  border-radius: 22px;
  padding: 1.35rem;
  background-color: rgba(6, 10, 22, 0.84);
  background-image:
    linear-gradient(var(--hud-c), var(--hud-c)), linear-gradient(var(--hud-c), var(--hud-c)),
    linear-gradient(var(--hud-c), var(--hud-c)), linear-gradient(var(--hud-c), var(--hud-c)),
    radial-gradient(90% 70% at 50% 0%, rgba(246, 196, 83, 0.15), transparent 65%),
    radial-gradient(80% 70% at 90% 100%, rgba(34, 211, 238, 0.14), transparent 65%);
  background-size: 16px 2px, 2px 16px, 16px 2px, 2px 16px, 100% 100%, 100% 100%;
  background-position: left 10px top 10px, left 10px top 10px, right 10px bottom 10px, right 10px bottom 10px, 0 0, 0 0;
  background-repeat: no-repeat;
  border: 1px solid rgba(125, 175, 255, 0.18);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.88),
    0 0 50px -12px rgba(34, 211, 238, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.holo-card-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--nm-angle), transparent 0deg, rgba(246, 196, 83, 0.85) 70deg, transparent 140deg, rgba(34, 211, 238, 0.85) 250deg, transparent 320deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: nmSpin 7s linear infinite;
  pointer-events: none;
}

.holo-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8), rgba(246, 196, 83, 0.8), transparent);
  opacity: 0.65;
  pointer-events: none;
  animation: holoScan 5.5s ease-in-out infinite;
}

.holo-hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.holo-hud-id {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold-1);
  font-weight: 700;
}

.holo-hud-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-weight: 700;
}

.holo-decks {
  position: relative;
  margin: 1rem 0;
}

.holo-deck {
  display: none;
  animation: deckFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.holo-svg-stage {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(16, 26, 48, 0.9), rgba(5, 9, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem;
}

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

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

.holo-meta-box {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.holo-meta-v {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #f8fafc;
  margin-top: 0.12rem;
}

.holo-meta-v.gold { color: var(--gold-1); }
.holo-meta-v.cyan { color: #7dd3fc; }
.holo-meta-v.green { color: #6ee7b7; }

/* ---------------- 2. SEAMLESS ASSET TELEMETRY MARQUEE ---------------- */

.tech-marquee {
  position: relative;
  overflow: hidden;
  padding: 0.68rem 0;
  background: rgba(3, 6, 14, 0.9);
  border-bottom: 1px solid rgba(120, 170, 255, 0.12);
  user-select: none;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

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

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

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

.marquee-tag {
  padding: 0.14rem 0.46rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee-tag.gold {
  background: rgba(246, 196, 83, 0.14);
  color: var(--gold-1);
  border: 1px solid rgba(246, 196, 83, 0.35);
}

.marquee-tag.cyan {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan-soft);
  border: 1px solid rgba(34, 211, 238, 0.35);
}

.marquee-tag.violet {
  background: rgba(139, 92, 246, 0.15);
  color: #ddd6fe;
  border: 1px solid rgba(139, 92, 246, 0.38);
}

.marquee-val {
  color: #f8fafc;
  font-weight: 700;
}

/* ---------------- 3. ALL NUMBERS PAGE SHELL & QUICK PATTERN BAR ---------------- */

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.home-browse {
  width: 100%;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.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: 0.5rem;
}

.home-browse-head h2 {
  margin: 0.25rem 0 0.2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}

.home-cta-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.35rem;
  border-radius: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--gold-gradient);
  color: var(--gold-text);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.3), 0 10px 28px -8px rgba(246, 196, 83, 0.7);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(246, 196, 83, 0.45), 0 14px 34px -8px rgba(246, 196, 83, 0.85);
}

.market-page-shell {
  min-height: 72vh;
}

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

.market-page-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid rgba(120, 170, 255, 0.12);
}

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

.market-page-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 16px rgba(196, 146, 42, 0.22));
}

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

.market-page-sub code {
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(246, 196, 83, 0.25);
  background: rgba(246, 196, 83, 0.07);
  color: var(--gold-1);
}

.market-mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem;
  border-radius: 12px;
  background: rgba(3, 6, 14, 0.85);
  border: 1px solid rgba(125, 175, 255, 0.14);
}

.market-mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: 9px;
  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: #fff;
  background: rgba(34, 211, 238, 0.07);
}

.market-mode-tab.is-active {
  background: linear-gradient(160deg, rgba(246, 196, 83, 0.16), rgba(34, 211, 238, 0.08));
  border-color: rgba(246, 196, 83, 0.5);
  color: var(--gold-1);
  box-shadow: 0 0 22px -8px rgba(246, 196, 83, 0.7);
}

.market-mode-badge {
  padding: 0.1rem 0.48rem;
  border-radius: 5px;
  background: rgba(34, 211, 238, 0.14);
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
}

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

.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 rgba(125, 175, 255, 0.16);
  background: rgba(6, 10, 22, 0.7);
  color: var(--text-secondary);
  border-radius: 7px;
  padding: 0.34rem 0.68rem;
  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: var(--gold-2);
  font-weight: 700;
}

.pattern-chip:hover {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 0 18px -6px rgba(34, 211, 238, 0.7);
}

.pattern-chip.is-active {
  color: #fff;
  border-color: rgba(34, 211, 238, 0.75);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.12));
  box-shadow: 0 0 20px -6px rgba(34, 211, 238, 0.8), inset 0 0 12px rgba(34, 211, 238, 0.12);
}

.pattern-chip.is-active code {
  color: var(--gold-1);
}

/* ---------------- 4. 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 holoScan {
  0% { top: 6%; opacity: 0; }
  15% { opacity: 0.85; }
  85% { opacity: 0.85; }
  100% { top: 94%; opacity: 0; }
}

@keyframes heroOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes heroOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

@keyframes svgDashFlow {
  to {
    stroke-dashoffset: -280;
  }
}

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

@keyframes floorScroll {
  from { transform: translateY(0); }
  to { transform: translateY(64px); }
}

/* ---------------- 5. RESPONSIVE ---------------- */

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

  .home-hero::before {
    background:
      radial-gradient(70% 45% at 50% 30%, rgba(4, 7, 16, 0.8) 0%, rgba(4, 7, 16, 0.4) 60%, transparent 85%),
      radial-gradient(60% 36% at 50% 100%, rgba(139, 92, 246, 0.16), transparent 72%);
  }

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

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

  .hero-facts {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .home-hero {
    padding-top: 1.8rem;
    padding-bottom: 2.2rem;
  }

  .hero-badge {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    justify-content: center;
  }

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

  .hero-floor {
    height: 30%;
    opacity: 0.7;
  }

  .hero-canvas {
    opacity: 0.5;
  }

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

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

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

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

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

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

  .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,
  .hero-orbit-ring,
  .hero-orbit-ring-reverse,
  .hero-pulse-line,
  .holo-scanline,
  .tech-marquee-track,
  .hero-floor::before,
  .holo-card-wrap::after {
    animation: none !important;
  }
}
