:root {
  --green: #b9ff00;
  --black: #090909;
  --white: #ffffff;
  --grey: #eeeeec;
  --line: rgba(9, 9, 9, 0.17);
  --x: 0deg;
  --y: 0deg;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--black);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  position: relative;
  min-height: 100svh;
  padding-bottom: 42px;
  overflow: hidden;
  background-color: var(--white);
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}

.topbar {
  position: relative;
  z-index: 20;
  height: 76px;
  padding: 0 clamp(18px, 3vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 2px solid var(--black);
  background: rgba(255, 255, 255, 0.94);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--black);
}

.market-state {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.market-state i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  border: 1px solid var(--black);
  box-shadow: 0 0 0 4px rgba(185, 255, 0, 0.23);
  animation: pulse 1.7s ease-out infinite;
}

.topnav {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.nav-buy {
  height: 40px;
  min-width: 54px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-buy {
  min-width: 112px;
  background: var(--black);
  color: var(--white);
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--green);
}

.nav-buy:hover,
.nav-buy:focus-visible {
  background: var(--green);
  color: var(--black);
}

.nav-link:hover,
.nav-buy:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  min-height: calc(100svh - 118px);
  display: grid;
  grid-template-columns: minmax(420px, 0.9fr) minmax(520px, 1.1fr);
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-height: 620px;
  padding: clamp(40px, 5vh, 76px) clamp(26px, 5vw, 82px) 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 2px solid var(--black);
  background: rgba(255, 255, 255, 0.76);
}

.eyebrow {
  margin-bottom: clamp(22px, 4vh, 42px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(4.7rem, 7.25vw, 8.8rem);
  font-weight: 950;
  letter-spacing: -0.085em;
  line-height: 0.74;
}

h1 > span {
  display: block;
}

h1 .coin-line {
  width: max-content;
  margin-top: 0.09em;
  padding: 0.05em 0.11em 0.11em 0.06em;
  color: var(--black);
  background: var(--green);
  transform: rotate(-1.6deg);
}

h1 i {
  margin-left: 0.25em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.12em;
  font-style: normal;
  letter-spacing: 0;
  vertical-align: top;
}

.lead {
  margin: clamp(28px, 4vh, 44px) 0 24px;
  max-width: 540px;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 2px solid var(--black);
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button span {
  font-size: 1.2rem;
}

.button-primary {
  min-width: 190px;
  background: var(--black);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--black);
  background: var(--green);
  box-shadow: 5px 5px 0 var(--black);
}

.button-secondary {
  min-width: 190px;
  background: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--green);
  box-shadow: 5px 5px 0 var(--black);
}

.contract {
  width: min(100%, 520px);
  min-height: 58px;
  margin-top: 12px;
  padding: 0 17px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1.5px solid var(--black);
  border-radius: 4px;
  color: var(--black);
  background: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 180ms ease;
}

.contract:hover,
.contract:focus-visible {
  background: #f5f5f2;
}

.contract-label,
.copy-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.contract strong {
  min-width: 0;
  overflow: hidden;
  font-family: "Courier New", monospace;
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-label {
  padding: 7px 9px;
  color: var(--black);
  background: var(--green);
  border: 1px solid var(--black);
}

.market-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 65% 24%, rgba(185, 255, 0, 0.65), transparent 26%),
    linear-gradient(145deg, #f6f6f2 0%, #ffffff 55%);
}

.market-stage::before {
  content: "";
  position: absolute;
  width: min(76vw, 850px);
  aspect-ratio: 1;
  border: 1.5px solid rgba(0, 0, 0, 0.13);
  border-radius: 50%;
  transform: translate(23%, -12%);
}

.market-stage::after {
  content: "$RHC";
  position: absolute;
  right: -0.12em;
  top: 47%;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.12);
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(7rem, 16vw, 18rem);
  line-height: 1;
  transform: rotate(90deg) translateY(-50%);
  transform-origin: right top;
  white-space: nowrap;
}

