:root {
  --bg: #0f1115;
  --panel: rgba(26, 29, 36, 0.7);
  --text: #f0f2f5;
  --text-muted: #9ba1ad;
  --primary: #F36777;
  --secondary: #e7c25e;
  --accent: #564E3F;
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-title: 'Outfit', sans-serif;
}

.seo-badges {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
  opacity: 0.8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Blobs */
.blob-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  filter: blur(80px);
  opacity: 0.5;
}

.blob-bg::before,
.blob-bg::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
}

.blob-bg::before {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -15%;
  right: -10%;
  animation: drift 20s infinite alternate;
}

.blob-bg::after {
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation: drift 25s infinite alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(10%, 10%);
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: all 0.3s ease;
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  -webkit-text-fill-color: initial;
  /* Ensure logo is not affected by text gradient */
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

.btn-lang {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-family: var(--font-main);
  text-transform: uppercase;
}

.btn-lang:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* Hero Section */
.hero {
  padding: 140px 0 80px;
  display: block;
  /* Obsolete styles removed */
}

.hero-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
  position: relative;
  display: block;
}

.hero-text {
  /* Removed padding to let image fill the card */
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  overflow: hidden;
  /* Contains the image */
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.4);
  position: relative;
}

.hero-media {
  width: 100%;
  position: relative;
  padding: 0;
  background: none;
  box-shadow: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensure fully visible */
  padding: 0;
}

/* Text Overlay Styles */
.hero-text-overlay {
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  z-index: 20;
  position: relative;
}

.tag-banner {
  color: var(--secondary);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.3);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-text-overlay h1 {
  font-family: var(--font-title);
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-text-overlay .tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Overlay & Centered Buttons */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  /* Allow clicks to pass through to carousel by default */
}

.carousel {
  width: 100%;
  aspect-ratio: 4 / 3;
  /* Matches preview0.png 2304x1728 */
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  /* Increased gap */
  z-index: 100;
  /* Ensure on top */
  pointer-events: auto;
  padding: 10px;
  /* Add padding to container for easier hitting */
}

.indicator-dot {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Bouncy pop effect */
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.indicator-dot.active {
  background: #fff;
  transform: scale(1.4);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  border-color: #fff;
}

.indicator-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* Split Button (VSCode Style) */
.split-btn-container {
  position: relative;
  margin-bottom: 24px;
  z-index: 200;
  /* Ensure clickable and above indicators */
  pointer-events: auto;
}

.split-btn {
  display: flex;
  align-items: stretch;
  background: var(--primary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(243, 103, 119, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.split-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 50px rgba(243, 103, 119, 0.6);
}

.btn-main {
  padding: 18px 32px;
  color: #000;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-dropdown {
  background: transparent;
  border: none;
  padding: 0 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s;
}

.btn-dropdown:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-dropdown svg {
  width: 24px;
  height: 24px;
  fill: #000;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 280px;
  background: rgba(26, 23, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 200;
  /* Higher than indicators (100) */
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dropdown-item.active {
  background: rgba(243, 103, 119, 0.1);
  color: var(--primary);
}

.btn-text-only {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.3s;
  pointer-events: auto;
  /* Ensure clickable in the overlay */
}

.btn-text-only:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.hero-btns .btn {
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 10px 30px rgba(255, 109, 126, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-btns .btn:hover {
  transform: scale(1.05);
}

.btn-primary:hover {
  box-shadow: 0 15px 40px rgba(255, 109, 126, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Features */
.features {
  margin-bottom: 100px;
}

.features h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 109, 126, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 12px;
}

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

/* Links */
.links h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.links-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.links-list a {
  padding: 12px 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s ease;
}

.links-list a:hover {
  background: var(--glass-border);
  transform: scale(1.05);
}

/* Footer */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.version {
  font-weight: 600;
  color: var(--secondary);
}

/* Responsive */
@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-cta {
    text-align: center;
    order: 2;
  }

  .hero-media {
    order: 1;
    max-width: 600px;
    margin: 0 auto;
  }

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

@media (max-width: 600px) {
  .hero-cta h1 {
    font-size: 2.5rem;
  }

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

  .nav-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 1.2rem;
  }
}

/* Downloads Section */
.downloads {
  margin-bottom: 100px;
}

.downloads h2 {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 40px;
  text-align: center;
}

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

.download-card {
  background: var(--panel);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeIn 0.8s ease backwards;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  transform: translateX(100%);
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.carousel-slide.prev {
  opacity: 0;
  transform: translateX(-100%);
  z-index: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 30px rgba(243, 103, 119, 0.15);
}

.download-card.backup {
  background: rgba(231, 194, 94, 0.05);
  border-color: rgba(231, 194, 94, 0.2);
}

.download-card.backup:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(231, 194, 94, 0.15);
}

.download-card .icon {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.download-card span {
  font-weight: 600;
  font-size: 1.1rem;
}

.download-card .btn-small {
  margin-top: 8px;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
  text-align: center;
  transition: all 0.3s ease;
  font-weight: 600;
}

.download-card:hover .btn-small {
  background: var(--primary);
  color: #000;
}

.download-card.backup:hover .btn-small {
  background: var(--secondary);
  color: #000;
}

/* Gallery Layout & Carousel */
@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px;
    gap: 40px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .hero-inner {
    padding: 20px;
    border-radius: 24px;
  }

  .nav-inner {
    padding: 0 20px;
  }
}