:root {
  --night: #120d24;
  --night-2: #1b1436;
  --panel: rgba(34, 26, 66, 0.72);
  --line: rgba(255, 214, 140, 0.16);
  --ink: #f4efe6;
  --ink-soft: #c3b9d6;
  --gold: #ffc861;
  --gold-deep: #f29a2e;
  --teal: #4fe3c1;
  --rose: #ff6f91;
  --radius: 18px;
  --display: "Fraunces", Georgia, serif;
  --body: "Space Grotesk", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Fireflies canvas sits behind everything */
#fireflies {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(18, 13, 36, 0.7);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--night);
  font-size: 1.1rem;
  box-shadow: 0 0 24px rgba(255, 200, 97, 0.45);
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 200, 97, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 16px 20px;
    background: rgba(18, 13, 36, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero.short {
  min-height: 52vh;
}

.hero-bg {
  position: absolute;
  inset: -8% 0 0 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.08);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(18, 13, 36, 0.2) 0%,
      rgba(18, 13, 36, 0.55) 55%,
      var(--night) 100%
    ),
    radial-gradient(
      ellipse at 20% 100%,
      rgba(79, 227, 193, 0.18),
      transparent 60%
    );
}

.hero-content {
  padding: 120px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(79, 227, 193, 0.1);
  border: 1px solid rgba(79, 227, 193, 0.3);
  padding: 6px 12px;
  border-radius: 999px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(79, 227, 193, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(79, 227, 193, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(79, 227, 193, 0);
  }
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.6rem);
  max-width: 14ch;
  margin-top: 18px;
}

.shimmer {
  background: linear-gradient(
    90deg,
    var(--gold) 0%,
    #fff4d6 45%,
    var(--gold-deep) 55%,
    var(--gold) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: -250% center;
  }
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 28px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  color: var(--night);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  box-shadow: 0 10px 30px rgba(242, 154, 46, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(242, 154, 46, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  margin: 0;
}

.muted {
  color: var(--ink-soft);
}

.small {
  font-size: 0.85rem;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
  transform-style: preserve-3d;
}

.card:hover {
  border-color: rgba(255, 200, 97, 0.45);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 200, 97, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  font-size: 1.2rem;
}

.rank {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 200, 97, 0.6);
  margin-bottom: 10px;
}

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 111, 145, 0.14);
  color: var(--rose);
  border: 1px solid rgba(255, 111, 145, 0.35);
}

.pill.teal {
  background: rgba(79, 227, 193, 0.12);
  color: var(--teal);
  border-color: rgba(79, 227, 193, 0.35);
}

.pill.gold {
  background: rgba(255, 200, 97, 0.12);
  color: var(--gold);
  border-color: rgba(255, 200, 97, 0.35);
}

.card .btn {
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 0.9rem;
}

/* Feature (big) card */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
}

.feature-art {
  min-height: 320px;
  background-size: cover;
  background-position: center;
}

.feature-body {
  padding: 32px;
}

@media (max-width: 760px) {
  .feature {
    grid-template-columns: 1fr;
  }
  .feature-art {
    min-height: 200px;
  }
}

/* Banner strip with image */
.banner {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 56px 32px;
  isolation: isolate;
}

.banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform 8s ease;
}

.banner:hover .banner-bg {
  transform: scale(1.06);
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(18, 13, 36, 0.92) 0%,
    rgba(18, 13, 36, 0.55) 70%,
    rgba(18, 13, 36, 0.3) 100%
  );
}

.banner h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  max-width: 20ch;
}

.banner p {
  max-width: 52ch;
}

/* Marquee ticker */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(27, 20, 54, 0.8);
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
}

.ticker-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 38s linear infinite;
  padding-left: 48px;
}

.ticker-track span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.ticker-track strong {
  color: var(--gold);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--night);
  background: linear-gradient(135deg, var(--teal), #2bb5d6);
}

.step h3 {
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
}

/* Prose pages */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin-top: 48px;
}

.prose p,
.prose li {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.prose strong {
  color: var(--ink);
}

.callout {
  border-left: 3px solid var(--gold);
  background: rgba(255, 200, 97, 0.07);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

.callout p {
  margin: 0;
}

/* Reviews */
.quote {
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--ink);
  margin: 12px 0 16px;
}

.quote::before {
  content: "\201C";
  color: var(--gold);
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 4px;
}

.score {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
}

/* Timeline */
.timeline {
  position: relative;
  display: grid;
  gap: 28px;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--gold), var(--teal), transparent);
}

.tl-item {
  position: relative;
}

.tl-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 26px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--night);
  border: 3px solid var(--gold);
  box-shadow: 0 0 16px rgba(255, 200, 97, 0.6);
}

.tl-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  padding: 0;
}

.tl-photo {
  background: linear-gradient(135deg, #2a2050, #16112e);
  min-height: 170px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tl-photo .glyph {
  font-size: 3rem;
  opacity: 0.6;
}

.tl-body {
  padding: 20px 22px;
}

.tl-date {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
}

.credit {
  font-size: 0.72rem;
  color: rgba(195, 185, 214, 0.7);
  margin-top: 8px;
}

.credit a {
  color: inherit;
}

@media (max-width: 640px) {
  .tl-card {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  margin-top: 40px;
  background: linear-gradient(180deg, transparent, rgba(27, 20, 54, 0.9));
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  color: var(--ink-soft);
  font-size: 0.88rem;
  max-width: 62ch;
  margin: 0 0 8px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.site-footer ul a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer ul a:hover {
  color: var(--gold);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  #fireflies {
    display: none;
  }
}

/* Product cutouts: transparent PNGs float over a soft glow */
.product-shot {
  display: block;
  width: 100%;
  max-width: none;
  height: 230px;
  object-fit: contain;
  margin: 4px 0 18px;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(255, 200, 97, 0.18));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  animation: float 6s ease-in-out infinite;
}

.card:nth-child(2n) .product-shot {
  animation-delay: -3s;
}

.card:hover .product-shot {
  transform: scale(1.06) rotate(-1.5deg);
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 6px 0 2px;
}

.price {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.resale {
  font-size: 0.85rem;
  color: var(--rose);
}

.gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 24px 0;
}

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s;
}

.gallery figure:hover img {
  transform: scale(1.05);
}

.gallery figcaption {
  background: var(--night-2);
  color: var(--ink-soft);
  font-size: 0.8rem;
  padding: 8px 12px;
}

.countdown {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 28px;
}

.countdown div {
  min-width: 78px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(34, 26, 66, 0.72);
  border: 1px solid var(--line);
}

.countdown strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  line-height: 1.1;
  color: var(--gold);
}

.countdown span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--gold);
  font-weight: 600;
  background: rgba(34, 26, 66, 0.72);
}

tr:last-child td {
  border-bottom: 0;
}

/* Timeline entries that use a transparent box cutout instead of a photo */
.tl-photo.cutout img {
  object-fit: contain;
  padding: 16px;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.5));
}
