/* =========================================================
   SMURFCAT — Robinhood ecosystem
   Design DNA from source: playful meme landing, modal enter,
   GIF world-bg, Wonder/Impact type, pill links, bounce mascots
   ========================================================= */

@font-face {
  font-family: Wonder;
  src: url("../assets/fonts/wonder.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: ImpactCustom;
  src: url("../assets/fonts/impact.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Daisy;
  src: url("../assets/fonts/daisy.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: Fairy;
  src: url("../assets/fonts/fairy.ttf") format("truetype");
  font-display: swap;
}

:root {
  --blue: #5bb0cc;
  --blue-dark: #0e335b;
  --cream: #ebeae3;
  --white: #ffffff;
  --black: #000000;
  --green: #00c805;
  --green-deep: #00a004;
  --width: 160px;
  --elheight: 240px;
  --x-speed: 13s;
  --y-speed: 7s;
  --w-speed: 8s;
  --z-speed: 4s;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--cream);
  background: #041018;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--green);
  color: #000;
  padding: 0.6rem 1rem;
  font-weight: 700;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Welcome modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../assets/img/modal-bg.jpg");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.modal.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal-content {
  position: relative;
  max-width: min(90%, 900px);
  text-align: center;
  padding: 1.5rem;
}
.modal .text {
  font-family: Wonder, sans-serif;
  font-size: clamp(2.2rem, 8vw, 5.5rem);
  color: var(--cream);
  -webkit-text-stroke: 1px #000;
  margin: 0.4rem 1rem;
  line-height: 1.05;
}
.modal .blue1 {
  color: var(--blue);
  -webkit-text-stroke: 2px var(--blue);
  font-size: clamp(2.4rem, 9vw, 6rem);
  display: block;
  margin-top: 0.35rem;
}
.modal .enter {
  font-family: ImpactCustom, Impact, Haettenschweiler, sans-serif;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--cream);
  -webkit-text-stroke: 1px #000;
  margin-top: 1.25rem;
  animation: pulse 1.6s ease-in-out infinite;
}
.modal .enter-sub {
  margin-top: 0.6rem;
  font-family: Wonder, sans-serif;
  font-size: clamp(0.9rem, 2.4vw, 1.25rem);
  color: var(--green);
  text-shadow: 0 0 12px rgba(0, 200, 5, 0.45);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.04);
  }
}

/* ---------- App shell + GIF world ---------- */
.App {
  position: relative;
  width: 100%;
  min-height: 100vh;
  text-align: center;
  letter-spacing: 1px;
  font-size: 1.25rem;
  background-image: url("../assets/img/bg.gif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding-bottom: 4rem;
}
.App::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 16, 24, 0.35) 0%,
    rgba(4, 16, 24, 0.18) 40%,
    rgba(0, 40, 20, 0.28) 100%
  );
  pointer-events: none;
  z-index: 0;
}
.App > * {
  position: relative;
  z-index: 1;
}

/* Floating bounce mascots (source DNA) */
.bounce,
.bounce1 {
  position: fixed;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
}
.bounce {
  z-index: 3;
}
.el,
.le {
  width: var(--width);
  border-radius: 15px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
}
.el {
  height: var(--elheight);
}
.le {
  height: var(--elheight);
}
.x {
  animation: x var(--x-speed) linear infinite alternate;
}
.y {
  animation: y var(--y-speed) linear infinite alternate;
}
.w {
  animation: x var(--w-speed) linear infinite alternate;
}
.z {
  animation: y var(--z-speed) linear infinite alternate;
}
@keyframes x {
  to {
    transform: translateX(calc(100vw - var(--width)));
  }
}
@keyframes y {
  to {
    transform: translateY(calc(100vh - var(--width)));
  }
}

/* ---------- Header / brand ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: linear-gradient(
    180deg,
    rgba(14, 51, 91, 0.88) 0%,
    rgba(14, 51, 91, 0.35) 70%,
    transparent 100%
  );
  backdrop-filter: blur(6px);
}
.nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--blue-dark);
  border: 3px solid var(--blue);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: ImpactCustom, Impact, sans-serif;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  padding: 0.45rem 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-chip:hover {
  transform: translateY(-2px) scale(1.03);
  background: #123f6e;
  border-color: var(--green);
}
.nav-chip.primary {
  background: var(--green);
  border-color: #fff;
  color: #041018;
}
.nav-chip.primary:hover {
  background: var(--green-deep);
  color: #fff;
}
.nav-chip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* ---------- Typography ---------- */
.name {
  font-family: Wonder, sans-serif;
  color: var(--blue);
  font-size: clamp(3rem, 12vw, 9rem);
  margin: 2.5rem 0 0.35rem;
  padding-top: 1.5rem;
  line-height: 0.95;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 40px rgba(91, 176, 204, 0.35);
}
.iname {
  font-family: Wonder, sans-serif;
  color: var(--cream);
  font-size: clamp(1.4rem, 4.5vw, 3.2rem);
  margin: 0 0 1rem;
}
.eco-badge {
  display: inline-block;
  margin: 0.4rem auto 1.2rem;
  padding: 0.4rem 1.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 200, 5, 0.18);
  border: 2px solid var(--green);
  color: var(--green);
  font-family: Daisy, ImpactCustom, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  letter-spacing: 0.04em;
}

