/* ============================================
   Deep Clicker — Dark theme, pink accent
   ============================================ */

:root {
  --background: #050505;
  --surface: #101014;
  --surface-raised: #16161c;
  --border: #26262e;
  --foreground: #f5f5f7;
  --muted: #9b9ba5;
  --accent: #ff6cff;
  --accent-foreground: #121212;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--background);
}

body {
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  background-color: transparent;
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============ Animated background ============ */

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.accent {
  color: var(--accent);
}

.glow-text {
  text-shadow: 0 0 24px rgba(255, 128, 255, 0.55), 0 0 64px rgba(255, 128, 255, 0.25);
}

.center {
  display: flex;
  justify-content: center;
}

.text-pretty {
  text-wrap: pretty;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 0 18px rgba(255, 128, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(255, 128, 255, 0.55);
}

.btn-ghost {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ============ Navigation ============ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--foreground);
  text-decoration: none;
}

.nav-logo-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background-color: var(--accent);
  box-shadow: 0 0 12px rgba(255, 128, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--foreground);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background-color: rgba(5, 5, 5, 0.97);
}

.mobile-menu a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 0;
}

.mobile-menu a:not(.btn):hover {
  color: var(--accent);
}

.mobile-menu.open {
  display: flex;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 0 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 128, 255, 0.14), transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 30%, rgba(255, 128, 255, 0.07), transparent 70%),
    radial-gradient(ellipse 40% 35% at 85% 25%, rgba(255, 128, 255, 0.07), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 128, 255, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  background-color: rgba(255, 128, 255, 0.06);
}

.hero-title {
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  margin-top: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ Sections ============ */

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background-color: rgba(16, 16, 20, 0.72);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  text-wrap: balance;
}

.section-subtitle {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin: 2.5rem 0 1.75rem;
}

/* ============ Cards & Grids ============ */

.grid {
  display: grid;
  gap: 1.25rem;
}

.features-grid {
  grid-template-columns: 1fr;
}

.editions-grid {
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

.card {
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 128, 255, 0.45);
  box-shadow: 0 8px 32px rgba(255, 128, 255, 0.1);
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 128, 255, 0.1);
  color: var(--accent);
  margin-bottom: 1.1rem;
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.edition-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background-color: rgba(255, 128, 255, 0.1);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1rem;
}

/* ============ Interface ============ */

.interface-grid {
  grid-template-columns: 1fr;
}

.interface-card {
  padding: 0;
  overflow: hidden;
}

.interface-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 5px;
  border-bottom: 1px solid var(--border);
}

.interface-card figcaption {
  padding: 1.5rem 1.75rem;
}

/* ============ Pricing ============ */

.pricing-grid {
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  border-color: rgba(255, 128, 255, 0.4);
  box-shadow: 0 0 42px rgba(255, 128, 255, 0.08);
}

.pricing-card h3 {
  font-size: 1.3rem;
}

