:root {
  --sky: #5eb8e8;
  --sky-deep: #2f9fd6;
  --sky-soft: #a8dff7;
  --meadow: #6db84a;
  --meadow-deep: #4a9a32;
  --cream: #fff8e8;
  --ink: #1a3a4a;
  --ink-soft: #3d6578;
  --sun: #ffe566;
  --white: #ffffff;
  --stroke: #1e6fa0;
  --font-display: "Fredoka", sans-serif;
  --font-body: "Nunito", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, #b8ebff 0%, transparent 55%),
    linear-gradient(180deg, #7ec8ee 0%, #9ad4f0 28%, #c8ebc0 62%, #8fd16a 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* —— Emoji rain —— */
#emoji-rain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
}

.rain-emoji {
  position: absolute;
  top: -3rem;
  font-size: var(--size, 1.6rem);
  animation: fall var(--dur, 6s) linear forwards;
  opacity: 0.92;
  will-change: transform;
}

@keyframes fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  8% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(var(--drift, 40px), 110vh, 0) rotate(var(--spin, 360deg));
    opacity: 0.35;
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.55) 70%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}

.brand-mark img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 2px 0 var(--stroke);
  animation: bob 2.8s ease-in-out infinite;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav-links a:hover {
  color: var(--sky-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 14px;
  padding: 0.75rem 1.35rem;
  border: 3px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-buy {
  background: var(--sun);
  color: var(--ink);
  border-color: #e8c020;
  box-shadow: 0 3px 0 #c9a010;
  white-space: nowrap;
}

.btn-buy:hover {
  background: #fff084;
}

.btn-primary {
  background: var(--meadow);
  color: var(--white);
  border-color: var(--meadow-deep);
  box-shadow: 0 4px 0 var(--meadow-deep);
  font-size: 1.15rem;
  padding: 0.9rem 1.7rem;
}

.btn-primary:hover {
  background: #7bc955;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: var(--stroke);
  box-shadow: 0 4px 0 var(--stroke);
  font-size: 1.15rem;
  padding: 0.9rem 1.7rem;
}

.btn-ghost:hover {
  background: var(--white);
}

.btn-ca {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: var(--stroke);
  box-shadow: 0 4px 0 var(--stroke);
  font-size: 1rem;
  padding: 0.85rem 1.25rem;
  gap: 0.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  max-width: 100%;
}

.btn-ca:hover {
  background: var(--white);
}

.btn-ca.is-copied {
  background: #7bc955;
  color: var(--white);
  border-color: var(--meadow-deep);
  box-shadow: 0 4px 0 var(--meadow-deep);
}

.btn-ca-soon,
.btn-ca-soon:disabled {
  cursor: default;
  opacity: 0.95;
  transform: none;
}

.btn-ca-soon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.92);
}

.btn-ca-soon .ca-value,
.btn-ca-soon .ca-value-full {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.03em;
}

.ca-label {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sky-deep);
  flex-shrink: 0;
}

.btn-ca.is-copied .ca-label {
  color: var(--white);
}

.ca-value {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ca-value-full {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: clamp(0.7rem, 2.4vw, 0.9rem);
  font-weight: 700;
  word-break: break-all;
  text-align: left;
  line-height: 1.35;
}

.ca-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.btn-ca-full {
  width: 100%;
  max-width: 34rem;
  justify-content: space-between;
  padding: 1rem 1.15rem;
  text-align: left;
}

.ca-block {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.ca-block-label {
  margin: 0 !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem !important;
  color: var(--ink) !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Toast: Successfully copied */
.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 100;
  transform: translateX(-50%) translateY(12px);
  padding: 0.85rem 1.4rem;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(26, 58, 74, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* —— Enter gate (first tap unlocks audio) —— */
.enter-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(255, 229, 102, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, rgba(47, 159, 214, 0.92) 0%, rgba(109, 184, 74, 0.92) 100%);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.enter-gate.is-gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.enter-gate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 1.5rem 2rem;
  border: none;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-display);
  animation: rise-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.enter-gate-btn img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(26, 58, 74, 0.35);
  animation: floaty 2.8s ease-in-out infinite;
}

.enter-gate-title {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  text-shadow: 0 3px 0 rgba(26, 58, 74, 0.35);
}

.enter-gate-hint {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  opacity: 0.95;
  animation: music-pulse 1.8s ease-in-out infinite;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.55);
}

/* —— Music toggle —— */
.music-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 3px solid var(--stroke);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 0 var(--stroke);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.music-toggle:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.music-toggle:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 var(--stroke);
}

