/* =========================================================================
   Anime Bitcoin — $ABTC
   Hand-written CSS port of the TanStack/Tailwind build in ../src.

   Colour tokens carry a hex fallback first and the authoritative oklch value
   second, so older engines still get the right brand colours.

   Breakpoints match the Tailwind scale the original used:
     sm = 40rem  (640px)
     md = 48rem  (768px)
     lg = 64rem  (1024px)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Fonts — bundled locally, so the page renders identically offline
   ---------------------------------------------------------------------- */

@font-face {
  font-family: "Archivo Black";
  src: url("assets/fonts/ArchivoBlack-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("assets/fonts/Barlow-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* -------------------------------------------------------------------------
   2. Design tokens
   ---------------------------------------------------------------------- */

:root {
  --radius: 0.375rem;

  --font-display: "Archivo Black", sans-serif;
  --font-sans: "Barlow", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Hex fallbacks first, oklch (authoritative) second. */
  --background: #fbf9f3;
  --foreground: #0a0a0a;
  --primary: #f87f00;
  --primary-foreground: #0a0a0a;
  --secondary: #ffde70;
  --muted-foreground: #4e4640;
  --gold: #f2bc00;
  --rainbow-pink: #f95577;
  --rainbow-purple: #9c40bf;
  --rainbow-green: #45ba50;
  --rainbow-cyan: #00bbcb;

  --background: oklch(0.982 0.008 90);
  --foreground: oklch(0.145 0 0);
  --primary: oklch(0.72 0.183 55.5);
  --primary-foreground: oklch(0.145 0 0);
  --secondary: oklch(0.91 0.135 91);
  --muted-foreground: oklch(0.4 0.015 55);
  --gold: oklch(0.82 0.17 88);
  --rainbow-pink: oklch(0.68 0.2 12);
  --rainbow-purple: oklch(0.55 0.2 315);
  --rainbow-green: oklch(0.7 0.18 145);
  --rainbow-cyan: oklch(0.72 0.13 205);
}

/* -------------------------------------------------------------------------
   3. Reset
   ---------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 600;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}

a {
  color: inherit;
}

/* -------------------------------------------------------------------------
   4. Page shell
   ---------------------------------------------------------------------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
}

/* -------------------------------------------------------------------------
   5. Header
   ---------------------------------------------------------------------- */

.header {
  position: relative;
  z-index: 30;
  margin-inline: auto;
  display: flex;
  height: 5rem;
  max-width: 1440px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--foreground);
  padding-inline: 1.25rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.header__avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 9999px;
  border: 2px solid var(--foreground);
  background: var(--primary);
}

.header__avatar img {
  width: 170%;
  height: 170%;
  max-width: none;
  transform: translate(-45%, -3%);
  object-fit: contain;
}

.wordmark {
  display: block;
  line-height: 1;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
}

.wordmark__ticker {
  margin-left: 0.5rem;
  vertical-align: top;
  font-size: 0.625rem;
  font-weight: 800;
  color: var(--primary);
}

.header__nav {
  display: none;
}

.nav__link {
  border-bottom: 2px solid transparent;
  padding-block: 0.75rem;
  text-decoration: none;
}

.nav__link:hover,
.nav__link:focus-visible {
  border-bottom-color: var(--primary);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--foreground);
  background: var(--primary);
  color: var(--foreground);
  padding: 0.375rem 0.75rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--foreground);
  transition: transform 0.15s ease;
}

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

.nav__cta:active {
  transform: translateY(2px);
}

.nav__cta img {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
}

/* -------------------------------------------------------------------------
   6. Buttons and icons
   ---------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn--ink {
  border: 2px solid var(--primary);
  background: var(--foreground);
  color: var(--background);
}

.btn--ink:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn--sm {
  height: 2rem;
  padding-inline: 0.75rem;
  font-size: 0.75rem;
}

.btn--lg {
  height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.btn--fomo {
  height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid var(--foreground);
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 4px 4px 0 var(--foreground);
}

.btn--fomo:hover {
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--foreground);
}

.btn--fomo:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 var(--foreground);
}

.btn--fomo img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius);
}

.btn--chart {
  height: 3.25rem;
  padding-inline: 1.75rem;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid var(--foreground);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  box-shadow: 4px 4px 0 var(--foreground);
}

.btn--chart:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 var(--foreground);
}

.btn--chart:active {
  transform: translateY(2px);
  box-shadow: 2px 2px 0 var(--foreground);
}

.btn--chart img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius);
}

.btn--sm .btn__label {
  display: none;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon--check {
  display: none;
}

.is-copied .icon--check {
  display: block;
}

.is-copied .icon:not(.icon--check) {
  display: none;
}

/* -------------------------------------------------------------------------
   7. Hero
   ---------------------------------------------------------------------- */