.pricing-sub {
  margin-bottom: 1rem;
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.pricing-alt {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.pricing-methods-label {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.pricing-methods {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.pricing-methods li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.9rem;
  background-color: var(--surface);
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.included-card h3 {
  margin-bottom: 1.25rem;
}

/* ============ Discord ============ */

.discord-card {
  display: flex;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  justify-content: center;
}

.discord-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 128, 255, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.discord-icon svg {
  width: 32px;
  height: 32px;
}

.discord-content h3 {
  font-size: 1.25rem;
}

.discord-content>p {
  margin-bottom: 1.25rem;
}

.discord-content .check-list {
  margin-bottom: 1.75rem;
}

/* ============ Overview page ============ */

.overview-hero {
  position: relative;
  padding-top: 8.5rem;
  overflow: hidden;
}

.overview-sub {
  text-align: center;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 3rem;
  text-wrap: pretty;
}

/* --- Carousel layout --- */

.deep-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background-color: var(--accent);
  color: #17040f;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.carousel-arrow:hover {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(255, 128, 255, 0.5);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.5rem 0 3rem;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 4px;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 128, 255, 0.6);
}

/* --- Deep window widget --- */

.deep-window {
  --dw-accent: #ff00dd;
  --dw-control: rgba(128, 128, 140, 0.28);
  position: relative;
  width: 100%;
  max-width: 570px;
  background-color: #f1f1f4;
  border: none;
  border-radius: 30px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 0, 221, 0.08);
  padding: 1rem 1.5rem 1.5rem;
  color: #26262c;
  user-select: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}

.deep-window.is-dark {
  --dw-control: #1d1d23;
  background-color: #0e0e12;
  color: #f2f2f5;
}

.deep-window.is-dark .dw-tab,
.deep-window.is-dark .dw-window-btns {
  color: var(--dw-control);
}

.deep-window.is-clicking {
  animation: window-pulse 1.2s ease-in-out infinite;
}

@keyframes window-pulse {

  0%,
  100% {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 30px color-mix(in srgb, var(--dw-accent) 12%, transparent);
  }

  50% {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px color-mix(in srgb, var(--dw-accent) 40%, transparent);
  }
}

.dw-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.dw-tabs {
  display: flex;
  gap: 0.5rem;
}

.dw-tab {
  position: relative;
  width: 38px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background-color: transparent;
  color: #8f8f99;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.dw-tab:hover {
  opacity: 0.8;
}

.dw-window-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #8f8f99;
}

.dw-min {
  display: block;
  width: 16px;
  height: 3px;
  background-color: currentColor;
  border-radius: 2px;
}

.dw-close {
  display: flex;
  align-items: center;
}

/* Pages */

.dw-page {
  display: none;
  min-height: 300px;
  flex-direction: column;
  gap: 1rem;
}

.dw-page.is-active {
  display: flex;
  animation: page-in 0.35s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dw-page-main {
  position: relative;
}

.dw-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dw-row-split {
  justify-content: space-between;
}

.dw-row-footer {
  margin-top: auto;
  justify-content: space-between;
  font-size: 0.82rem;
}

.dw-label {
  font-size: 0.95rem;
  min-width: 96px;
}

.dw-muted {
  opacity: 0.6;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* Numbered badges */

.dw-badge {
  position: relative;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 7px;
  background-color: var(--accent);
  color: #17040f;
  font-size: 0.7rem;
  font-weight: 800;
  pointer-events: none;
}

.dw-tab .dw-badge {
  position: absolute;
  top: -7px;
  right: -7px;
}

.dw-badge-float {
  position: absolute;
  z-index: 10;
}

/* CPS dual range */

.dw-cps-row {
  flex-wrap: nowrap;
}

.dw-range {
  position: relative;
  flex: 1;
  height: 32px;
  min-width: 140px;
}

.dw-range-sm {
  max-width: 180px;
}

.dw-range-track {
  position: absolute;
  inset: 2px 0;
  border-radius: 999px;
  background-color: var(--dw-control);
}

.dw-handle {
  position: absolute;
  top: 0;
  width: 13px;
  height: 34px;
  transform: translateX(-50%);
  border: none;
  border-radius: 7px;
  background-color: var(--dw-accent);
  box-shadow: 0 0 16px 3px color-mix(in srgb, var(--dw-accent) 65%, transparent);
  cursor: grab;
  transition: box-shadow 0.2s ease;
}

.dw-handle:hover,
.dw-handle.is-dragging {
  box-shadow: 0 0 26px 6px color-mix(in srgb, var(--dw-accent) 85%, transparent);
  cursor: grabbing;
}

.dw-cps-label {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 400;
}

/* Checkboxes */

.dw-options {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.dw-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  max-width: 360px;
}

.dw-check {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.98rem;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  font-family: inherit;
}

.dw-check-sm {
  font-size: 0.85rem;
}

.dw-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.dw-box {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: var(--dw-control);
  transition: background-color 0.2s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.dw-check-sm .dw-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.dw-check:hover .dw-box {
  transform: scale(1.06);
}

/* No focus rings inside the widget (mimics native app) */
.dw-check:focus,
.dw-check:focus-visible,
.dw-handle:focus,
.dw-handle:focus-visible,
.dw-btn:focus,
.dw-btn:focus-visible,
.dw-tab:focus,
.dw-tab:focus-visible,
.dw-dd-btn:focus,
.dw-dd-btn:focus-visible,
.dw-dd-list li:focus {
  outline: none;
}

.dw-check input:checked+.dw-box {
  background-color: var(--dw-accent);
  box-shadow: 0 0 20px 6px color-mix(in srgb, var(--dw-accent) 50%, transparent);
  animation: box-pop 0.25s ease;
}

@keyframes box-pop {
  0% {
    transform: scale(0.85);
  }

  60% {
    transform: scale(1.12);
  }

  100% {
    transform: scale(1);
  }
}

.dw-keybox {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 400;
  color: #17171c;
  background-color: #d9d9de;
}

.deep-window.is-dark .dw-keybox {
  background-color: #26262d;
  color: #f2f2f5;
}

.dw-keybox.is-listening,
.deep-window.is-dark .dw-keybox.is-listening {
  background-color: var(--dw-accent);
  color: #fff;
  animation: listening-blink 0.8s ease-in-out infinite;
}

@keyframes listening-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* Selects and buttons */

.dw-row-grow {
  flex: 1;
}

/* Custom dropdown (combo box) */

.dw-dd {
  position: relative;
}

.dw-dd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  border-radius: 9px;
  border: none;
  outline: none;
  background-color: var(--dw-control);
  color: inherit;
  font-family: inherit;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dw-dd-chev {
  color: var(--dw-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.dw-dd.is-open .dw-dd-chev {
  transform: rotate(180deg);
}

.dw-dd-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border-radius: 12px;
  background-color: #e6e6ea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  animation: dd-in 0.15s ease both;
}

@keyframes dd-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dw-dd-list li {
  padding: 4px 12px;
  text-align: center;
  cursor: pointer;
  outline: none;
  transition: background-color 0.12s ease;
}

.dw-dd-list li:hover,
.dw-dd-list li:focus-visible {
  background-color: rgba(128, 128, 140, 0.35);
}

.deep-window.is-dark .dw-dd-list {
  background-color: #1d1d23;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.deep-window.is-dark .dw-dd-list li:hover,
.deep-window.is-dark .dw-dd-list li:focus-visible {
  background-color: rgba(128, 128, 140, 0.25);
}

.dw-btn {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 9px;
  border: none;
  background-color: var(--dw-control);
  color: inherit;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.dw-btn:hover {
  background-color: color-mix(in srgb, var(--dw-accent) 16%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--dw-accent) 30%, transparent);
}

.dw-btn .dw-badge {
  position: absolute;
  top: -9px;
  right: -9px;
}

/* Settings page (keys, volume, rainbow) */

.dw-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: 8px;
  background-color: var(--dw-control);
  font-size: 0.85rem;
  font-weight: 400;
}

.dw-label-sm {
  font-size: 0.98rem;
}

.dw-color-row {
  margin-top: auto;
  flex-wrap: nowrap;
}

.dw-volume {
  position: relative;
  flex: 1;
  min-width: 110px;
  max-width: 160px;
  height: 22px;
  border-radius: 999px;
  background-color: var(--dw-control);
  cursor: pointer;
}

.dw-volume-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  border-radius: 999px;
  background-color: var(--dw-accent);
  box-shadow: 0 0 18px 4px color-mix(in srgb, var(--dw-accent) 55%, transparent);
  transition: width 0.1s ease;
}

.dw-rainbow {
  position: relative;
  flex: 1;
  min-width: 130px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #000, #f00, #ff8000, #ff0, #0f0, #0ff, #00f, #f0f, #fff);
  cursor: pointer;
}

.dw-rainbow-dot {
  position: absolute;
  top: 50%;
  left: 72%;
  width: 17px;
  height: 17px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid #16161a;
  background-color: transparent;
  transition: left 0.1s ease;
  pointer-events: none;
}

.dw-rainbow-dot.is-rainbow {
  animation: rainbow-slide 2.4s linear infinite alternate;
}

@keyframes rainbow-slide {
  from {
    left: 2%;
  }

  to {
    left: 98%;
  }
}

/* Feature support list (page 3) */

.dw-support-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.88rem;
  opacity: 0.65;
  padding-right: 1.75rem;
}

.dw-support-col {
  width: 170px;
  flex-shrink: 0;
  text-align: center;
}

.dw-feature-list {
  position: relative;
  max-height: 258px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.25rem 0.5rem 1.25rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--dw-control) transparent;
}

.dw-feature-list::-webkit-scrollbar {
  width: 8px;
}

.dw-feature-list::-webkit-scrollbar-thumb {
  background-color: var(--dw-control);
  border-radius: 999px;
}

.dw-feature-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.dw-feature-row .dw-check {
  font-size: 1.05rem;
}

.dw-feature-row .dw-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.dw-support {
  font-size: 0.95rem;
  opacity: 0.55;
}

.dw-support[data-supported="yes"] {
  color: var(--dw-accent);
  opacity: 1;
}

/* Anime girl */

.dw-girl {
  position: absolute;
  right: 0.25rem;
  bottom: 0;
  width: 158px;
  cursor: pointer;
  filter: drop-shadow(0 0 14px rgba(0, 0, 0, 0.35));
}

.dw-girl img {
  width: 100%;
  pointer-events: none;
}

.dw-girl.is-bounce {
  animation: girl-bounce 0.4s ease;
}

@keyframes girl-bounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.06) rotate(-2deg);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 620px) {
  .dw-girl {
    display: none;
  }

  .dw-check-grid {
    max-width: none;
  }
}

