:root {
  color-scheme: dark;
  --bg: #030504;
  --bg-soft: rgba(8, 12, 10, 0.86);
  --panel: rgba(7, 10, 8, 0.76);
  --panel-strong: rgba(7, 10, 8, 0.9);
  --line: rgba(184, 255, 214, 0.14);
  --line-strong: rgba(184, 255, 214, 0.28);
  --text: #f2f8f4;
  --muted: rgba(228, 241, 233, 0.68);
  --faint: rgba(228, 241, 233, 0.4);
  --mint: #c5ffd9;
  --glow: rgba(120, 255, 176, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --shell-width: min(1500px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(111, 255, 173, 0.08), transparent 28rem),
    linear-gradient(180deg, #020403 0%, #060907 48%, #020302 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.entity-field,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.entity-field {
  overflow: hidden;
}

.entity-core {
  position: absolute;
  top: 49%;
  left: 50%;
  width: min(36vw, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 255, 180, 0.14), rgba(125, 255, 180, 0.03) 52%, transparent 74%);
}

.entity-core-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(130, 255, 184, 0.26), rgba(130, 255, 184, 0.08) 38%, transparent 70%);
  filter: blur(26px);
}

.entity-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.entity-core img {
  position: absolute;
  inset: 35%;
  width: 30%;
  height: 30%;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.42;
  filter: grayscale(1) contrast(1.18);
  box-shadow: 0 0 40px rgba(130, 255, 184, 0.18);
}

.entity-orbit {
  position: absolute;
  border: 1px solid rgba(184, 255, 214, 0.08);
  border-radius: 50%;
}

.orbit-a {
  width: 38rem;
  height: 38rem;
  top: calc(49% - 19rem);
  left: calc(50% - 19rem);
}

.orbit-b {
  width: 56rem;
  height: 56rem;
  top: calc(49% - 28rem);
  left: calc(50% - 28rem);
}

.orbit-c {
  width: 74rem;
  height: 74rem;
  top: calc(49% - 37rem);
  left: calc(50% - 37rem);
}

.entity-noise {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(184, 255, 214, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 255, 214, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

.vignette {
  background:
    radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
}

.surface-shell {
  position: relative;
  z-index: 1;
  width: var(--shell-width);
  margin: 0 auto;
  padding: 18px 0 96px;
}

.surface-nav,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.015);
  backdrop-filter: blur(14px);
}

