:root {
  --bg: #1c1c1e;
  --panel: rgba(40, 40, 42, .72);
  --line: rgba(255, 255, 255, .08);
  --text: #e9e9ea;
  --muted: #9a9aa0;
  --gold: #f2b933;
  --gold-light: #ffd978;
  --gold-dark: #b8860b;
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y proximity;
  background: var(--bg);
}

body {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; user-select: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #111; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #161617; }
::-webkit-scrollbar-thumb { background: #3a3a3d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

.gold  { color: var(--gold); }
.thin  { color: var(--muted); font-weight: 300; }
.glow  { text-shadow: 0 0 6px rgba(255, 205, 90, .65), 0 0 22px rgba(242, 185, 51, .45), 0 0 48px rgba(242, 185, 51, .25); animation: flicker 6s infinite; }

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .82; text-shadow: none; }
}

/* background layers */
#sparks, .bg-grid, .bg-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#sparks { width: 100%; height: 100%; }

.bg-grid {
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  animation: drift 24s linear infinite;
}
@keyframes drift { to { background-position: 56px 56px; } }

.bg-vignette { background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0, 0, 0, .55) 100%); }

.reticle {
  position: fixed; top: 0; left: 0; z-index: 100; pointer-events: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border: 1px solid rgba(242, 185, 51, .65);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(242, 185, 51, .35);
  opacity: 0;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), opacity .3s, background .25s;
}
.reticle::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 4px; height: 4px; margin: -2px;
  border-radius: 50%; background: var(--gold);
}
.reticle.visible { opacity: 1; }
.reticle.big { width: 56px; height: 56px; margin: -28px 0 0 -28px; background: rgba(242, 185, 51, .08); }
@media (hover: none) { .reticle { display: none; } }

main { position: relative; z-index: 1; }
section { position: relative; min-height: 100vh; scroll-snap-align: start; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold);
}
.pip {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { transform: scale(1.7); opacity: .5; } }

.rise {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity .9s var(--ease) var(--delay, 0s),
              transform .9s var(--ease) var(--delay, 0s),
              filter .9s var(--ease) var(--delay, 0s);
}
.rise.seen { opacity: 1; transform: none; filter: none; }

/* buttons */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .95rem 1.9rem;
  border: 1px solid rgba(242, 185, 51, .55);
  border-radius: 10px;
  background: rgba(242, 185, 51, .05);
  color: var(--gold-light);
  font-size: .88rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s, color .3s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 217, 120, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-3px); color: #fff; box-shadow: 0 0 18px rgba(242, 185, 51, .45), inset 0 0 14px rgba(242, 185, 51, .12); }
.btn:hover::before { transform: translateX(120%); }
.btn-solid { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); border-color: transparent; color: #16140d; }
.btn-solid:hover { color: #000; box-shadow: 0 0 26px rgba(242, 185, 51, .7); }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.actions.left { justify-content: flex-start; }

/* landing */
.landing { display: grid; place-items: center; padding: 4rem 1.5rem; text-align: center; overflow: hidden; }

.landing-body {
  position: relative; z-index: 2;
  max-width: 860px;
  display: flex; flex-direction: column; align-items: center; gap: 1.4rem;
}

.landing-logo {
  width: min(640px, 88vw);
  filter: drop-shadow(0 0 24px rgba(242, 185, 51, .28));
  animation: bob 6s ease-in-out infinite, logo-in 1.4s var(--ease) both;
}
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes logo-in { from { opacity: 0; transform: scale(.92); filter: blur(14px); } }

h1 { font-size: clamp(2rem, 5.4vw, 3.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.lead { max-width: 520px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); }
.landing .actions { margin-top: .6rem; }

.scope {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  width: min(980px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: .55; pointer-events: none;
}
.ring { position: absolute; inset: 0; border: 1px solid rgba(242, 185, 51, .18); border-radius: 50%; }
.r1 { border-style: dashed; animation: turn 60s linear infinite; }
.r2 { inset: 14%; border-color: rgba(242, 185, 51, .28); border-top-color: transparent; border-bottom-color: transparent; animation: turn 40s linear infinite reverse; }
.r3 { inset: 30%; border-color: rgba(255, 255, 255, .06); animation: breathe 5s ease-in-out infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.06); border-color: rgba(242, 185, 51, .25); } }

.tick { position: absolute; background: linear-gradient(var(--gold), transparent); box-shadow: 0 0 10px rgba(242, 185, 51, .5); }
.t-top, .t-bottom { left: 50%; width: 1px; height: 8%; }
.t-left, .t-right { top: 50%; height: 1px; width: 8%; background: linear-gradient(90deg, var(--gold), transparent); }
.t-top { top: -2%; }
.t-bottom { bottom: -2%; transform: rotate(180deg); }
.t-left { left: -2%; }
.t-right { right: -2%; transform: rotate(180deg); }

.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; z-index: 2;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .7rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue i { position: relative; overflow: hidden; width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%; background: #fff; animation: drip 2s infinite; }
@keyframes drip { to { top: 100%; } }

/* offer: 1/3 gallery, 2/3 details */
.offer { display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid var(--line); }

.gallery {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, .35));
}
.gallery-inner {
  position: sticky; top: 0;
  height: 100vh;
  padding: 2rem;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}