h1,
.top {
  font-family: ImpactCustom, Impact, Haettenschweiler, sans-serif;
  color: var(--cream);
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: #000;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  font-weight: 400;
  margin: 1.25rem 0;
  line-height: 1.05;
}
.top.front {
  position: relative;
  z-index: 10;
}

.title {
  font-family: Wonder, sans-serif;
  color: var(--cream);
  -webkit-text-stroke-width: 0.75px;
  font-size: clamp(1.25rem, 3.5vw, 2.4rem);
  font-weight: 400;
  padding: 0 clamp(1rem, 5vw, 4rem) 1.5rem;
  margin: 1rem 0;
  line-height: 1.25;
}
.title.front {
  position: relative;
  z-index: 10;
}

.faqt {
  font-family: ImpactCustom, Impact, sans-serif;
  color: var(--cream);
  font-size: clamp(1.6rem, 4.5vw, 3rem);
  font-weight: 400;
  margin: 2.5rem 1rem 0.75rem;
}
.faq {
  font-family: Wonder, sans-serif;
  color: var(--cream);
  -webkit-text-stroke-width: 0.5px;
  font-size: clamp(1.05rem, 2.8vw, 1.85rem);
  padding: 0 clamp(1rem, 6vw, 4.5rem);
  margin: 0.5rem auto 1.5rem;
  max-width: 1100px;
  line-height: 1.35;
  font-weight: 400;
}
.blue {
  color: var(--blue);
}
.green {
  color: var(--green);
}
.wht {
  color: #fff;
}
.smol {
  font-family: Wonder, sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
}
.fairy {
  font-family: Fairy, cursive;
  color: var(--cream);
  margin: 1.5rem 0 0.5rem;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
}
.caption {
  color: #fff;
  font-size: 0.85rem;
  font-style: italic;
  margin: 0.4rem auto 0;
  max-width: 28rem;
  opacity: 0.9;
}

/* ---------- Buttons / pills ---------- */
.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem 2rem;
}

.item,
.itembut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.item {
  background-color: var(--blue-dark);
  border: 5px solid var(--blue);
  border-radius: 50px;
  font-family: ImpactCustom, Impact, sans-serif;
  font-size: clamp(1rem, 2.4vw, 1.65rem);
  padding: 0.55rem 1.1rem;
}
.item span {
  padding-left: 0.45rem;
}
.item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.item:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 200, 5, 0.25);
  border-color: var(--green);
}

