:root {
  --ink: #071013;
  --midnight: #111b23;
  --deep: #172936;
  --steel: #5d7180;
  --mist: #c8d3d4;
  --paper: #b98b5a;
  --paper-light: #e1ba88;
  --acid: #b8ff4f;
  --alarm: #ff4b4b;
  --line: rgba(218, 235, 232, 0.16);
  --glass: rgba(8, 18, 23, 0.68);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: #edf6f2;
  background:
    radial-gradient(circle at 66% 38%, rgba(184, 255, 79, 0.16), transparent 18rem),
    linear-gradient(142deg, rgba(7, 16, 19, 0.72), rgba(8, 16, 21, 0.96) 48%, rgba(42, 54, 55, 0.88)),
    url("assets/zwhale.png") center 18% / min(92rem, 140vw) auto fixed no-repeat,
    #071013;
  font-family:
    "Arial Narrow",
    "Roboto Condensed",
    "Segoe UI",
    Arial,
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), transparent 82%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    repeating-linear-gradient(
      98deg,
      transparent 0 16px,
      rgba(255, 255, 255, 0.025) 17px 18px,
      transparent 19px 42px
    ),
    radial-gradient(circle at var(--mx, 52%) var(--my, 32%), rgba(225, 186, 136, 0.15), transparent 17rem);
  mix-blend-mode: screen;
  opacity: 0.75;
}

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

.storm {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.storm span {
  position: absolute;
  width: 1px;
  height: 34vh;
  top: -40vh;
  background: linear-gradient(to bottom, transparent, rgba(219, 240, 241, 0.42), transparent);
  transform: rotate(12deg);
  animation: rain 2.8s linear infinite;
}

.storm span:nth-child(1) {
  left: 18%;
  animation-delay: -1s;
}

.storm span:nth-child(2) {
  left: 54%;
  animation-delay: -2.1s;
  height: 48vh;
}

.storm span:nth-child(3) {
  left: 82%;
  animation-delay: -0.6s;
  height: 40vh;
}

@keyframes rain {
  to {
    top: 110vh;
  }
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 14px 0;
  backdrop-filter: blur(14px);
}

.mark,
.nav-actions,
.hero-actions,
.bottom-actions {
  display: flex;
  align-items: center;
}

.mark {
  gap: 10px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 900;
}

.mark-sigil {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(225, 186, 136, 0.64);
  border-radius: 50%;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent),
    var(--paper);
  box-shadow: 0 0 30px rgba(184, 255, 79, 0.18);
}

.nav-actions {
  gap: 10px;
}

.icon-link,
.buy-link,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 900;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.icon-link {
  width: 44px;
  border: 1px solid var(--line);
  color: #f7fbfa;
  background: rgba(7, 16, 19, 0.72);
}

.buy-link,
.primary-action {
  border: 1px solid rgba(184, 255, 79, 0.5);
  color: #06100b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42), transparent),
    var(--acid);
  box-shadow: 0 18px 46px rgba(184, 255, 79, 0.15);
}

.buy-link {
  padding: 0 16px;
}

.icon-link:hover,
.buy-link:hover,
.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: clamp(22px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 92px);
  padding: clamp(34px, 5vw, 62px) 0 44px;
}

.signal,
.panel-kicker {
  margin: 0;
  color: var(--acid);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 14px 0 18px;
  color: #f7fbfa;
  font-size: clamp(4.4rem, 14vw, 12rem);
  line-height: 0.78;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 rgba(7, 16, 19, 0.7),
    0 0 52px rgba(184, 255, 79, 0.2);
}

.hero-line {
  width: min(100%, 610px);
  margin: 0;
  color: rgba(237, 246, 242, 0.84);
  font-size: clamp(1.1rem, 2.1vw, 1.42rem);
  line-height: 1.5;
}

.hero-actions,
.bottom-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  gap: 10px;
  min-width: 176px;
  padding: 0 20px;
}

.secondary-action {
  border: 1px solid rgba(225, 186, 136, 0.44);
  background: rgba(9, 18, 21, 0.7);
}

.secondary-action span {
  color: var(--paper-light);
}

.hero-visual {
  position: relative;
  min-height: min(72vh, 720px);
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 8% 0 2%;
  z-index: -2;
  content: "";
  border: 1px solid rgba(184, 255, 79, 0.18);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(12, 29, 36, 0.4), rgba(7, 16, 19, 0.8)),
    radial-gradient(circle at 50% 40%, rgba(184, 255, 79, 0.13), transparent 44%),
    radial-gradient(circle at 52% 80%, rgba(225, 186, 136, 0.18), transparent 38%);
  filter: drop-shadow(0 24px 80px rgba(0, 0, 0, 0.66));
}

