/* Cityhood · homepage only */

/* ---------- hero ---------- */

.hero { padding: 52px 0 60px; }
.hero-grid { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: center; }

.hero-logo { width: 74px; height: 74px; border-radius: 16px; margin-bottom: 22px; }

.mega {
  font-size: clamp(46px, 13vw, 104px);
  margin: 0 0 8px;
}
.mega .mega-lime { color: var(--lime); }

.tagline {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(17px, 4.4vw, 24px);
  color: var(--paper);
  margin: 0 0 16px;
}
.tagline .dot { color: var(--lime); }

.hero-sub { color: var(--muted); max-width: 520px; margin: 0 0 26px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; }
.hero-art img { width: 100%; display: block; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--lime-line);
  border-radius: 18px;
  z-index: -1;
}
.hero-art figcaption {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 22px;
}

/* ---------- facts strip ---------- */

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 44px;
}
.fact {
  padding: 18px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-last-child(-n + 2) { border-bottom: none; }
.fact .f-val {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(19px, 4.6vw, 26px);
  text-transform: uppercase;
  display: block;
}
.fact .f-val .lime { color: var(--lime); }
.fact .f-lab {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- district grid ---------- */

.dgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 560px;
}
.dblock {
  aspect-ratio: 1 / 1;
  border: 2px solid var(--lime-line);
  border-radius: 12px;
  background:
    radial-gradient(circle, rgba(182, 255, 46, 0.4) 2.2px, transparent 2.6px) 0 0 / 26px 26px,
    var(--panel);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.dblock:hover, .dblock:focus-visible { border-color: var(--lime); outline: none; }
.dblock.solid {
  background: var(--lime);
  border-color: var(--lime);
  cursor: default;
}
.dblock.lit {
  background: var(--lime);
  border-color: var(--lime);
  transform: scale(0.97);
}
.dcap {
  font-family: "Space Mono", monospace;
  font-size: 14px;
  color: var(--muted);
  margin-top: 18px;
  min-height: 1.5em;
}
.dcap strong { color: var(--lime); font-weight: 700; }

/* ---------- stages ---------- */

.stages { display: grid; gap: 18px; grid-template-columns: 1fr; }

.stage-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--field-line);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
}
.stage-card.hot { border-top-color: var(--lime); }
.stage-top { margin-bottom: 6px; }
.stage-rows { margin: 14px 0 16px; border-top: 1px solid var(--line); }
.stage-rows .srow {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.stage-rows .srow .k {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.stage-rows .srow .v { font-family: "Space Mono", monospace; font-weight: 700; text-align: right; }
.stage-note { color: var(--muted); font-size: 14.5px; margin: 0; margin-top: auto; }

/* ---------- allocation bar ---------- */

.alloc-wrap { margin-top: 30px; }
.alloc {
  display: flex;
  height: 54px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.alloc .seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
}
.seg-gtd { background: var(--lime); color: var(--ink); flex: 0 0 15.015%; }
.seg-wl { background: var(--lime-soft); color: var(--lime); flex: 0 0 30.03%; border-left: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.seg-pub { background: var(--panel-2); color: var(--paper); flex: 1; }
.alloc-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  margin-top: 12px;
  font-family: "Space Mono", monospace;
  font-size: 12.5px;
  color: var(--muted);
}
.alloc-legend b { color: var(--paper); }
.alloc-note { color: var(--muted); font-size: 14.5px; margin-top: 14px; max-width: 720px; }

/* ---------- tiers ---------- */

.tiers { display: grid; gap: 18px; grid-template-columns: 1fr; }
.tier {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0;
}
.tier img { width: 100%; display: block; }
.tier-body { padding: 20px 22px 24px; }
.tier-name {
  font-family: "Archivo Black", sans-serif;
  font-size: 21px;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.tier-rarity {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border-radius: 5px;
  padding: 3px 8px;
  margin-bottom: 12px;
}
.tier-rarity.rare { background: transparent; color: var(--lime); border: 1px solid var(--lime); }
.tier-rarity.legendary { background: var(--paper); color: var(--ink); }
.tier p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- steps ---------- */

.steps { display: grid; gap: 18px; grid-template-columns: 1fr; counter-reset: step; }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--panel);
}
.step .step-no {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime);
  display: block;
  margin-bottom: 12px;
}
.step h3 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: 19px;
  margin: 0 0 8px;
}
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  border: 1px solid var(--lime-line);
  border-radius: 18px;
  background:
    radial-gradient(circle, rgba(182, 255, 46, 0.25) 2px, transparent 2.5px) 0 0 / 30px 30px,
    var(--panel);
  padding: 40px 28px;
  text-align: left;
}
.cta-band h2 { font-size: clamp(26px, 6vw, 40px); margin: 0 0 12px; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 0 24px; }

/* ---------- responsive ---------- */

