/* ============================================================
   GOLDEN KITTY — black/gold luxury with a playful twist
   Product Hunt award-show energy × Robinhood dark fintech.
   All brand values live in this token block.
   ============================================================ */
:root {
  color-scheme: dark;

  --bg: #0b0a07;
  --surface: #15120a;
  --surface-2: #1e1810;
  --text: #f8f3e6;
  --muted: #b7ab8c;
  --faint: #6d654d;

  --gold: #f2c94c;
  --gold-light: #ffe9a3;
  --gold-deep: #a97614;
  --foil: linear-gradient(115deg, #8a6210 0%, #f2c94c 28%, #fff3c4 50%, #f2c94c 72%, #8a6210 100%);
  --accent-contrast: #241a02;

  --lime: #ccff00;   /* Robinhood chain chip only */
  --coral: #ff6154;  /* playful upvote nod */

  --border: rgb(242 201 76 / 0.24);
  --border-soft: rgb(242 201 76 / 0.12);

  --radius-lg: 22px;
  --radius-md: 12px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow: 0 18px 50px rgb(0 0 0 / 0.55);
  --glow: 0 0 70px rgb(242 201 76 / 0.2);

  --section-pad-block: clamp(52px, 8vw, 104px);
  --section-pad-inline: clamp(20px, 6vw, 82px);
  --content-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, #1b1607 0%, var(--bg) 55%)
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

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

img {
  max-width: 100%;
}

.site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* ---------- Foil text ---------- */

.foil {
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 26px rgb(242 201 76 / 0.16));
}

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  min-height: 66px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 10px clamp(14px, 4vw, 26px);
  border-bottom: 1px solid var(--border-soft);
  background: rgb(11 10 7 / 0.82);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 5vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand img {
  width: clamp(34px, 9vw, 42px);
  height: clamp(34px, 9vw, 42px);
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgb(242 201 76 / 0.35));
}

.brand span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.socials {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(8px, 2.4vw, 12px);
}

.social-button {
  display: grid;
  width: clamp(36px, 10vw, 40px);
  height: clamp(36px, 10vw, 40px);
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--surface);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.social-button:hover {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgb(242 201 76 / 0.28);
  transform: translateY(-2px);
}

.social-button img {
  width: 52%;
  height: 52%;
  object-fit: contain;
}

/* ---------- Type helpers ---------- */

.kicker {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  margin: 0 0 14px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.kicker::before {
  content: "✦";
  font-style: normal;
  font-size: 0.85em;
}

.kicker .upvote {
  color: var(--coral);
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
}

.kicker:has(.upvote)::before {
  content: none;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 9.2vw, 7.2rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.7rem);
  font-weight: 900;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: var(--content-max);
  margin: 0 auto;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(36px, 5vw, 68px) var(--section-pad-inline);
}

.hero-art {
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: min(440px, 100%);
}

.hero-aura {
  position: absolute;
  inset: -12%;
  background: radial-gradient(
    closest-side,
    rgb(242 201 76 / 0.32),
    rgb(242 201 76 / 0.1) 48%,
    transparent 72%
  );
  pointer-events: none;
}

.hero-kitty {
  position: relative;
  z-index: 1;
  height: min(62vh, 560px);
  width: auto;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 0 46px rgb(242 201 76 / 0.32));
  transition: transform 260ms ease;
}

.hero-art:hover .hero-kitty {
  transform: rotate(0.5deg) scale(1.015);
}

.chain-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  color: var(--lime);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.chain-note img {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.float-badge {
  position: absolute;
  z-index: 2;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--foil);
  color: var(--accent-contrast);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.5);
}

.fb-1 {
  top: -15px;
  right: 26px;
  transform: rotate(5deg);
}

.fb-2 {
  top: 14px;
  left: 14px;
  transform: rotate(-6deg);
}

.tagline {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
}

.hero-copy {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, filter 160ms ease;
}

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

.button.primary {
  border: none;
  background: var(--foil);
  color: var(--accent-contrast);
  box-shadow: 0 8px 28px rgb(242 201 76 / 0.28);
}

.button.primary:hover {
  filter: brightness(1.06);
}

.button.ghost {
  background: transparent;
  color: var(--text);
}

.button.ghost:hover {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgb(242 201 76 / 0.2);
}

.button.copy-ca {
  cursor: pointer;
  width: fit-content;
}

/* ---------- Contract ---------- */

.contract-callout {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: var(--content-max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 1.2fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  padding: var(--section-pad-block) var(--section-pad-inline);
  border-top: 1px solid var(--border-soft);
}

.contract-copy p:not(.kicker) {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.4;
}

.contract-panel {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.contract-value {
  width: min(100%, 680px);
  padding: clamp(16px, 3vw, 24px);
  overflow-wrap: anywhere;
  border: 1px dashed rgb(242 201 76 / 0.5);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--gold-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.copy-status {
  min-height: 1.2em;
  margin: 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
}

.copy-fallback {
  position: fixed;
  left: -9999px;
  opacity: 0;
}

/* ---------- About ---------- */

.about {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: var(--content-max);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  padding: var(--section-pad-block) var(--section-pad-inline);
  border-top: 1px solid var(--border-soft);
}

.about-copy p:not(.kicker) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.32rem);
  font-weight: 500;
  line-height: 1.55;
}

.about-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow), var(--glow);
  transform: rotate(1.8deg);
  transition: transform 220ms ease;
}

