:root {
  --bg: #030713;
  --panel: rgba(7, 18, 32, .84);
  --panel-strong: rgba(8, 22, 39, .96);
  --ink: #f2fbff;
  --muted: #7ca2b7;
  --cyan: #00eaff;
  --blue: #078bff;
  --red: #ff235f;
  --green: #4af2a1;
  --line: rgba(0, 234, 255, .22);
  --line-hot: rgba(255, 35, 95, .46);
  --shadow: 0 0 36px rgba(0, 234, 255, .12), inset 0 0 24px rgba(0, 234, 255, .05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(0, 234, 255, .18), transparent 26%),
    radial-gradient(circle at 86% 12%, rgba(255, 35, 95, .16), transparent 26%),
    radial-gradient(circle at 50% 110%, rgba(7, 139, 255, .22), transparent 32%),
    var(--bg);
  color: var(--ink);
  font-family: "Arial Narrow", "Rajdhani", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

body::before {
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle, rgba(0, 234, 255, .22) 0 1px, transparent 2px),
    radial-gradient(circle, rgba(255, 35, 95, .14) 0 1px, transparent 2px);
  background-position: 0 0, 24px 18px;
  background-size: 64px 64px, 92px 92px;
  animation: drift 26s linear infinite;
}

body::after {
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 49.6%, rgba(0, 234, 255, .09) 49.8% 50.2%, transparent 50.4%),
    linear-gradient(0deg, transparent 0 49.6%, rgba(0, 234, 255, .07) 49.8% 50.2%, transparent 50.4%);
  background-size: 70px 70px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 72%);
}

a,
button {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

img {
  max-width: 100%;
}

.scanline {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(135deg, transparent 0 48%, rgba(0, 234, 255, .08) 49% 51%, transparent 52%);
}

.warning-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  overflow: hidden;
  padding: 8px 14px;
  background: var(--red);
  color: white;
  font-family: "Courier New", monospace;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 0 28px rgba(255, 35, 95, .45);
}

main {
  width: min(1400px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 54px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  background: rgba(2, 8, 18, .76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.terminal-head,
.terminal-readout {
  display: flex;
  align-items: center;
}

.brand {
  min-width: 0;
  gap: 10px;
  color: white;
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(0, 234, 255, .35);
}

.nav-links {
  gap: 8px;
}

.nav-links a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: rgba(0, 234, 255, .06);
  color: var(--ink);
  font-family: "Courier New", monospace;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.nav-links a:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 234, 255, .28);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 116px);
  padding: 44px 0 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin-bottom: 22px;
  color: white;
  font-size: clamp(4.4rem, 11vw, 10.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: .83;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(0, 234, 255, .35);
}

h1::before,
h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

h1::before {
  color: var(--red);
  clip-path: inset(0 0 64% 0);
  transform: translate(3px, -2px);
  opacity: .5;
}

h1::after {
  color: var(--cyan);
  clip-path: inset(64% 0 0 0);
  transform: translate(-3px, 2px);
  opacity: .42;
}

h2 {
  margin-bottom: 0;
  color: white;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: .96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: white;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.hero-text {
  max-width: 680px;
  margin-bottom: 0;
  color: #b7d2df;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 700;
  line-height: 1.56;
}

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

.primary {
  background: var(--cyan);
  color: #03111c;
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 234, 255, .24);
}

.danger {
  background: rgba(255, 35, 95, .16);
  border-color: var(--red);
  color: white;
}

.secondary {
  background: rgba(255, 255, 255, .06);
}

.system-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(0, 234, 255, .045), rgba(255, 35, 95, .025)), var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.system-panel::before,
.system-panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.system-panel::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.system-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
}

.hero-terminal {
  overflow: hidden;
  padding: 12px;
}

