/* Main */

html {
  scroll-behavior: smooth;
}

.card {
  border-radius: 15px;
  transition: transform 0.3s;
  background-color: black !important;
  color: white !important;
  text-align: center;
  padding: 20px;
}

.card:hover {
  transform: scale(1.05);
}

#hero {
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 6.5rem 0 3rem;
  --hero-scroll: 0;
}

.hero-interactive-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(40, 167, 69, 0.18), transparent 52%),
    radial-gradient(circle at 18% 78%, rgba(61, 220, 132, 0.1), transparent 40%),
    radial-gradient(circle at 82% 22%, rgba(7, 61, 0, 0.35), transparent 45%),
    linear-gradient(180deg, #031103 0%, #020202 100%);
}

.hero-interactive-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/risingOS_logo.png") center 44% / min(38vw, 340px) no-repeat;
  opacity: 0.05;
  pointer-events: none;
}

.hero-static-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 220, 132, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 220, 132, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, black 20%, transparent 72%);
  pointer-events: none;
}

.hero-interactive-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.55) 100%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

#hero .container,
#hero .hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.hero-title {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: visible;
  isolation: isolate;
  transform:
    translate3d(0, calc(var(--hero-scroll) * -52px), 0)
    scale(calc(1 - var(--hero-scroll) * 0.12));
  opacity: calc(1 - var(--hero-scroll) * 0.7);
  filter: blur(calc(var(--hero-scroll) * 4px));
  will-change: transform, opacity, filter;
}

.hero-title-glow {
  position: absolute;
  inset: -12% -6%;
  background: radial-gradient(ellipse at center, rgba(61, 220, 132, 0.32), transparent 70%);
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  z-index: -1;
}

.hero-title--ready .hero-title-glow {
  animation: heroTitleGlow 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.hero-title-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2em;
  line-height: 1.2;
  overflow: visible;
}

.hero-title-reveal {
  overflow: hidden;
  padding: 0.06em 0 0.14em;
  line-height: 1.15;
}

.hero-title-word {
  display: block;
  white-space: nowrap;
  opacity: 0;
  will-change: transform, opacity, filter;
}