@media (min-width: 720px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .tiers { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .hero { padding: 76px 0 84px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 54px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .fact { border-bottom: none; border-right: 1px solid var(--line); }
  .fact:last-child { border-right: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dblock { transition: none; }
}

/* polish pass: contrast + grid presence */
.stage-note, .tier p, .alloc-note, .dcap { color: var(--soft); }
.dblock { background: radial-gradient(circle, rgba(182, 255, 46, 0.55) 2.2px, transparent 2.6px) 0 0 / 26px 26px, #101208; }
.fact .f-val { color: var(--paper); }

@media (max-width: 560px) {
  .alloc .seg { font-size: 10.5px; letter-spacing: 0.02em; padding-left: 5px; padding-right: 5px; white-space: nowrap; overflow: hidden; }
}

/* ---------- v3: marquee, lime band, mobile hero ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 0; background: var(--panel); }
.mtrack { display: flex; width: max-content; white-space: nowrap; animation: mq 26s linear infinite; font-family: "Space Mono", monospace; font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--lime); }
@keyframes mq { to { transform: translateX(-50%); } }
.limeband { background: var(--lime); color: var(--ink); font-family: "Archivo Black", sans-serif; text-transform: uppercase; text-align: center; font-size: clamp(21px, 6.4vw, 42px); letter-spacing: 0.02em; padding: 20px 16px; line-height: 1.15; }
@media (max-width: 719px) {
  .hero { padding: 40px 0 46px; }
  .mega { font-size: clamp(46px, 13.6vw, 104px); max-width: 100%; }
  .hero-art { margin-left: -20px; margin-right: -20px; }
  .hero-art img { border-radius: 0; border-left: none; border-right: none; }
  .hero-art figcaption { padding: 0 20px; }
  .hero-art::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mtrack { animation: none; } }

/* ---------- v6: bulletproof ratio plates (padding technique, no aspect-ratio) ---------- */
.plate { display: block; position: relative; height: 0; padding-top: 100%; overflow: hidden; background: #000; }
.plate img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; border: none; border-radius: 0; }
.plate-hero { padding-top: 66.6667%; border-radius: 18px; border: 1px solid var(--lime-line); }
@media (max-width: 719px) {
  .plate-hero { border-radius: 0; border-left: none; border-right: none; }
}

/* ---------- v7: precision pass ---------- */
.sec-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 20px; }
.sec-top .kicker { margin: 0; }
.sec-idx { font-family: "Space Mono", monospace; font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hchip { display: inline-grid; place-items: center; background: #0d0f0c; border: 1px solid var(--lime-line); border-radius: 17px; padding: 6px; margin-bottom: 24px; }
.hchip .hero-logo { width: 62px; height: 62px; border-radius: 11px; margin: 0; display: block; }
.p-chip { position: absolute; z-index: 2; font-family: "Space Mono", monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper); background: rgba(7, 8, 7, 0.85); border: 1px solid var(--lime-line); padding: 6px 10px; border-radius: 7px; }
.p-chip-l { left: 12px; bottom: 12px; }
.p-chip-r { right: 12px; top: 12px; color: var(--lime); }
.hero-art figcaption { display: flex; justify-content: space-between; gap: 14px; }
.hero-art figcaption .fig-r { color: var(--lime); white-space: nowrap; }
.fact { position: relative; }
.fact::before { content: ""; position: absolute; top: 0; left: 20px; width: 24px; height: 3px; background: var(--lime); }
.dblock { position: relative; }
.dblock::after { content: attr(data-block); position: absolute; left: 9px; bottom: 7px; font-family: "Space Mono", monospace; font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: rgba(182, 255, 46, 0.65); }
.dblock.solid::after, .dblock.lit::after { color: rgba(7, 8, 7, 0.78); }
.dblock.solid { animation: bpulse 3.2s ease-in-out infinite; }
@keyframes bpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(182, 255, 46, 0.32); } 50% { box-shadow: 0 0 0 8px rgba(182, 255, 46, 0); } }
.dcap { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 13px 16px; display: flex; align-items: center; gap: 12px; max-width: 560px; }
.dcap::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; background: var(--lime); border-radius: 2px; }
.stage-idx { font-family: "Space Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.stage-card.hot .stage-idx { color: var(--lime); }
.stage-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stage-price { font-size: 30px; }
.stage-card { transition: transform 0.18s ease, border-color 0.18s ease; }
@media (hover: hover) { .stage-card:hover { transform: translateY(-3px); border-color: var(--lime-line); } }
.alloc { height: 58px; }
.seg-gtd { flex: 500 1 0; }
.seg-wl { flex: 1000 1 0; }
.seg-pub { flex: 1833 1 0; }
.tier { display: flex; flex-direction: column; }
.tier-body { display: flex; flex-direction: column; flex: 1; }
.tier-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.tm-l { font-family: "Space Mono", monospace; font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tier-meta .tier-rarity { margin-bottom: 0; }
.tier p { margin-bottom: 18px; }
.tier-data { margin-top: auto; padding-top: 14px; border-top: 1px dashed rgba(244, 244, 238, 0.13); display: flex; justify-content: space-between; gap: 10px; font-family: "Space Mono", monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.step { position: relative; overflow: hidden; }
.step::after { content: attr(data-n); position: absolute; top: 4px; right: 14px; font-family: "Archivo Black", sans-serif; font-size: 92px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(182, 255, 46, 0.16); pointer-events: none; }
.step h3, .step p, .step .step-no { position: relative; z-index: 1; }
.cta-band { text-align: center; }
.cta-band p { margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .minigrid { margin: 0 auto 22px; }
.cta-band h2 { font-size: clamp(30px, 7vw, 48px); }
@media (prefers-reduced-motion: reduce) { .dblock.solid { animation: none; } }
@media (max-width: 480px) { .p-chip-r { display: none; } .tier-data { font-size: 9px; } }
