:root {
  --bg: #0a0a0c;
  --bg-panel: #131317;
  --bg-panel-raised: #17171c;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --ink: #f3f1ec;
  --ink-dim: #9a9aa2;
  --bronze: #c9974c;
  --bronze-soft: #e3bd80;
  --silver: #c7ccd6;
  --crimson: #b3453f;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; color: var(--ink-dim); }
a { color: inherit; text-decoration: none; }

.shell { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* background texture: subtle vertical brushed-metal gradient + warm glow, not a neon blob field */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    repeating-linear-gradient(100deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #0c0c0f 0%, #0a0a0c 40%, #08080a 100%);
}
.glow {
  position: fixed; z-index: 0; pointer-events: none; border-radius: 50%;
  filter: blur(120px); opacity: 0.16;
}
.glow-a { width: 640px; height: 640px; top: -220px; right: -180px; background: var(--bronze); }
.glow-b { width: 520px; height: 520px; bottom: -260px; left: -160px; background: var(--crimson); opacity: 0.12; }

.header, .main, .footer { position: relative; z-index: 1; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 26px; padding-bottom: 26px;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--bronze-soft), var(--bronze));
  color: #0a0a0c; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; color: var(--ink-dim); }
.nav a:hover { color: var(--ink); }
.nav-btn {
  font: inherit; font-size: 14.5px; color: var(--bronze-soft);
  background: none; border: 1px solid rgba(201,151,76,0.35); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: border-color .15s ease, background .15s ease;
}
.nav-btn:hover { background: rgba(201,151,76,0.08); border-color: var(--bronze); }

.btn {
  font: inherit; font-size: 15px; font-weight: 600; border-radius: 10px;
  padding: 13px 24px; cursor: pointer; border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 8px; transition: transform .12s ease, opacity .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--bronze-soft), var(--bronze)); color: #100c05; }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--bronze); color: var(--bronze-soft); }
.btn-wide { width: 100%; justify-content: center; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px;
  padding: 64px 0 88px; align-items: center;
}
.tag {
  display: inline-block; font-size: 15px; color: var(--bronze-soft);
  border: 1px solid rgba(201,151,76,0.3); border-radius: 999px; padding: 9px 18px;
  margin-bottom: 36px; letter-spacing: 0.01em;
}
.hero-copy h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 20px; }
.hero-copy p { font-size: 17px; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 52px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; }
.hero-stats strong { display: block; font-family: 'Fraunces', serif; font-size: 24px; color: var(--bronze-soft); }
.hero-stats span { font-size: 13px; color: var(--ink-dim); }

.hero-card {
  background: linear-gradient(165deg, var(--bg-panel-raised), var(--bg-panel));
  border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.hero-card-top {
  display: flex; justify-content: space-between; padding: 18px 22px;
  font-size: 12.5px; color: var(--ink-dim); border-bottom: 1px solid var(--line);
}
.dot { color: #7bd88f; }
.hero-card-body {
  padding: 32px 22px 26px; position: relative;
  background: radial-gradient(circle at 30% 0%, rgba(201,151,76,0.14), transparent 60%);
}
.hero-card-plate {
  font-family: 'Fraunces', serif; font-size: 13px; letter-spacing: 0.08em;
  color: var(--bronze-soft); border: 1px solid rgba(201,151,76,0.4); border-radius: 6px;
  padding: 4px 10px; display: inline-block; margin-bottom: 18px;
}
.hero-card-body h3 { font-size: 24px; margin-bottom: 8px; }
.hero-card-body p { font-size: 14px; }
.hero-card-bottom {
  display: flex; align-items: baseline; gap: 8px; padding: 18px 22px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-dim);
}
.hero-card-bottom strong { font-family: 'Fraunces', serif; font-size: 20px; color: var(--ink); }

/* Section heading */
.section-heading { margin-bottom: 32px; }
.section-heading h2 { font-size: 30px; margin-bottom: 8px; }
.section-heading p { font-size: 14.5px; }

.catalog, .how, .faq { padding: 64px 28px; max-width: 1180px; margin: 0 auto; }
.catalog { border-top: 1px solid var(--line); }

.product-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .product-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card[data-accent="bronze"] { border-top: 2px solid var(--bronze); }
.card[data-accent="silver"] { border-top: 2px solid var(--silver); }
.card[data-accent="crimson"] { border-top: 2px solid var(--crimson); }

.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.badge { color: var(--bronze-soft); border: 1px solid rgba(201,151,76,0.35); border-radius: 6px; padding: 3px 8px; }
.stock { color: #7bd88f; }
.card h3 { font-size: 19px; }
.card .desc { font-size: 14px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta span { font-size: 12px; color: var(--ink-dim); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.price small { display: block; font-size: 11px; color: var(--ink-dim); }
.price strong { font-family: 'Fraunces', serif; font-size: 19px; }
.buy-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; color: #100c05;
  background: linear-gradient(135deg, var(--bronze-soft), var(--bronze));
  border: none; border-radius: 8px; padding: 9px 16px; cursor: pointer;
}
.buy-btn:hover { opacity: 0.9; }
.load-error { grid-column: 1 / -1; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-dim); }

/* How it works */
.how { border-top: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; gap: 14px; }
.step-n {
  font-family: 'Fraunces', serif; font-size: 15px; color: var(--bronze-soft);
  border: 1px solid rgba(201,151,76,0.35); border-radius: 8px;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step strong { display: block; font-size: 15px; margin-bottom: 4px; }
.step p { font-size: 13.5px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-grid { display: flex; flex-direction: column; gap: 10px; }
details { background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; }
summary::-webkit-details-marker { display: none; }
details p { margin-top: 10px; font-size: 14px; }

.footer {
  display: flex; justify-content: space-between; padding: 32px 28px 48px;
  font-size: 13px; color: var(--ink-dim); border-top: 1px solid var(--line);
}

/* Roulette FAB */
.roulette-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 5;
  background: linear-gradient(135deg, var(--bronze-soft), var(--bronze)); color: #100c05;
  border: none; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; box-shadow: 0 18px 40px -12px rgba(201,151,76,0.5);
}
.roulette-fab:hover { opacity: 0.92; }

/* Modals */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 10; background: rgba(4,4,6,0.72);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px);
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg-panel-raised); border: 1px solid var(--line-strong); border-radius: 18px;
  padding: 30px; max-width: 420px; width: 100%; position: relative;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--ink-dim); font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal-kicker { font-size: 12px; color: var(--bronze-soft); margin-bottom: 8px; }
