:root {
  --bg: #0d0b0e;
  --panel: #16131a;
  --ink: #ece5dd;
  --muted: #9b8f84;
  --accent: #d8b46a;
  --accent2: #a78bfa;
  --line: #2a2430;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, "SF Pro Display", "Helvetica Neue", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.hero {
  padding: 6rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, #1a1530 0%, var(--bg) 70%);
}

.eyebrow {
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: var(--accent2);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Didot", "Bodoni MT", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.tagline {
  color: var(--muted);
  max-width: 42rem;
  margin: 1.5rem auto 0;
}

.btc-badge {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover { transform: translateY(-3px); border-color: var(--accent2); }

.img-wrap { aspect-ratio: 3/4; overflow: hidden; background: #000; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.meta { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; }
.name { font-weight: 600; }
.color { color: var(--muted); font-size: 0.85rem; }
.price { color: var(--accent); font-size: 0.9rem; margin-top: 0.3rem; }

.back { color: var(--muted); text-decoration: none; display: inline-block; padding: 1.5rem 2rem; }
.back a { color: var(--muted); text-decoration: none; }
.back a:hover { color: var(--ink); }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
  align-items: start;
}

.detail-img img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }

.detail-info h1 {
  font-family: "Didot", "Bodoni MT", Georgia, serif;
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.detail-info .color { font-size: 1rem; }
.desc { color: var(--muted); margin: 1.25rem 0; }

.price-big { font-size: 2rem; color: var(--accent); margin: 1rem 0 1.5rem; }
.price-big span { font-size: 1rem; color: var(--muted); }

.buy {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #1a1405;
  border: none;
  border-radius: 4px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
}
.buy:hover { filter: brightness(1.1); }

.order { max-width: 32rem; margin: 4rem auto; padding: 2rem; text-align: center; }
.order h1 { font-family: Georgia, serif; font-weight: 400; margin: 0.5rem 0 1.5rem; }
.order code { color: var(--accent); }
.status { text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.8rem; margin-bottom: 1rem; }
.status-paid { color: #7bd88f; }
.status-pending, .status-processing { color: var(--accent); }
.order .back { margin-top: 1.5rem; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 2rem;
  border-top: 1px solid var(--line);
}

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

/* ── Luna Moth cursor follower ─────────────────────────── */
#moth {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(201,168,124,0.25));
}

#moth .wing {
  animation: moth-flap 0.42s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 70px 50px;
}

/* Alternate upper + lower wings for a natural figure-eight flutter. */
#moth .wing-r {
  animation-name: moth-flap-r;
}
#moth .wing.low {
  animation-duration: 0.5s;
  animation-delay: 0.12s;
}

@keyframes moth-flap {
  0%, 100% { transform: rotate(-6deg) scaleY(1); }
  50%      { transform: rotate(7deg) scaleY(0.78); }
}

@keyframes moth-flap-r {
  0%, 100% { transform: rotate(6deg) scaleY(1); }
  50%      { transform: rotate(-7deg) scaleY(0.78); }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  #moth { display: none; }
}