@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&amp;display=swap");

:root {
  --lime: #cded1e;
  --ink: #10240f;
  --soft: rgba(16, 36, 15, 0.52);
  --line: rgba(16, 36, 15, 0.18);
  --line-lit: rgba(16, 36, 15, 0.42);
  --wash: rgba(255, 255, 255, 0.5);

  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  position: relative;
  margin: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: linear-gradient(180deg, #4da8e6 0%, #74c0ef 30%, #a6d8f5 58%, #d7edfa 100%);
  color: var(--ink);
  font-family: Montserrat, "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sky span {
  position: absolute;
  animation: sail linear infinite;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(closest-side, #fff 62%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(closest-side, #fff 60%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(closest-side, #fff 60%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(closest-side, #fff 58%, rgba(255, 255, 255, 0) 100%),
    radial-gradient(closest-side, rgba(255, 255, 255, 0.92) 55%, rgba(255, 255, 255, 0) 100%);
  background-size: 42% 74%, 36% 58%, 30% 48%, 26% 40%, 100% 42%;
  background-position: 30% 34%, 58% 22%, 12% 52%, 78% 46%, 50% 76%;
  filter: blur(9px);
}

.sky span:nth-child(1) { left: -18%; top: 14%; width: 44vw; height: 18vw; animation-duration: 150s; }
.sky span:nth-child(2) { left: 34%;  top: 4%;  width: 32vw; height: 13vw; animation-duration: 205s; animation-delay: -70s; opacity: 0.82; }
.sky span:nth-child(3) { left: 62%;  top: 27%; width: 50vw; height: 20vw; animation-duration: 178s; animation-delay: -120s; opacity: 0.7; }
.sky span:nth-child(4) { left: 4%;   top: 62%; width: 64vw; height: 26vw; animation-duration: 240s; animation-delay: -40s; opacity: 0.9; filter: blur(12px); }
.sky span:nth-child(5) { left: 52%;  top: 78%; width: 56vw; height: 24vw; animation-duration: 196s; animation-delay: -150s; opacity: 0.95; filter: blur(11px); }

.rising {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.rising span {
  position: absolute;
  bottom: -20vh;
  background: url("bull.png") center / contain no-repeat;
  animation: climb linear infinite;
  will-change: transform;
}

.rising span:nth-child(1) { left: 9%;  width: 52px;  height: 60px;  rotate: -12deg; opacity: 0.5;  filter: blur(1.5px); animation-duration: 34s; }
.rising span:nth-child(2) { left: 78%; width: 86px;  height: 99px;  rotate: 16deg;  opacity: 0.72;                     animation-duration: 27s; animation-delay: -12s; }
.rising span:nth-child(3) { left: 27%; width: 34px;  height: 39px;  rotate: 31deg;  opacity: 0.38; filter: blur(2.5px); animation-duration: 46s; animation-delay: -30s; }
.rising span:nth-child(4) { left: 63%; width: 44px;  height: 51px;  rotate: -24deg; opacity: 0.45; filter: blur(2px);  animation-duration: 39s; animation-delay: -6s; }
.rising span:nth-child(5) { left: 90%; width: 30px;  height: 35px;  rotate: 8deg;   opacity: 0.32; filter: blur(3px);  animation-duration: 52s; animation-delay: -22s; }
.rising span:nth-child(6) { left: 44%; width: 26px;  height: 30px;  rotate: -38deg; opacity: 0.3;  filter: blur(3px);  animation-duration: 58s; animation-delay: -44s; }

.bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px;
}

.host {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soft);
}

main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vh, 64px);
  padding: 0 24px 8vh;
}

.stage {
  --tx: 0;
  --ty: 0;
  position: relative;
  width: min(58vw, 720px);
  perspective: 1100px;
}

.float { animation: buoy 11s ease-in-out infinite; }

.poke {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.poke.squeezed { animation: squeeze 620ms cubic-bezier(0.22, 1.4, 0.36, 1); }

.mark {
  display: block;
  width: 100%;
  height: auto;
  transform-style: preserve-3d;
  transform:
    rotateY(calc(var(--tx) * 7deg))
    rotateX(calc(var(--ty) * -5deg));
  filter: drop-shadow(0 24px 30px rgba(24, 66, 96, 0.28));
  will-change: transform;
}

body.ready .mark { animation: inflate 900ms cubic-bezier(0.18, 1.5, 0.4, 1) both; }
body.ready .bar { animation: rise 700ms ease-out 620ms both; }
body.ready .soon { animation: rise 700ms ease-out 660ms both; }
body.ready .tg { animation: rise 700ms ease-out 760ms both; }
body.ready .x { animation: rise 700ms ease-out 840ms both; }

.cast {
  position: absolute;
  left: 50%;
  bottom: -8%;
  width: 60%;
  height: 24px;
  transform: translateX(-50%) translateX(calc(var(--tx) * 14px));
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 66, 96, 0.26), transparent 72%);
  filter: blur(10px);
  animation: settle 11s ease-in-out infinite;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.soon,
.x,
.tg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.soon {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 18px rgba(24, 66, 96, 0.14);
}

.tg {
  padding-left: 18px;
  border: 1px solid #a5c603;
  background: linear-gradient(180deg, #d6f52a, #b2d40a);
  color: #12160a;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(24, 66, 96, 0.2);
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.tg:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 12px 26px rgba(24, 66, 96, 0.26);
}

.tg:active { transform: scale(1.03, 0.93); }

.x {
  padding-left: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 18px rgba(24, 66, 96, 0.14);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.x:hover {
  background: rgba(255, 255, 255, 0.64);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 26px rgba(24, 66, 96, 0.2);
}

.x:active { transform: scale(1.03, 0.93); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: ping 2.6s ease-out infinite;
}

@keyframes climb {
  from { transform: translateY(0) translateX(0) rotate(0deg); }
  to { transform: translateY(-135vh) translateX(3vw) rotate(14deg); }
}

@keyframes sail {
  from { transform: translateX(-30vw); }
  to { transform: translateX(130vw); }
}

@keyframes buoy {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  35% { translate: -0.7% -1.8%; rotate: -0.5deg; }
  70% { translate: 0.6% -0.7%; rotate: 0.4deg; }
}

@keyframes inflate {
  0% { opacity: 0; scale: 0.72 0.58; }
  60% { opacity: 1; }
  100% { opacity: 1; scale: 1 1; }
}

@keyframes squeeze {
  0% { scale: 1 1; }
  28% { scale: 1.075 0.9; }
  60% { scale: 0.97 1.045; }
  100% { scale: 1 1; }
}

@keyframes settle {
  0%, 100% { opacity: 0.85; scale: 1; }
  35% { opacity: 0.62; scale: 0.9; }
  70% { opacity: 0.78; scale: 0.97; }
}

@keyframes rise {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

:where(a):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .bar { padding: 18px 20px; }
  .stage { width: 100%; }
  main { padding-bottom: 12vh; }
  .soon, .x, .tg { height: 42px; padding: 0 18px; font-size: 11px; letter-spacing: 0.14em; }
  .x, .tg { padding-left: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .mark, .cast, .dot, .float, .soon, .bar, .x, .tg,
  .sky span, .rising span,
  body.ready .mark, body.ready .soon, body.ready .bar, body.ready .x,
  body.ready .tg { animation: none; }
  .soon, .bar, .x, .tg { opacity: 1; }
  .rising { display: none; }
}