.music-toggle:not(.is-muted) {
  background: var(--sun);
  border-color: #e8c020;
  box-shadow: 0 4px 0 #c9a010;
  animation: music-pulse 1.6s ease-in-out infinite;
}

.music-toggle.is-muted .music-icon-on {
  display: none;
}

.music-toggle:not(.is-muted) .music-icon-off {
  display: none;
}

.music-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.music-text {
  letter-spacing: 0.02em;
}

@keyframes music-pulse {
  0%,
  100% {
    box-shadow: 0 4px 0 #c9a010, 0 0 0 0 rgba(255, 229, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 0 #c9a010, 0 0 0 10px rgba(255, 229, 102, 0);
  }
}

@media (max-width: 720px) {
  .music-toggle {
    right: 0.75rem;
    bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
  }

  .music-text {
    display: none;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6.5rem 1.25rem 3.5rem;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("hero-bg.png") center top / cover no-repeat;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(94, 184, 232, 0.15) 0%,
    rgba(47, 159, 214, 0.05) 40%,
    rgba(26, 58, 74, 0.45) 100%
  );
}

.hero-content {
  text-align: center;
  max-width: 36rem;
  color: var(--white);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-logo {
  width: clamp(140px, 28vw, 220px);
  height: auto;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 8px 16px rgba(26, 58, 74, 0.35));
  animation: floaty 3.4s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 2px var(--stroke),
    3px 3px 0 var(--stroke),
    -2px -2px 0 var(--stroke),
    2px -2px 0 var(--stroke),
    -2px 2px 0 var(--stroke),
    0 6px 20px rgba(26, 58, 74, 0.4);
}

.ticker {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.08em;
  color: var(--sun);
  text-shadow: 0 2px 0 rgba(26, 58, 74, 0.55);
}

.hero-tagline {
  margin: 0.85rem auto 1.5rem;
  max-width: 26rem;
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 2px 8px rgba(26, 58, 74, 0.5);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

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

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

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-1.5%);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 1.25rem;
}

.section-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: var(--ink);
  letter-spacing: -0.02em;
}

.section p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink-soft);
}

.about {
  background: linear-gradient(
    180deg,
    rgba(255, 248, 232, 0.55) 0%,
    rgba(255, 255, 255, 0.35) 100%
  );
}

.trait-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
  max-width: 28rem;
  margin-inline: auto;
}

.trait-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.35rem 0;
}

.trait-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.original {
  background: rgba(255, 255, 255, 0.4);
}

.tweet-frame {
  display: flex;
  justify-content: center;
  min-height: 320px;
}

.tweet-frame .twitter-tweet {
  margin: 0 auto !important;
}

.community {
  background: linear-gradient(
    180deg,
    rgba(168, 223, 247, 0.45) 0%,
    rgba(109, 184, 74, 0.25) 100%
  );
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.social-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: min(100%, 200px);
  padding: 1.15rem 1.35rem;
  background: rgba(255, 255, 255, 0.72);
  border: 3px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--stroke);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  background: var(--white);
}

.social-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--sky-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-handle {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  background: rgba(26, 58, 74, 0.12);
}

.site-footer img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
}

.site-footer p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.disclaimer {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--ink-soft) !important;
  max-width: 28rem;
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .site-header .btn-buy {
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
  }

  .hero {
    align-items: center;
    padding-top: 5.5rem;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .site-header .btn-buy {
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  #emoji-rain {
    display: none;
  }

  .hero-bg {
    transform: none;
  }
}