/* Explanation cards */

.overview-cards {
  display: none;
}

.overview-cards.is-active {
  display: block;
  animation: page-in 0.35s ease both;
}

.overview-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background-color: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}

.overview-item:hover {
  border-color: rgba(255, 128, 255, 0.45);
  box-shadow: 0 8px 32px rgba(255, 128, 255, 0.1);
}

.overview-num {
  flex-shrink: 0;
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 128, 255, 0.12);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
}

.overview-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.overview-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ Reveal animation ============ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .card,
  .btn {
    transition: none;
  }
}

/* ============ Responsive ============ */

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .discord-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .editions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .interface-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 2rem;
  }
}

/* --- XAML-accurate Deep window layout (547x370, stage 540x365) --- */

.deep-scale {
  position: relative;
  flex-shrink: 0;
  width: 547px;
  height: 370px;
}

.deep-scale .deep-window {
  position: absolute;
  top: 0;
  left: 0;
  width: 547px;
  height: 370px;
  max-width: none;
  padding: 0;
  border: none;
  border-radius: 25px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 0, 221, 0.08);
  overflow: hidden;
  transform-origin: top left;
}

.deep-window .dw-abs {
  position: absolute;
}

/* Titlebar icons: 12,12 with 15px gaps, 35px icons */
.deep-window .dw-tabs {
  gap: 15px;
  z-index: 5;
}

