:root {
  --bg: #030502;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f1f4ec;
  --muted: #979c92;
  --dim: #5f6459;

  --lime: #c6ff1a;
  --lime-soft: rgba(198, 255, 26, 0.12);
  --burn: #ff7847;
  --burn-soft: rgba(255, 120, 71, 0.12);

  --radius: 18px;
  --maxw: 1160px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- background ---------- */

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(198, 255, 26, 0.10), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(198, 255, 26, 0.05), transparent 70%),
    var(--bg);
}

.sky::before,
.sky::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 90px 120px, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 160px 60px, #fff, transparent),
    radial-gradient(1px 1px at 230px 180px, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 300px 90px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 60px 220px, rgba(255, 255, 255, 0.8), transparent);
  background-size: 340px 260px;
  opacity: 0.35;
}

.sky::after {
  background-size: 520px 410px;
  background-position: 130px 70px;
  opacity: 0.25;
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.05;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--lime);
  color: #0d1400;
  box-shadow: 0 0 0 0 rgba(198, 255, 26, 0);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px -6px rgba(198, 255, 26, 0.55);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.btn-sm {
  height: 38px;
  padding-inline: 18px;
  font-size: 0.875rem;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 5, 2, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(198, 255, 26, 0.35);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-block: clamp(56px, 9vw, 120px) clamp(40px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}

.pedigree {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
}

.chain-chips {
  display: inline-flex;
  flex: none;
  gap: 4px;
}

.chain-chips i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 999px;
}

.chip-sol {
  background: linear-gradient(90deg, #9945ff, #14f195);
  color: #fff;
}

.chip-bnb {
  background: #f0b90b;
  color: #1a1400;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 700;
}

.hl {
  background: linear-gradient(100deg, var(--lime), #eeffb0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 24px;
  max-width: 520px;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* logo art */

.hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  width: 100%;
  justify-self: center;
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 26, 0.22), transparent 70%);
  filter: blur(40px);
  animation: breathe 5s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 72%);
  mask-image: radial-gradient(circle, #000 62%, transparent 72%);
}

@keyframes breathe {
  50% {
    opacity: 0.55;
    transform: scale(0.94);
  }
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(48px, 7vw, 88px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 32px;
}

.section-head .eyebrow {
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 600;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
}

#status-text {
  color: var(--text);
  font-weight: 600;
}

.status-sep {
  color: var(--dim);
}

.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: ping 1.8s ease-out infinite;
}

.status.is-demo .pulse {
  background: #ffc247;
}

.status.is-demo #status-text {
  color: #ffc247;
}

.status.is-error .pulse {
  background: #ff5a5a;
}

@keyframes ping {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ---------- stats ---------- */

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

.stat {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  opacity: 0.8;
}

.stat-burn {
  --accent: var(--burn);
  --accent-soft: var(--burn-soft);
}

.stat-rwa {
  --accent: var(--lime);
  --accent-soft: var(--lime-soft);
  background: linear-gradient(180deg, var(--lime-soft), transparent 70%), var(--surface);
  border-color: rgba(198, 255, 26, 0.25);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-value {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value.bump {
  animation: bump 0.9s ease-out;
}

@keyframes bump {
  0% {
    color: var(--accent);
    text-shadow: 0 0 24px var(--accent);
  }
  100% {
    color: var(--text);
    text-shadow: none;
  }
}

.stat-sub {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--muted);
}

.stat-sub span {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* split bar */

.split {
  margin-top: 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.split-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--muted);
}

.split-head strong {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.split-bar {
  display: flex;
  gap: 4px;
  height: 12px;
  margin-top: 14px;
}

.seg {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.8s ease;
}

.seg-burn {
  width: 75%;
  background: linear-gradient(90deg, #ff9a47, var(--burn));
}

.seg-rwa {
  width: 25%;
  background: linear-gradient(90deg, #e4ff7a, var(--lime));
}

.split-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.split-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.split-legend b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.key {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.key-burn {
  background: var(--burn);
}

.key-rwa {
  background: var(--lime);
}

.stat-value .unit {
  font-size: 0.55em;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}

/* ---------- flow ---------- */

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-source {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
}

.flow-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.flow-source strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.flow-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.flow-lines {
  position: relative;
  width: 100%;
  height: 64px;
}

.flow-lines::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  height: 50%;
  border-left: 1px solid var(--border-strong);
}

.flow-lines::after {
  content: '';
  position: absolute;
  left: 25%;
  right: 25%;
  top: 50%;
  height: 50%;
  border: 1px solid var(--border-strong);
  border-bottom: 0;
  border-left-color: var(--burn);
  border-right-color: var(--lime);
  border-radius: 14px 14px 0 0;
}

.flow-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}

.branch {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--accent-soft), transparent 65%), var(--surface);
  border-top: 2px solid var(--accent);
}

.branch-burn {
  --accent: var(--burn);
  --accent-soft: var(--burn-soft);
}

.branch-rwa {
  --accent: var(--lime);
  --accent-soft: var(--lime-soft);
}

.branch-pct {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--accent);
}

.branch h3 {
  margin-top: 14px;
  font-size: 1.35rem;
  font-weight: 600;
}

.branch p {
  margin-top: 8px;
  color: var(--muted);
  max-width: 440px;
}

/* ---------- panels ---------- */

.panels {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-head h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding-block: 12px;
  list-style: none;
}

/* assets */

.assets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.asset {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ticker {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime-soft);
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
}

.asset-body {
  flex: 1;
  min-width: 0;
}

.asset-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
}

.asset-name {
  font-weight: 500;
}

.asset-usd {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.asset-bar {
  height: 6px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.asset-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--lime);
  transition: width 0.8s ease;
}

.asset-shares {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* feed */

.feed {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.event {
  display: flex;
  gap: 14px;
  padding-block: 14px;
  border-top: 1px solid var(--border);
}

.event:first-child {
  border-top: 0;
  padding-top: 0;
}

.event-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1rem;
}

.event-burn .event-icon {
  background: var(--burn-soft);
}

.event-rwa .event-icon {
  background: var(--lime-soft);
}

.event-body {
  flex: 1;
  min-width: 0;
}

.event-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.event-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.event-time {
  flex: none;
  font-size: 0.8rem;
  color: var(--dim);
}

.event-detail {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--muted);
}

.event-detail b {
  color: var(--text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tx {
  display: inline-block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--dim);
}

a.tx:hover {
  color: var(--lime);
}

/* ---------- footer ---------- */

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  padding-block: 40px 56px;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px 32px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.fine {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--dim);
  max-width: 720px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  padding: 12px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #10140c;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-art {
    order: -1;
    max-width: 320px;
  }

  .nav-links {
    display: none;
  }

  .nav-inner .btn {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .stats {
    grid-template-columns: 1fr;
  }

  .flow-lines {
    height: 32px;
  }

  .flow-lines::after {
    display: none;
  }

  .flow-lines::before {
    height: 100%;
  }

  .flow-branches {
    grid-template-columns: 1fr;
  }

  .flow-source {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
