:root {
  --bg: #050505;
  --panel: rgba(12, 12, 12, 0.78);
  --gold-1: #fff5ce;
  --gold-2: #ffd96b;
  --gold-3: #f2b11d;
  --gold-4: #8d5200;
  --green-1: #3cff9d;
  --green-2: #0fc76f;
  --green-3: #067244;
  --text: #f7f4ec;
  --muted: #b8ae8d;
  --line: rgba(255, 217, 107, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 204, 88, 0.18), transparent 34%),
    radial-gradient(circle at 84% 18%, rgba(61, 255, 157, 0.12), transparent 18%),
    linear-gradient(180deg, #090805 0%, #020202 54%, #090603 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(135deg, transparent 20%, rgba(255, 242, 196, 0.03) 50%, transparent 80%),
    linear-gradient(-135deg, transparent 24%, rgba(255, 196, 57, 0.04) 55%, transparent 84%);
  mix-blend-mode: screen;
}

body::after {
  background:
    radial-gradient(circle at 50% 14%, rgba(255, 214, 101, 0.15), transparent 18%),
    radial-gradient(circle at 50% 48%, rgba(255, 180, 38, 0.08), transparent 34%),
    radial-gradient(circle at 50% 86%, rgba(38, 255, 142, 0.07), transparent 24%);
}

.background-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
  opacity: 0.42;
  pointer-events: none;
}

.aura {
  position: fixed;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.68;
  pointer-events: none;
  animation: aura-drift 14s ease-in-out infinite;
}

.aura-left {
  top: 7%;
  left: -8%;
  width: 320px;
  height: 320px;
  background: rgba(255, 189, 52, 0.18);
}

.aura-right {
  top: 18%;
  right: -6%;
  width: 280px;
  height: 280px;
  background: rgba(255, 240, 177, 0.15);
  animation-delay: -5s;
}

.aura-bottom {
  bottom: 3%;
  left: 50%;
  width: 380px;
  height: 200px;
  background: rgba(20, 255, 128, 0.12);
  transform: translateX(-50%);
  animation-delay: -9s;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 60px) 20px;
}

.hero-panel {
  position: relative;
  width: min(100%, 1080px);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px) clamp(48px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(19, 16, 11, 0.9), rgba(8, 8, 8, 0.84));
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 205, 92, 0.04),
    0 0 120px rgba(255, 178, 33, 0.08);
  backdrop-filter: blur(18px);
  text-align: center;
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-panel::before {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 96, 0.16), transparent 32%),
    radial-gradient(circle at 50% 55%, rgba(255, 187, 44, 0.07), transparent 56%);
}

.hero-panel::after {
  inset: 1px;
  border-radius: 35px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.logo-stack {
  position: relative;
  width: clamp(180px, 22vw, 260px);
  aspect-ratio: 1;
  margin: 0 auto 24px;
}

.logo-halo {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 92, 0.26), rgba(255, 210, 92, 0.04) 54%, transparent 72%);
  filter: blur(16px);
  animation: halo-pulse 4.5s ease-in-out infinite;
}

.logo-frame {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(14px, 1.8vw, 18px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.2), transparent 18%),
    linear-gradient(135deg, #fbe9a3 0%, #ffd462 28%, #f1b52a 56%, #8c5400 100%);
  box-shadow:
    0 0 0 2px rgba(255, 223, 144, 0.16),
    0 0 36px rgba(255, 194, 52, 0.55),
    0 0 84px rgba(255, 177, 44, 0.22);
}

.logo-frame::before,
.logo-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.logo-frame::before {
  inset: 10px;
  border: 1px solid rgba(255, 249, 218, 0.56);
  opacity: 0.75;
}

.logo-frame::after {
  inset: 6px;
  box-shadow:
    inset 0 0 30px rgba(255, 255, 255, 0.14),
    inset 0 -22px 30px rgba(117, 63, 0, 0.34);
}