.hero-title-word--primary {
  background: linear-gradient(180deg, #ffffff 0%, #e8fff0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
  filter: blur(12px);
  transform: translate3d(-28px, 0, 0) scale(0.96);
}

.hero-title-word--accent {
  background: linear-gradient(
    120deg,
    #d4ffe6 0%,
    #3ddc84 40%,
    #28a745 65%,
    #9dffc0 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #3ddc84;
  filter: blur(12px);
  transform: translate3d(28px, 0, 0) scale(0.96);
}

.hero-title-scan {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 52%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(61, 220, 132, 0.15), #3ddc84, rgba(61, 220, 132, 0.15), transparent);
  opacity: 0;
  transform: scaleX(0);
  pointer-events: none;
}

.hero-title--ready .hero-title-word--primary {
  animation: heroWordRevealLeft 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.hero-title--ready .hero-title-word--accent {
  animation:
    heroWordRevealRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.42s forwards,
    heroAccentShimmer 5s ease-in-out 1.6s infinite;
}

.hero-title--ready .hero-title-scan {
  animation: heroTitleScan 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

#hero p.hero-tagline {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.45rem);
}

.hero-tagline {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: translate3d(0, 20px, 0);
}

.hero-tagline-text {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  filter: blur(8px);
}

.hero-tagline-highlight {
  position: relative;
  font-weight: 600;
  background: linear-gradient(120deg, #ffffff 0%, #3ddc84 45%, #28a745 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.15em;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #3ddc84, transparent);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-tagline.hero-tagline--visible {
  animation: heroTaglineIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-tagline.hero-tagline--visible .hero-tagline-text {
  animation: heroTaglineReveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

.hero-tagline.hero-tagline--visible .hero-tagline-highlight {
  animation: heroHighlightShimmer 4s ease-in-out 1.4s infinite;
}

.hero-tagline.hero-tagline--visible .hero-tagline-highlight::after {
  animation: heroHighlightUnderline 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.hero-download-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  overflow: hidden;
  isolation: isolate;
}

.hero-download-btn__glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, #3ddc84, #28a745, #7dffb0, #3ddc84);
  background-size: 300% 300%;
  opacity: 0.85;
  z-index: 0;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.hero-download-btn__content {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 2px;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(8, 28, 12, 0.92) 0%, rgba(2, 8, 4, 0.98) 100%);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-download-btn__content i {
  font-size: 1.15rem;
  color: #3ddc84;
  transition: transform 0.3s ease;
}

.hero-content.hero-content--ready .hero-download-btn {
  animation: heroDownloadIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-download-btn:hover .hero-download-btn__glow,
.hero-download-btn:focus-visible .hero-download-btn__glow {
  opacity: 1;
  filter: blur(0.5px);
  animation: heroDownloadGlow 2.5s ease infinite;
}

.hero-download-btn:hover .hero-download-btn__content,
.hero-download-btn:focus-visible .hero-download-btn__content {
  background: linear-gradient(180deg, rgba(12, 42, 20, 0.95) 0%, rgba(4, 14, 7, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.hero-download-btn:hover .hero-download-btn__content i,
.hero-download-btn:focus-visible .hero-download-btn__content i {
  transform: translateY(2px);
}

.hero-download-btn:focus-visible {
  outline: 2px solid rgba(61, 220, 132, 0.65);
  outline-offset: 4px;
}

@keyframes heroWordRevealLeft {
  to {
    opacity: 1;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.25));
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroWordRevealRight {
  to {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(61, 220, 132, 0.5));
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes heroTitleScan {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

@keyframes heroTitleGlow {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  45% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
}

@keyframes heroAccentShimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes heroTaglineIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroTaglineReveal {
  to {
    clip-path: inset(0 0 0 0);
    filter: blur(0);
  }
}

@keyframes heroHighlightShimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

@keyframes heroHighlightUnderline {
  to {
    transform: scaleX(1);
  }
}

@keyframes heroDownloadIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroDownloadGlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@media (min-width: 769px) {
  .hero-title-text {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.38em;
  }

  .hero-title-reveal {
    display: inline-block;
    padding: 0.04em 0 0.12em;
  }

  .hero-title-word {
    display: inline-block;
  }

  .hero-title-scan {
    top: 58%;
  }
}

@media (max-width: 768px) {
  #hero {
    padding: 5.5rem 0 2.5rem;
  }

  #hero .hero-content {
    gap: 1.75rem;
  }

  .hero-title {
    transform:
      translate3d(0, calc(var(--hero-scroll) * -32px), 0)
      scale(calc(1 - var(--hero-scroll) * 0.08));
    filter: none;
  }

  .hero-tagline {
    margin: 0;
  }

  .hero-interactive-bg::before {
    background-size: min(62vw, 260px);
  }

  .hero-static-grid {
    background-size: 48px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title {
    transform: none;
    opacity: 1;
    filter: none;
  }

  .hero-tagline {
    opacity: 1;
    transform: none;
  }

  .hero-title-word {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }

  .hero-title-glow,
  .hero-title-scan {
    animation: none;
  }

  .hero-title--ready .hero-title-glow {
    opacity: 0.4;
    transform: none;
  }

  .hero-tagline.hero-tagline--visible {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .hero-tagline-text {
    clip-path: none;
    filter: none;
  }

  .hero-tagline-highlight,
  .hero-tagline-highlight::after {
    animation: none;
  }

  .hero-tagline-highlight::after {
    transform: scaleX(1);
  }

  .hero-download-btn {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Screenshot Slider */
.screenshot-slider {
  padding-top: 0px;
  padding: 10px 0;
  background-color: #000;
  color: white;
  text-align: center;
  overflow: hidden;
}

.carousel {
  margin-top: -15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 100vh;
}

.carousel img {
  border-radius: 15px;
  /*box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.2);*/
  width: 30%;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Smooth transition effect for sliding */
.carousel-item {
  margin-top: 0px;
  display: none; /* Hide all initially */
  justify-content: center;
  align-items: center;
  padding-left:10%;
  width: 90%;
  height: 100vh;
  opacity: 0;
  text-align: center;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  animation: slide 0.8s ease-in-out;
}

.carousel-item.active {
  display: flex !important;
  opacity: 1;
  transform: translateX(0);
}

/* Add a parallax effect */
.carousel-item.active img {
  transform: scale(1.1);
  opacity: 1;
}

/* Ensure images are properly displayed */
.carousel-item img {
  display: block;
  max-width: 80%;
  max-height: 90vh; /* Prevents the image from exceeding the viewport height */
  height: auto;
  width: auto;
  margin: auto;
  object-fit: contain; /* Ensure full image is visible */
}

/* Make images bigger on mobile */
@media (max-width: 768px) {
  .carousel img {
    height: 100%;
    top-padding:0;
  }
}

/* Add smooth sliding animation */
@keyframes slide {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.statistics {
  padding: 50px 0;
  background-color: #000;
}

.section-layout {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 1080px;
  margin: 0 auto;
}

.section-intro {
  margin-bottom: 0.25rem;
}

.section-title,
.screenshot-header {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2rem);
  color: #f8f9fa;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.section-lead,
.statistics-lead {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.text-accent {
  color: #7dff7d;
}

/* Latest Release Banner */
.latest-banner {
  padding: 70px 0 40px;
  background: #000;
}

.latest-banner-eyebrow {
  margin: 0 0 0.35rem;
  color: rgba(255, 120, 120, 0.9);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.latest-banner-showcase {
  position: relative;
  display: block;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(
    120deg,
    rgba(220, 53, 69, 0.55),
    rgba(40, 167, 69, 0.35),
    rgba(255, 180, 120, 0.35),
    rgba(220, 53, 69, 0.55)
  );
  background-size: 240% 240%;
  animation: latestBannerBorderShift 8s ease infinite;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.latest-banner-showcase:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 36px 80px rgba(220, 53, 69, 0.18);
}

.latest-banner-ambient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 18% 50%, rgba(180, 30, 50, 0.28), transparent 42%),
    radial-gradient(circle at 82% 28%, rgba(255, 170, 90, 0.16), transparent 38%);
  filter: blur(18px);
  animation: latestBannerAmbientPulse 5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.latest-banner-frame {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.latest-banner-image {
  display: block;
  width: 100%;
  height: auto;
  animation: latestBannerKenBurns 16s ease-in-out infinite alternate;
  transition: transform 0.2s ease-out;
}

.latest-banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-130%);
  animation: latestBannerShine 6.5s ease-in-out infinite;
  pointer-events: none;
}

.latest-banner-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.latest-banner-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.latest-banner-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff6b6b;
  box-shadow: 0 0 12px rgba(255, 107, 107, 0.8);
  animation: latestBannerDotPulse 1.8s ease-in-out infinite;
}

.latest-banner-cta {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(125, 255, 125, 0.28);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.latest-banner-showcase:hover .latest-banner-cta {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(125, 255, 125, 0.45);
  background: rgba(40, 167, 69, 0.22);
}

@keyframes latestBannerKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-0.8%, -0.4%); }
}

@keyframes latestBannerShine {
  0%, 72% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes latestBannerBorderShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes latestBannerAmbientPulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

@keyframes latestBannerDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

@media (max-width: 768px) {
  .latest-banner {
    padding: 50px 0 30px;
  }

  .latest-banner-chip {
    top: 0.75rem;
    left: 0.75rem;
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
  }

  .latest-banner-cta {
    opacity: 1;
    transform: translateY(0);
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.78rem;
    padding: 0.45rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .latest-banner-showcase,
  .latest-banner-showcase *,
  .screenshot-stage,
  .screenshot-stage * {
    animation: none !important;
  }

  .latest-banner-cta {
    opacity: 1;
    transform: none;
  }
}

.screenshots,
.latest-banner,
.statistics,
#team {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.is-offscreen,
.is-offscreen * {
  animation-play-state: paused !important;
}

/* Screenshots */
.screenshots {
  padding: 70px 0;
  background: #000;
  overflow: hidden;
}

.screenshot-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.screenshot-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 2rem 1rem 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(40, 167, 69, 0.16), transparent 55%),
    linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.screenshot-stage-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.28), transparent 70%);
  filter: blur(12px);
  animation: screenshotGlowPulse 4.5s ease-in-out infinite;
}

.screenshot-stage-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(125, 255, 125, 0.12);
  pointer-events: none;
}

.screenshot-stage-ring-one {
  width: 280px;
  height: 280px;
  animation: screenshotRingSpin 18s linear infinite;
}

.screenshot-stage-ring-two {
  width: 360px;
  height: 360px;
  animation: screenshotRingSpin 26s linear infinite reverse;
}

.screenshot-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  animation: screenshotFloat 5s ease-in-out infinite;
}

.screenshot-hero-frame {
  position: relative;
  width: min(280px, 72vw);
  padding: 0.85rem;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(40, 167, 69, 0.12);
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.screenshot-hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.screenshot-hero-image.is-visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.screenshot-hero-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.screenshot-hero-label {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(40, 167, 69, 0.14);
  border: 1px solid rgba(40, 167, 69, 0.28);
  color: #7dff7d;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.screenshot-hero-zoom {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.screenshot-hero-zoom:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 255, 125, 0.35);
  background: rgba(40, 167, 69, 0.1);
  color: #fff;
}

.screenshot-bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 0.85rem;
}

.screenshot-tile {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.55s ease;
  transition-delay: var(--tile-delay, 0ms);
}

.screenshot-showcase.is-visible .screenshot-tile {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.screenshot-tile-wide {
  grid-column: span 2;
}

.screenshot-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.screenshot-tile-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.screenshot-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.screenshot-tile:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(125, 255, 125, 0.35);
  box-shadow: 0 16px 36px rgba(40, 167, 69, 0.14);
}

.screenshot-tile:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.screenshot-tile.is-active {
  border-color: rgba(40, 167, 69, 0.55);
  box-shadow: 0 0 0 1px rgba(40, 167, 69, 0.18), 0 18px 40px rgba(40, 167, 69, 0.16);
}

@keyframes screenshotFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@keyframes screenshotGlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes screenshotRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 992px) {
  .screenshot-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 180px;
  }

  .screenshot-tile-wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .screenshot-stage {
    min-height: 360px;
    padding: 1.5rem 0.85rem 1rem;
  }

  .screenshot-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .screenshot-tile-wide {
    grid-column: auto;
  }
}

/* FAQ */
.faq {
  padding: 70px 0;
  background: #000;
}

.faq-layout {
  max-width: 820px;
}

.faq-panel {
  padding: 1.25rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-accordion-item {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.faq-accordion-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem !important;
  border: none !important;
  border-radius: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #f8f9fa !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}

.faq-accordion-button:not(.collapsed) {
  background: rgba(40, 167, 69, 0.1) !important;
  color: #fff !important;
}

.faq-accordion-button::after {
  filter: invert(1);
  opacity: 0.65;
}

.faq-accordion-button i {
  color: #7dff7d;
  font-size: 1.05rem;
}

.faq-accordion-body {
  padding: 0 1.1rem 1.1rem 2.85rem !important;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

/* Team */
.team {
  padding: 70px 0 90px;
  background: #000;
}

.team-eyebrow, .team-group-kicker { margin: 0; color: #7dff7d; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.team-directory { display: grid; gap: 3rem; }
.team-group { min-width: 0; }
.team-group--maintainers { padding: 1.5rem; border: 1px solid rgba(125, 255, 125, 0.13); border-radius: 24px; background: radial-gradient(circle at top right, rgba(40, 167, 69, 0.13), transparent 35%), rgba(255, 255, 255, 0.025); }
.team-group-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.team-group-title { margin: 0.2rem 0 0; color: #fff; font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
.team-count { flex: 0 0 auto; padding: 0.38rem 0.68rem; border: 1px solid rgba(125, 255, 125, 0.25); border-radius: 999px; background: rgba(40, 167, 69, 0.12); color: #b8ffb8; font-size: 0.78rem; font-weight: 600; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); align-items: start; gap: 2rem 1rem; padding: 0.6rem 0 1.25rem; }
.team-grid--maintainers { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }

.team-loading,
.team-error { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 120px; color: rgba(255, 255, 255, 0.7); }

.team-profile { --scroll-float: 0px; position: relative; display: grid; justify-items: center; min-width: 0; transform: translateY(var(--scroll-float)); transition: transform 0.35s ease-out; z-index: 1; }
.team-profile:hover, .team-profile:focus-within, .team-profile.is-open { z-index: 5; }
.team-profile-float { position: relative; width: 116px; animation: team-profile-float 4.5s ease-in-out var(--profile-delay, 0s) infinite alternate; }
.team-profile:nth-child(even) .team-profile-float { animation-direction: alternate-reverse; }
.team-profile-trigger { display: block; width: 116px; height: 116px; padding: 3px; border: 0; border-radius: 50%; background: linear-gradient(135deg, #28a745, #a3ff9e); box-shadow: 0 10px 26px rgba(40, 167, 69, 0.22); cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.team-profile-trigger:hover, .team-profile-trigger:focus-visible, .team-profile.is-open .team-profile-trigger { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(125, 255, 125, 0.16), 0 16px 32px rgba(40, 167, 69, 0.32); outline: none; }
.team-avatar { display: block; width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 3px solid #080808; }
.team-profile-info { position: absolute; top: calc(100% + 0.85rem); left: 50%; width: min(228px, 78vw); padding: 0.95rem; border: 1px solid rgba(125, 255, 125, 0.24); border-radius: 16px; background: rgba(12, 14, 13, 0.97); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.48); text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%, -8px) scale(0.96); transition: opacity 0.2s ease, transform 0.2s ease; }
.team-profile:hover .team-profile-info, .team-profile:focus-within .team-profile-info, .team-profile.is-open .team-profile-info { opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.team-name { margin: 0; color: #fff; font-size: 1rem; font-weight: 700; }
.team-role { margin: 0.35rem 0 0; color: #7dff7d; font-size: 0.77rem; font-weight: 600; }
.team-devices { margin: 0.45rem 0 0; color: rgba(255, 255, 255, 0.68); font-size: 0.76rem; line-height: 1.45; }
.team-devices i { margin-right: 0.35rem; color: #7dff7d; }
.team-socials { display: flex; align-items: center; justify-content: center; gap: 0.55rem; margin-top: 0.7rem; }
.team-social-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #f8f9fa !important; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.team-social-link:hover, .team-social-link:focus-visible { transform: translateY(-2px); background: rgba(40, 167, 69, 0.18); border-color: rgba(125, 255, 125, 0.35); color: #fff !important; }
@keyframes team-profile-float { from { translate: 0 -4px; } to { translate: 0 7px; } }
@media (max-width: 575px) { .team-grid, .team-grid--maintainers { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 1.7rem 0.5rem; } .team-profile-float, .team-profile-trigger { width: 98px; height: 98px; } .team-avatar { width: 92px; height: 92px; } }
@media (prefers-reduced-motion: reduce) { .team-profile, .team-profile-float, .team-profile-trigger, .team-profile-info { animation: none; transition: none; } }

.download-stats-panel {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1.75rem;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.download-stats-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.download-stats-title {
  margin: 0 0 0.35rem;
  color: #f8f9fa;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.download-stats-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

.download-stats-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.download-stats-loading,
.download-stats-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 120px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.download-stats-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #28a745;
  border-radius: 50%;
  animation: downloadStatsSpin 0.8s linear infinite;
}

@keyframes downloadStatsSpin {
  to { transform: rotate(360deg); }
}

.download-stats-overall {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.18), rgba(40, 167, 69, 0.05));
  border: 1px solid rgba(40, 167, 69, 0.35);
}

.download-stats-overall-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-stats-overall-value {
  color: #fff;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 24px rgba(40, 167, 69, 0.35);
}

.download-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.download-stats-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1rem 0.95rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.download-stats-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.download-stats-card.is-latest {
  border-color: rgba(40, 167, 69, 0.45);
  background: rgba(40, 167, 69, 0.08);
}

.download-stats-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}

.download-stats-version {
  color: #f8f9fa;
  font-size: 1rem;
  font-weight: 700;
}

.download-stats-badge {
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(40, 167, 69, 0.2);
  color: #7dff7d;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.download-stats-card-value {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.download-stats-card-share {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.download-stats-card-share-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #28a745, #7dff7d);
}

.download-stats-card-percent {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
}

@media (max-width: 768px) {
  .download-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .download-stats-panel {
    padding: 1.25rem;
  }

  .download-stats-grid {
    grid-template-columns: 1fr;
  }
}

.charts-section {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.charts-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 1px solid rgba(40, 167, 69, 0.35);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.16), rgba(40, 167, 69, 0.05));
  color: #f8f9fa;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.charts-toggle-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 255, 125, 0.55);
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.24), rgba(40, 167, 69, 0.08));
}

.charts-toggle-chevron {
  margin-left: auto;
  transition: transform 0.25s ease;
}

.charts-toggle-btn[aria-expanded="true"] .charts-toggle-chevron {
  transform: rotate(180deg);
}

.charts-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.35s ease, opacity 0.35s ease, margin 0.35s ease;
  margin-top: 0;
}

.charts-panel.show {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.25rem;
}

.charts-panel > .charts-grid {
  overflow: hidden;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chart-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(20, 20, 20, 0.95), rgba(8, 8, 8, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.chart-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.chart-card-eyebrow {
  margin: 0 0 0.15rem;
  color: rgba(125, 255, 125, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-card-title {
  margin: 0;
  color: #f8f9fa;
  font-size: 1.05rem;
  font-weight: 700;
}

.chart-card-icon {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.15rem;
}

.chart-canvas-wrap {
  position: relative;
  height: 260px;
  width: 100%;
}

.chart-canvas-wrap-tall {
  height: 300px;
}

.badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .chart-card-wide {
    grid-column: auto;
  }

  .chart-canvas-wrap,
  .chart-canvas-wrap-tall {
    height: 240px;
  }
}

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

.col-md-4 {
  flex: 1 1 300px;
  max-width: 400px;
  padding: 10px;
}

/* Ensure position text is fully white */
.card .position,
.card p {
  color: white !important;
  opacity: 1 !important;
  font-weight: bold; /* Make it more visible */
}

/* Change social icons to white */
.card .bi {
  font-size: 1.5rem;
  margin: 0 5px;
  color: white !important; /* Ensure icons are white */
  transition: color 0.3s;
}

.card .bi:hover {
  color: #007bff !important; /* Add hover effect */
}

/* Fix GitHub & Telegram icons */
.card .social-links a i {
  color: white !important;
}

/* Modern Navbar */
.header {
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease;
}

.scrolled .header {
  --background-color: rgba(2, 8, 4, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(61, 220, 132, 0.14);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.header .logo h1,
.header .logo .sitename {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #3ddc84 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1200px) {
  .navmenu > ul {
    gap: 0.25rem;
    padding: 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  }

  .navmenu > ul > li {
    padding: 0;
  }

  .navmenu > ul > li > a,
  .navmenu > ul > li > a:focus {
    padding: 0.52rem 1rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    transition:
      color 0.25s ease,
      background 0.25s ease,
      box-shadow 0.25s ease,
      transform 0.25s ease;
  }

  .navmenu > ul > li > a:before {
    display: none;
  }

  .navmenu > ul > li > a:hover,
  .navmenu > ul > li:hover > a {
    color: #ffffff;
    background: rgba(61, 220, 132, 0.12);
    transform: translateY(-1px);
  }

  .navmenu > ul > li > a.active,
  .navmenu > ul > li > a.active:focus {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.24), rgba(40, 167, 69, 0.16));
    box-shadow:
      inset 0 0 0 1px rgba(61, 220, 132, 0.28),
      0 4px 16px rgba(61, 220, 132, 0.12);
  }
}

@media (max-width: 1199px) {
  .header,
  .scrolled .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: rgba(2, 8, 4, 0.84);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  body.mobile-nav-active .mobile-nav-backdrop {
    display: block;
  }

  body.mobile-nav-active #header {
    z-index: 10060 !important;
  }

  #header .container-fluid.container-xl {
    gap: 0.75rem;
  }

  #header .logo {
    min-width: 0;
    flex: 1 1 auto;
  }

  #header .logo .sitename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  #header .logo img {
    max-height: 28px;
    flex-shrink: 0;
  }

  .navmenu {
    position: static !important;
    padding: 0;
    margin: 0;
    overflow: visible !important;
    background: none !important;
    width: auto;
    height: auto;
  }

  .navmenu > ul {
    display: none !important;
  }

  #mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10055;
    margin: 0;
    padding: 0;
  }

  body.mobile-nav-active #mobile-nav-drawer {
    display: block;
  }

  #mobile-nav-drawer > ul {
    display: flex !important;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0.75rem;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 18px;
    background: rgba(4, 12, 6, 0.98);
    border: 1px solid rgba(61, 220, 132, 0.16);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  }

  .mobile-nav-toggle {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--nav-color);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    z-index: 10061;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus-visible {
    background: rgba(61, 220, 132, 0.12);
    border-color: rgba(61, 220, 132, 0.25);
    color: #ffffff;
    outline: none;
  }

  body.mobile-nav-active .mobile-nav-toggle {
    position: fixed !important;
    top: max(15px, env(safe-area-inset-top)) !important;
    right: max(15px, env(safe-area-inset-right)) !important;
    z-index: 10061 !important;
    color: #ffffff;
  }

  #mobile-nav-drawer li {
    display: block;
    width: 100%;
  }

  #mobile-nav-drawer a,
  #mobile-nav-drawer a:focus {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    margin: 0.12rem 0;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.82);
    transition: background 0.25s ease, color 0.25s ease;
    white-space: normal;
  }

  #mobile-nav-drawer a:hover,
  #mobile-nav-drawer .active,
  #mobile-nav-drawer .active:focus {
    color: #ffffff;
    background: rgba(61, 220, 132, 0.12);
  }

  #mobile-nav-drawer .active,
  #mobile-nav-drawer .active:focus {
    box-shadow: inset 3px 0 0 #3ddc84;
  }
}

/* What's New Modal */
body.whats-new-open {
  overflow: hidden;
}

.whats-new-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.whats-new-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.whats-new-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 4, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.whats-new-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(86vh, 920px);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(14, 32, 18, 0.98) 0%, rgba(4, 10, 6, 0.98) 100%);
  border: 1px solid rgba(61, 220, 132, 0.22);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translate3d(0, 28px, 0) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.whats-new-modal.is-open .whats-new-modal__panel {
  transform: translate3d(0, 0, 0) scale(1);
}

.whats-new-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.35rem 1rem;
  border-bottom: 1px solid rgba(61, 220, 132, 0.12);
  background: linear-gradient(180deg, rgba(61, 220, 132, 0.06), transparent);
}

.whats-new-modal__eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(61, 220, 132, 0.85);
}

