:root {
  --bg: #070807;
  --surface: #101210;
  --surface-2: #151815;
  --line: rgba(255, 255, 255, 0.10);
  --text: #f5f6f2;
  --muted: #9da39a;
  --accent: #c8ff3d;
  --accent-soft: rgba(200, 255, 61, 0.12);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 10%, rgba(200, 255, 61, 0.07), transparent 28%),
    radial-gradient(circle at 90% 30%, rgba(255, 255, 255, 0.04), transparent 25%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 32px), var(--max));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 8, 7, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #080908;
  font-weight: 900;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 10px;
  font-size: 0.88rem;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

main,
footer {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 760px;
  padding: 120px 0 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(200, 255, 61, 0.25);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

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

h1 {
  max-width: 970px;
  margin: 24px 0;
  font-size: clamp(4rem, 11vw, 9.6rem);
  line-height: 0.82;
  letter-spacing: -0.075em;
  font-weight: 900;
}

h1 span {
  color: var(--accent);
}

h2 {
  margin: 14px 0 0;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.65;
}

.hero-copy strong {
  color: var(--text);
}

.contract-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 850px;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}

.contract-card > div {
  min-width: 0;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
}

.contract-card code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-size: clamp(0.78rem, 1.8vw, 1rem);
  white-space: nowrap;
}

.copy-button,
.button {
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.copy-button {
  flex: 0 0 auto;
  padding: 12px 16px;
  background: var(--accent);
  color: #070807;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  padding: 14px 18px;
  border: 1px solid var(--line);
}

.primary {
  background: var(--accent);
  color: #070807;
  border-color: var(--accent);
}

.secondary {
  background: var(--surface);
  color: var(--text);
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  max-width: 850px;
  margin-top: 50px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}

.proof-row > div {
  padding: 22px;
  background: var(--surface);
}

.proof-value,
.proof-label {
  display: block;
}

.proof-value {
  font-size: 1.2rem;
  font-weight: 900;
}

.proof-label {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
}

.section {
  padding: 110px 0;
  border-top: 1px solid var(--line);
}

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

.text-link {
  color: var(--muted);
  font-size: 0.9rem;
}

.chart-shell {
  min-height: 420px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 60px rgba(200,255,61,0.06);
}

.chart-embed-wrap {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
}

#chartFrame {
  display: none;
  width: 120%;
  height: 560px;
  border: 0;
  margin-left: -10%;
  margin-top: -30px;
  pointer-events: auto;
}

.chart-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.stat-item:hover {
  border-color: rgba(200,255,61,0.3);
}

.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

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

  .chart-embed-wrap {
    height: 360px;
  }

  #chartFrame {
    height: 460px;
  }
}

.chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.chart-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent);
}

.chart-line {
  position: absolute;
  width: 68%;
  height: 36%;
  left: 15%;
  bottom: 24%;
  border-top: 5px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-6deg) skewX(-16deg);
  filter: drop-shadow(0 0 22px rgba(200,255,61,0.25));
}

.chart-message {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,8,7,0.82);
  backdrop-filter: blur(14px);
}

.chart-message span {
  font-weight: 900;
}

.chart-message small {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
}

.about-copy {
  padding-top: 38px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.link-card {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,255,61,0.45);
}

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

.link-card strong {
  font-size: 1.15rem;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  padding: 30px 0 45px;
  color: var(--muted);
  font-size: 0.78rem;
}

footer p {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 120px);
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0;
  transition: 220ms ease;
}

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

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .contract-card {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    width: 100%;
  }

  .proof-row,
  .link-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 20px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .chart-shell {
    min-height: 460px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Coming Soon state */
.coming-soon-card code {
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.05em;
}

.coming-soon-card .copy-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.coming-soon-btn {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}