.terminal-head,
.terminal-readout {
  justify-content: space-between;
  gap: 12px;
  font-family: "Courier New", monospace;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.terminal-head {
  padding: 0 0 10px;
  color: var(--cyan);
}

.terminal-head strong {
  padding: 4px 8px;
  background: var(--red);
  color: white;
  animation: pulse 1.3s infinite;
}

.hero-terminal img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .1);
}

.terminal-readout {
  flex-wrap: wrap;
  padding-top: 12px;
  color: #b8e8f4;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 30px;
}

.quick-stats article,
.step-grid article,
.mutation-grid article {
  padding: 18px;
}

.quick-stats span,
.step-grid span,
.mutation-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-stats strong {
  display: block;
  overflow-wrap: anywhere;
  color: white;
  font-size: clamp(1.1rem, 2vw, 1.7rem);
}

.contract-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 58px;
  padding: clamp(18px, 3vw, 30px);
}

.contract-panel h2 {
  max-width: 990px;
  overflow-wrap: anywhere;
  color: var(--cyan);
  font-family: "Courier New", monospace;
  font-size: clamp(1rem, 2.25vw, 2.1rem);
  line-height: 1.2;
}

.contract-panel p:not(.eyebrow),
.step-grid p,
.mutation-grid p {
  margin-bottom: 0;
  color: #9fc0ce;
  font-weight: 650;
  line-height: 1.55;
}

.section-heading {
  max-width: 890px;
  margin-bottom: 22px;
}

.chart-section,
.protocol,
.meme-section,
.roadmap {
  margin-top: 58px;
}

.chart-frame {
  height: min(760px, 74vh);
  min-height: 520px;
  overflow: hidden;
  padding: 8px;
}

.chart-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #050b12;
}

.step-grid,
.mutation-grid,
.meme-grid {
  display: grid;
  gap: 18px;
}

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

.meme-grid,
.mutation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-grid article {
  min-height: 190px;
}

.step-grid span {
  color: var(--red);
  font-size: 2.2rem;
}

.meme-grid article {
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.meme-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.meme-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.meme-grid strong {
  display: block;
  padding: 15px 16px 17px;
  color: white;
  font-size: 1.06rem;
  text-transform: uppercase;
}

.mutation-grid article {
  min-height: 210px;
}

.mutation-grid .hot {
  border-color: var(--line-hot);
  box-shadow: 0 0 30px rgba(255, 35, 95, .18), inset 0 0 24px rgba(255, 35, 95, .06);
}

.mutation-grid .hot span,
.mutation-grid .hot h3 {
  color: var(--red);
}

.social-strip {
  display: flex;
  gap: 12px;
  overflow: hidden;
  margin: 58px calc(50% - 50vw) 0;
  padding: 14px;
  border-block: 1px solid var(--line);
  background: rgba(0, 234, 255, .08);
}

.social-strip a,
.social-strip span {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: white;
  font-family: "Courier New", monospace;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  animation: floaty 3.4s ease-in-out infinite;
}

.social-strip span:nth-child(3) {
  color: var(--cyan);
  animation-delay: -1.1s;
}

.social-strip span:nth-child(4) {
  color: var(--red);
  animation-delay: -1.8s;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border: 1px solid var(--cyan);
  background: #04111b;
  color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 234, 255, .32);
  font-family: "Courier New", monospace;
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
  transform: translate(-50%, 120px);
  transition: transform .2s ease;
}

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

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .48;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(70px, 90px, 0);
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 1080px) {
  .hero,
  .quick-stats,
  .step-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  main {
    width: min(100% - 20px, 1400px);
  }

  .warning-bar {
    justify-content: flex-start;
    white-space: nowrap;
  }

  .topbar,
  .contract-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    justify-content: center;
  }

  .nav-links,
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .quick-stats,
  .step-grid,
  .meme-grid,
  .mutation-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 6.8rem);
  }

  .chart-frame {
    height: 620px;
    min-height: 620px;
  }
}

@media (max-width: 460px) {
  .nav-links,
  .hero-actions {
    grid-template-columns: 1fr;
  }

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