.whats-new-modal__title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
}

.whats-new-modal__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.whats-new-modal__close:hover,
.whats-new-modal__close:focus-visible {
  color: #ffffff;
  background: rgba(61, 220, 132, 0.14);
  border-color: rgba(61, 220, 132, 0.35);
  transform: rotate(90deg);
  outline: none;
}

.whats-new-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.35rem 1.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 220, 132, 0.45) transparent;
}

.whats-new-modal__body::-webkit-scrollbar {
  width: 6px;
}

.whats-new-modal__body::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.45);
}

.whats-new-modal__loading,
.whats-new-modal__error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 180px;
  text-align: center;
  color: rgba(255, 255, 255, 0.72);
}

.whats-new-modal__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(61, 220, 132, 0.18);
  border-top-color: #3ddc84;
  animation: whatsNewSpin 0.85s linear infinite;
}

.whats-new-modal__error {
  color: #ffb4b4;
}

.whats-new-entry {
  position: relative;
  margin-bottom: 0.85rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: whatsNewEntryIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.whats-new-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3ddc84, #28a745);
}

.whats-new-entry__badge {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(61, 220, 132, 0.12);
  border: 1px solid rgba(61, 220, 132, 0.22);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(125, 255, 125, 0.95);
}

.whats-new-entry__title {
  margin: 0 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
}

.whats-new-entry__body {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.65;
  font-size: 0.92rem;
}

.whats-new-entry__body p {
  margin: 0 0 0.55rem;
}

.whats-new-entry__body p:last-child {
  margin-bottom: 0;
}

@keyframes whatsNewSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes whatsNewEntryIn {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 768px) {
  .whats-new-modal {
    padding: 0.75rem;
  }

  .whats-new-modal__panel {
    max-height: 92vh;
    border-radius: 18px;
  }

  .whats-new-modal__header,
  .whats-new-modal__body {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whats-new-modal,
  .whats-new-modal__panel,
  .whats-new-entry {
    animation: none;
    transition: none;
  }

  .whats-new-modal__spinner {
    animation: none;
    border-top-color: rgba(61, 220, 132, 0.45);
  }
}

/* End Main */
