:root {
  --ink: #060508;
  --ink-soft: #0d0912;
  --violet: #6f2bd5;
  --violet-bright: #8a35ea;
  --violet-deep: #25083f;
  --lime: #c9ff3d;
  --green: #61ff84;
  --cyan: #62e4ff;
  --gold: #ffc857;
  --coral: #ff6b78;
  --white: #f8f5ff;
  --muted: #bcb3c8;
  --line: rgba(201, 255, 61, 0.24);
  --line-soft: rgba(255, 255, 255, 0.12);
  --panel: rgba(7, 5, 10, 0.88);
  --header-height: 70px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--lime) var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--white);
  background: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

button,
textarea,
input {
  font: inherit;
}

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

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

button {
  border: 0;
}

img,
svg {
  display: block;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#matrixCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.09;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0, 0, 0, 0.45) 3px 4px);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1420px) / 2));
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--lime);
  background: rgba(6, 5, 8, 0.83);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 30;
}

.brand {
  min-width: 218px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: Consolas, "Courier New", monospace;
  font-size: 21px;
  line-height: 1;
}

.brand-copy small {
  color: var(--cyan);
  font-family: Consolas, "Courier New", monospace;
  font-size: 9px;
}

.site-nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 30px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.site-nav a {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.header-signal {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font: 11px Consolas, "Courier New", monospace;
}

.header-signal time {
  min-width: 86px;
  color: var(--muted);
}

.signal-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(97, 255, 132, 0.12), 0 0 16px var(--green);
  animation: signal 1.8s ease-in-out infinite;
}

@keyframes signal {
  50% { opacity: 0.42; }
}

.hero {
  position: relative;
  min-height: 860px;
  padding-top: var(--header-height);
  overflow: hidden;
  background: #4e1687;
  border-bottom: 1px solid var(--line);
}