.surface-nav {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-avatar {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: grayscale(1);
}

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

.brand-name,
.brand-tag,
.nav-links a,
.nav-solscan,
.live-pill,
.mini-label,
.delta-label,
.since-label,
.panel-title,
.status-state,
.hero-kicker,
.buy-pill,
.soon-pill,
.contract-line,
.watching-line,
.sound-line,
.signal-chip {
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.brand-name {
  font-size: 0.92rem;
  font-weight: 700;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-links,
.nav-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a,
.nav-solscan,
.live-pill,
.ghost-button,
.floating-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  transition:
    border-color 140ms ease,
    transform 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.nav-links a:hover,
.nav-solscan:hover,
.ghost-button:hover,
.floating-action:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-solscan {
  white-space: nowrap;
}

.live-pill {
  gap: 8px;
  color: var(--text);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8cffb4;
  box-shadow: 0 0 16px rgba(140, 255, 180, 0.8);
  flex: 0 0 auto;
}

.overlay-grid {
  display: grid;
  grid-template-columns: minmax(250px, 310px) minmax(300px, 410px) minmax(420px, 1fr);
  grid-template-areas:
    "stats ladder hero"
    "stats ladder feed"
    "stats status feed"
    "footer footer footer";
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 255, 217, 0.34), transparent);
}

.stats-panel,
.ladder-panel,
.feed-panel,
.status-panel,
.hero-panel,
.surface-footer {
  padding: 22px;
}

.stats-panel {
  grid-area: stats;
  min-height: 100%;
}

.ladder-panel {
  grid-area: ladder;
}

.feed-panel {
  grid-area: feed;
}

.status-panel {
  grid-area: status;
}

.hero-panel {
  grid-area: hero;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.surface-footer {
  grid-area: footer;
}

.panel-copy {
  margin: 10px 0 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.mini-label,
.panel-title,
.status-state,
.hero-kicker,
.delta-label,
.since-label,
.watching-line,
.sound-line {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.holders-value {
  margin-top: 8px;
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 0.9;
  font-weight: 700;
}

.delta-label {
  margin-top: 8px;
}

.growth-wrap,
.stats-copy,
.status-rows,
.feed-list,
.milestone-list {
  margin-top: 24px;
}

.growth-value {
  margin-top: 10px;
  font-size: 2.4rem;
  font-weight: 700;
}

.since-label {
  margin-top: 6px;
}

.bar {
  position: relative;
  height: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(125, 255, 180, 0.3), rgba(125, 255, 180, 0.9));
}

.stats-copy p,
.hero-copy,
.hero-subtitle,
.copy-feedback,
.status-meta,
.feed-item p,
.milestone-name,
.milestone-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.milestone-list,
.feed-list,
.status-rows,
.social-links {
  display: grid;
  gap: 12px;
}

.milestone-item,
.feed-item,
.status-row {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(255, 255, 255, 0.02);
}

.milestone-item {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.milestone-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(197, 255, 217, 0.42);
  background: transparent;
}

.milestone-item.current .milestone-node,
.milestone-item.complete .milestone-node {
  background: #bbffd4;
  box-shadow: 0 0 18px rgba(125, 255, 180, 0.5);
}

.milestone-number {
  font-size: 1rem;
  font-weight: 700;
}

.milestone-name {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.milestone-check {
  color: var(--faint);
  font-size: 0.86rem;
}

.feed-list,
.social-links {
  list-style: none;
  padding: 0;
}

.feed-item {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.feed-spark {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 50%;
  background: #bbffd4;
  box-shadow: 0 0 16px rgba(125, 255, 180, 0.42);
}

.feed-item strong,
.status-row .status-key,
.contract-line span {
  font-weight: 700;
}

.feed-item strong {
  font-size: 0.92rem;
}

.panel-head,
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.status-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto;
  align-items: center;
}

.status-row.bar-row {
  grid-template-columns: minmax(100px, 1fr) auto;
}

.status-row .status-bar {
  grid-column: 1 / -1;
}

.status-key {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.status-value {
  font-size: 0.9rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(197, 255, 217, 0.42);
}

.hero-panel h1 {
  margin: 18px 0 0;
  max-width: 8ch;
  font-size: clamp(3.8rem, 10vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin-top: 14px;
  max-width: 36ch;
  font-size: 1.08rem;
}

.hero-copy {
  margin-top: 18px;
  max-width: 48ch;
  font-size: 0.98rem;
}

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

.buy-pill {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(197, 255, 217, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.soon-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.7rem;
}

.ghost-button {
  color: var(--text);
}

.contract-line {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--muted);
}

.copy-feedback {
  margin-top: 10px;
  font-size: 0.92rem;
}

.signal-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.signal-chip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.surface-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.floating-action {
  position: fixed;
  bottom: 18px;
  z-index: 3;
  color: var(--text);
}

.chat-action {
  left: 16px;
}

.live-action {
  right: 16px;
  gap: 10px;
}

@media (max-width: 1260px) {
  .entity-core {
    width: min(42vw, 460px);
  }

  .overlay-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "stats hero"
      "ladder hero"
      "feed status"
      "footer footer";
  }
}

@media (max-width: 980px) {
  .entity-core {
    width: min(62vw, 420px);
    top: 28%;
  }

  .surface-nav {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .nav-links,
  .nav-status {
    justify-content: start;
    flex-wrap: wrap;
  }

  .overlay-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "stats"
      "ladder"
      "feed"
      "status"
      "footer";
  }

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

@media (max-width: 760px) {
  .surface-shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .entity-core {
    width: min(78vw, 360px);
    top: 24%;
  }

  .panel,
  .surface-nav {
    border-radius: 18px;
  }

  .hero-panel h1 {
    font-size: clamp(3rem, 18vw, 4.6rem);
  }

  .nav-links a,
  .nav-solscan,
  .live-pill,
  .ghost-button,
  .floating-action {
    width: 100%;
  }

  .hero-actions,
  .signal-chip-row {
    flex-direction: column;
  }

  .floating-action {
    position: static;
    margin-top: 12px;
  }

  .surface-shell {
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