.logo-core {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 28%, rgba(17, 17, 17, 0.96), #020202 68%);
  box-shadow: inset 0 0 55px rgba(255, 207, 85, 0.08);
}

.logo-image {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 0 18px rgba(255, 220, 118, 0.18));
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Cinzel", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.94);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-frame.show-fallback .logo-fallback {
  opacity: 0.95;
  transform: scale(1);
}

.logo-frame.show-fallback .logo-image {
  opacity: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.page-title {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #fffdf6 0%, #ffe6a4 70%, #f1b62a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 24px rgba(255, 204, 92, 0.18);
  text-wrap: balance;
}

.coin-stage {
  position: relative;
  width: min(74vw, 360px);
  aspect-ratio: 1;
  margin: clamp(30px, 5vw, 44px) auto clamp(36px, 5vw, 54px);
  perspective: 1800px;
}

.coin-glow {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 203, 83, 0.24), rgba(255, 203, 83, 0.05) 52%, transparent 70%);
  filter: blur(22px);
}

.coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation:
    coin-spin 9.5s ease-in-out infinite,
    coin-float 6s ease-in-out infinite;
}

.coin-edge {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: calc(50% - 12px);
  width: 24px;
  overflow: hidden;
  border-radius: 999px;
  transform: rotateY(90deg);
  background: linear-gradient(180deg, #8b5400 0%, #f6c13d 18%, #fff1a8 50%, #f1b228 74%, #794600 100%);
  box-shadow:
    0 0 18px rgba(255, 183, 35, 0.35),
    inset 0 0 12px rgba(85, 46, 0, 0.45);
}

.coin-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255, 245, 202, 0.92) 0 5px, rgba(188, 116, 8, 0.96) 5px 10px);
  mix-blend-mode: multiply;
  opacity: 0.68;
}

.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  background:
    radial-gradient(circle at 32% 24%, #fff8d1 0%, #ffe07d 22%, #f9bd32 50%, #c67b07 72%, #7a4300 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.25),
    inset 0 0 0 12px rgba(255, 241, 187, 0.48),
    inset 18px 18px 30px rgba(255, 255, 255, 0.22),
    inset -20px -26px 30px rgba(92, 48, 0, 0.3),
    inset 0 -28px 38px rgba(129, 72, 0, 0.42),
    0 24px 50px rgba(255, 179, 33, 0.22),
    0 0 60px rgba(255, 184, 44, 0.18);
}

.coin-face::before,
.coin-face::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.coin-face::before {
  inset: 7%;
  border: 4px solid rgba(134, 74, 0, 0.18);
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 202, 0.55),
    inset 0 18px 24px rgba(255, 255, 255, 0.17),
    inset 0 -24px 24px rgba(112, 60, 0, 0.32);
}

.coin-face::after {
  inset: 14% 56% 48% 18%;
  background: rgba(255, 255, 255, 0.46);
  filter: blur(3px);
  transform: rotate(-25deg);
}

.coin-front {
  transform: translateZ(12px);
}

.coin-back {
  transform: rotateY(180deg) translateZ(12px);
}

.coin-face-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22%;
  text-align: center;
}

.coin-mark {
  font-size: clamp(2.3rem, 9vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fffef8;
  text-shadow:
    0 3px 0 rgba(108, 63, 0, 0.4),
    0 0 25px rgba(255, 255, 255, 0.32);
}

.coin-value {
  font-family: "Cinzel", serif;
  font-size: clamp(4.8rem, 20vw, 8rem);
  font-weight: 900;
  line-height: 1;
  color: #fff5cf;
  text-shadow:
    0 4px 0 rgba(111, 64, 0, 0.35),
    0 0 28px rgba(255, 228, 137, 0.18);
}

.coin-detail {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(103, 58, 0, 0.92);
}

.coin-shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -10%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.56), transparent 70%);
  filter: blur(14px);
  animation: shadow-breathe 6s ease-in-out infinite;
}