.stage-label {
  position: absolute;
  z-index: 3;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.stage-label-top {
  top: 24px;
  left: 26px;
}

.stage-label-side {
  right: 25px;
  bottom: 24px;
  writing-mode: vertical-rl;
}

.coin-button {
  position: absolute;
  top: 8%;
  right: 4%;
  z-index: 2;
  width: min(65%, 560px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: perspective(1000px) rotateX(var(--y)) rotateY(var(--x));
  transition: transform 140ms linear, filter 220ms ease;
}

.coin-button:hover {
  filter: drop-shadow(18px 24px 0 rgba(9, 9, 9, 0.12));
}

.coin-button.is-hit {
  animation: coin-hit 420ms cubic-bezier(.2, .86, .35, 1.22);
}

.coin-button img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  border: 2px solid var(--black);
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

.coin-ring {
  position: absolute;
  inset: -27px;
  z-index: -1;
  display: grid;
  place-items: start center;
  border: 1px dashed rgba(0, 0, 0, 0.36);
  border-radius: 50%;
  color: rgba(0, 0, 0, 0.58);
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  animation: spin 18s linear infinite;
}

.quote-card {
  position: absolute;
  left: clamp(26px, 5vw, 74px);
  bottom: clamp(30px, 6vh, 70px);
  z-index: 5;
  width: min(68%, 500px);
  padding: 20px 20px 16px;
  border: 2px solid var(--black);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 10px 10px 0 var(--black);
  backdrop-filter: blur(12px);
}

.quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.quote-header span {
  display: block;
  margin-bottom: 3px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.quote-header strong {
  display: block;
  font-family: "Arial Black", Arial, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  letter-spacing: -0.07em;
  line-height: 1;
}

.quote-change {
  padding: 7px 9px;
  border: 1px solid var(--black);
  background: var(--green);
  font-size: 0.73rem;
  font-weight: 900;
}

.chart {
  width: 100%;
  height: 94px;
  margin: 10px 0 8px;
  overflow: visible;
}

.chart-area {
  fill: url(#chart-fill);
}

.chart-line {
  fill: none;
  stroke: var(--black);
  stroke-width: 4;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s 260ms cubic-bezier(.2, .75, .24, 1) forwards;
}

.quote-footer {
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.quote-footer span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quote-footer b {
  font-size: 0.68rem;
}

.ticker {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 42px;
  overflow: hidden;
  border-top: 2px solid var(--black);
  color: var(--white);
  background: var(--black);
}

.ticker > div {
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  animation: ticker 19s linear infinite;
}

.ticker span,
.ticker b {
  padding: 0 24px;
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  white-space: nowrap;
}

.ticker span {
  height: 100%;
  display: inline-flex;
  align-items: center;
  color: var(--black);
  background: var(--green);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 62px;
  z-index: 100;
  padding: 11px 16px;
  border: 2px solid var(--black);
  color: var(--black);
  background: var(--green);
  box-shadow: 5px 5px 0 var(--black);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 14px);
  transition: opacity 170ms ease, transform 170ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.burst {
  position: fixed;
  z-index: 80;
  width: 11px;
  height: 11px;
  border: 1px solid var(--black);
  background: var(--green);
  pointer-events: none;
  animation: burst 650ms cubic-bezier(.15, .65, .25, 1) forwards;
}

.is-disabled {
  opacity: 0.56;
  cursor: default;
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes ticker {
  to { transform: translateX(-33.333%); }
}

@keyframes pulse {
  65%, 100% { box-shadow: 0 0 0 10px rgba(185, 255, 0, 0); }
}

@keyframes coin-hit {
  0% { scale: 1; }
  40% { scale: .9 1.08; }
  75% { scale: 1.05 .96; }
  100% { scale: 1; }
}

@keyframes burst {
  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(320deg) scale(.25);
  }
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .market-state {
    display: none;
  }

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

  .hero-copy {
    min-height: auto;
    padding-top: 60px;
    border-right: 0;
    border-bottom: 2px solid var(--black);
  }

  h1 {
    font-size: clamp(5.3rem, 16vw, 10rem);
  }

  .market-stage {
    min-height: 720px;
  }

  .coin-button {
    width: min(66vw, 520px);
    right: 9%;
  }

  .quote-card {
    width: min(62vw, 500px);
  }
}

@media (max-width: 660px) {
  .site-shell {
    padding-bottom: 38px;
  }

  .topbar {
    height: 66px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand span {
    display: none;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .topnav {
    gap: 5px;
  }

  .nav-link,
  .nav-buy {
    height: 38px;
    min-width: 44px;
    padding: 0 12px;
  }

  .nav-buy {
    min-width: 94px;
  }

  .hero-copy {
    min-height: calc(100svh - 104px);
    padding: 42px 18px 38px;
    justify-content: flex-start;
  }

  .eyebrow {
    margin-bottom: 40px;
    font-size: 0.61rem;
  }

  h1 {
    font-size: clamp(4.05rem, 21.5vw, 7rem);
  }

  .lead {
    margin-top: 38px;
    font-size: 1.14rem;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .button,
  .button-primary,
  .button-secondary {
    min-width: 0;
    padding: 0 13px;
    gap: 8px;
    font-size: 0.7rem;
  }

  .contract {
    grid-template-columns: auto 1fr;
  }

  .contract-label {
    display: none;
  }

  .market-stage {
    min-height: 640px;
    place-items: start center;
  }

  .coin-button {
    top: 48px;
    right: 50%;
    width: min(82vw, 410px);
    transform: translateX(50%) perspective(1000px) rotateX(var(--y)) rotateY(var(--x));
  }

  .coin-ring {
    inset: -17px;
  }

  .quote-card {
    left: 16px;
    bottom: 54px;
    width: calc(100% - 44px);
    padding: 16px 16px 13px;
    box-shadow: 7px 7px 0 var(--black);
  }

  .quote-header strong {
    font-size: 2.25rem;
  }

  .chart {
    height: 82px;
  }

  .quote-footer {
    font-size: 0.52rem;
  }

  .stage-label-side {
    display: none;
  }

  .ticker {
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
