.zr-home-layout {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px 60px;
  box-sizing: border-box;
}

.zr-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 340px;
  margin: 0 0 20px;
  padding: 32px clamp(22px, 3.5vw, 48px) 38px;
  border-radius: 0 0 18px 18px;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(2, 10, 32, .64) 0%, rgba(3, 13, 39, .46) 41%, rgba(3, 17, 53, .02) 78%),
    url("/assets/home-neural-background.webp") center center / cover no-repeat;
}

.zr-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 70% 42%, rgba(9, 143, 251, .24), transparent 39%),
    linear-gradient(0deg, rgba(0, 9, 30, .38), transparent 38%);
}

.zr-hero-mesh {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(rgba(19, 146, 220, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 146, 220, .07) 1px, transparent 1px);
  background-size: 37px 37px;
  opacity: .4;
}

.zr-hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(54%, 570px);
}

.zr-hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(24px, 3.1vw, 45px);
  line-height: 1.12;
  letter-spacing: -.045em;
  color: white;
}

.zr-hero h1 span { color: #0ed9ed; }

.zr-hero-copy > p {
  color: #54dfed;
  font-size: clamp(11px, 1.45vw, 17px);
  line-height: 1.45;
  font-weight: 650;
  margin: 14px 0 18px;
}

.zr-hero-copy > p span { color: #fff; }

.zr-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.zr-action {
  min-height: 39px;
  box-sizing: border-box;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  border: 1px solid rgba(29, 189, 255, .54);
  color: #f6fcff;
  background: rgba(0, 9, 30, .82);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(0, 131, 255, .16);
}

.zr-action:hover, .zr-action:focus-visible {
  color: white;
  border-color: #52e7ff;
}

.zr-action-primary {
  border-color: #28b7ff;
  background: linear-gradient(180deg, #00aafb, #0957ff);
  box-shadow: 0 2px 17px rgba(0, 107, 255, .45);
}

.zr-quote {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) minmax(140px, 40%);
  gap: 12px;
  align-items: center;
  min-height: 106px;
  padding: 12px 16px;
  margin: 0 0 20px;
  border: 1px solid #146aa0;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(120deg, #021127, #031c34 66%, #03182e);
  box-shadow: 0 0 16px rgba(11, 164, 240, .13), inset 0 1px 0 rgba(99, 222, 255, .12);
}

.zr-quote-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.zr-quote-icon img {
  width: 56px;
  height: 56px;
  display: block;
  object-fit: contain;
}
.zr-quote-data { min-width: 0; }
.zr-quote-pair { display: block; font-size: 17px; color: #fff; }
.zr-quote-numbers { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 3px; }
.zr-quote-price { font-size: clamp(23px, 3vw, 35px); font-weight: 900; color: #fff; line-height: 1.1; white-space: nowrap; }
.zr-quote-trend { display: flex; flex-direction: column; color: #04e8b1; gap: 3px; font-size: 13px; font-weight: 750; }
.zr-quote-trend.is-down { color: #ff5476; }
.zr-quote-trend small { color: #c6e6f4; font-size: 11px; }
.zr-quote-chart { display: block; width: 100%; height: 76px; overflow: hidden; align-self: end; margin-top: 10px; }

.zr-quote-live-badge {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.zr-quote-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22ff88;
  box-shadow: 0 0 10px rgba(34, 255, 136, 0.95);
  animation: zrPulseLive 1.6s ease-in-out infinite;
}

@keyframes zrPulseLive {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(29, 255, 146, 0.8); }
  50% { opacity: .55; transform: scale(0.85); box-shadow: 0 0 16px rgba(29, 255, 146, 1); }
}

.zr-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  border: 1px solid #185d91;
  border-radius: 13px;
  background: linear-gradient(180deg, #041833, #020d22);
  overflow: hidden;
  margin-bottom: 4px;
}

.zr-telemetry-card {
  display: flex;
  min-width: 0;
  min-height: 174px;
  padding: 14px 10px 16px;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  text-align: center;
  border-right: 1px solid #165080;
}

.zr-telemetry-card:last-child { border-right: 0; }

.zr-telemetry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  color: #21cfff;
  filter: drop-shadow(0 0 8px rgba(8, 150, 255, .7));
}

.zr-telemetry-icon svg { width: 43px; height: 43px; }
.zr-telemetry-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 6px 0 4px;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.25;
  color: #e8f7ff;
  font-weight: 600;
}
.zr-telemetry-card strong {
  font-weight: 850;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  color: white;
  white-space: nowrap;
}
.zr-telemetry-change { color: #2febac; font-weight: 750; font-size: 13px; margin-top: 6px; }
.zr-telemetry-change.is-down { color: #ff6480; }
.zr-telemetry-change.is-supply { color: #5be4ff; font-size: 12px; }
.zr-telemetry-card-supply strong { margin-top: 8px; font-size: clamp(22px, 2.3vw, 30px); }
.zr-telemetry-card-supply h2 { min-height: 0; margin: 3px 0 0; }
.zr-telemetry-card-supply .zr-telemetry-change { margin-top: 6px; }

.zr-activity-flow {
  margin: 8px 0 0;
  padding: 0;
  border: 0;
}

.zr-activity-flow img {
  display: block;
  width: 102.5%;
  max-width: none;
  margin-left: -1.25%;
  height: auto;
}

@media (max-width: 700px) {
  .zr-home-layout { padding: 0 10px 0; }
  .zr-activity-flow { margin-top: 4px; }
  .zr-hero {
    margin: 0 -10px 8px;
    min-height: 190px;
    padding: 7px 14px 9px;
    border-radius: 0;
    background-color: #021027;
    background-size: cover, auto 100%;
    background-position: center, calc(100% + 100px) center;
  }
  .zr-hero-copy { max-width: 68%; }
  .zr-hero h1 { font-size: clamp(22px, 4.8vw, 32px); }
  .zr-hero-copy > p { margin: 9px 0 12px; font-size: 10px; }
  .zr-hero-actions { width: calc(100vw - 28px); flex-wrap: nowrap; gap: 6px; }
  .zr-hero-actions .zr-action { min-width: 0; white-space: nowrap; }
  .zr-action { min-height: 34px; padding: 8px 10px; border-radius: 6px; font-size: 10px; }
  .zr-quote { grid-template-columns: 38px minmax(150px, 44%) minmax(0, 1fr); gap: 7px; min-height: 74px; padding: 8px 9px; margin: 0 0 8px; border-radius: 10px; }
  .zr-quote-icon { width: 36px; height: 36px; }
  .zr-quote-icon img { width: 36px; height: 36px; }
  .zr-quote-data { position: relative; }
  .zr-quote-pair { font-size: 11px; line-height: 1.2; }
  .zr-quote-numbers { flex-wrap: nowrap; gap: 6px; margin-top: 2px; }
  .zr-quote-price { font-size: clamp(17px, 4.7vw, 22px); }
  .zr-quote-trend { flex-direction: row; align-items: baseline; gap: 3px; font-size: 10px; white-space: nowrap; }
  .zr-quote-trend small { position: absolute; top: 0; left: 58px; font-size: 9px; line-height: 1.2; }
  .zr-quote-chart { width: calc(100% - 16px); height: 48px; align-self: center; margin-top: 0; }
  .zr-quote-live-badge { top: 8px; right: 8px; width: 9px; height: 9px; }
  .zr-quote-live-dot { width: 9px; height: 9px; }
  .zr-telemetry-grid { margin-bottom: 0; }
  .zr-telemetry-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 29px 24px 18px 14px;
    row-gap: 0;
    justify-items: center;
    align-items: center;
    min-width: 0;
    min-height: 0;
    height: 101px;
    padding: 8px 3px;
  }
  .zr-telemetry-icon {
    grid-row: 1;
    flex: none;
    width: 29px;
    height: 29px;
  }
  .zr-telemetry-icon svg { width: 29px; height: 29px; }
  .zr-telemetry-card h2 {
    display: flex;
    grid-row: 2;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    margin: 0;
    font-size: clamp(8px, 2.25vw, 10px);
    font-weight: 650;
    line-height: 1.2;
    text-wrap: balance;
  }
  .zr-telemetry-card strong {
    grid-row: 3;
    max-width: 100%;
    font-size: clamp(10px, 3.1vw, 14px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }
  .zr-telemetry-change {
    grid-row: 4;
    margin: 0;
    font-size: clamp(9px, 2.65vw, 11px);
    line-height: 1.2;
    white-space: nowrap;
  }
  .zr-telemetry-card-supply strong {
    grid-row: 2;
    margin: 0;
    font-size: clamp(16px, 4.6vw, 21px);
  }
  .zr-telemetry-card-supply h2 {
    grid-row: 3;
    margin: 0;
    font-size: clamp(9px, 2.6vw, 11px);
  }
  .zr-telemetry-card-supply .zr-telemetry-change {
    grid-row: 4;
    margin: 0;
    font-size: clamp(8px, 2.25vw, 10px);
  }
}

@media (max-width: 360px) {
  .zr-hero { min-height: 184px; margin-left: -10px; margin-right: -10px; border-radius: 0; background-position: center, calc(100% + 132px) center; }
  .zr-hero-copy { max-width: 74%; }
  .zr-hero h1 { font-size: 21px; }
  .zr-action { padding: 7px; font-size: 9px; }
  .zr-quote { grid-template-columns: 30px minmax(143px, 50%) minmax(0, 1fr); gap: 6px; }
  .zr-quote-icon { width: 29px; height: 29px; }
  .zr-quote-icon img { width: 29px; height: 29px; }
  .zr-quote-price { font-size: 17px; }
  .zr-telemetry-card { padding-left: 2px; padding-right: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .zr-action { scroll-behavior: auto; }
}
