:root {
  --bg: #faf9f7;
  --surface: #ffffff;
  --border: #e8e4df;
  --text: #1c1917;
  --muted: #78716c;
  --human: #ea580c;
  --human-bg: #fff7ed;
  --ai: #7c3aed;
  --ai-bg: #f5f3ff;
  --accent: #1c1917;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a { color: inherit; }

.header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.logo { font-size: 1.35rem; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
}

.brand-sub {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 0.15rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover { color: var(--text); }

.cart-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
}

.cart-btn span {
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.35rem;
  font-size: 0.78rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ai);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--human);
}

.hero-lede {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 42ch;
}

.hero-duel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.duel-card {
  flex: 1;
  max-width: 130px;
  padding: 1rem;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid transparent;
  position: relative;
}

.duel-human { background: var(--human-bg); border-color: rgba(234, 88, 12, 0.25); }
.duel-ai { background: var(--ai-bg); border-color: rgba(124, 58, 237, 0.25); }

.duel-icon { font-size: 1.75rem; display: block; margin-bottom: 0.35rem; }
.duel-label { font-size: 0.78rem; font-weight: 700; display: block; }
.duel-human .duel-label { color: var(--human); }
.duel-ai .duel-label { color: var(--ai); }
.duel-hint {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.duel-vs {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.92rem;
}

.hero-cta--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.hero-reveal-preview {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.reveal-preview-card {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.85;
}

.reveal-preview-card.ai {
  background: var(--ai-bg);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: var(--ai);
}

.reveal-preview-card.human {
  background: var(--human-bg);
  border: 1px solid rgba(234, 88, 12, 0.2);
  color: var(--human);
}

.preview-note {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 0.25rem;
}

/* Collection */
.collection-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.collection-section.hidden { display: none; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
}

.section-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.25rem;
}

.section-link {
  color: var(--ai);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.product-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.product-image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f4;
}

.product-image img { width: 100%; height: 100%; object-fit: cover; }

.product-info {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.mystery-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ai);
  background: var(--ai-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
}

.product-collection {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.product-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
}

.product-tagline {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.price { font-weight: 700; font-size: 1rem; }

.card-studio { border-color: rgba(124, 58, 237, 0.3); }
.card-compete { border-color: rgba(234, 88, 12, 0.3); }

/* How it works */
.how-it-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 2.5rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps strong { color: var(--text); display: block; margin-bottom: 0.2rem; }

/* Studio banner */
.studio-banner {
  max-width: 1100px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.studio-banner-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.studio-banner-inner h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.studio-banner-inner p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Buttons */
.add-btn, .primary-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.8rem;
}

.card-studio .add-btn { background: var(--ai); }

/* Cart */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 30;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.cart-panel.hidden { transform: translateX(100%); pointer-events: none; }

.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cart-header h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.icon-btn { background: transparent; border: none; color: var(--text); font-size: 1.5rem; cursor: pointer; }
.cart-items { list-style: none; flex: 1; overflow: auto; margin-bottom: 1rem; }
.cart-items li {
  display: flex; justify-content: space-between; gap: 0.5rem;
  padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.checkout-form { display: flex; flex-direction: column; gap: 0.6rem; }
.checkout-form label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.checkout-form input, .checkout-form select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem 0.6rem; color: var(--text); font-family: inherit;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.total { margin: 0.5rem 0; }
.cart-note { font-size: 0.72rem; color: var(--muted); line-height: 1.45; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 20; }
.overlay.hidden { display: none; }

.toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 0.75rem 1.25rem; border-radius: 12px; z-index: 40;
  font-size: 0.9rem; box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.toast.hidden { display: none; }

/* Modals */
.eth-pay-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem;
}
.eth-pay-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; max-width: 420px; width: 100%;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.eth-pay-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.eth-pay-card input {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 0.5rem; color: var(--text); font-family: monospace; font-size: 0.8rem;
}
.eth-amount { font-size: 1.5rem; font-weight: 700; color: var(--human); }
.muted { color: var(--muted); font-size: 0.85rem; }

.reveal-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 60; padding: 1rem;
}
.reveal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  animation: revealPop 0.45s ease-out;
}
@keyframes revealPop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.reveal-card h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.35rem; }
.reveal-card .reveal-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.25rem; }
.reveal-items { display: flex; flex-direction: column; gap: 0.75rem; text-align: left; }
.reveal-item { border-radius: 12px; padding: 1rem; border: 2px solid var(--border); }
.reveal-item.ai { border-color: var(--ai); background: var(--ai-bg); }
.reveal-item.human { border-color: var(--human); background: var(--human-bg); }
.reveal-item .reveal-emoji { font-size: 1.75rem; margin-bottom: 0.35rem; }
.reveal-item .reveal-name { font-weight: 700; font-size: 0.95rem; }
.reveal-item .reveal-headline { font-size: 0.95rem; margin: 0.35rem 0; font-weight: 600; }
.reveal-item .reveal-detail { font-size: 0.82rem; color: var(--muted); }
.reveal-item .reveal-label {
  display: inline-block; font-size: 0.65rem; letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 0.5rem; padding: 0.2rem 0.5rem; border-radius: 4px;
  font-weight: 700;
}
.reveal-item.ai .reveal-label { background: var(--ai); color: #fff; }
.reveal-item.human .reveal-label { background: var(--human); color: #fff; }

footer.site-footer {
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.82rem; }
.footer-nav a:hover { color: var(--text); }

/* Legacy subpages */
.hero { padding: 2rem; text-align: center; max-width: 800px; margin: 0 auto; }
.pill {
  font-size: 0.72rem; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.35rem 0.75rem; color: var(--ai); display: inline-block;
}
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; padding: 1.5rem 2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tool-btn {
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  padding: 0.45rem 0.75rem; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 0.82rem;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-reveal-preview { flex-direction: row; flex-wrap: wrap; }
  .reveal-preview-card { flex: 1; min-width: 140px; }
  .steps { grid-template-columns: 1fr; }
  .studio-banner-inner { flex-direction: column; text-align: center; }
  .site-nav { display: none; }
}

@media (max-width: 560px) {
  .header { padding: 1rem; }
  .collection-section { padding: 2rem 1rem; }
  .hero-duel { flex-wrap: wrap; }
}