.deep-window .dw-tab {
  width: 35px;
  height: 35px;
  border-radius: 10px;
}

.deep-window .dw-window-btns {
  gap: 16px;
  z-index: 5;
}

/* Pages: XAML stage 540x365 centered in window */
.deep-window .dw-page {
  display: none;
  position: absolute;
  left: 4px;
  top: 2px;
  width: 540px;
  height: 365px;
  min-height: 0;
}

.deep-window .dw-page.is-active {
  display: block;
}

/* Labels & text: OpenSans 19px controls, 16px footers */
.deep-window .dw-check {
  font-size: 19px;
  gap: 10px;
  white-space: nowrap;
}

.deep-window .dw-check.dw-abs {
  display: flex;
  align-items: center;
}

.deep-window .dw-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.deep-window .dw-check-sm .dw-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.deep-window .dw-keybox {
  font-size: 22px;
}

.deep-window .dw-label-19 {
  display: flex;
  align-items: center;
  font-size: 19px;
  white-space: nowrap;
}

.deep-window .dw-muted {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* CPS range slider: 420x38, radius 15 */
.deep-window .dw-range {
  flex: none;
  min-width: 0;
}

.deep-window #cps-range .dw-range-track {
  inset: 0;
  border-radius: 15px;
}

.deep-window #cps-range .dw-handle {
  top: 0;
  height: 38px;
  width: 14px;
  border-radius: 8px;
}

