/* ============================================================
   FOLK VALLEY CAT — pure static styles
   Monochrome palette: black / white / dark gray.
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;

  --gray-950: #0a0a0a;
  --gray-900: #141414;
  --gray-800: #1f1f1f;
  --gray-700: #2b2b2b;
  --gray-600: #4b4b4b;
  --gray-500: #6b6b6b;
  --gray-400: #9a9a9a;
  --gray-300: #c9c9c9;
  --gray-200: #e5e5e5;
  --gray-100: #f3f3f3;
  --gray-50:  #f8f8f8;

  --shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.22);
  --shadow-crest: 0 30px 80px -20px rgba(0, 0, 0, 0.4);

  --font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: #fff; }

img { display: block; max-width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--gray-700); transform: scale(1.04); }
.btn-primary:active { transform: scale(.97); }
.btn-sm { height: 2.75rem; padding: 0 1.15rem; font-size: .875rem; }
.btn-lg { padding: 0 1.75rem; height: 3.5rem; font-size: 1rem; }

/* X logo button (black circle, white glyph) */
.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease;
  flex: none;
}
.x-btn:hover { transform: scale(1.05); }
.x-btn:active { transform: scale(.97); }
.x-btn--sm { width: 2.75rem; height: 2.75rem; }
.x-btn--sm svg { width: 1.35rem; height: 1.35rem; }
.x-btn--lg { width: 3.5rem; height: 3.5rem; box-shadow: var(--shadow-soft); }
.x-btn--lg svg { width: 1.5rem; height: 1.5rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 0 1rem;
  animation: navDrop .6s ease both;
}
.nav-inner {
  max-width: 72rem;
  margin: .75rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-actions { display: flex; align-items: center; gap: .625rem; }

@keyframes navDrop {
  from { opacity: 0; transform: translateY(-80px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Page wrapper (holds the continuous columns) ---------- */
.page { position: relative; overflow: hidden; }

/* ---------- Meme waterfalls ---------- */
.meme-col {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: 20vw;
  min-width: 160px;
  max-width: 300px;
  padding: 1rem .5rem;
  opacity: .9;
  pointer-events: none;
  overflow: hidden;
  display: none; /* hidden on mobile */
}
.meme-col--left { left: 0; padding-left: 2rem; }
.meme-col--right { right: 0; padding-right: 2rem; }

.meme-track { display: flex; flex-direction: column; will-change: transform; }
.meme-track img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: .75rem;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}
.meme-track--left  { animation: colDown 40s linear infinite; }
.meme-track--right { animation: colUp 36s linear infinite; }

@keyframes colDown {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
@keyframes colUp {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

@media (min-width: 640px) {
  .meme-col { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 6rem 1.5rem 2rem;
}
.hero-bg, .grain { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; border-radius: 9999px; filter: blur(120px); }
.glow--royal {
  left: 50%; top: 18%; width: 36rem; height: 36rem;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .06);
}
.glow--gold {
  left: 50%; top: 12%; width: 22rem; height: 22rem;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .04);
  filter: blur(100px);
}
.grain {
  background-image: radial-gradient(rgba(0, 0, 0, .05) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .6;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-crest { position: relative; margin-bottom: 1.25rem; }
.crest-glow {
  position: absolute; inset: 0; z-index: -1;
  transform: scale(.9);
  border-radius: 9999px;
  background: rgba(0, 0, 0, .08);
  filter: blur(48px);
}
.floaty { animation: float 6s ease-in-out infinite; }
.hero-logo {
  height: clamp(11rem, 34vh, 22rem); width: auto;
  filter: grayscale(1) drop-shadow(0 24px 40px rgba(0, 0, 0, .25));
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  text-wrap: balance;
}
.shimmer {
  background: linear-gradient(110deg, #111 0%, #555 35%, #b0b0b0 50%, #555 65%, #111 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: shimmer 6s linear infinite;
}
.hero-sub {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  text-wrap: balance;
}
.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  width: 100%;
}
.hero-cta .btn-lg { width: 100%; max-width: 22rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Treasury ---------- */
.treasury {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem;
}
.treasury-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 28rem; height: 28rem;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background: rgba(0, 0, 0, .05);
  filter: blur(120px);
  pointer-events: none;
}
.treasury-inner {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
}
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--gray-500);
}
.section-title {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-lead {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--gray-600);
  text-wrap: balance;
}

/* Banknote showroom */
.note-wrap { margin-top: 3.5rem; }
.note-box {
  position: relative;
  display: block;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  background: #fff;
  box-shadow: var(--shadow-crest);
  cursor: pointer;
  padding: 0;
}
.note-shadow {
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: -.75rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, .2);
  filter: blur(24px);
}
.note-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease-in-out;
}
.note-box img.is-active { opacity: 1; }

.note-dots {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
  gap: .5rem;
}
.note-dots button {
  height: .375rem;
  width: .375rem;
  border: none;
  border-radius: 9999px;
  background: var(--gray-300);
  cursor: pointer;
  transition: all .3s ease;
}
.note-dots button:hover { background: var(--gray-400); }
.note-dots button.is-active { width: 1.75rem; background: var(--ink); }

/* ---------- Reveal animations ---------- */
.reveal-pop { animation: revealPop .9s cubic-bezier(.21,.5,.25,1) both; }
@keyframes revealPop {
  from { opacity: 0; transform: scale(.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.reveal-up { opacity: 0; animation: revealUp .7s cubic-bezier(.21,.5,.25,1) both; animation-delay: var(--d, 0s); }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.21,.5,.25,1), transform .7s cubic-bezier(.21,.5,.25,1);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .nav-brand { font-size: 1.75rem; }
  .hero-logo { height: clamp(13rem, 38vh, 28rem); }
  .hero-title { font-size: 3.5rem; }
  .hero-sub { font-size: 1.25rem; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn-lg { width: auto; }
  .section-title { font-size: 2.5rem; }
}
@media (min-width: 768px) {
  .hero-logo { height: clamp(14rem, 42vh, 32rem); }
  .hero-title { font-size: 4.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
