:root {
  --bg: #050505;
  --panel: #070707;
  --panel-edge: #1b1b1c;
  --text: #f4f4f4;
  --muted: #c6c6c6;
  --green: #32ff8f;
  --red: #ff2a2a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: var(--text);
}

body {
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

.page-wrap {
  width: 100%;
  margin: 0;
  background: #000;
}

.scene {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.78) 100%),
    url("artifacts/war_hero_reference_exact_now.png");
  background-size: cover;
  background-position: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) brightness(0.9) contrast(1.02);
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.55) 62%, rgba(0, 0, 0, 0.86) 100%),
    linear-gradient(180deg, rgba(69, 2, 2, 0.18) 0%, rgba(0, 0, 0, 0) 40%, rgba(96, 0, 0, 0.22) 100%);
  z-index: -1;
}

.dust-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.dust-layer::before,
.dust-layer::after {
  content: "";
  position: absolute;
  inset: -16%;
  pointer-events: none;
  will-change: transform, opacity;
}

.dust-layer::before {
  background-image:
    radial-gradient(circle at 10% 22%, rgba(255, 135, 95, 0.26) 0 1px, transparent 1.7px),
    radial-gradient(circle at 26% 80%, rgba(255, 90, 75, 0.2) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 43% 28%, rgba(252, 211, 190, 0.19) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 59% 73%, rgba(255, 132, 96, 0.2) 0 1px, transparent 1.8px),
    radial-gradient(circle at 73% 18%, rgba(255, 100, 70, 0.2) 0 1.1px, transparent 1.9px),
    radial-gradient(circle at 84% 57%, rgba(255, 165, 120, 0.19) 0 0.9px, transparent 1.7px),
    radial-gradient(circle at 95% 38%, rgba(255, 95, 80, 0.2) 0 1px, transparent 1.8px);
  background-size: 360px 360px;
  opacity: 0.18;
  animation: dustDriftA 52s linear infinite;
}

.dust-layer::after {
  background-image:
    radial-gradient(circle at 16% 18%, rgba(230, 255, 245, 0.2) 0 0.9px, transparent 1.6px),
    radial-gradient(circle at 34% 62%, rgba(255, 120, 94, 0.16) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 52% 40%, rgba(255, 175, 150, 0.15) 0 0.8px, transparent 1.5px),
    radial-gradient(circle at 68% 86%, rgba(255, 140, 104, 0.16) 0 0.95px, transparent 1.7px),
    radial-gradient(circle at 82% 26%, rgba(240, 255, 248, 0.16) 0 0.8px, transparent 1.5px);
  background-size: 420px 420px;
  opacity: 0.12;
  animation: dustDriftB 66s linear infinite;
}

.ticker-strip,
.nav-row,
.hero-center,
.market-row,
footer {
  position: relative;
  z-index: 2;
}

.video-unmute-btn {
  position: absolute;
  right: 1rem;
  top: 6.25rem;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.74);
  color: #f7f8fa;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.5rem 0.84rem;
  cursor: pointer;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.video-unmute-btn:hover {
  border-color: rgba(255, 255, 255, 0.65);
}

.ticker-strip {
  height: 26px;
  border-top: 1px solid #171717;
  border-bottom: 1px solid #191919;
  background: rgba(8, 8, 8, 0.92);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerLoop 30s linear infinite;
  will-change: transform;
}

.ticker-segment {
  display: inline-flex;
  flex: 0 0 auto;
}

.ticker-track span {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: #c8cbc8;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  padding: 0 0.8rem;
  border-right: 1px solid #242424;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
}

.ticker-track .ticker-up {
  color: #6bf8b4;
}

.ticker-track .ticker-hot {
  color: #ff6f6f;
}

.ticker-track .ticker-warn {
  color: #ffd37a;
}

.ticker-track .ticker-calm {
  color: #9ac7ff;
}

.nav-row {
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid #171717;
  background: rgba(4, 4, 4, 0.88);
}

.brand-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #aaf7ff 0%, #4067ff 32%, #9f3fff 64%, #ff2f66 100%);
  box-shadow: 0 0 10px rgba(78, 113, 255, 0.6);
  border: 1px solid #161616;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.1rem, 3vw, 2.7rem);
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c5c8c7;
  text-decoration: none;
}

.nav-links a:hover {
  color: #fff;
}

.wallet-btn {
  color: #ebebeb;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 700;
  border: 1px solid #313131;
  border-radius: 999px;
  padding: 0.52rem 0.95rem;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.94) 0%, rgba(9, 9, 9, 0.95) 100%);
  white-space: nowrap;
}

