.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 7rem) clamp(3.5rem, 2rem + 5vw, 6rem);
  overflow: hidden;
}

/* Ambient light: a single lime bloom off the top-right, the way a screen
   glows in a dark room. Nothing else in the hero is decorative. */
.hero__glow {
  position: absolute;
  inset: -30% -20% auto 30%;
  height: 90vh;
  background: radial-gradient(
    50% 50% at 70% 30%,
    rgba(204, 245, 38, 0.16) 0%,
    rgba(204, 245, 38, 0.05) 38%,
    transparent 70%
  );
  filter: blur(20px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}

/* --- copy column --- */

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
}

.hero__title {
  font-size: var(--text-hero);
  line-height: 0.94;
  letter-spacing: -0.035em;
}

.hero__title .accent {
  color: var(--lime);
}

/* Keep "Cash Cat first." together — the break belongs after the setup line. */
.hero__title .line {
  display: block;
  white-space: nowrap;
}

.hero__lede {
  color: var(--text-dim);
  font-size: var(--text-lead);
  line-height: 1.55;
  max-width: 38ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* --- market card --- */

.market {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.market__card {
  position: relative;
  padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--ink-800) 0%, #121412 100%);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 80px -50px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.market__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.market__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink-700);
  border: 1px solid var(--line-strong);
  padding: 2px;
  flex-shrink: 0;
}

.market__ticker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
}

.market__chain {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.18em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.market__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.market__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.market__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  align-self: center;
  animation: pulse 2.4s var(--ease-out-expo) infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(204, 245, 38, 0.5);
  }
  60% {
    box-shadow: 0 0 0 9px rgba(204, 245, 38, 0);
  }
}

.market__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--down);
}

.market__delta[data-trend="up"] {
  color: var(--up);
}

/* --- sparkline --- */

.market__chart {
  width: 100%;
  height: clamp(110px, 14vw, 150px);
  margin-bottom: 1.25rem;
}

.spark__line {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 1.8s var(--ease-out-expo) 0.35s forwards;
}

.spark__area {
  fill: url(#sparkFill);
  opacity: 0;
  animation: fade 1.2s ease 1.2s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .spark__line {
    stroke-dashoffset: 0;
  }

  .spark__area {
    opacity: 1;
  }
}

.market__buy {
  width: 100%;
  padding-block: 1.05rem;
  font-size: 1.15rem;
}

/* --- contract address --- */

.ca {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  padding: 0.9rem 1.15rem;
  text-align: left;
  border-radius: 18px;
  border: 1.5px dashed rgba(204, 245, 38, 0.55);
  background: rgba(204, 245, 38, 0.035);
  transition:
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}

.ca:hover {
  background: rgba(204, 245, 38, 0.08);
  border-color: var(--lime);
}

.ca__body {
  min-width: 0;
}

.ca__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.22em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.ca__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 0.55rem + 0.55vw, 0.95rem);
  color: var(--text);
  overflow-wrap: anywhere;
}

.ca__action {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

/* --- ticker strip --- */

.strip {
  border-block: 1px solid var(--line);
  background: var(--lime);
  color: var(--ink-1000);
  overflow: hidden;
  padding-block: 0.7rem;
}

.strip__track {
  display: flex;
  width: max-content;
  animation: slide 28s linear infinite;
}

.strip__track:hover {
  animation-play-state: paused;
}

.strip__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.strip__group span::after {
  content: "🐾";
  margin-left: 2.5rem;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero__copy {
    align-items: flex-start;
  }
}

@media (max-width: 460px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__title .line {
    white-space: normal;
  }
}