.hero {
  position: relative;
  margin-inline: auto;
  display: grid;
  max-width: 1440px;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
}

.hero__copy {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  margin: 0 0 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--foreground);
  background: var(--secondary);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--foreground);
}

.badge .icon {
  width: 0.875rem;
  height: 0.875rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 400;
  line-height: 0.79;
  text-transform: uppercase;
}

.hero__title-accent {
  color: var(--primary);
  -webkit-text-stroke: 2px var(--foreground);
}

.hero__ticker {
  margin: 1.75rem 0 0;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.hero__ticker-text {
  font-family: var(--font-display);
  font-size: 2.25rem;
}

.hero__ticker-bar {
  margin-bottom: 0.25rem;
  height: 0.75rem;
  width: 5rem;
  background: var(--rainbow-pink);
}

.ca {
  margin-top: 1rem;
  display: inline-flex;
  width: 100%;
  max-width: 30rem;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--foreground);
  border-radius: var(--radius);
  background: var(--secondary);
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.25;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--foreground);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.ca:active {
  transform: translateY(2px);
  box-shadow: none;
}

.ca__label {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* The address is a fixed 44 characters and must read as one unbroken row, so
   the type scales with the viewport instead of wrapping. The clamp ceiling
   matches the surrounding mono text; the floor keeps it legible on a 320px
   phone, where a full Solana address simply cannot render at 14px. */
.ca__value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
  font-size: clamp(0.5625rem, 2.2vw, 0.875rem);
}

.ca__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.ca.is-copied .ca__icon.icon--check {
  color: var(--primary);
}

.hero__payoff {
  margin: 2rem 0 0;
  max-width: 36rem;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.hero__payoff-accent {
  color: var(--primary);
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

.hero__art {
  position: relative;
  margin-top: 2rem;
  display: flex;
  min-height: 500px;
  align-items: center;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  left: 9%;
  top: 12%;
  width: 72%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  filter: blur(64px);
}

.sparkle {
  position: absolute;
  animation: sparkle 2.8s ease-in-out infinite;
}

.sparkle--star {
  left: 12%;
  top: 22%;
  font-size: 2.25rem;
  color: var(--gold);
}

.sparkle--btc {
  right: 12%;
  top: 18%;
  font-size: 1.875rem;
  color: var(--primary);
  animation-delay: 700ms;
}

.sparkle--heart {
  bottom: 25%;
  right: 6%;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--rainbow-cyan);
  animation-delay: 1.2s;
}

.hero__click {
  position: absolute;
  bottom: 15%;
  left: 8%;
  transform: rotate(12deg);
  border: 2px solid var(--foreground);
  background: var(--rainbow-green);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
}

.hero__mascot {
  position: relative;
  z-index: 10;
  max-height: 78vh;
  width: 100%;
  max-width: 710px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(18px 22px 0 var(--primary));
  animation: mascot-float 6s ease-in-out infinite;
}

/* -------------------------------------------------------------------------
   8. Ticker band
   ---------------------------------------------------------------------- */

.ticker {
  position: relative;
  z-index: 20;
  transform: rotate(-1deg);
  overflow: hidden;
  border-top: 2px solid var(--foreground);
  border-bottom: 2px solid var(--foreground);
  background: var(--foreground);
  color: var(--background);
  padding-block: 1rem;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 22s linear infinite;
}

.ticker__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
}

.ticker__item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding-inline: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  text-transform: uppercase;
}

.ticker__dot {
  margin-left: 2.5rem;
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  transform: rotate(45deg);
  background: var(--primary);
}

.ticker__dot--cyan {
  background: var(--rainbow-cyan);
}

/* -------------------------------------------------------------------------
   9. Manifesto
   ---------------------------------------------------------------------- */

.manifesto {
  background: var(--primary);
  padding: 6rem 1.25rem;
}

.manifesto__grid {
  margin-inline: auto;
  display: grid;
  max-width: 1300px;
  gap: 2rem;
}

.manifesto__kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
}

.manifesto__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.manifesto__title-invert {
  color: var(--background);
}

.manifesto__card-wrap {
  display: flex;
  align-items: flex-end;
}

.manifesto__card {
  border: 3px solid var(--foreground);
  background: var(--background);
  padding: 1.75rem;
  box-shadow: 9px 9px 0 var(--foreground);
}

.manifesto__card-title {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
}

.manifesto__card-accent {
  color: var(--primary);
}

.rainbow {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
}

.rainbow i {
  height: 0.5rem;
  flex: 1;
}

.rainbow i:nth-child(1) {
  background: var(--rainbow-pink);
}

.rainbow i:nth-child(2) {
  background: var(--rainbow-purple);
}

.rainbow i:nth-child(3) {
  background: var(--rainbow-green);
}

.rainbow i:nth-child(4) {
  background: var(--rainbow-cyan);
}

.rainbow i:nth-child(5) {
  background: var(--gold);
}

