:root {
  color-scheme: dark;
  --bg: #080b0d;
  --ink: #f1f4ec;
  --muted: #a6b0a6;
  --line: rgba(210, 226, 205, 0.15);
  --panel: rgba(14, 22, 20, 0.72);
  --panel-strong: rgba(21, 32, 29, 0.86);
  --gold: #d6b86a;
  --green: #6fbf92;
  --aqua: #75c8d0;
  --rose: #de7faf;
  --violet: #9f8cff;
  --orange: #f6a747;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 76% 8%, rgba(111, 191, 146, 0.16), transparent 30rem),
    linear-gradient(135deg, #080b0d 0%, #0f1714 44%, #07090b 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 78%);
}

#heritage-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  opacity: 0.72;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 11, 13, 0.62);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand-mark,
.protocol-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.brand-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  transition: color 180ms ease;
}

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

.hero,
.section,
.site-footer {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.82fr);
  gap: 54px;
  align-items: center;
  min-height: 100vh;
  padding: 128px 0 70px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.hero-text {
  max-width: 670px;
  color: #c7cec5;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 750;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-action {
  background: linear-gradient(135deg, #d6b86a, #7fc99c);
  color: #07100d;
}

.secondary-action {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.asset-orbit {
  position: relative;
  aspect-ratio: 1;
  min-width: 330px;
  border-radius: 50%;
}

.orbit-ring {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(214, 184, 106, 0.24);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  position: absolute;
  inset: 14%;
  content: "";
  border: 1px solid rgba(111, 191, 146, 0.2);
  border-radius: 50%;
}

.orbit-ring::after {
  inset: 29%;
  border-color: rgba(117, 200, 208, 0.18);
}

.core-node,
.orbit-token {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(12, 18, 16, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.core-node {
  inset: 34%;
  color: #a99bff;
}

.core-node svg {
  width: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linejoin: round;
}

.core-node span,
.orbit-token span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.orbit-token {
  width: 92px;
  height: 92px;
  animation: float 6s ease-in-out infinite;
}

.orbit-token svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bitcoin-token {
  top: 9%;
  left: 42%;
  color: var(--orange);
}

.aave-token {
  top: 44%;
  right: 2%;
  color: var(--aqua);
  animation-delay: -1.5s;
}

.uni-token {
  left: 5%;
  bottom: 14%;
  color: var(--rose);
  animation-delay: -3s;
}

.gamma-token {
  right: 13%;
  bottom: 7%;
  color: var(--gold);
  animation-delay: -4.4s;
}

.section {
  padding: 84px 0;
}

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

.thesis-grid,
.protocol-grid {
  display: grid;
  gap: 16px;
}

.thesis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.thesis-grid article,
.protocol-card,
.legacy-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.thesis-grid article {
  padding: 28px;
}

.metric {
  display: block;
  margin-bottom: 52px;
  color: rgba(214, 184, 106, 0.84);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.thesis-grid p,
.protocol-card p,
.legacy-copy p {
  color: var(--muted);
  line-height: 1.75;
}

.protocol-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.protocol-card {
  position: relative;
  min-height: 232px;
  padding: 20px;
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.protocol-card::after {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.22);
  content: attr(data-weight);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.protocol-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 184, 106, 0.36);
  background: var(--panel-strong);
}

.protocol-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 50%;
}

.protocol-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bitcoin {
  color: var(--orange);
}

.ethereum {
  color: var(--violet);
}

.aave {
  color: var(--aqua);
}

.pendle {
  color: var(--gold);
}

.uniswap {
  color: var(--rose);
}

.curve {
  color: var(--green);
}

.gammaswap {
  color: var(--gold);
}

.protocol-card-wide {
  grid-column: span 2;
}

.legacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.6fr);
  gap: 28px;
  align-items: stretch;
  padding-bottom: 110px;
}

.legacy-copy {
  padding: 46px;
  border-left: 1px solid rgba(214, 184, 106, 0.42);
  background: linear-gradient(90deg, rgba(214, 184, 106, 0.08), transparent 70%);
}

.legacy-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.principle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.025);
}

.principle span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.principle strong {
  font-size: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1040px) {
  .protocol-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .protocol-card-wide {
    grid-column: span 3;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 140px;
  }

  .asset-orbit {
    width: min(520px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    padding: 16px 20px;
  }

  .nav {
    display: none;
  }

  .hero,
  .section,
  .site-footer {
    width: min(100vw - 28px, 1180px);
  }

  .hero {
    gap: 30px;
    min-height: auto;
    padding-top: 112px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .asset-orbit {
    min-width: 0;
  }

  .orbit-token {
    width: 76px;
    height: 76px;
  }

  .thesis-grid,
  .protocol-grid,
  .legacy-section {
    grid-template-columns: 1fr;
  }

  .protocol-card-wide {
    grid-column: span 1;
  }

  .section-heading {
    display: block;
  }

  .legacy-copy {
    padding: 30px 20px;
  }

  .principle {
    padding: 22px;
  }

  .site-footer {
    flex-direction: column;
  }
}
