:root {
  --paper: #f3f4ef;
  --paper-2: #e8eae4;
  --ink: #0a0c0b;
  --muted: #737a73;
  --green: #67d84f;
  --green-dark: #44b832;
  --line: #0a0c0b;
  --thin: 1px;
  --thick: clamp(2px, 0.22vw, 4px);
}

* {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 4px;
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(to right, rgba(10, 12, 11, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 12, 11, 0.065) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.68) 72%, transparent 100%);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1500px, calc(100% - 32px));
  min-height: 100svh;
  margin: 0 auto;
  border-left: var(--thin) solid rgba(10, 12, 11, 0.22);
  border-right: var(--thin) solid rgba(10, 12, 11, 0.22);
}

.topbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 72px;
  border-bottom: var(--thick) solid var(--line);
  background: rgba(243, 244, 239, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  padding: 0 22px;
  border-right: var(--thin) solid rgba(10, 12, 11, 0.28);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.topbar-side {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.chain-label,
.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: var(--thin) solid rgba(10, 12, 11, 0.28);
}

.chain-label {
  gap: 10px;
  padding: 0 20px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.chain-label img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.icon-link {
  width: 72px;
  transition: background 160ms ease, color 160ms ease;
}

.icon-link img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  transition: transform 220ms ease;
}

.icon-link:hover {
  background: var(--ink);
}

.icon-link:hover img {
  filter: invert(1);
  transform: rotate(8deg) scale(1.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  min-height: min(760px, calc(100svh - 146px));
  border-bottom: var(--thick) solid var(--line);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(44px, 6vw, 96px) clamp(24px, 4.5vw, 72px);
  border-right: var(--thick) solid var(--line);
}

.eyebrow {
  width: fit-content;
  margin-bottom: clamp(20px, 3vh, 36px);
  padding: 8px 10px 7px;
  border: 2px solid var(--ink);
  background: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

h1 {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
  margin: 0;
  white-space: nowrap;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(64px, 8vw, 146px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.82;
  text-transform: uppercase;
}

h1 span {
  display: inline-block;
}

h1 .accent {
  color: var(--green-dark);
  animation: accentPulse 3.8s ease-in-out infinite;
}

.hero-actions {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  margin-top: clamp(44px, 7vh, 84px);
}

.resource {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  min-height: 66px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: -0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.resource::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  z-index: 0;
  background: var(--ink);
  transition: width 260ms cubic-bezier(.2, .7, .2, 1);
}

.resource > * {
  position: relative;
  z-index: 1;
}

.resource-icon {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: 2px solid var(--ink);
}

.resource-icon img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  transition: transform 300ms ease, filter 180ms ease;
}

.resource > span:nth-child(2) {
  padding: 0 16px;
}

.resource-arrow {
  padding: 0 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.resource-primary {
  background: var(--green);
}

.resource:hover {
  color: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 6px 0 var(--green-dark);
}

.resource:hover::before {
  width: 100%;
}

.resource:hover .resource-icon {
  border-color: var(--paper);
}

.resource:hover img {
  filter: invert(1);
  transform: rotate(12deg) scale(1.06);
}

.resource[aria-disabled="true"],
.utility-link[aria-disabled="true"],
.icon-link[aria-disabled="true"] {
  cursor: default;
  opacity: 0.42;
}

.hero-media {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #ffffff;
}

.hero-media::before,
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-media::before {
  inset: 20px;
  border: 1px solid rgba(10, 12, 11, 0.26);
}

.hero-media::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 18%;
  background: linear-gradient(to top, rgba(10, 12, 11, 0.09), transparent);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.86) contrast(1.03);
  transform: scale(1.012);
  transition: transform 700ms cubic-bezier(.2, .7, .2, 1), filter 500ms ease;
}

.hero-media:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

.media-index {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  min-width: 64px;
  padding: 10px 12px 9px;
  background: var(--ink);
  color: var(--paper);
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  z-index: 3;
  height: 2px;
  pointer-events: none;
  background: rgba(68, 184, 50, 0.72);
  box-shadow: 0 0 14px rgba(103, 216, 79, 0.46);
  animation: scan 5.2s linear infinite;
}

.utility-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(220px, 0.65fr) minmax(220px, 0.65fr);
  min-height: 74px;
  background: var(--paper-2);
}

.ca-box,
.utility-link {
  min-width: 0;
  min-height: 74px;
  background: transparent;
  border-right: var(--thin) solid rgba(10, 12, 11, 0.32);
}

.ca-box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: background 160ms ease;
}

.ca-box:hover {
  background: #ffffff;
}

.ca-label {
  display: grid;
  place-items: center;
  align-self: stretch;
  border-right: var(--thin) solid rgba(10, 12, 11, 0.32);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 13px;
}

.ca-value {
  min-width: 0;
  overflow: hidden;
  padding: 0 18px;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-label {
  padding: 0 20px;
  color: var(--green-dark);
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.ca-box.copied .copy-label {
  color: var(--ink);
}

.utility-link {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  font-family: "Arial Black", Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: background 160ms ease, color 160ms ease;
}

.utility-link:last-child {
  border-right: 0;
}

.utility-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 220ms ease, filter 160ms ease;
}

.utility-link:hover {
  color: var(--paper);
  background: var(--ink);
}

.utility-link:hover img {
  filter: invert(1);
  transform: rotate(8deg);
}

@keyframes scan {
  0% {
    top: -8px;
    opacity: 0;
  }
  8% {
    opacity: 0.82;
  }
  88% {
    opacity: 0.82;
  }
  100% {
    top: calc(100% + 8px);
    opacity: 0;
  }
}

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

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  }

  .hero-copy {
    padding-left: 28px;
    padding-right: 28px;
  }

  h1 {
    font-size: clamp(60px, 8.2vw, 96px);
  }

  .utility-row {
    grid-template-columns: 1fr 1fr;
  }

  .ca-box {
    grid-column: 1 / -1;
    border-bottom: var(--thin) solid rgba(10, 12, 11, 0.32);
  }
}

@media (max-width: 800px) {
  .site-shell {
    width: min(100%, calc(100% - 18px));
  }

  .topbar {
    min-height: 62px;
  }

  .brand {
    min-width: 0;
    padding: 0 14px;
  }

  .chain-label {
    display: none;
  }

  .icon-link {
    width: 62px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .hero-copy {
    min-height: 455px;
    padding: 44px 20px 38px;
    border-right: 0;
    border-bottom: var(--thick) solid var(--line);
  }

  h1 {
    font-size: clamp(58px, 17vw, 92px);
  }

  .hero-actions {
    margin-top: 42px;
  }

  .hero-media {
    min-height: 66vw;
    max-height: 620px;
  }

  .hero-media img {
    min-height: 0;
    aspect-ratio: 1;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: 100%;
    border: 0;
  }

  .brand {
    font-size: 24px;
  }

  .hero-copy {
    min-height: 410px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  h1 {
    font-size: clamp(54px, 17vw, 88px);
  }

  .resource {
    grid-template-columns: 50px 1fr auto;
    min-height: 62px;
    font-size: 13px;
  }

  .resource-arrow {
    padding-right: 12px;
  }

  .utility-row {
    display: block;
  }

  .ca-box,
  .utility-link {
    width: 100%;
    border-right: 0;
    border-bottom: var(--thin) solid rgba(10, 12, 11, 0.32);
  }

  .utility-link:last-child {
    border-bottom: 0;
  }

  .ca-box {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .ca-value {
    padding: 0 12px;
  }

  .copy-label {
    padding: 0 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