.hero-visual,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-visual {
  background: #7427c6;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
  filter: saturate(1.05) contrast(1.04);
  transform: scale(1.035);
  transition: transform 900ms cubic-bezier(.2,.75,.2,1);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(17, 4, 30, 0.98) 0%, rgba(26, 5, 45, 0.91) 37%, rgba(45, 9, 73, 0.34) 66%, rgba(16, 5, 28, 0.12) 100%),
    linear-gradient(0deg, rgba(6, 5, 8, 0.88) 0%, transparent 34%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: var(--header-height) 0 42px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(201, 255, 61, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 255, 61, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1420px, calc(100% - 48px));
  min-height: 748px;
  margin: 0 auto;
  padding: 54px 0 62px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.hero-copy {
  width: min(650px, 58vw);
}

.eyebrow {
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font: 12px Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.hero h1 {
  position: relative;
  margin: 0;
  color: var(--lime);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 106px;
  line-height: 0.84;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 #110019, 0 0 32px rgba(201, 255, 61, 0.22);
}

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

.hero h1::before {
  color: var(--cyan);
  transform: translateX(-3px);
}

.hero h1::after {
  color: var(--coral);
  transform: translateX(3px);
}

.hero h1:hover::before,
.hero h1:hover::after {
  animation: glitch 420ms steps(2, end) 1;
}

@keyframes glitch {
  0%, 100% { opacity: 0; clip-path: inset(0 0 100%); }
  25% { opacity: .8; clip-path: inset(12% 0 58%); }
  60% { opacity: .6; clip-path: inset(65% 0 12%); }
}

.hero-line {
  margin: 24px 0 8px;
  color: var(--white);
  font-size: 27px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: #d7cfe1;
  font-size: 15px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button {
  min-height: 44px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  border: 1px solid var(--line);
  font: 700 12px Consolas, "Courier New", monospace;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #0a0a08;
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 0 0 28px rgba(201, 255, 61, 0.18);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green);
  border-color: var(--green);
}

.button.secondary {
  color: var(--white);
  background: rgba(8, 5, 12, 0.62);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.chat-terminal {
  width: min(720px, 61vw);
  height: 360px;
  display: grid;
  grid-template-rows: 37px minmax(0, 1fr) auto auto auto;
  color: var(--green);
  background: rgba(5, 5, 7, 0.92);
  border: 1px solid rgba(201, 255, 61, 0.42);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.52), inset 0 0 45px rgba(97, 255, 132, 0.025);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.terminal-bar {
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  background: #0e0913;
  border-bottom: 1px solid var(--line-soft);
  font: 10px Consolas, "Courier New", monospace;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.window-dots i:nth-child(2) { background: var(--gold); }
.window-dots i:nth-child(3) { background: var(--green); }

.terminal-mode {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
}

.terminal-mode b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.terminal-mode.fallback {
  color: var(--gold);
}

.chat-log {
  min-height: 0;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.message {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 13px Consolas, "Courier New", monospace;
  line-height: 1.5;
}

.message > img,
.message-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--violet);
}

.message.user {
  padding-left: 49px;
  color: var(--white);
}

.message p {
  margin: 3px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message-label {
  color: var(--cyan);
  font-size: 9px;
}

.message.user .message-label {
  color: var(--gold);
}

.message.typing p::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 5px;
  vertical-align: -2px;
  background: var(--green);
  animation: cursor 700ms steps(1) infinite;
}

@keyframes cursor { 50% { opacity: 0; } }

.prompt-rail {
  display: flex;
  gap: 7px;
  padding: 0 12px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.prompt-rail::-webkit-scrollbar { display: none; }

.prompt-rail button {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 10px;
  color: var(--lime);
  background: rgba(111, 43, 213, 0.2);
  border: 1px solid rgba(201, 255, 61, 0.24);
  border-radius: 3px;
  font: 10px Consolas, "Courier New", monospace;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.prompt-rail button:hover,
.prompt-rail button:focus-visible {
  background: rgba(111, 43, 213, 0.45);
  border-color: var(--lime);
}

.chat-composer {
  min-height: 52px;
  margin: 0 12px;
  display: grid;
  grid-template-columns: 1fr 42px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
}

.chat-composer textarea {
  width: 100%;
  max-height: 70px;
  padding: 13px 4px;
  resize: none;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  font: 12px Consolas, "Courier New", monospace;
}

.chat-composer textarea::placeholder {
  color: #81798a;
}

.icon-button {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: rgba(201, 255, 61, 0.07);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-1px);
}

.icon-button:disabled {
  cursor: progress;
  opacity: 0.45;
  transform: none;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  padding: 5px 7px;
  color: var(--white);
  background: #0a080d;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  font: 10px Consolas, "Courier New", monospace;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.send-button {
  color: #080909;
  background: var(--lime);
  border-color: var(--lime);
}

.terminal-footnote {
  margin: 0;
  padding: 0 13px 9px;
  color: #77717e;
  font: 9px Consolas, "Courier New", monospace;
}

.market-tape {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  color: var(--lime);
  background: rgba(5, 5, 7, 0.96);
  border-top: 1px solid var(--line);
  font: 11px Consolas, "Courier New", monospace;
}

.tape-label {
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  background: var(--lime);
  font-weight: 800;
}

.tape-label .icon { width: 15px; height: 15px; }

.tape-window {
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 95%, transparent);
}

.tape-track {
  width: max-content;
  display: flex;
  gap: 42px;
  padding-left: 30px;
  animation: tape 28s linear infinite;
}

.tape-track span {
  white-space: nowrap;
}

.tape-track b {
  color: var(--white);
}

.tape-track em {
  margin-left: 7px;
  color: var(--green);
  font-style: normal;
}

.tape-track em.negative { color: var(--coral); }

@keyframes tape { to { transform: translateX(-50%); } }

.tape-time {
  padding: 0 20px;
  color: var(--cyan);
}

.section-inner {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.market-section {
  padding: 86px 0 96px;
  background: #0a080d;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  margin-bottom: 27px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.core-copy h2 {
  margin: 0;
  color: var(--white);
  font-size: 42px;
  line-height: 1.05;
}

.feed-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-state {
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  border: 1px solid rgba(98, 228, 255, 0.28);
  border-radius: 3px;
  font: 10px Consolas, "Courier New", monospace;
}

.feed-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 9px currentColor;
}

.feed-state.snapshot { color: var(--gold); border-color: rgba(255, 200, 87, 0.32); }
.feed-state.live { color: var(--green); border-color: rgba(97, 255, 132, 0.32); }

.market-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  align-items: start;
}

.market-board,
.market-intel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #08070a;
  overflow: hidden;
}

.market-head,
.token-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(100px, .8fr) minmax(100px, .8fr) minmax(100px, .8fr) minmax(100px, .8fr) 76px 34px;
  gap: 12px;
  align-items: center;
}

.market-head {
  min-height: 38px;
  padding: 0 14px;
  color: #81798a;
  background: #0f0c12;
  border-bottom: 1px solid var(--line-soft);
  font: 9px Consolas, "Courier New", monospace;
  text-transform: uppercase;
}

.token-row {
  min-height: 69px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 160ms ease;
}

.token-row:last-child { border-bottom: 0; }
.token-row:hover { background: rgba(111, 43, 213, 0.13); }