.deep-window .dw-cps-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}

/* Mini range (Starting CPS, 152px viewbox-scaled) */
.deep-window .dw-range-mini {
  position: relative;
}

.deep-window .dw-range-mini .dw-range-track {
  inset: 0;
  border-radius: 10px;
}

.deep-window .dw-range-mini .dw-handle {
  top: 0;
  height: 19px;
  width: 8px;
  border-radius: 4px;
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--dw-accent) 60%, transparent);
}

/* Combos & buttons: 152x30 / 140x30, 14-15px font */
.deep-window .dw-dd-btn {
  font-size: 14px;
  height: 30px;
  border-radius: 9px;
}

.deep-window .dw-dd-list {
  font-size: 14px;
}

.deep-window .dw-btn {
  font-size: 15px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.deep-window .dw-key {
  border-radius: 9px;
  font-size: 16px;
  padding: 0;
}

.deep-window .dw-key.dw-abs {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Volume / filled sliders */
.deep-window .dw-volume {
  flex: none;
  max-width: none;
}

.deep-window .dw-volume-label {
  display: block;
  text-align: center;
  font-size: 13px;
  opacity: 0.75;
}

/* Color strip: 280x30 */
.deep-window .dw-rainbow {
  flex: none;
  border-radius: 15px;
}

.deep-window .dw-rainbow-dot {
  width: 12px;
  height: 12px;
}

/* Blacklist slots row (appears when Click only on slots is on) */
.deep-window .dw-blacklist {
  display: none;
  align-items: center;
  gap: 4px;
  animation: page-in 0.3s ease both;
}

.deep-window .dw-blacklist.is-visible {
  display: flex;
}

/* Custom click-type panel (Drop chance / Starting CPS) */
.deep-window .dw-custom-panel[hidden] {
  display: none;
}

.deep-window .dw-custom-row {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
  padding-left: 8px;
}

.deep-window .dw-value {
  width: 60px;
  text-align: center;
  font-size: 16px;
}

/* Utilities feature list: 60px rows, 290px left column */
.deep-window .dw-feature-list {
  max-height: none;
  gap: 20px;
  padding: 10px 0;
}

.deep-window .dw-feature-row {
  justify-content: flex-start;
  gap: 0;
  height: 40px;
}

.deep-window .dw-feature-row .dw-check {
  width: 290px;
  padding-left: 10px;
  font-size: 19px;
}

.deep-window .dw-support {
  flex: 1;
  text-align: center;
  font-size: 16px;
  width: auto;
}

/* Blurred fade masks above/below the scroll area */
.deep-window .dw-fade {
  position: absolute;
  left: 0;
  width: 540px;
  height: 16px;
  z-index: 3;
  pointer-events: none;
}

.deep-window .dw-fade-top {
  top: 78px;
  background: linear-gradient(#f1f1f4, rgba(241, 241, 244, 0));
}

.deep-window .dw-fade-bottom {
  top: 316px;
  background: linear-gradient(rgba(241, 241, 244, 0), #f1f1f4);
}

.deep-window.is-dark .dw-fade-top {
  background: linear-gradient(#0e0e12, rgba(14, 14, 18, 0));
}

.deep-window.is-dark .dw-fade-bottom {
  background: linear-gradient(rgba(14, 14, 18, 0), #0e0e12);
}

/* Anime girl: 200x300, overflowing right -20 / bottom -35 (clipped by window) */
.deep-window .dw-girl {
  right: auto;
  bottom: auto;
}

.deep-window .dw-girl img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
}

@media (max-width: 620px) {
  .deep-window .dw-girl {
    display: block;
  }
}