:root {
  --ink: #090909;
  --paper: #f2efe7;
  --signal: #d82446;
  --acid: #d8ff48;
  --line: 1px solid rgba(242,239,231,.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    linear-gradient(rgba(9,9,9,.79), rgba(9,9,9,.84)),
    url("assets/nio-grid.gif") 0 0 / 220px auto repeat fixed,
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: url("assets/syringe-cursor.png") 1 1, crosshair;
  overflow-x: hidden;
}

a, button, code { cursor: url("assets/syringe-cursor.png") 1 1, crosshair; }
a { color: inherit; }
button { font: inherit; }

.topbar {
  width: min(1480px, calc(100% - 44px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: var(--line);
  position: relative;
  z-index: 10;
}

.logo { color: var(--paper); font-size: 26px; font-weight: 900; font-kerning: none; letter-spacing: .025em; text-decoration: none; }
.stage {
  width: min(1480px, calc(100% - 44px));
  min-height: calc(100vh - 136px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 88px) 0;
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(480px, 1.28fr);
  gap: clamp(36px, 7vw, 118px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.identity { min-width: 0; }
h1 { margin: 0 0 24px; font-size: clamp(76px, 8vw, 132px); line-height: .8; font-kerning: none; letter-spacing: .025em; font-weight: 900; }

.contract-card { max-width: 660px; padding: 18px; border: var(--line); border-radius: 18px; background: rgba(255,255,255,.035); backdrop-filter: blur(12px); }
.contract-label { display: flex; justify-content: space-between; margin-bottom: 13px; color: rgba(242,239,231,.55); font: 750 10px/1 ui-monospace, monospace; letter-spacing: .13em; text-transform: uppercase; }
.verified-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(216,255,72,.08); }
.contract-row { display: flex; min-width: 0; border: 1px solid rgba(242,239,231,.25); border-radius: 11px; overflow: hidden; }
.contract-row code { flex: 1; min-width: 0; padding: 16px; overflow: hidden; color: white; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.contract-row button { flex: 0 0 auto; padding: 0 21px; color: var(--ink); background: var(--acid); border: 0; font-weight: 900; text-transform: uppercase; }
.contract-row button.copied { background: var(--signal); color: white; }
.copy-status { min-height: 17px; margin: 11px 0 0; color: rgba(242,239,231,.5); font-size: 11px; }

.social-row { display: flex; gap: 10px; max-width: 660px; margin-top: 13px; }
.social-row a { flex: 1; display: flex; justify-content: space-between; padding: 15px 17px; color: rgba(242,239,231,.8); border: var(--line); border-radius: 12px; font-size: 13px; font-weight: 850; text-decoration: none; transition: background .2s, color .2s; }
.social-row a:hover, .social-row a:focus-visible { color: var(--ink); background: var(--paper); outline: none; }

.chart-panel { width: 100%; min-height: 730px; border: 1px solid rgba(242,239,231,.25); border-radius: 28px; background: #111; box-shadow: 0 34px 100px rgba(0,0,0,.65), 0 0 0 8px rgba(255,255,255,.025); overflow: hidden; position: relative; }
.chart-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px rgba(255,255,255,.12); }
.chart-head { min-height: 62px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between; color: rgba(242,239,231,.55); border-bottom: var(--line); font: 750 11px/1 ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; }
.chart-head > div { display: flex; align-items: center; gap: 10px; }
.chart-head strong { color: var(--paper); font-weight: 800; }
.chart-head a { color: rgba(242,239,231,.62); text-decoration: none; }
.chart-head a:hover, .chart-head a:focus-visible { color: var(--acid); outline: none; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(216,36,70,.55); animation: pulse 2s infinite; }
.dex-chart { display: block; width: 100%; height: 668px; border: 0; background: #111; }

.pill-field { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.bouncing-pill {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(72px, 8vw, 126px);
  height: auto;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.55));
}

footer { width: min(1480px, calc(100% - 44px)); min-height: 58px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; color: rgba(242,239,231,.38); border-top: var(--line); font: 700 10px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; position: relative; z-index: 2; }

.droplet-field { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.droplet-field i { position: absolute; left: var(--x); top: -40px; width: var(--size); height: calc(var(--size) * 1.45); border-radius: 65% 35% 68% 32% / 70% 35% 65% 30%; background: var(--signal); opacity: .22; transform: rotate(35deg); animation: ambient-drop var(--duration) linear var(--delay) infinite; }
.cursor-drop { position: fixed; z-index: 9999; width: var(--drop-size); height: calc(var(--drop-size) * 1.5); pointer-events: none; border-radius: 70% 30% 62% 38% / 75% 38% 62% 25%; background: var(--signal); box-shadow: 0 0 16px rgba(216,36,70,.38); transform: rotate(35deg); animation: needle-drop .9s ease-in forwards; }

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(216,36,70,0); } 100% { box-shadow: 0 0 0 0 rgba(216,36,70,0); } }
@keyframes ambient-drop { from { transform: translateY(-10vh) rotate(35deg); } to { transform: translateY(115vh) rotate(35deg); } }
@keyframes needle-drop { 0% { opacity: .9; transform: translate(0,0) rotate(35deg) scale(1); } 100% { opacity: 0; transform: translate(var(--drift),72px) rotate(35deg) scale(.2); } }

@media (max-width: 1040px) {
  .stage { grid-template-columns: 1fr; }
  .identity { padding-top: 24px; }
  h1 { font-size: clamp(82px, 18vw, 138px); }
  .chart-panel { min-height: 650px; }
  .dex-chart { height: 590px; }
}

@media (max-width: 620px) {
  body { background-size: auto, 160px auto, auto; }
  .topbar, .stage, footer { width: min(100% - 24px, 1480px); }
  .topbar { min-height: 66px; }
  .stage { min-height: auto; padding: 58px 0 60px; gap: 46px; }
  h1 { font-size: clamp(72px, 25vw, 112px); }
  .contract-card { padding: 12px; }
  .contract-row { display: block; }
  .contract-row code { display: block; }
  .contract-row button { width: 100%; height: 46px; }
  .social-row { display: grid; }
  .chart-panel { min-height: 620px; border-radius: 20px; }
  .chart-head { padding-inline: 14px; }
  .chart-head a { font-size: 9px; }
  .dex-chart { height: 560px; }
  footer { padding: 20px 0; gap: 12px; align-items: flex-start; flex-direction: column; }
}

@media (hover: none), (pointer: coarse) { body, a, button, code { cursor: auto; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .droplet-field i { animation: none; }
  .cursor-drop { display: none; }
  .bouncing-pill:nth-child(1) { transform: translate(6vw, 14vh) !important; }
  .bouncing-pill:nth-child(2) { transform: translate(55vw, 9vh) !important; }
  .bouncing-pill:nth-child(3) { transform: translate(28vw, 54vh) !important; }
  .bouncing-pill:nth-child(4) { transform: translate(72vw, 68vh) !important; }
  .bouncing-pill:nth-child(5) { transform: translate(12vw, 82vh) !important; }
  .bouncing-pill:nth-child(6) { transform: translate(84vw, 28vh) !important; }
  .bouncing-pill:nth-child(7) { transform: translate(44vw, 12vh) !important; }
  .bouncing-pill:nth-child(8) { transform: translate(62vw, 48vh) !important; }
  .bouncing-pill:nth-child(9) { transform: translate(4vw, 42vh) !important; }
  .bouncing-pill:nth-child(10) { transform: translate(36vw, 76vh) !important; }
  .bouncing-pill:nth-child(11) { transform: translate(78vw, 86vh) !important; }
  .bouncing-pill:nth-child(12) { transform: translate(22vw, 34vh) !important; }
  .bouncing-pill:nth-child(13) { transform: translate(56vw, 88vh) !important; }
  .bouncing-pill:nth-child(14) { transform: translate(88vw, 56vh) !important; }
}