.token-asset {
  min-width: 0;
  display: grid;
  grid-template-columns: 26px 40px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.token-rank {
  color: #625b69;
  font: 11px Consolas, "Courier New", monospace;
}

.token-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  color: var(--ink);
  background: var(--lime);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.token-icon-fallback {
  display: grid;
  place-items: center;
  font: 800 11px Consolas, "Courier New", monospace;
}

.token-name {
  min-width: 0;
}

.token-name strong,
.token-name small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-name strong {
  color: var(--white);
  font-size: 13px;
}

.token-name small {
  margin-top: 3px;
  color: #81798a;
  font: 9px Consolas, "Courier New", monospace;
}

.token-cell {
  color: var(--white);
  font: 11px Consolas, "Courier New", monospace;
}

.token-change {
  color: var(--green);
  font-weight: 700;
}

.token-change.negative { color: var(--coral); }

.token-link {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 3px;
}

.token-link:hover,
.token-link:focus-visible {
  color: var(--lime);
  border-color: var(--line);
}

.token-link .icon { width: 15px; height: 15px; }

.market-loading {
  padding: 22px 14px;
  display: grid;
  gap: 12px;
}

.market-loading span {
  display: block;
  height: 44px;
  border-radius: 3px;
  background: linear-gradient(90deg, #100d13, #1b1421, #100d13);
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}

@keyframes loading { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

.market-intel {
  padding: 17px;
  border-color: rgba(201, 255, 61, 0.28);
}

.intel-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--cyan);
  font: 9px Consolas, "Courier New", monospace;
}

.intel-topline span:last-child { color: var(--lime); text-align: right; }

.market-intel h3 {
  margin: 18px 0 20px;
  color: var(--white);
  font-size: 20px;
}

.intel-metric {
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line-soft);
}

.intel-metric span {
  color: var(--muted);
  font-size: 11px;
}

.intel-metric strong {
  color: var(--lime);
  font: 16px Consolas, "Courier New", monospace;
}

.risk-meter {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.risk-meter > div {
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
}

.risk-meter b {
  color: var(--gold);
  font: 10px Consolas, "Courier New", monospace;
}

.risk-meter > i {
  display: block;
  height: 4px;
  overflow: hidden;
  background: #251b2d;
}

.risk-meter > i span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  transition: width 600ms ease;
}

.market-intel > p {
  min-height: 54px;
  margin: 15px 0;
  color: #918899;
  font: 10px/1.5 Consolas, "Courier New", monospace;
}

.market-intel > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--lime);
  font: 11px Consolas, "Courier New", monospace;
}

.core-section {
  padding: 92px 0;
  background: #200a35;
}

.core-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  gap: 68px;
  align-items: center;
}

.core-visual {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(201, 255, 61, 0.28);
  border-radius: var(--radius);
  background: #0a070e;
}

.core-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
  opacity: 0.68;
  filter: contrast(1.08) saturate(.92);
}

.core-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 5, 10, 0.94), transparent 55%), rgba(111, 43, 213, 0.2);
}

.core-orbit {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(92%, 620px);
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(201, 255, 61, 0.18));
  animation: orbitFloat 5s ease-in-out infinite;
}

@keyframes orbitFloat {
  50% { transform: translate(-50%, calc(-50% - 8px)); }
}

.core-caption {
  position: absolute;
  z-index: 3;
  left: 17px;
  right: 17px;
  bottom: 15px;
  display: flex;
  justify-content: space-between;
  color: var(--cyan);
  font: 10px Consolas, "Courier New", monospace;
}

.core-caption b { color: var(--green); }

.core-copy > p:not(.eyebrow) {
  max-width: 600px;
  margin: 21px 0 30px;
  color: #d1c9dc;
  font-size: 16px;
  line-height: 1.72;
}