.hero-visual img {
  position: absolute;
  right: -6%;
  bottom: -2%;
  width: min(760px, 112%);
  max-width: none;
  filter:
    drop-shadow(0 32px 54px rgba(0, 0, 0, 0.58))
    saturate(1.08)
    contrast(1.08);
}

.sonar {
  position: absolute;
  inset: 4% 3% 5% 1%;
  z-index: -1;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 48%, rgba(184, 255, 79, 0.18) 0 1px, transparent 2px 58px),
    conic-gradient(from 20deg, transparent 0 18%, rgba(184, 255, 79, 0.2) 22%, transparent 29% 100%);
  opacity: 0.65;
  animation: pulse 5.5s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    transform: scale(1.04);
    opacity: 0.86;
  }
}

.visual-tag {
  position: absolute;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: #06100b;
  background: var(--paper-light);
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.tag-left {
  left: 3%;
  bottom: 28%;
}

.tag-right {
  right: 4%;
  top: 24%;
  color: #f4fff6;
  background: rgba(7, 16, 19, 0.78);
}

.ticker-band {
  display: flex;
  gap: 10px;
  margin: 0 calc(50% - 50vw);
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.18);
  color: #06100b;
  background: var(--paper-light);
  font-weight: 900;
}

.ticker-band span {
  flex: 0 0 auto;
  padding-right: 20px;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  padding: clamp(50px, 8vw, 92px) 0 34px;
}

.mission-panel,
.stat-panel,
.asset-card,
.bottom-call {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
}

.mission-panel,
.stat-panel {
  padding: clamp(22px, 4vw, 38px);
}

.mission-panel h2,
.section-heading h2,
.bottom-call h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mission-panel p:last-child {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(237, 246, 242, 0.78);
  font-size: 1.12rem;
  line-height: 1.55;
}

.stat-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.stat-row span {
  color: rgba(237, 246, 242, 0.62);
}

.stat-row strong {
  text-align: right;
}

.asset-board {
  padding: 52px 0 32px;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.asset-card {
  min-height: 310px;
  overflow: hidden;
}

.asset-card h3 {
  margin: 0;
  font-size: 1.14rem;
  text-transform: uppercase;
}

.asset-card p {
  margin: 10px 0 0;
  color: rgba(237, 246, 242, 0.68);
  line-height: 1.45;
}

.portrait-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 54% 22%;
  border-bottom: 1px solid var(--line);
}

.portrait-card div,
.texture-card div:last-child {
  padding: 18px;
}

.texture-card {
  display: grid;
  grid-template-rows: 1fr auto;
}

.texture-swatch {
  min-height: 190px;
}

.paper {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.35), transparent 42%),
    repeating-linear-gradient(38deg, rgba(65, 39, 20, 0.22) 0 1px, transparent 1px 18px),
    linear-gradient(155deg, #7f512b, #e1ba88 46%, #9d6938);
}

.steel {
  background:
    radial-gradient(circle at 40% 30%, rgba(255, 255, 255, 0.22), transparent 18%),
    repeating-linear-gradient(112deg, rgba(255, 255, 255, 0.14) 0 1px, transparent 2px 18px),
    linear-gradient(160deg, #1d2b33, #79919c 48%, #141d23);
}

.signal-swatch {
  background:
    linear-gradient(90deg, rgba(7, 16, 19, 0.76) 0 22%, transparent 22% 100%),
    repeating-linear-gradient(0deg, rgba(7, 16, 19, 0.22) 0 4px, transparent 4px 18px),
    linear-gradient(135deg, #b8ff4f, #e1ba88 52%, #ff4b4b);
}

.bottom-call {
  margin: 54px 0 42px;
  padding: clamp(28px, 6vw, 58px);
  background:
    linear-gradient(135deg, rgba(184, 255, 79, 0.1), transparent 46%),
    rgba(8, 18, 23, 0.82);
}

@media (max-width: 920px) {
  .hero,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-visual {
    min-height: 620px;
    order: -1;
  }

  .hero-visual img {
    right: 50%;
    transform: translateX(50%);
    width: min(680px, 124%);
  }

  .asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
  }

  .buy-link {
    flex: 1;
  }

  h1 {
    font-size: clamp(3.6rem, 23vw, 5.7rem);
  }

  .hero-line {
    font-size: 1.02rem;
  }

  .hero-actions,
  .bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .hero-visual {
    min-height: 470px;
  }

  .visual-tag {
    font-size: 0.82rem;
  }

  .tag-left {
    bottom: 18%;
  }

  .tag-right {
    top: 16%;
  }

  .mission-panel h2,
  .section-heading h2,
  .bottom-call h2 {
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

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

  .stat-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
  }

  .stat-row strong {
    text-align: left;
  }
}

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