.itembut {
  background-color: var(--blue-dark);
  border: 5px solid var(--blue);
  border-radius: 50px;
  font-family: ImpactCustom, Impact, sans-serif;
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin: 0.6rem 0.4rem;
  padding: 0.85rem 1.8rem;
}
.itembut span {
  padding-left: 0.85rem;
}
.itembut img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.itembut:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(0, 200, 5, 0.28);
}
.itembut.cta-green {
  background: linear-gradient(180deg, var(--green) 0%, var(--green-deep) 100%);
  border-color: #fff;
  color: #041018;
}
.itembut.cta-green:hover {
  color: #fff;
  border-color: var(--cream);
}
.itembut.cta-uni {
  background: linear-gradient(180deg, #ff4da6 0%, #ff007a 100%);
  border-color: #fff;
  color: #fff;
}
.itembut.cta-uni:hover {
  background: linear-gradient(180deg, #ff007a 0%, #d60068 100%);
  border-color: var(--cream);
}
.item img[src$=".svg"],
.itembut img[src$=".svg"] {
  border-radius: 50%;
  background: transparent;
}

/* Dropdowns (source DNA) */
.dropdowns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.5rem 0 1.5rem;
  padding: 0 1rem;
}
.dropdown {
  display: inline-block;
  position: relative;
}
.dropbtn {
  background-color: var(--blue);
  border: none;
  border-radius: 10px;
  color: var(--cream);
  cursor: pointer;
  font-family: Daisy, ImpactCustom, sans-serif;
  font-size: clamp(1.15rem, 3vw, 1.85rem);
  padding: 0.55rem 1.2rem 0.75rem 1.4rem;
  transition: background 0.2s ease, transform 0.2s ease;
}
.dropbtn:after {
  content: "\25BC";
  margin-left: 0.65rem;
  font-size: 0.75em;
}
.dropbtn:hover,
.dropdown:hover .dropbtn,
.dropdown.open .dropbtn {
  background: var(--green);
  color: #041018;
  transform: translateY(-2px);
}
.dropbtn.pools {
  background: var(--green);
  color: #041018;
}
.dropbtn.pools:hover {
  background: var(--green-deep);
  color: #fff;
}
.dropbtn.uni {
  background: #ff007a;
  color: #fff;
}
.dropbtn.uni:hover,
.dropdown:hover .dropbtn.uni,
.dropdown.open .dropbtn.uni {
  background: #d60068;
  color: #fff;
}
.dropdown-content-container {
  background-color: var(--blue-dark);
  border-radius: 15px;
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 220px;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  border: 2px solid var(--blue);
}
.dropdown:hover .dropdown-content-container,
.dropdown.open .dropdown-content-container {
  display: block;
}
.dropdown-content-container a,
.dropdown-content-container button {
  align-items: center;
  box-sizing: border-box;
  color: var(--cream);
  display: flex;
  font-family: Wonder, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  padding: 0.85rem 1.6rem;
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.dropdown-content-container a:hover,
.dropdown-content-container button:hover {
  background-color: #1e1e1e;
}

/* ---------- Mascot / hero art ---------- */
.App-logo {
  border-radius: 20px;
  margin: 2rem auto 0;
  width: min(500px, 78vw);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border: 4px solid rgba(91, 176, 204, 0.55);
}
.mascot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem;
  margin: 1rem 0;
}
.mascot-row img {
  border-radius: 20px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.mascot-row .thumb {
  width: min(280px, 70vw);
}
.mascot-row .tall {
  width: min(180px, 42vw);
}
.mascot-row .bounce-gif {
  width: min(260px, 65vw);
}
.dwayne {
  border-radius: 30px;
  margin: 1.25rem auto 0;
  width: min(420px, 80vw);
  border: 4px solid var(--blue);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

/* ---------- CA card ---------- */
.ca-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.5rem 1.15rem;
  background: rgba(14, 51, 91, 0.82);
  border: 4px solid var(--green);
  border-radius: 24px;
  max-width: min(920px, 94vw);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ca-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 200, 5, 0.25);
}
.ca-label {
  font-family: Daisy, sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--green);
}
.ca-value {
  font-family: ImpactCustom, Impact, monospace, sans-serif;
  font-size: clamp(1.1rem, 3.2vw, 1.85rem);
  color: #fff;
  word-break: break-all;
  letter-spacing: 0.04em;
}
.ca-hint {
  font-family: Wonder, sans-serif;
  font-size: 0.95rem;
  color: var(--cream);
  opacity: 0.85;
}

/* ---------- Tokenomics strip ---------- */
.token-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem 1.5rem;
}
.token-pill {
  background: rgba(0, 200, 5, 0.12);
  border: 3px solid var(--green);
  border-radius: 18px;
  padding: 0.85rem 1.2rem;
  min-width: 140px;
  max-width: 220px;
}
.token-pill strong {
  display: block;
  font-family: ImpactCustom, Impact, sans-serif;
  font-size: clamp(1.1rem, 2.8vw, 1.6rem);
  color: var(--green);
  margin-bottom: 0.25rem;
}
.token-pill span {
  font-family: Wonder, sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--cream);
}

/* ---------- Footer ---------- */
.footer {
  margin: 3rem 1rem 0;
  padding: 1.5rem 1rem 2rem;
  border-top: 2px solid rgba(91, 176, 204, 0.35);
}
.footer p {
  max-width: 900px;
  margin: 0.55rem auto;
  line-height: 1.4;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--blue-dark);
  border: 3px solid var(--green);
  color: #fff;
  font-family: ImpactCustom, Impact, sans-serif;
  font-size: 1.1rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  z-index: 2000;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ---------- Audio control ---------- */
.audio-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--blue-dark);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.audio-toggle:hover {
  transform: scale(1.08);
  border-color: var(--green);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .App {
    background-attachment: scroll;
  }
  :root {
    --width: 110px;
    --elheight: 160px;
  }
  .item {
    border-width: 3px;
    padding: 0.45rem 0.85rem;
  }
  .itembut {
    border-width: 3px;
    padding: 0.65rem 1.1rem;
    width: min(100%, 340px);
  }
  .header {
    gap: 0.45rem;
  }
  .bounce,
  .bounce1 {
    opacity: 0.85;
  }
}

@media (max-width: 420px) {
  :root {
    --width: 88px;
    --elheight: 130px;
  }
  .modal .text {
    -webkit-text-stroke-width: 0.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .x,
  .y,
  .w,
  .z,
  .modal .enter {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}