.modal h3 { font-size: 22px; margin-bottom: 6px; }
.modal-sub { font-size: 14px; margin-bottom: 20px; }

.wheel-stage { display: flex; justify-content: center; margin-bottom: 20px; position: relative; }
.wheel-pointer {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent;
  border-top: 14px solid var(--bronze-soft); z-index: 2;
}
.wheel {
  width: 220px; height: 220px; border-radius: 50%; position: relative;
  background: conic-gradient(from 0deg,
    var(--bronze) 0deg 72deg, var(--bg-panel) 72deg 144deg,
    var(--crimson) 144deg 216deg, var(--bg-panel) 216deg 288deg,
    var(--silver) 288deg 360deg);
  border: 3px solid var(--line-strong);
  transition: transform 2.2s cubic-bezier(0.18, 0.9, 0.15, 1);
}
.wheel-label {
  position: absolute; top: 50%; left: 50%; font-size: 14px; font-weight: 700;
  color: #100c05; transform-origin: 0 0;
}
.label-1 { transform: rotate(36deg) translate(58px, -8px); }
.label-2 { transform: rotate(108deg) translate(58px, -8px); }
.label-3 { transform: rotate(180deg) translate(58px, -8px); color: var(--ink); }
.label-4 { transform: rotate(252deg) translate(58px, -8px); }
.label-5 { transform: rotate(324deg) translate(58px, -8px); }
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--bronze-soft); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 12px; color: var(--bronze-soft);
}
.spin-result { text-align: center; font-size: 14.5px; margin-bottom: 18px; min-height: 20px; }
.spin-result strong { color: var(--bronze-soft); }

.checkout-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 20px; }
.checkout-price .before { text-decoration: line-through; color: var(--ink-dim); font-size: 15px; }
.checkout-price .after { font-family: 'Fraunces', serif; font-size: 26px; }
.checkout-price .discount { font-size: 12px; color: #7bd88f; border: 1px solid rgba(123,216,143,0.3); border-radius: 6px; padding: 2px 8px; }

.pay-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.payment-method {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--bg-panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s ease;
}
.payment-method:hover { border-color: var(--bronze); }
.payment-method:disabled { opacity: 0.5; cursor: not-allowed; }
.payment-method strong { display: block; font-size: 14.5px; }
.payment-method small { font-size: 12px; color: var(--ink-dim); }
.payment-icon {
  width: 34px; height: 34px; border-radius: 8px; background: var(--bg-panel-raised);
  border: 1px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.payment-method span:last-child { margin-left: auto; color: var(--ink-dim); }
.pay-status { font-size: 13.5px; color: var(--bronze-soft); margin-bottom: 12px; }
.checkout-note { font-size: 11.5px; color: var(--ink-dim); text-align: center; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
