:root {
  --bg: #ffffff;
  --ink: #000000;
  --cream: #ead1a3;
  --yellow: #ebd22f;
  --red: #df5656;
  --grey: #d4d4d4;
  --radius: 999px;
  --font-display: "Bowlby One", sans-serif;
  --font-accent: "Knewave", sans-serif;
  --font-body: "Inter Tight", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

em {
  font-style: normal;
  font-family: var(--font-accent);
}

/* ============ NAV ============ */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.5rem;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
  border-bottom: 3px solid var(--ink);
}

.nav-logo {
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.nav-logo-gm {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  transform: rotate(-6deg);
  display: inline-block;
}

.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-links a:hover {
  text-decoration: underline wavy 2px;
  text-underline-offset: 5px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.7rem 1.7rem;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 4px 5px 0 var(--ink);
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}

.btn-solid:hover {
  box-shadow: 4px 5px 0 var(--grey);
}

.btn-outline {
  background: var(--bg);
  color: var(--ink);
}

.btn-big {
  font-size: 1.15rem;
  padding: 0.9rem 2.2rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 7rem 1.5rem 6rem;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: url("../images/bg/bg-pc.jpg");
  background-size: cover;
  background-position: center top;
}

/* soft white wash so the headline stays readable over the art */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 55%,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.15) 100%
  );
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero-line-1 {
  display: block;
  font-size: clamp(2rem, 6vw, 4.5rem);
}

.hero-line-2 {
  display: block;
  font-size: clamp(3.5rem, 12vw, 9.5rem);
  letter-spacing: -0.01em;
}

.hero-line-2 em {
  font-family: var(--font-display);
  position: relative;
}

.hero-line-2 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 0.12em;
  background: var(--yellow);
  z-index: -1;
  transform: rotate(-1deg);
}

.hero-sub {
  max-width: 560px;
  margin: 2rem auto 2.5rem;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

/* googly eyes */
.googly-pair {
  display: inline-flex;
  gap: 0.15em;
  margin-left: 0.3em;
  vertical-align: baseline;
}

.googly {
  width: 0.62em;
  height: 0.62em;
  background: var(--bg);
  border: 0.06em solid var(--ink);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pupil {
  width: 42%;
  height: 42%;
  background: var(--ink);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* sticker */
.sticker {
  position: relative;
  display: inline-block;
  transform: rotate(-8deg);
  color: var(--red);
}

.sticker svg {
  width: 110px;
  height: 55px;
  display: block;
}

.sticker-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  transform: rotate(-4deg);
}

/* doodles */
.doodle {
  position: absolute;
  color: var(--ink);
  pointer-events: none;
}

.cloud {
  width: clamp(160px, 22vw, 320px);
  animation: floaty 7s ease-in-out infinite;
}

/* hero art background has its own clouds/doodles — hide the drawn ones there */
.hero .cloud,
.hero .sparkle,
.hero .stonks {
  display: none;
}

.cloud-1 { top: 9%; left: -3%; }
.cloud-2 { top: 16%; right: -4%; animation-delay: -3.5s; }
.cloud-3 { top: 4%; right: 4%; width: clamp(120px, 15vw, 220px); }

.sparkle {
  width: clamp(18px, 2.5vw, 34px);
  animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle-1 { top: 26%; left: 16%; }
.sparkle-2 { top: 20%; right: 22%; animation-delay: -1.3s; }

.stonks {
  width: clamp(80px, 10vw, 150px);
  bottom: 12%;
  left: 8%;
  transform: rotate(4deg);
}

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

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.6) rotate(20deg); opacity: 0.5; }
}

.wiggle {
  animation: wiggle 3.2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(-2.5deg); }
  16% { transform: rotate(2deg); }
  24% { transform: rotate(0deg); }
}

/* ============ TICKER ============ */
.ticker {
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 0.65rem 0;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTIONS ============ */
.section {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 5.5rem 2rem;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title em {
  position: relative;
  white-space: nowrap;
}

.section-sub {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.section-dark {
  max-width: none;
  background: var(--ink);
  color: var(--bg);
}

.section-dark .section-title em {
  color: var(--yellow);
}

/* about cards */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.about-card {
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 2rem 1.5rem;
  background: var(--bg);
  transition: transform 0.15s, box-shadow 0.15s;
}

.about-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
  box-shadow: 6px 7px 0 var(--ink);
}

.about-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  color: var(--ink);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* memenomics */
.nomics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1080px;
  margin: 3rem auto 0;
}

.nomics-card {
  border: 3px solid var(--bg);
  border-radius: 22px;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s;
}

.nomics-card:hover {
  transform: rotate(-1.5deg) scale(1.03);
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--yellow);
}

.nomics-value {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
}

.nomics-label {
  font-size: 0.95rem;
}

/* chart */
.chart-frame {
  max-width: 760px;
  margin: 0 auto 1.75rem;
  border: 3px solid var(--ink);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 7px 8px 0 var(--ink);
  background: var(--bg);
}

.chart-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

@media (max-width: 720px) {
  .chart-frame iframe {
    height: 340px;
  }
}

/* gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 2.25rem 2rem;
  margin-top: 1rem;
}

.polaroid {
  background: var(--bg);
  border: 3px solid var(--ink);
  border-radius: 6px;
  padding: 0.9rem 0.9rem 0.6rem;
  box-shadow: 6px 7px 0 var(--ink);
  transition: transform 0.2s;
}

.tilt-l { transform: rotate(-2.5deg); }
.tilt-r { transform: rotate(2deg); }

.polaroid:hover {
  transform: rotate(0deg) scale(1.04);
}

.polaroid img {
  width: 100%;
  display: block;
  border-radius: 3px;
}

.polaroid figcaption {
  font-family: var(--font-accent);
  padding: 0.6rem 0 0.2rem;
  font-size: 1.05rem;
}

.placeholder-box {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed var(--grey);
  border-radius: 3px;
  color: var(--grey);
}

.placeholder-box svg {
  width: 48px;
  height: 48px;
}

/* memeify */
.memeify-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.dropzone {
  width: min(420px, 90vw);
  min-height: 220px;
  border: 3px dashed var(--ink);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  padding: 1.5rem;
  transition: transform 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.dragover {
  background: #fdf6e3;
  transform: rotate(-0.5deg) scale(1.02);
}

.dropzone svg {
  width: 52px;
  height: 52px;
  color: var(--ink);
}

.dropzone-text {
  font-family: var(--font-accent);
  font-size: 1.15rem;
  text-align: center;
  line-height: 1.3;
}

.dropzone-text small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: #777;
}

.dropzone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memeify-status {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  min-height: 1.6em;
}

.memeify-result {
  max-width: min(560px, 92vw);
}

#meme-go:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* community */
.community {
  padding-bottom: 6rem;
}

.community-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.ca-line {
  font-weight: 600;
}

.ca {
  font-family: monospace;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.25rem 0.75rem;
}

/* footer */
.footer {
  border-top: 3px solid var(--ink);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 720px) {
  .hero {
    background-image: url("../images/bg/bg-mobile.jpg");
    background-position: center;
  }

  .nav {
    padding: 0.9rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 5rem;
  }

  .stonks {
    display: none;
  }
}
