:root {
  --sky-top: #dce1e7;
  --sky-mid: #9bc9ef;
  --sky-bottom: #41a6f4;
  --button: #48b7ed;
  --button-border: #1f6797;
  --ink: #1e2228;
  --token: rgba(73, 181, 245, 0.2);
  --token-border: rgba(73, 181, 245, 0.33);
  --base-logo: url("https://i.ibb.co/HTGKz1JR/9c441f92-03d7-4213-94c0-dae8f71dac17.jpg");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--ink);
  background: #05070d;
  overflow: hidden;
  position: relative;
}


.grid-motion-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

#grid-motion {
  position: absolute;
  inset: -8vh -8vw;
  display: grid;
  align-content: center;
  gap: 1.2rem;
  transform: rotate(4deg) scale(1.08);
}

.gm-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 1rem;
  will-change: transform;
}

.gm-item {
  aspect-ratio: 1.08;
  border-radius: 14px;
  background: #0e1018;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.gm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.grid-motion-fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent 10%, rgba(0, 0, 0, 0.66) 72%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.8));
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(125, 181, 255, 0.22), transparent 25%),
    radial-gradient(circle at 85% 20%, rgba(125, 181, 255, 0.18), transparent 22%);
  pointer-events: none;
  z-index: 1;
}


.topbar {
  width: min(980px, 92vw);
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 4;
}

.top-button {
  display: inline-block;
  text-decoration: none;
  color: #143255;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid var(--button-border);
  border-radius: 999px;
  padding: 0.7rem 2.2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 0 rgba(25, 74, 109, 0.38);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.top-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.target-cursor-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

.target-cursor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
}

.target-cursor-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: #ffffff;
  border-style: solid;
  border-width: 0;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
}

.corner-tl {
  left: -8px;
  top: -8px;
  border-left-width: 2px;
  border-top-width: 2px;
}

.corner-tr {
  right: -8px;
  top: -8px;
  border-right-width: 2px;
  border-top-width: 2px;
}

.corner-br {
  right: -8px;
  bottom: -8px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.corner-bl {
  left: -8px;
  bottom: -8px;
  border-left-width: 2px;
  border-bottom-width: 2px;
}

.hero {
  width: min(900px, 90vw);
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

.logo-glow-wrap {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.logo-glow-wrap::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 30px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.24), transparent 65%);
  filter: blur(16px);
  z-index: 0;
  animation: logoAura 3.2s ease-in-out infinite;
}

.badge {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 4px solid #111;
  display: block;
  background: #49b5f5;
  margin-bottom: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.badge::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background-image: var(--badge-logo, var(--base-logo));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  filter: contrast(1.15) saturate(1.05);
}

.logo {
  width: min(420px, 72vw);
  display: block;
  position: relative;
  z-index: 1;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  object-fit: contain;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 6px rgba(255, 255, 255, 0.6))
    drop-shadow(0 0 14px rgba(179, 225, 255, 0.55));
  animation: logoPulse 2.6s ease-in-out infinite;
}

.fuzzy-title {
  margin: 14px 0 4px;
  position: relative;
  width: min(860px, 94vw);
  display: flex;
  justify-content: center;
}

.fuzzy-canvas {
  display: block;
  width: min(780px, 90vw);
  height: clamp(66px, 13vw, 166px);
}

.contract-line {
  margin: 2px 0 8px;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.76rem, 1.2vw, 0.95rem);
  font-weight: 700;
  color: rgba(232, 245, 255, 0.92);
  letter-spacing: 0.01em;
  text-align: center;
  word-break: break-all;
  text-shadow: 0 0 8px rgba(145, 215, 255, 0.25);
}

h1 {
  margin: 14px 0 4px;
  font-family: "Baloo 2", sans-serif;
  font-size: clamp(2.4rem, 8vw, 5.4rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
  color: #ffffff;
  text-shadow:
    -3px -3px 0 #1d2a36,
    3px -3px 0 #1d2a36,
    -3px 3px 0 #1d2a36,
    3px 3px 0 #1d2a36,
    0 8px 24px rgba(0, 0, 0, 0.24);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.built {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.8rem);
  color: rgba(26, 35, 48, 0.9);
  font-weight: 700;
}

.built strong {
  color: #25313f;
}

.cta {
  margin-top: 16px;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cta button {
  border: 2px solid #1f6797;
  background: rgba(255, 255, 255, 0.25);
  color: #143255;
  border-radius: 999px;
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(25, 74, 109, 0.38);
}

.cta .outline {
  background: rgba(255, 255, 255, 0.25);
  color: #143255;
}

.token {
  position: absolute;
  border: 0;
  background: transparent;
  pointer-events: none;
  animation: bob 6s ease-in-out infinite;
  z-index: 2;
}

.token::before {
  content: "";
  position: absolute;
  width: 42%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background-image: var(--base-logo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  filter: contrast(1.15) saturate(1.05);
  opacity: 0.7;
}

.token::after {
  content: none;
}

.token-1 { width: 200px; height: 200px; left: -36px; bottom: -40px; animation-delay: -1.2s; }
.token-2 { width: 180px; height: 180px; right: -30px; bottom: 20px; animation-delay: -2.5s; }
.token-3 { width: 160px; height: 160px; left: 10%; top: 38%; animation-delay: -3.3s; }
.token-4 { width: 110px; height: 110px; right: 14%; top: 26%; animation-delay: -0.6s; }
.token-5 { width: 95px; height: 95px; right: 32%; top: 42%; animation-delay: -4s; }

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

@keyframes logoPulse {
  0%, 100% {
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.6))
      drop-shadow(0 0 14px rgba(179, 225, 255, 0.55));
  }
  50% {
    filter:
      drop-shadow(0 0 1px rgba(255, 255, 255, 1))
      drop-shadow(0 0 10px rgba(255, 255, 255, 0.75))
      drop-shadow(0 0 20px rgba(179, 225, 255, 0.7));
  }
}

@keyframes logoAura {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

@media (max-width: 740px) {
  body {
    overflow-y: auto;
  }

  #grid-motion {
    inset: -5vh -26vw;
    gap: 0.7rem;
    transform: rotate(3deg) scale(1.05);
  }

  .gm-row {
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    gap: 0.6rem;
  }

  .topbar {
    margin-top: 16px;
    gap: 0.7rem;
  }

  .top-button {
    padding: 0.62rem 1rem;
    font-size: 0.92rem;
  }

  .hero {
    margin-top: 20px;
    padding-bottom: 28px;
  }

  .logo {
    width: min(340px, 86vw);
  }

  .logo-glow-wrap {
    transform: scale(0.96);
    transform-origin: center;
  }

  .target-cursor-wrapper {
    display: none;
  }

  .token-3,
  .token-4,
  .token-5 {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  body.target-cursor-enabled,
  body.target-cursor-enabled a,
  body.target-cursor-enabled button,
  body.target-cursor-enabled .cursor-target {
    cursor: none !important;
  }
}