.about-art:hover {
  transform: rotate(0.4deg);
}

.about-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Section heading row (used by relics) ---------- */

.meme-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 40px);
}

/* ---------- Marquee ribbon ---------- */

.marquee {
  position: relative;
  z-index: 1;
  padding-block: clamp(30px, 5vw, 46px);
  overflow: hidden;
}

.marquee-inner {
  margin-inline: -3vw;
  overflow: hidden;
  background: var(--foil);
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.5);
  transform: rotate(-1.4deg);
}

.marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 30px;
  padding: 14px 28px;
  animation: marquee-slide 28s linear infinite;
}

.marquee-track span {
  flex: 0 0 auto;
  color: #1a1403;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.9rem);
  font-weight: 900;
  line-height: 1;
}

.marquee-track .sep {
  color: #7a5a0e;
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 400;
}

.marquee-track img {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 7px;
  border-radius: 999px;
  background: #14100a;
  object-fit: contain;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  z-index: 1;
  padding: 60px 40px 36px;
  background: #080704;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.site-footer h2 {
  margin: 0 0 20px;
  font-size: 34px;
}

.disclaimer {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}

.footer-links a {
  display: inline-flex;
  min-width: 132px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.footer-links a:hover {
  border-color: var(--gold);
  color: var(--text);
}

.site-footer > p:last-child {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Legal pages ---------- */

.legal-page {
  min-height: calc(100vh - 190px);
  padding: clamp(18px, 5vw, 52px);
}

.legal-nav {
  max-width: 940px;
  margin: 0 auto 22px;
}

.legal-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.legal-nav a:hover {
  border-color: var(--gold);
}

.legal-page article {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.legal-page h1 {
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  line-height: 0.95;
  margin: 0 0 14px;
}

.legal-page h2 {
  margin: 32px 0 12px;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.05;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.08rem);
  font-weight: 400;
  line-height: 1.6;
}

.legal-page p {
  margin: 0 0 16px;
}

.legal-date {
  margin-bottom: 28px;
}

.legal-page ul {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 10px;
}

.legal-page article a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* ---------- Animation ---------- */

@keyframes marquee-slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .hero-art {
    width: min(340px, calc(100vw - 48px));
  }

  .hero-kitty {
    height: auto;
    width: min(280px, 68vw);
  }

  .contract-callout,
  .about {
    grid-template-columns: 1fr;
  }

  .about-art {
    max-width: 440px;
  }

  .meme-gallery-heading {
    display: block;
  }

  .meme-gallery-heading h2 {
    margin-top: 14px;
  }
}

@media (max-width: 460px) {
  .hero {
    padding-inline: 16px;
  }

  .button {
    width: 100%;
  }

  .button.copy-ca {
    width: 100%;
  }

  .contract-panel {
    justify-items: stretch;
  }
}

/* ---------- Tweet callout ---------- */

.tweet-callout {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: var(--section-pad-block) var(--section-pad-inline);
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.tweet-card {
  position: relative;
  margin: clamp(24px, 4vw, 38px) auto 0;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow), var(--glow);
  text-align: left;
}

.tweet-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.tweet-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(204 255 0 / 0.35);
  border-radius: 999px;
  background: rgb(204 255 0 / 0.1);
}

.tweet-avatar img {
  width: 24px;
  height: 24px;
}

.tweet-id {
  display: grid;
  line-height: 1.2;
}

.tweet-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.tweet-handle {
  color: var(--muted);
  font-size: 0.92rem;
}

.tweet-text {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--gold-light);
}

.tweet-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tweet-links {
  display: inline-flex;
  gap: 16px;
}

.tweet-links a {
  color: var(--gold);
  font-weight: 700;
}

.tweet-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Receipts ---------- */

.receipts {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad-block) var(--section-pad-inline);
  border-top: 1px solid var(--border-soft);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 22px);
  margin-top: clamp(24px, 4vw, 38px);
}

.receipt-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.receipt-card:hover {
  border-color: var(--gold);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.receipt-year {
  justify-self: start;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.receipt-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.15;
}

.receipt-src {
  margin: 0;
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 600;
}

.receipt-quote {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-style: italic;
  line-height: 1.4;
}

/* ---------- Relics ---------- */

.relics {
  position: relative;
  z-index: 1;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--section-pad-block) var(--section-pad-inline);
  border-top: 1px solid var(--border-soft);
}

.relic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 26px);
}

.relic-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-0.8deg);
  transition: transform 180ms ease, border-color 180ms ease;
}

.relic-card:nth-child(2) {
  transform: rotate(0.9deg);
}

.relic-card:nth-child(3) {
  transform: rotate(-0.4deg);
}

.relic-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
}

.relic-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.relic-card figcaption {
  padding: 13px 18px 16px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.35;
}

/* ---------- Inline links in lore ---------- */

.about-copy a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.about-copy a:hover {
  color: var(--gold-light);
}

/* ---------- Marquee medallion fix: keep the ears ---------- */

.marquee-track img {
  width: 58px;
  height: 58px;
  padding: 8px;
}

/* ---------- Lore figure caption ---------- */

.about-art figcaption {
  padding: 12px 18px 15px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.35;
}

/* ---------- New sections: responsive ---------- */

@media (max-width: 900px) {
  .receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .relic-grid {
    grid-template-columns: 1fr;
  }

  .tweet-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .receipt-grid {
    grid-template-columns: 1fr;
  }
}