.stage {
  position: relative; overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #202022;
  outline: none;
  transition: border-color .4s, box-shadow .4s;
}
.stage:hover, .stage:focus-visible { border-color: rgba(242, 185, 51, .5); box-shadow: 0 0 30px rgba(242, 185, 51, .18); }

.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.layer-next { visibility: hidden; }
.layer.contain { object-fit: contain; padding: .8rem; background: radial-gradient(circle, #2c2c2f, #202022); }

.sweep {
  position: absolute; top: -10%; bottom: -10%; left: 0; width: 3px; z-index: 3;
  background: var(--gold-light);
  box-shadow: 0 0 14px 3px rgba(255, 205, 90, .75), 0 0 60px 20px rgba(242, 185, 51, .3);
  opacity: 0; pointer-events: none;
}

.corner { position: absolute; z-index: 4; width: 16px; height: 16px; border: 1px solid var(--gold); opacity: .8; pointer-events: none; }
.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.caption { display: flex; align-items: flex-start; gap: 1rem; min-height: 4.6rem; }
.count { padding-top: .2rem; font-size: .75rem; letter-spacing: .2em; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.caption h3 { font-size: 1rem; font-weight: 700; }
.caption p { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.caption > div { transition: opacity .3s, transform .3s var(--ease); }
.caption.swap > div { opacity: 0; transform: translateY(8px); }

.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }

.thumb {
  position: relative; display: block; overflow: hidden; width: 100%;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #202022;
  opacity: .55;
  transition: opacity .3s, border-color .3s, transform .3s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.thumb[data-fit="contain"] img { object-fit: contain; padding: 4px; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb:hover img { transform: scale(1.08); }
.thumb:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.thumb.is-on { opacity: 1; border-color: rgba(242, 185, 51, .7); }

/* timer bar under the active thumbnail */
.thumb::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold); box-shadow: 0 0 8px var(--gold);
  transform: scaleX(0); transform-origin: left;
}
.thumb.is-on::after { transform: scaleX(var(--p, 0)); }

/* details */
.details {
  max-width: 1100px;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; gap: 1.8rem;
}
h2 { margin-top: -.8rem; font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
.intro { max-width: 680px; color: #c3c3c7; font-size: 1.05rem; }

.ph {
  padding: .05em .5em;
  border: 1px dashed rgba(242, 185, 51, .4);
  border-radius: 6px;
  background: rgba(242, 185, 51, .08);
  color: var(--gold-light);
  font-size: .92em; white-space: nowrap;
}

.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(6px); }
.features { width: 100%; min-width: 520px; border-collapse: collapse; }
.features th { padding: 1rem 1.2rem; border-bottom: 1px solid rgba(242, 185, 51, .35); color: var(--gold); font-size: .72rem; letter-spacing: .25em; text-align: left; text-transform: uppercase; }
.features td { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.features tr:last-child td { border-bottom: 0; }
.features tbody tr { transition: background .3s; }
.features tbody tr:hover { background: rgba(242, 185, 51, .05); }
.features .n { width: 64px; color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px rgba(242, 185, 51, .5); }
.features .name { width: 30%; font-size: 1.05rem; font-weight: 700; }
.features li { position: relative; padding-left: 1.2rem; color: #bdbdc2; font-size: .95rem; }
.features li + li { margin-top: .25rem; }
.features li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 1px; background: var(--gold); box-shadow: 0 0 6px var(--gold); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.card { position: relative; padding: 1.6rem 1.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); backdrop-filter: blur(6px); }
.card h3 { margin-bottom: .6rem; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; }
.price, .slots { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; }
.price { color: var(--gold); text-shadow: 0 0 22px rgba(242, 185, 51, .45); }
.price small { color: var(--gold-light); font-size: .4em; font-weight: 600; letter-spacing: .1em; }
.price em { color: var(--muted); font-size: .32em; font-style: normal; font-weight: 400; }
.slots b { color: var(--gold); text-shadow: 0 0 22px rgba(242, 185, 51, .45); }
.slots i { margin: 0 .2em; color: var(--muted); font-style: normal; font-weight: 300; }
.meter { overflow: hidden; height: 6px; margin: .9rem 0 .6rem; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.meter span { display: block; width: 0; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light)); box-shadow: 0 0 12px var(--gold); transition: width 1.6s var(--ease); }
.note { color: var(--muted); font-size: .9rem; }

/* rotating gold edge on the cards */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.spin-border::before {
  content: ""; position: absolute; inset: -1px; padding: 1px;
  border-radius: inherit; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--gold) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: angle 6s linear infinite;
}
@keyframes angle { to { --angle: 360deg; } }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.extra { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-height: 96px; padding: 1.2rem; border: 1px dashed rgba(242, 185, 51, .35); border-radius: var(--radius); transition: background .3s, border-color .3s; }
.extra:hover { border-color: var(--gold); background: rgba(242, 185, 51, .05); }
.extra small { color: var(--muted); letter-spacing: .06em; }

footer { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; letter-spacing: .08em; }

@media (max-width: 960px) {
  html { scroll-snap-type: none; }
  .offer { grid-template-columns: 1fr; }
  .gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery-inner { position: static; height: auto; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .cards, .extras { grid-template-columns: 1fr; }
  .gallery-inner { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; filter: none; }
}
