:root {
  --bg: #07080d;
  --ink: #eef1f8;
  --muted: #9aa3b8;
  --line: rgba(255, 255, 255, 0.1);
  --violet: #8b6cff;
  --cyan: #41e0ff;
  --pink: #ff6bcb;
  --radius: 28px;
  --font: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Songti SC", Georgia, serif;
  --pad: 1.25rem;
  --gap: 18px;
  --slide-w: clamp(280px, 72vw, 360px);
  --hero-w: clamp(300px, 78vw, 420px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(139, 108, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(65, 224, 255, 0.14), transparent 55%),
    radial-gradient(700px 500px at 50% 100%, rgba(255, 107, 203, 0.1), transparent 50%),
    linear-gradient(180deg, #07080d 0%, #0a0c14 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.7;
  animation: float 14s ease-in-out infinite;
}
.orb-a { width: 340px; height: 340px; left: -80px; top: 12%; background: rgba(139, 108, 255, 0.35); }
.orb-b { width: 280px; height: 280px; right: -40px; top: 28%; background: rgba(65, 224, 255, 0.22); animation-delay: -4s; }
.orb-c { width: 220px; height: 220px; left: 40%; bottom: -40px; background: rgba(255, 107, 203, 0.16); animation-delay: -8s; }

.grid {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
  mask-image: radial-gradient(circle at center, #000 30%, transparent 80%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.top, .foot, .stage {
  width: min(1120px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.stage,
.carousel-section,
.carousel-viewport {
  min-width: 0;
  max-width: 100%;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  box-shadow: 0 0 20px rgba(139, 108, 255, 0.55);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45f0a0;
  box-shadow: 0 0 10px rgba(69, 240, 160, 0.8);
  animation: pulse 2.2s ease-out infinite;
}

.stage {
  padding: 1.2rem 0 2rem;
}

.carousel-section {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  width: 100%;
}

.carousel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-kicker {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.swipe-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Transform carousel — no native overflow ends / rubber-band */
.carousel-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  padding: 10px 0 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.carousel-viewport.is-dragging {
  cursor: grabbing;
}

.track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.track.is-ready {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.track.no-anim {
  transition: none !important;
}

.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  border-radius: var(--radius);
}

.slide {
  position: relative;
  flex: 0 0 var(--slide-w);
  width: var(--slide-w);
  min-width: var(--slide-w);
  max-width: var(--slide-w);
  min-height: 320px;
  padding: 1.35rem 1.4rem 1.5rem;
  overflow: hidden;
  opacity: 0.58;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.slide.slide-hero {
  flex-basis: var(--hero-w);
  width: var(--hero-w);
  min-width: var(--hero-w);
  max-width: var(--hero-w);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(139, 108, 255, 0.42);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.42),
    0 0 34px rgba(139, 108, 255, 0.14);
}

.slide.is-near {
  opacity: 0.84;
  transform: scale(0.98);
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -110px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(139,108,255,0.3), transparent 65%);
  animation: pulse-glow 5s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #45f0a0;
  box-shadow: 0 0 0 0 rgba(69, 240, 160, 0.55);
  animation: pulse 2.2s ease-out infinite;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.hero-title span { display: block; }
.hero-title .accent {
  background: linear-gradient(90deg, var(--ink) 10%, var(--cyan) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 1.15rem 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}
.lede strong { color: var(--cyan); }

.sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.35rem;
  position: relative;
  z-index: 1;
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
}

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

.btn.ghost:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
}

.toast {
  min-height: 1.2rem;
  margin-top: 0.85rem;
  color: var(--cyan);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  position: relative;
  z-index: 1;
}
.toast.show { opacity: 1; }

.slide-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}

.badge {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: rgba(255,255,255,0.55);
}

.chip {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.6rem;
}

.slide h3 {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  position: relative;
  z-index: 1;
}

.slide p {
  margin: 0;
  color: #d5dbed;
  line-height: 1.7;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

.meta-list {
  display: grid;
  gap: 0.8rem;
  position: relative;
  z-index: 1;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
.meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-row .value { color: var(--ink); font-weight: 600; }

.slide-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  right: -40px;
  bottom: -60px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.55;
  filter: blur(8px);
}
.slide.is-active .slide-glow { opacity: 0.9; }
.g-violet { background: radial-gradient(circle, rgba(139,108,255,0.55), transparent 70%); }
.g-cyan { background: radial-gradient(circle, rgba(65,224,255,0.45), transparent 70%); }
.g-pink { background: radial-gradient(circle, rgba(255,107,203,0.4), transparent 70%); }
.g-mix { background: radial-gradient(circle, rgba(139,108,255,0.35), rgba(65,224,255,0.25) 45%, transparent 70%); }

.carousel-footer {
  display: grid;
  gap: 0.8rem;
}

.dots {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.dot-btn {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.dot-btn.is-active {
  width: 28px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}

.progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  width: 16.66%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--pink));
  transition: width 0.25s ease;
}

.foot {
  display: flex;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 0 1.8rem;
}
.sep { opacity: 0.5; }

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(20px,-24px,0) scale(1.05); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(69,240,160,0.55); }
  70% { box-shadow: 0 0 0 12px rgba(69,240,160,0); }
  100% { box-shadow: 0 0 0 0 rgba(69,240,160,0); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

@media (max-width: 720px) {
  .slide { min-height: 300px; }
  .slide.slide-hero { min-height: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .pill-dot, .live-dot, .hero-glow { animation: none !important; }
  .track.is-ready { transition: none !important; }
  .slide { transition: none !important; }
}