.capability-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-list article {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.capability-list article > .icon {
  width: 25px;
  height: 25px;
  color: var(--lime);
}

.capability-list h3,
.capability-list p {
  margin: 0;
}

.capability-list h3 {
  color: var(--white);
  font-size: 15px;
}

.capability-list p {
  margin-top: 5px;
  color: #a79caf;
  font-size: 12px;
  line-height: 1.5;
}

.site-footer {
  min-height: 118px;
  padding: 26px max(24px, calc((100vw - 1420px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: #050407;
  border-top: 1px solid var(--line);
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer strong {
  color: var(--lime);
  font: 17px Consolas, "Courier New", monospace;
}

.site-footer span,
.site-footer p {
  color: #756d7d;
  font: 10px/1.5 Consolas, "Courier New", monospace;
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.75,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .site-nav { display: none; }
  .hero-visual img { object-position: 64% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(17, 4, 30, .98) 0%, rgba(27, 5, 47, .88) 53%, rgba(20, 5, 33, .35) 100%), linear-gradient(0deg, rgba(6, 5, 8, .9), transparent 38%); }
  .hero-copy { width: min(650px, 70vw); }
  .chat-terminal { width: min(700px, 72vw); }
  .market-layout { grid-template-columns: 1fr; }
  .market-intel { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; align-items: start; }
  .intel-topline, .market-intel h3, .risk-meter, .market-intel > p, .market-intel > a { grid-column: 1 / -1; }
  .core-layout { grid-template-columns: 1fr 1fr; gap: 35px; }
  .core-visual { min-height: 500px; }
}

@media (max-width: 820px) {
  :root { --header-height: 58px; }
  .site-header { padding: 0 14px; }
  .brand { min-width: 0; }
  .brand img { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 17px; }
  .brand-copy small { display: none; }
  .header-signal { font-size: 9px; }
  .header-signal time { display: none; }
  .hero { min-height: 790px; }
  .hero-visual { inset: 0 0 auto; height: 430px; }
  .hero-visual img { object-position: 58% 38%; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20, 4, 35, .96), rgba(33, 7, 54, .36)), linear-gradient(0deg, #170527 5%, transparent 66%); }
  .hero::after { inset: var(--header-height) 0 42px; }
  .hero-inner { width: min(100% - 28px, 700px); min-height: 690px; padding: 34px 0 55px; }
  .hero-copy { width: min(100%, 540px); }
  .hero h1 { font-size: 66px; }
  .hero-line { margin-top: 16px; font-size: 20px; }
  .hero-description { max-width: 470px; font-size: 13px; line-height: 1.48; }
  .hero-actions { margin-top: 16px; }
  .button { min-height: 40px; padding: 0 13px; font-size: 10px; }
  .chat-terminal { width: 100%; height: 350px; }
  .market-tape { height: 39px; }
  .tape-label { padding: 0 11px; font-size: 9px; }
  .tape-time { display: none; }
  .section-inner { width: min(100% - 28px, 700px); }
  .market-section, .core-section { padding: 62px 0 70px; }
  .section-heading h2, .core-copy h2 { font-size: 34px; }
  .market-head { display: none; }
  .token-row { grid-template-columns: minmax(142px, 1.6fr) minmax(76px, .8fr) minmax(74px, .7fr) 30px; gap: 8px; }
  .token-row .token-cell:nth-of-type(3), .token-row .token-cell:nth-of-type(4) { display: none; }
  .token-asset { grid-template-columns: 20px 36px minmax(0, 1fr); gap: 7px; }
  .token-icon { width: 36px; height: 36px; }
  .core-layout { grid-template-columns: 1fr; }
  .core-visual { min-height: 430px; }
  .site-footer { padding: 24px 14px; display: grid; gap: 14px; }
  .site-footer > div { flex-wrap: wrap; }
  .site-footer span { width: 100%; }
  .site-footer p { text-align: left; }
}

@media (max-width: 520px) {
  .hero { min-height: 730px; }
  .hero-visual { height: 390px; }
  .hero-inner { min-height: 663px; padding-top: 27px; }
  .eyebrow { font-size: 9px; margin-bottom: 9px; }
  .hero h1 { font-size: 54px; }
  .hero-line { font-size: 17px; }
  .hero-description { max-width: 330px; font-size: 11px; }
  .hero-actions { gap: 7px; }
  .chat-terminal { height: 342px; grid-template-rows: 34px minmax(0, 1fr) auto auto auto; }
  .terminal-bar { padding: 0 9px; gap: 8px; font-size: 8px; }
  .message { font-size: 11px; }
  .message > img, .message-avatar { width: 34px; height: 34px; flex-basis: 34px; }
  .message.user { padding-left: 43px; }
  .prompt-rail { padding: 0 9px 8px; }
  .chat-composer { margin: 0 9px; grid-template-columns: 1fr 38px; }
  .icon-button { width: 38px; height: 38px; min-width: 38px; }
  .tape-label .icon { display: none; }
  .section-heading { align-items: flex-start; }
  .section-heading h2, .core-copy h2 { font-size: 29px; }
  .feed-state { display: none; }
  .token-row { min-height: 64px; padding: 8px; grid-template-columns: minmax(132px, 1.6fr) minmax(69px, .8fr) 61px 26px; gap: 5px; }
  .token-rank { display: none; }
  .token-asset { grid-template-columns: 34px minmax(0, 1fr); }
  .token-name strong { font-size: 11px; }
  .token-cell { font-size: 9px; }
  .market-intel { grid-template-columns: 1fr; }
  .intel-topline, .market-intel h3, .intel-metric, .risk-meter, .market-intel > p, .market-intel > a { grid-column: 1; }
  .core-visual { min-height: 350px; }
  .market-section { padding-top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  #matrixCanvas { display: none; }
  .reveal { opacity: 1; transform: none; }
}
