/* ================= FONTS ================= */
@import url('https://fonts.googleapis.com/css2?family=Akaya+Kanadaka&display=swap');

@font-face {
  font-family: 'Pingu Normal';
  src: url('assets/fonts/pingu-normal.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'SNOW BLUE Regular';
  src: url('assets/fonts/snow-blue.woff2') format('woff2');
  font-display: swap;
}

/* ================= TOKENS ================= */
:root {
  --green: #00c805;          /* robinhood green */
  --green-bright: #05ff2f;
  --green-deep: #04a204;
  --black: #000000;
  --white: #f4f4f2;
  --grey: #8a8a8a;
  --font-drip: 'Pingu Normal', 'Comic Sans MS', cursive;
  --font-bubble: 'SNOW BLUE Regular', 'Arial Black', sans-serif;
  --font-body: 'Akaya Kanadaka', 'Pingu Normal', system-ui, sans-serif;
  --nav-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ================= BUTTONS ================= */
.btn {
  font-family: var(--font-body);
  font-size: 18px;
  cursor: pointer;
  border: none;
  transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: scale(.96); }

.btn--noot {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
  padding: 8px 20px;
  border-radius: 8px;
  line-height: 1;
}
.btn--noot:hover { background: var(--green); color: #000; }
.btn--sm { font-size: 15px; padding: 7px 16px; }

.btn--dark {
  display: inline-block;
  border: 2px solid #000;
  color: #000;
  background: transparent;
  padding: 10px 24px;
  border-radius: 8px;
  line-height: 1;
}
.btn--dark:hover { background: var(--green); border-color: var(--green); }

.btn--copy {
  background: var(--green);
  color: #000;
  padding: 6px 22px;
  border-radius: 3px;
  white-space: nowrap;
  font-size: 15px;
}
.btn--copy:hover { background: var(--green-bright); }
.btn--copy.copied { background: #000; color: var(--green); }

/* ================= NAV ================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
  z-index: 100;
  mix-blend-mode: normal;
}
.brand__logo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #000;
  display: grid; place-items: center;
  overflow: hidden;
  border: 2px solid #000;
}
.brand__logo img { width: 100%; height: 100%; object-fit: cover; }

/* left-half links (white bg) are black; right-half links (black bg) are white */
.nav__link {
  font-family: var(--font-drip);
  font-size: 22px;
  letter-spacing: .5px;
}
.nav__link:hover { opacity: .65; }
.nav__link--about { margin-left: 4vw; color: #111; }
.nav__link--lore { margin-left: 4vw; color: #111; }
.nav__link--how { margin-left: 4vw; color: #111; }
.nav__link--memes { margin-left: auto; color: #fff; }
.nav__link--tok { margin-left: 4vw; margin-right: 7vw; color: #fff; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
/* stacking order: splits (1) < artwork (2-3) < text bands (10) < nav (100) */
.hero__split {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  z-index: 1;
}
.hero__split--light { left: 0; background: var(--white); }
.hero__split--dark { right: 0; background: var(--black); }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1500px;
  padding: calc(var(--nav-h) + 12px) 3vw 32px;
  text-align: center;
}
/* two halves: "the first cto" black on the white side, "on robinhood" white on the black side.
   1fr | 1fr grid keeps the gap centered exactly on the split line. */
.hero__tagline {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  width: 100%;
  font-family: var(--font-drip);
  font-size: clamp(20px, 2.6vw, 32px);
  margin: 0 auto clamp(40px, 9vh, 96px);
}
.hero__tagline-left { text-align: right; color: #000; }
.hero__tagline-right { text-align: left; color: #fff; }
.hero__main {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
/* both sides get equal flex space so the duck sits exactly on the split line */
.hero__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  flex: 1 1 0;
  min-width: 0;
}
.hero__word {
  font-family: var(--font-bubble);
  font-size: clamp(64px, 12vw, 195px);
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}
.hero__word--ink { color: #000; }
.hero__word--bubble { color: #fff; }
.hero__duck {
  flex: 0 0 auto;
  width: clamp(170px, 24vw, 380px);
  margin: 0 clamp(-56px, -3vw, -16px);
  animation: bob 2.6s ease-in-out infinite;
  position: relative;
  z-index: 4;
}
@keyframes bob { 0%,100%{transform:translateY(-4px)} 50%{transform:translateY(-18px)} }

.hero__socials { display: flex; gap: 16px; }
.social {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--green);
  color: #000;
  border-radius: 4px;
  transition: transform .12s ease, background .2s ease;
}
.social:nth-child(1) { transform: rotate(-8deg); }
.social:nth-child(2) { transform: rotate(5deg); }
.social:nth-child(3) { transform: rotate(-4deg); }
.social:hover { background: var(--green-bright); transform: rotate(0deg) translateY(-3px); }

.hero__ca {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid #fff;
  border-radius: 4px;
  padding: 5px 5px 5px 14px;
  max-width: 100%;
}
.hero__ca-text {
  font-family: 'Courier New', monospace;
  color: #fff;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 340px;
}

/* ================= MARQUEE ================= */
.marquee {
  background: var(--green);
  color: #000;
  overflow: hidden;
  white-space: nowrap;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 10px 0;
}
.marquee__track {
  display: inline-flex;
  animation: scroll 18s linear infinite;
}
.marquee__track span {
  font-family: var(--font-bubble);
  font-size: 30px;
  padding-right: 20px;
}
@keyframes scroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ================= SECTION TITLES ================= */
.section-title {
  font-family: var(--font-bubble);
  text-align: center;
  font-size: clamp(48px, 8vw, 96px);
  color: #000;
  text-shadow: 4px 4px 0 var(--green);
  padding: 48px 16px 8px;
}
.section-title--green {
  color: #000;
  text-shadow: 4px 4px 0 var(--green);
}

/* ================= ABOUT ================= */
.about {
  position: relative;
  background: url('assets/img/SXJVk0Wl6Q6LRPDp7wZxZxkgik.png') center top / cover no-repeat;
  padding-bottom: 120px;
  border-bottom: 40px solid #000;
}
.about__box {
  margin: 24px auto 0;
  max-width: 900px;
  background: rgba(60, 60, 60, .72);
  backdrop-filter: blur(2px);
  border-radius: 10px;
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.about__text {
  color: #f0f0f0;
  font-size: 18px;
  line-height: 1.7;
}
.about__video {
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
}
.about__video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* click-to-play facade: plain black box + single play button, no yt chrome */
.video-facade {
  width: 100%;
  height: 100%;
  background: #000;
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.video-facade__btn {
  width: 76px;
  height: 54px;
  background: linear-gradient(#3d3d3d, #1a1a1a);
  border-radius: 10px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 10px rgba(0, 0, 0, .6);
  transition: background .2s ease, transform .15s ease;
}
.video-facade:hover .video-facade__btn {
  background: linear-gradient(#4d4d4d, #222);
  transform: scale(1.06);
}
.video-facade__btn::after {
  content: '';
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

/* ================= LORE / KNOW YOUR NOOT ================= */
.lore { background: var(--white); padding-bottom: 100px; }
.lore__intro {
  text-align: center;
  font-size: 19px;
  color: #444;
  margin: 0 auto 48px;
  padding: 0 24px;
}
.lore__timeline {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.lore__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
}
.lore__year {
  font-family: var(--font-drip);
  color: var(--green-deep);
  font-size: 22px;
  text-align: right;
  line-height: 1.3;
}
.lore__body {
  position: relative;
  border-left: 3px solid #000;
  padding: 0 0 40px 30px;
}
.lore__body::before {
  content: '';
  position: absolute;
  left: -9.5px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border: 2px solid #000;
  border-radius: 50%;
}
.lore__item:last-child .lore__body { border-left-color: transparent; padding-bottom: 0; }
.lore__body p {
  font-size: 18px;
  line-height: 1.75;
  color: #222;
  max-width: 56ch;
}
.lore__cta {
  display: block;
  width: max-content;
  margin: 44px auto 0;
  font-family: var(--font-drip);
}

/* ================= MEME GALLERY ================= */
.memes { background: var(--white); padding-bottom: 120px; }
.memes__intro {
  text-align: center;
  font-size: 19px;
  color: #444;
  margin: 0 auto 40px;
  padding: 0 24px;
}
.memes__intro a { color: var(--green-deep); }
.memes__intro a:hover { text-decoration: underline; }
.memes__grid {
  columns: 4 260px;
  column-gap: 22px;
  width: min(94vw, 1400px);
  margin: 0 auto;
}
/* polaroid tiles with hand-placed tilts */
.meme {
  break-inside: avoid;
  margin: 0 0 22px;
  background: #fff;
  padding: 10px 10px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transform: rotate(var(--r, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: zoom-in;
  position: relative;
}
.meme:nth-child(4n+1) { --r: -1.6deg; }
.meme:nth-child(4n+2) { --r: 1.4deg; }
.meme:nth-child(4n+3) { --r: -.8deg; }
.meme:nth-child(4n+4) { --r: 1.8deg; }
.meme:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22);
  z-index: 2;
}
.meme img, .meme video {
  width: 100%;
  display: block;
  border-radius: 2px;
}
.meme figcaption {
  font-family: var(--font-drip);
  text-align: center;
  padding: 8px 4px 4px;
  font-size: 16px;
  color: #333;
}
.meme--video { cursor: default; }

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, .9);
  display: grid;
  place-items: center;
  padding: 4vmin;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border: 8px solid #fff;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}

/* ================= HOW TO BUY (sticky stacking cards) ================= */
.how { background: #000; padding-bottom: 18vh; }
.how .section-title { color: #fff; }
.stack {
  width: min(90vw, 1200px);
  margin: 4vh auto 0;
  display: flex;
  flex-direction: column;
  gap: 12vh;
}
/* each wrapper pins 200px from the viewport top; the next one scrolls over it */
.stack__item {
  position: sticky;
  top: 200px;
}
.card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  background: #ececea;   /* fully opaque — no see-through stacking */
  border-radius: 12px;
  padding: clamp(24px, 4vw, 56px);
  min-height: clamp(320px, 48vh, 520px);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, .55);
  transform: rotate(var(--tilt, 0deg)) scale(.97);
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
  will-change: transform;
}
.card.in-view {
  transform: rotate(var(--tilt, 0deg)) scale(1);
}
.card--tilt-a { --tilt: 4deg; background: #f4f4f2; }
.card--tilt-b { --tilt: -4deg; background: #e4e4e2; }
.card__text { text-align: center; }
.card__title {
  font-family: var(--font-drip);
  font-size: clamp(30px, 3.5vw, 46px);
  color: #2ee56b;
  margin-bottom: 14px;
}
.card__desc {
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.75;
  color: #1c1c1c;
  max-width: 46ch;
  margin: 0 auto;
}
.card__media {
  min-width: 0;
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ================= TOKENOMICS ================= */
.tokenomics { background: #000; padding-bottom: 90px; }
.tokenomics .section-title { color: #fff; text-shadow: 4px 4px 0 var(--green); }
.tk-grid {
  max-width: 1000px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 24px;
}
.tk-card {
  background: #0e0e0e;
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  justify-content: center;
}
.tk-card--wide { grid-column: 1 / -1; }
.tk-card__k {
  font-family: var(--font-drip);
  color: var(--green);
  font-size: 20px;
  text-transform: lowercase;
}
.tk-card__v {
  font-family: var(--font-bubble);
  color: #fff;
  font-size: 26px;
}
.tk-card__v--ca {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  word-break: break-all;
}

/* ================= FOOTER ================= */
.footer {
  background: var(--white);
  text-align: center;
  padding: 40px 24px 60px;
}
.footer__logo {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  border: 2px solid #000;
}
.footer__logo img { width: 100%; height: 100%; object-fit: cover; }
.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer__links a { font-family: var(--font-drip); font-size: 20px; }
.footer__links a:hover { color: var(--green); }
.footer__note { margin-top: 22px; color: #666; font-size: 14px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
  .nav { padding: 0 12px; }
  .nav__link { font-size: 14px; }
  .nav__link--about { margin-left: 2vw; }
  .nav__link--lore { margin-left: 3vw; }
  .nav__link--how { margin-left: 3vw; }
  /* top half is white on mobile, so right-side links go black too */
  .nav__link--memes { color: #111; }
  .nav__link--tok { margin-right: 2vw; color: #111; }
  .hero__split { width: 100%; height: 50%; }
  .hero__split--light { top: 0; bottom: auto; }
  .hero__split--dark { top: 50%; bottom: 0; }
  .hero__content { padding: calc(var(--nav-h) + 8px) 20px 28px; }
  /* top half is white on mobile, keep the whole tagline dark and centered */
  .hero__tagline { margin-bottom: 16px; display: block; text-align: center; }
  .hero__tagline-left, .hero__tagline-right { text-align: center; color: #111; }
  .hero__tagline-right { display: inline; margin-left: 8px; }
  .hero__main { flex-direction: column; gap: 12px; }
  .hero__word { font-size: clamp(56px, 17vw, 96px); }
  .hero__side { gap: 22px; }
  .hero__duck { width: clamp(130px, 34vw, 190px); margin: -8px 0; }
  .about__box { grid-template-columns: 1fr; }
  .stack { width: 92vw; gap: 9vh; }
  .stack__item { top: 84px; }
  .card { grid-template-columns: 1fr; min-height: auto; }
  .card__media { order: -1; max-height: 34vh; }
  .card--tilt-a { --tilt: 2.5deg; }
  .card--tilt-b { --tilt: -2.5deg; }
  .lore__item { grid-template-columns: 92px 1fr; gap: 16px; }
  .lore__year { font-size: 17px; }
  .lore__body { padding-left: 20px; }
  .memes__grid { columns: 2 150px; column-gap: 14px; }
  .meme { margin-bottom: 14px; padding: 6px 6px 4px; }
  .meme figcaption { font-size: 13px; }
  .tk-grid { grid-template-columns: 1fr; }
  .hero__ca-text { max-width: 180px; }
}
