:root {
  --bg: #0b0b0d;
  --surface: #121216;
  --surface-2: #17171d;
  --line: #2a2a33;
  --text: #ececf1;
  --muted: #8a8a99;
  --accent: #c9a55a;
  --accent-2: #f7ead0;
  --danger: #ff5a5a;
  --ok: #6ee7a8;
  --radius: 14px;
  --duration: 240ms;
  --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: ui-sans-serif, system-ui, "Inter", "Segoe UI", sans-serif;
  min-height: 100%;
}

body {
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(201,165,90,.10), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(120,90,200,.08), transparent 60%),
    var(--bg);
}

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.9' numOctaves='2' seed='7'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.nav {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px clamp(20px, 5vw, 60px);
}
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .02em;
}
.brand .mask { color: var(--accent); font-size: 20px; }

.btn {
  border: 1px solid var(--line);
  background: transparent; color: var(--text);
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  font: inherit; font-weight: 600;
  transition: transform var(--duration) var(--ease), background var(--duration), border-color var(--duration);
}
.btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a1305; border-color: transparent;
  padding: 14px 20px; border-radius: 12px; width: 100%;
}
.btn.primary[disabled] { filter: grayscale(.5) brightness(.7); cursor: not-allowed; transform: none; }
.btn.ghost:hover { background: rgba(255,255,255,.03); }

.stage {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(24px, 6vw, 80px) clamp(20px, 5vw, 60px);
  align-items: center;
}
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: 12px;
  color: var(--muted); margin: 0 0 14px;
}
h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700; margin: 0;
  font-size: clamp(2.4rem, 1.2rem + 4.5vw, 5.5rem);
  line-height: 1.02; letter-spacing: -0.02em;
}
h1 .accent {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-style: italic;
}
.lede { color: var(--muted); max-width: 52ch; margin: 18px 0 28px; line-height: 1.6; }

.card {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6);
}
.row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.row label { color: var(--muted); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty .step {
  background: transparent; color: var(--text); border: 0; padding: 8px 14px; cursor: pointer; font-size: 18px;
}
.qty .step:hover { background: rgba(255,255,255,.04); color: var(--accent); }
.qty input {
  width: 68px; text-align: center; background: transparent; color: var(--text);
  border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  font: inherit; font-weight: 700; padding: 8px 0; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { display: none; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 4px 0 18px;
  padding: 12px; border: 1px dashed var(--line); border-radius: 10px;
}
.stats > div { display: flex; flex-direction: column; }
.stats span { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.stats b { font-size: 14px; font-weight: 700; margin-top: 2px; }

.status { min-height: 1.2em; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

.art { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mask-frame {
  width: min(80%, 420px); aspect-ratio: 5/6;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 30%, rgba(201,165,90,.12), transparent 65%), var(--surface);
  display: grid; place-items: center;
  padding: 24px;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform var(--duration) var(--ease);
}
.mask-frame:hover { transform: translateY(-4px) rotate(-.5deg); }
.mask-frame svg { width: 100%; height: 100%; }
.caption { color: var(--muted); font-style: italic; letter-spacing: .06em; }

.foot {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 60px);
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--line);
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