.contract-card {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto 24px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid rgba(255, 213, 108, 0.22);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(26, 22, 14, 0.92), rgba(10, 10, 10, 0.94));
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.36),
    0 0 55px rgba(255, 193, 71, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  text-align: left;
}

.contract-card::before {
  content: "";
  position: absolute;
  inset: -20% 58% auto -10%;
  height: 150%;
  background: radial-gradient(circle, rgba(255, 228, 141, 0.2), transparent 65%);
  pointer-events: none;
}

.contract-card-top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.contract-copy-intro {
  position: relative;
  z-index: 1;
}

.contract-label {
  margin: 0 0 6px;
  color: var(--gold-2);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.contract-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.copy-button {
  position: relative;
  z-index: 1;
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #150d00;
  background: linear-gradient(135deg, #fff3c8 0%, #ffd261 32%, #e09d09 78%, #8a5300 100%);
  box-shadow:
    0 12px 30px rgba(255, 179, 35, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.copy-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 16px 38px rgba(255, 179, 35, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  filter: brightness(1.04);
}

.copy-button:active {
  transform: translateY(0) scale(0.99);
}

.copy-button.is-copied {
  background: linear-gradient(135deg, #e7ffd6 0%, #8dffbb 32%, #15b96b 78%, #0a6b42 100%);
  box-shadow: 0 14px 34px rgba(33, 225, 124, 0.28);
}

.contract-address {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 28px rgba(255, 218, 117, 0.05);
  color: #fff7d6;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  letter-spacing: 0.08em;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.pump-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 380px);
  padding: 22px 44px;
  border-radius: 999px;
  color: #f3fff8;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(1.08rem, 3.2vw, 1.52rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  background: linear-gradient(135deg, #2cff90 0%, #0bc86c 38%, #06a153 100%);
  box-shadow:
    0 22px 44px rgba(11, 200, 108, 0.24),
    0 0 48px rgba(32, 255, 133, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.pump-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, 0.24) 40%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.pump-button:hover::before {
  transform: translateX(120%);
}

.pump-button:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow:
    0 28px 60px rgba(11, 200, 108, 0.3),
    0 0 64px rgba(44, 255, 144, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  filter: brightness(1.04);
}

.pump-button:active {
  transform: translateY(0) scale(0.99);
}

.copy-button:focus-visible,
.pump-button:focus-visible {
  outline: 2px solid #fff4c8;
  outline-offset: 4px;
}

@keyframes aura-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -14px, 0) scale(1.04);
  }
}

@keyframes halo-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.03);
    opacity: 0.85;
  }
}

@keyframes coin-spin {
  0%,
  12% {
    transform: rotateX(10deg) rotateY(0deg);
  }

  44%,
  56% {
    transform: rotateX(10deg) rotateY(180deg);
  }

  88%,
  100% {
    transform: rotateX(10deg) rotateY(360deg);
  }
}

@keyframes coin-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -10px;
  }
}

@keyframes shadow-breathe {
  0%,
  100% {
    transform: scaleX(0.88);
    opacity: 0.46;
  }

  50% {
    transform: scaleX(1);
    opacity: 0.62;
  }
}

@media (max-width: 720px) {
  .hero-panel {
    border-radius: 28px;
    padding: 32px 20px 42px;
  }

  .hero-panel::after {
    border-radius: 27px;
  }

  .eyebrow {
    letter-spacing: 0.24em;
  }

  .coin-detail {
    letter-spacing: 0.22em;
  }

  .contract-card {
    border-radius: 24px;
  }

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

  .copy-button {
    width: 100%;
    min-width: 0;
  }

  .contract-address {
    padding: 18px 18px 20px;
    letter-spacing: 0.04em;
  }

  .pump-button {
    width: 100%;
    min-width: 0;
    padding: 20px 22px;
    letter-spacing: 0.1em;
  }
}

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