:root {
  --coffee: #3d2415;
  --espresso: #2a160c;
  --mocha: #5c3a1e;
  --latte: #f5e6d3;
  --foam: #fff8ee;
  --gold: #f5c542;
  --gold-deep: #d4a017;
  --chart: #3ddc84;
  --chart-deep: #1faa5a;
  --cyan: #3ecbff;
  --ink: #1a0f08;
  --blush: #ff6b8b;
  --shadow: 0 18px 40px rgba(20, 8, 2, 0.45);
  --ink-border: 4px solid var(--ink);
  --radius: 28px;
  --font-display: "Bangers", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--foam);
  background:
    radial-gradient(ellipse 90% 60% at 10% 0%, rgba(245, 197, 66, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 20%, rgba(61, 220, 132, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 70% at 50% 100%, rgba(62, 203, 255, 0.08), transparent 55%),
    linear-gradient(165deg, #4a2c16 0%, var(--coffee) 35%, var(--espresso) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}

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

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

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-nav.scrolled {
  background: rgba(42, 22, 12, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 2px 2px 0 var(--ink);
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.35));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--latte);
  padding: 0.35rem 0.2rem;
  transition: color 0.2s ease;
}

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

.nav-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: var(--ink-border);
  border-radius: 14px;
  background: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.nav-burger span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* —— Hero: full art plane, content sitting on it —— */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  isolation: isolate;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--espresso);
  overflow: hidden;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 15, 8, 0.55) 0%, rgba(26, 15, 8, 0.15) 32%, rgba(26, 15, 8, 0.2) 55%, rgba(26, 15, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(26, 15, 8, 0.55) 0%, transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, 92vw);
  margin: 0 auto 0 clamp(1rem, 6vw, 5rem);
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1rem, 4vw, 2rem) clamp(2.5rem, 6vh, 4rem);
  justify-self: start;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--chart);
  margin-bottom: 0.75rem;
}

.hero-kicker img {
  width: 22px;
  height: 22px;
}

.hero h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-shadow:
    3px 3px 0 var(--ink),
    -1px -1px 0 var(--ink),
    0 0 24px rgba(245, 197, 66, 0.35);
}

.hero-symbol {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.85rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--chart);
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--ink);
}

.hero-bio {
  margin: 0 0 1.4rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 700;
  color: var(--foam);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.ca-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
  margin-bottom: 1.15rem;
}

.ca-box {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  background: rgba(245, 230, 211, 0.95);
  color: var(--ink);
  border: var(--ink-border);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 0;
}

.ca-box code {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(0.72rem, 1.8vw, 0.88rem);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.2rem;
  border: var(--ink-border);
  border-radius: 16px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.btn-copy {
  background: var(--gold);
  color: var(--ink);
}

.btn-buy {
  background: var(--chart);
  color: var(--ink);
}

.btn-chart {
  background: var(--cyan);
  color: var(--ink);
}

.btn-x {
  background: var(--foam);
  color: var(--ink);
}

.btn-ghost {
  background: rgba(245, 230, 211, 0.15);
  color: var(--foam);
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* —— Shared section shell: straight comic plates —— */
.section {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.plate {
  background: linear-gradient(160deg, rgba(245, 230, 211, 0.97), rgba(232, 205, 168, 0.96));
  color: var(--ink);
  border: 5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 8px 8px 0 rgba(0, 0, 0, 0.35);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  overflow: visible;
}

.plate h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  letter-spacing: 0.04em;
  color: var(--mocha);
  text-shadow: 2px 2px 0 rgba(245, 197, 66, 0.55);
  line-height: 1;
}

.plate .lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: #3a2416;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* —— About —— */
.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.about-copy p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: #3a2416;
}

.about-visual {
  display: grid;
  gap: 1rem;
}

.frame {
  background: var(--espresso);
  border: 5px solid var(--ink);
  border-radius: 22px;
  padding: 0.55rem;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  background: #1a0f08;
}

.banner-strip {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.banner-strip .frame {
  padding: 0.4rem;
}

.banner-strip img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* —— How to buy —— */
.howto {
  padding-top: 0.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step {
  background: var(--foam);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 1.15rem 1.1rem 1.25rem;
  box-shadow: 4px 4px 0 rgba(61, 36, 21, 0.35);
  position: relative;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.03em;
  color: var(--mocha);
}

.step p {
  margin: 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: #3a2416;
}

.howto-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.howto-side {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 1rem;
  align-items: center;
}

.mascot-wrap {
  display: flex;
  justify-content: center;
}

.mascot-wrap img {
  width: min(260px, 70vw);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(6px 10px 0 rgba(0, 0, 0, 0.25));
  animation: bob 3.4s ease-in-out infinite;
}

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

/* —— Community —— */
.community {
  position: relative;
  isolation: isolate;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  padding: clamp(4rem, 9vw, 7rem) clamp(1rem, 4vw, 2.5rem);
}

.community-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--espresso);
}

.community-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.community-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(26, 15, 8, 0.72) 0%, rgba(26, 15, 8, 0.35) 40%, rgba(26, 15, 8, 0.78) 100%);
}

.community-inner {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.community-inner h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 3px 3px 0 var(--ink);
}

.community-inner p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--foam);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.gallery-note {
  margin-top: 1.75rem;
}

.gallery-note .frame {
  background: rgba(26, 15, 8, 0.55);
  backdrop-filter: blur(4px);
}

.gallery-note img {
  background: transparent;
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem) 2rem;
  text-align: center;
  font-weight: 700;
  color: rgba(245, 230, 211, 0.75);
  font-size: 0.92rem;
}

.site-footer strong {
  color: var(--gold);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 20px);
  background: var(--chart);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 0.7rem 1.1rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.copy-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .about-layout,
  .steps,
  .howto-side {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-left: auto;
    margin-right: auto;
    justify-self: center;
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-burger {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: clamp(1rem, 4vw, 2.5rem);
    left: clamp(1rem, 4vw, 2.5rem);
    flex-direction: column;
    align-items: stretch;
    background: rgba(42, 22, 12, 0.96);
    border: 4px solid var(--ink);
    border-radius: 18px;
    padding: 0.75rem;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: rgba(245, 197, 66, 0.15);
  }

  .hero-art img {
    object-position: 62% center;
  }
}