/* -------------------------------------------------------------------------
   10. Gallery
   ---------------------------------------------------------------------- */

.gallery {
  background: var(--background);
  padding: 6rem 1.25rem;
}

.gallery__inner {
  margin-inline: auto;
  max-width: 1300px;
}

.gallery__kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.gallery__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 0.92;
  text-transform: uppercase;
}

.gallery__title-accent {
  color: var(--primary);
}

.gallery__grid {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--foreground);
  background: var(--secondary);
  box-shadow: 8px 8px 0 var(--foreground);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.gallery__item:nth-child(even) {
  background: var(--primary);
}

.gallery__item:hover {
  transform: translateY(-4px);
  box-shadow: 12px 12px 0 var(--foreground);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.gallery__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 3px solid var(--foreground);
  border-right: 3px solid var(--foreground);
  background: var(--background);
  padding: 0.5rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------------
   11. Rewards
   ---------------------------------------------------------------------- */

.rewards {
  background: var(--foreground);
  color: var(--background);
  padding: 6rem 1.25rem;
}

.rewards__inner {
  margin-inline: auto;
  max-width: 1300px;
  text-align: center;
}

.rewards__icon {
  display: block;
  margin: 0 auto 1.75rem;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--primary);
}

.rewards__title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.rewards__accent {
  color: var(--primary);
}

.rewards__sub {
  margin: 1.75rem auto 0;
  max-width: 42rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: rgb(251 249 243 / 0.7);
}

/* -------------------------------------------------------------------------
   12. Footer
   ---------------------------------------------------------------------- */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  border-top: 2px solid var(--primary);
  background: var(--foreground);
  color: var(--background);
  padding: 2rem 1.25rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.footer__social:hover,
.footer__social:focus-visible {
  color: var(--primary);
}

.footer__social .icon,
.footer__mark {
  width: 1.125rem;
  height: 1.125rem;
}

.footer__mark {
  border-radius: 0.25rem;
}

.footer__note {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: rgb(251 249 243 / 0.6);
}

/* -------------------------------------------------------------------------
   13. Keyframes
   ---------------------------------------------------------------------- */

@keyframes mascot-float {
  0%,
  100% {
    transform: translateY(0) rotate(-0.35deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.35deg);
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.75) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.12) rotate(16deg);
  }
}

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

/* -------------------------------------------------------------------------
   14. Breakpoints
   ---------------------------------------------------------------------- */

@media (min-width: 40rem) {
  .header {
    padding-inline: 2rem;
  }

  .btn--sm .btn__label {
    display: inline;
  }

  .hero {
    padding-inline: 2rem;
  }

  .hero__ticker-text {
    font-size: 3.75rem;
  }

  .hero__ticker-bar {
    width: 7rem;
  }

  .ca {
    font-size: 0.8125rem;
  }

  .hero__payoff {
    font-size: 1.875rem;
  }

  .hero__actions {
    width: auto;
    flex-direction: row;
    align-items: center;
  }

  .ticker__item {
    font-size: 1.5rem;
  }

  .manifesto,
  .gallery,
  .rewards {
    padding-inline: 2rem;
  }

  .manifesto__title,
  .gallery__title,
  .rewards__title {
    font-size: 4.5rem;
  }

  .manifesto__card {
    padding: 2.5rem;
  }

  .manifesto__card-title {
    font-size: 3rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    flex-direction: row;
    padding-inline: 2rem;
  }
}

@media (min-width: 48rem) {
  .header__nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    font-size: 0.875rem;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (min-width: 64rem) {
  .header {
    padding-inline: 3rem;
  }

  /* min-height, never height: the hero should fill the viewport but must be
     free to grow when the copy column is taller than the space available.
     With a fixed height, a short laptop viewport pushed the buttons out of the
     section and the ticker band painted on top of them. */
  .hero {
    min-height: clamp(680px, calc(100svh - 8rem), 880px);
    grid-template-columns: 0.92fr 1.08fr;
    padding: 3rem 3rem 4rem;
  }

  .hero__copy {
    padding-bottom: 2rem;
  }

  .hero__art {
    margin-top: 0;
    min-height: 720px;
  }

  .manifesto,
  .gallery,
  .rewards {
    padding-inline: 3rem;
  }

  .manifesto__grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .manifesto__title {
    font-size: 6rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* -------------------------------------------------------------------------
   15. Focus, small phones, reduced motion
   ---------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
.ca:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 22.5rem) {
  .hero__title {
    font-size: 3.25rem;
  }

  .hero__ticker-text {
    font-size: 1.75rem;
  }

  .manifesto__title,
  .gallery__title,
  .rewards__title {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mascot,
  .sparkle,
  .ticker__track {
    animation: none;
  }

  .btn,
  .nav__cta,
  .ca,
  .gallery__item {
    transition: none;
  }
}