.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.4rem 1rem 1.5rem;
}

.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2rem, 5.7vw, 4.45rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f3f0ea;
  text-shadow: 0 0 24px rgba(0, 0, 0, 0.62);
}

.war-wordmark {
  width: min(74vw, 620px);
  height: auto;
  margin-top: 1rem;
  filter:
    drop-shadow(0 6px 20px rgba(0, 0, 0, 0.84))
    drop-shadow(0 0 14px rgba(255, 40, 40, 0.45));
}

.hero-subtext {
  margin: 0.8rem 0 1rem;
  font-size: clamp(1.05rem, 2.35vw, 2rem);
  line-height: 1.12;
  font-weight: 700;
  color: #efefef;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.84);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: clamp(1.03rem, 2.05vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  padding: 0.72rem 1.85rem;
  border-radius: 999px;
  border: 1px solid #ff6161;
  background: linear-gradient(180deg, #ff2121 0%, #9f0707 100%);
  box-shadow:
    0 0 18px rgba(255, 38, 38, 0.88),
    0 0 36px rgba(255, 38, 38, 0.45),
    inset 0 -8px 14px rgba(0, 0, 0, 0.25);
}

.market-row {
  width: min(1020px, calc(100% - 2rem));
  margin: 0 auto 1.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.market-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 0.58rem;
  min-height: 82px;
  border-radius: 14px;
  border: 1px solid #2b2b2b;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.92) 0%, rgba(7, 7, 7, 0.94) 100%);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 0.56rem;
}

.card-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  border: 1px solid #2d2d2d;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.88) 0%, rgba(8, 8, 8, 0.92) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-icon {
  width: 80%;
  height: 80%;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  object-position: center;
  display: block;
  flex: 0 0 auto;
}

.card-copy {
  min-width: 0;
}

.card-label,
.card-value {
  margin: 0;
  line-height: 1.05;
}

.card-label {
  color: #b8bbb9;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-value {
  margin-top: 0.28rem;
  font-size: 1.72rem;
  font-weight: 700;
  color: #f4f4f4;
  letter-spacing: -0.01em;
}

.up,
.pct {
  color: var(--green);
  font-weight: 700;
}

.pct {
  font-size: 1.05rem;
  margin-left: 0.46rem;
}

footer {
  color: #676767;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.65rem 0 0.9rem;
  background: #000;
}

@keyframes tickerLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(var(--ticker-loop-distance, -50%));
  }
}

@keyframes dustDriftA {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-2.5%, 2.2%, 0);
  }

  100% {
    transform: translate3d(-5%, 5%, 0);
  }
}

@keyframes dustDriftB {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(2%, -2%, 0);
  }

  100% {
    transform: translate3d(4%, -4%, 0);
  }
}

@media (max-width: 860px) {
  .scene {
    min-height: auto;
  }

  .nav-row {
    min-height: 52px;
    padding: 0.58rem 0.8rem;
  }

  .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.32rem;
  }

  .hero-center {
    padding-top: 2rem;
    padding-bottom: 1.2rem;
  }

  .market-row {
    width: min(620px, calc(100% - 1.4rem));
    grid-template-columns: 1fr;
  }

  .video-unmute-btn {
    right: 0.75rem;
    top: 5.1rem;
    font-size: 0.74rem;
    padding: 0.42rem 0.72rem;
  }

  .market-card {
    grid-template-columns: 50px 1fr;
    min-height: 78px;
  }

  .card-value {
    font-size: 1.56rem;
  }
}

@media (max-width: 520px) {
  .ticker-track span {
    font-size: 0.67rem;
    padding: 0 0.6rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 11vw, 3rem);
  }

  .war-wordmark {
    width: min(89vw, 410px);
    margin-top: 0.75rem;
  }

  .hero-subtext {
    margin-top: 0.58rem;
    font-size: 1.08rem;
  }

  .hero-cta {
    font-size: 1rem;
    padding: 0.62rem 1.5rem;
  }

  .card-icon-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .card-icon {
    width: 82%;
    height: 82%;
  }

  .card-label {
    font-size: 0.81rem;
  }

  .card-value {
    font-size: 1.35rem;
  }

  .pct {
    font-size: 0.95rem;
  }

  .dust-layer::after {
    display: none;
  }

  .dust-layer::before {
    opacity: 0.13;
    animation-duration: 72s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dust-layer::before,
  .dust-layer::after {
    animation: none;
    transform: none;
    opacity: 0.08;
  }
}
