:root {
  --sky: #3fabf4;
  --brand-blue: #1477f0;
  --ink: #0b2a52;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--sky);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--sky);
}

.art-layer {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: 90% center;
  background-repeat: no-repeat;
}

.content {
  position: relative;
  z-index: 1;
  height: 100%;
  max-width: min(600px, 44vw);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.6vh, 30px);
  padding: 0 clamp(28px, 6vw, 96px);
  color: var(--white);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vh, 14px);
}

.wordmark {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(4, 20, 46, 0.45), 0 6px 20px rgba(4, 20, 46, 0.3);
}

.tagline {
  margin: 0;
  font-weight: 500;
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(4, 20, 46, 0.4), 0 3px 12px rgba(4, 20, 46, 0.25);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 26px);
}

.links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 13px);
  letter-spacing: 0.1em;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0);
  text-shadow: 0 1px 2px rgba(4, 20, 46, 0.45), 0 3px 10px rgba(4, 20, 46, 0.25);
  transition: border-color 0.15s ease, opacity 0.15s ease;
}

.links a:hover,
.links a:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
}

.contract {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contract-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 2px rgba(4, 20, 46, 0.4), 0 3px 10px rgba(4, 20, 46, 0.22);
}

.contract-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 8px 8px 8px 14px;
  backdrop-filter: blur(2px);
}

.contract-address {
  font-family: "Space Grotesk", monospace;
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.01em;
  color: var(--white);
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(4, 20, 46, 0.35);
}

#copy-btn {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--brand-blue);
  background: var(--white);
  border: none;
  border-radius: 5px;
  padding: 7px 13px;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

#copy-btn:hover {
  opacity: 0.85;
}

#copy-btn:active {
  transform: scale(0.96);
}

#copy-btn.copied {
  color: #0b7a3c;
}

/* Mobile / narrow portrait: stack artwork band under the text */
@media (max-width: 768px) and (orientation: portrait) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .content {
    order: 1;
    flex: 1 1 auto;
    height: auto;
    max-width: 100%;
    width: 100%;
    background: var(--sky);
    padding: clamp(20px, 4vh, 32px) clamp(22px, 6vw, 32px);
    gap: clamp(12px, 1.8dvh, 20px);
    justify-content: flex-end;
  }

  .art-layer {
    order: 2;
    position: relative;
    inset: auto;
    flex: 0 0 clamp(210px, 38dvh, 340px);
    width: 100%;
    background-position: 84% center;
  }

  .wordmark {
    font-size: clamp(44px, 15vw, 64px);
  }

  .links {
    gap: clamp(14px, 4vw, 20px);
  }
}

@media (max-width: 380px) and (orientation: portrait) {
  .art-layer {
    flex-basis: clamp(150px, 30dvh, 220px);
  }

  .content {
    gap: 10px;
  }
}
