::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #111;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #045cfc, #368bff);
  border-radius: 10px;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #368bff, #6aaaff);
}

:root {
  --card-bg: rgba(9, 10, 13, 0.9);
  --text-color: #eee;
  --text-muted: #ccc;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --accent-color: #6c63ff;
  --accent-hover: #8a84ff;
  --glow-effect: 0 0 20px rgba(108, 99, 255, 0.3);
  --card-glow: 0 10px 30px rgba(108, 99, 255, 0.1);
}

body {
  scroll-behavior: smooth;
  background-color: #000;
  margin: 0;
  padding: 0;
  font-family: Outfit, sans-serif;
  color: #fff;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  height: 100%;

  scrollbar-width: thin;
  scrollbar-color: #045cfc #111;
}

.misery-content {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 80px 0 40px;
  box-sizing: border-box;
}

.misery-wrapper {
  width: 90%;
  max-width: 1200px;
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 40px 30px;
  z-index: 2;
  color: white;
  text-align: center;
}

.misery-wrapper-h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.misery-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.feature-card {
  background: linear-gradient(145deg, rgba(52, 114, 247, 0.15), #0000006e 40%, #0000006e 70%, rgba(52, 114, 247, 0.15));
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-radius: 20px;
  padding: 30px;
  color: var(--text-color);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: var(--card-glow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(108, 99, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--glow-effect);
}

.feature-header {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.feature-card h2 {
  font-size: 1.3rem;
  margin: 0;
  letter-spacing: 0.5px;
  text-align: left;
}

.feature-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.1));
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-muted);
  text-align: left;
}

.hero {
  padding-top: 200px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  letter-spacing: 1.5px;
  box-sizing: border-box;
}

.hero-content {
  max-width: 600px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-content h1 {
  background: linear-gradient(135deg, #fff 0%, #a8c0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.hero-content h1::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.hero-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 40px; 
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-p-unc {
  text-shadow:
    0 0 5px #ffffff1c,
    0 0 10px #ffffff1c,
    0 0 20px #ffffff1c,
    0 0 30px #ffffff1c,
    0 0 40px #ffffff1c,
    0 0 50px #ffffff1c,
    0 0 60px #ffffff1c;
  color: #ab9eff;
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.start-button {
  margin-top: 20px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--btn-border-color);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  width: 35%;
  height: 48px;
  padding: 0 20px;
  box-shadow: 0 4px 20px rgba(61, 145, 255, 0.445);
  border-radius: 10px;
  font-weight: bold;
  transition: all .3s ease;
}

.start-button:hover {
  transform: translateY(-5px) scale(1.01);
  background: linear-gradient(149deg, #2f90eb38, #16161611 29%, #16161611 74%, #2f90eb38);
  border: 1px solid var(--btn-border-color);
  box-shadow: 0 1px 3px var(--btn-border-color);
}

.arrow-icon {
  transition: transform 0.2s ease-in-out;
}

.start-button:hover .arrow-icon {
  transform: rotate(45deg);
}

.start-button-gray {
  margin-top: 20px;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff14;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .15);
  width: 35%;
  height: 48px;
  padding: 0 20px;
  box-shadow: 0 4px 20px #00000026;
  border-radius: 10px;
  font-weight: bold;
  transition: all .3s ease;
}

.start-button-gray:hover {
  transform: translateY(-5px) scale(1.01);
  background: linear-gradient(149deg, #ffffff14, #00000026 29%, #00000026 74%, #ffffff14);
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 1px 3px rgba(255, 255, 255, .15);
}

.start-button-holder {
  justify-content: center;
  display: flex;
  gap: 16px;
}

.scroll-down-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px auto 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  animation: bounce 2s infinite;
  transition: all .3s ease;
}

.scroll-down-arrow:hover {
  transform: scale(1.2);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

@keyframes swirl {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(360deg);
  }
}

@keyframes nebula {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.05);
  }
  100% {
      transform: scale(1);
  }
}

#galaxy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 45% 55%, rgba(58, 29, 149, 0.5), rgba(26, 9, 73, 0.8) 30%, rgba(10, 4, 41, 0.9) 50%, rgba(0, 0, 0, 1) 70%);
  z-index: 0;
  animation: swirl 60s infinite linear;
  filter: blur(256px);
  border-radius: 15%;
  pointer-events: none;
}

#galaxy::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 0, 102, 0.4), transparent, rgba(20, 0, 80, 0.5));
  filter: blur(150px);
  animation: nebula 10s infinite ease-in-out;
  transform: translate(-50%, -50%);
  opacity: 0.8;
  pointer-events: none;
}

.galaxy-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-image.fallback.svelte {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  background-color: #000000b3;
}

.hero-image.svelte {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.video-frame-effect.svelte {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 24px;
  box-shadow: inset 0 0 40px #0006;
  z-index: 3;
  pointer-events: none;
}

.video-container.svelte {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-color: #0000004d;
}

.hero-card.svelte {
  position: relative;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 50px #0000004d;
  border: 1px solid rgba(255, 255, 255, .1);
  background-color: #0000004d;
  cursor: pointer;
  transform: translateZ(0);
}

.hero-card-wrapper.svelte {
  position: relative;
  width: 100%;
  max-width: 1000px;
  z-index: 2;
  margin-top: 70px;
  transition: transform 0.15s ease-out;
  will-change: transform;
  transform-style: preserve-3d;
}

.feature-highlights.svelte {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 4;
}

.feature-tag.svelte {
  position: absolute;
  padding: 8px 14px;
  background-color: var(--btn-border-color);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  box-shadow: 0 4px 15px #0003;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.feature-tag.bottom-right.svelte {
  bottom: 20px;
  right: 20px;
}

.feature-tag.top-left.svelte {
  top: 20px;
  left: 20px;
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.404);
  z-index: 2;
  pointer-events: none;
}

/* Improved Responsive Design */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-p, .hero-p-unc {
    font-size: 1.1rem;
  }
  
  .misery-wrapper-h1 {
    font-size: 2.2rem;
  }
  
  .nav-links.svelte {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 20px 60px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-p, .hero-p-unc {
    font-size: 1rem;
  }
  
  .start-button, .start-button-gray {
    width: 45%;
    font-size: 0.9rem;
  }
  
  .misery-wrapper {
    padding: 30px 20px;
    border-radius: 30px;
  }
  
  .misery-wrapper-h1 {
    font-size: 1.8rem;
  }
  
  .feature-card {
    min-height: 250px;
    padding: 20px;
  }
  
  .navbar.svelte {
    padding: 10px 15px;
  }
  
  .nav-links.svelte {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
  }
  
  .navbar-container.svelte {
    flex-direction: column;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .start-button-holder {
    flex-direction: column;
    align-items: center;
  }
  
  .start-button, .start-button-gray {
    width: 80%;
    margin-top: 10px;
  }
  
  .feature-card {
    min-height: auto;
  }
  
  .purchase-holder h1 {
    font-size: 2rem;
  }
  
  .purchase-holder .description {
    font-size: 0.9rem;
  }
}