/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  --background-color: #0c0a18;
  --section-bg-color: #161228;
  --primary-glow-color: rgba(173, 59, 245, 0.25);
  --grid-color: rgba(255, 255, 255, 0.07);
  --text-color: #e0e0e0;
  --heading-color: #ffffff;
  --button-bg-color: #8a2be2;
  --button-hover-bg-color: #9932cc;
  --card-bg-color: rgba(30, 26, 58, 0.5); 
  --card-border-color: rgba(255, 255, 255, 0.1);
  --success-color: #82b440;
  --highlight-color: #8a2be2;
  --highlight-color-blue: #3d96f4;
  --star-color: #ffc107;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lexend', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Font Setup --- */
h1, h2, h3,
.logo,
.main-nav a,
.header-cta-btn,
.cta-button,
.marquee-item,
.section-header .section-subtitle,
.demo-content .section-subtitle,
.cta-subtitle,
.testimonial-rating,
.author-name,
.view-all-btn,
.cta-btn {
    font-family: 'Sora', sans-serif;
}


main {
  width: 100%;
}

/* --- Main Header --- */
.main-header {
    height: var(--header-height);
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-absolute {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

.header-sticky {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(12, 10, 24, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border-color);
    transform: translateY(-100%);
    transition: transform 0.4s ease-out;
}

.header-sticky.is-sticky {
    transform: translateY(0);
}

@keyframes slideInHeader {
    to {
        transform: translateY(0);
    }
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: var(--heading-color);
}

.header-cta-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    /* Animated border styles */
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid transparent;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-image: 
        linear-gradient(90deg, #8a2be2, #a042f0),
        conic-gradient(from var(--angle) at 50% 50%, #8a2be2, #d89cff, #8a2be2);
    animation: rotate-border 4s linear infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(153, 50, 204, 0.5);
    background-image: 
        linear-gradient(90deg, #9932cc, #b052f5),
        conic-gradient(from var(--angle) at 50% 50%, #8a2be2, #d89cff, #8a2be2);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .hamburger-line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--heading-color);
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* --- End Main Header --- */

.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: calc(var(--header-height) + 80px) 20px 20px;
  text-align: center;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1693590229281-6a78deecd122?q=80&w=1920&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(12, 10, 24, 0.5);
  z-index: 0;
}


#particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  animation: float-up forwards linear infinite;
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10%, 90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh);
    opacity: 0;
  }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--primary-glow-color) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.2;
  pointer-events: none;
  z-index: 2;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, var(--background-color) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--heading-color);
  text-decoration: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 800px;
}

.elementor-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: white;
    color: #1A1B1F;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.elementor-badge:hover {
    transform: scale(1.05);
}

.elementor-badge img {
    height: 16px;
    width: auto;
}


.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-top: 0; 
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 600px;
  color: var(--text-color);
  opacity: 0.9;
}

.cta-button {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  padding: 12px 30px;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
  overflow: hidden;
  border: 2px solid transparent;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-image: 
    linear-gradient(var(--button-bg-color), var(--button-bg-color)),
    conic-gradient(from var(--angle) at 50% 50%, #8a2be2, #a76be0, #8a2be2);
  animation: rotate-border 4s linear infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  text-decoration: none;
}

.cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: skewX(-25deg);
  transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-button:hover {
  background-image: 
    linear-gradient(var(--button-hover-bg-color), var(--button-hover-bg-color)),
    conic-gradient(from var(--angle) at 50% 50%, #8a2be2, #d89cff, #8a2be2);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(153, 50, 204, 0.6);
}

.cta-button:hover::after {
  left: 150%;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  z-index: 3;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  margin-top: 60px;
  margin-bottom: 60px;
}

.carousel-track {
  display: flex;
  width: fit-content;
}

.carousel-track img {
  width: 350px;
  height: auto;
  aspect-ratio: 400 / 250;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 1rem;
  flex-shrink: 0;
  border: 2px solid rgba(224, 224, 224, 0.25);
  box-shadow: 0 0 15px rgba(224, 224, 224, 0.15);
}

@keyframes rotate-border {
  0% {
    --angle: 0deg;
  }
  100% {
    --angle: 360deg;
  }
}

.scroll-down-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-color);
  border-radius: 12px;
  cursor: pointer;
}

.scroll-down-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background-color: var(--text-color);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 16px);
  }
}

/* --- Section Divider --- */
.section-divider {
    height: 1px;
    border: 0;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background-image: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* --- Features Section --- */
.features-section {
  padding: 100px 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
  z-index: 3;
}

.features-section .section-header .section-subtitle {
    color: var(--highlight-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.feature-card {
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  background-color: transparent; /* Card is just a positioning context */
  overflow: hidden;
}

/* ::before is the animated gradient. Sits at the very back. */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  /* A gradient that is ~50% transparent, creating a sweeping "L" or "U" shape */
  background: conic-gradient(
    from var(--angle),
    transparent 0deg,
    transparent 180deg,
    #a76be0 240deg,
    var(--highlight-color) 360deg
  );
  animation: rotate-border 4s linear infinite;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* ::after is the solid background. It has a static border by default.
   On hover, it shrinks slightly, revealing the gradient underneath. */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-color: var(--section-bg-color);
  border: 1px solid var(--card-border-color);
  z-index: -1;
  transition: inset 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 20px rgba(138, 43, 226, 0.3);
}

.feature-card:hover::before {
  opacity: 1; /* Reveal the gradient */
}

.feature-card:hover::after {
  inset: 2px; /* Shrink the background to create a 2px border */
  border-color: transparent; /* Hide the static border */
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #8a2be2, #6b22b1);
  box-shadow: 0 4px 10px rgba(138, 43, 226, 0.2);
  color: white;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--heading-color);
  font-weight: 600;
  margin: 0;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0;
}


/* --- Marquee Section --- */
.marquee-wrapper {
  background-color: var(--background-color);
  padding: 50px 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.marquee-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 70px;
    background: #a76be0;
    transform: translateY(-50%) rotate(0deg);
    z-index: 1;
}

.marquee {
  --marquee-height: 70px;
  --marquee-skew: -2.5deg;
  position: relative;
  height: var(--marquee-height);
  background-color: var(--button-bg-color);
  transform: skewY(var(--marquee-skew));
  overflow: hidden;
  z-index: 2;
  display: flex;
}

.marquee__content {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-width: 100%;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-right: 2rem;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transform: skewY(calc(var(--marquee-skew) * -1)) rotate(-2.5deg);
}

.marquee-item .separator {
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.marquee-item .separator svg {
  width: 24px;
  height: 24px;
  animation: sparkle-glow 2.5s ease-in-out infinite;
}


@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes sparkle-glow {
  0%, 100% {
    opacity: 0.7;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.section-header {
    text-align: center;
    max-width: 600px;
    z-index: 1;
    margin: 0 auto 2rem;
}

.section-header .section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--heading-color);
  margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-color);
    opacity: 0.9;
}


/* --- Demos Section (Redesigned) --- */
.demos-section {
  padding: 100px 20px;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
  color: var(--text-color);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Left column smaller than right */
    align-items: center;
    gap: 4rem;
    max-width: 1300px;
    margin: 0 auto;
}

.demo-content .section-subtitle {
    text-align: left;
    color: var(--highlight-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.demo-content h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: left;
}

.demo-description {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

.demo-features-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.demo-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.feature-icon-small {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(138, 43, 226, 0.1);
    color: var(--highlight-color);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.feature-icon-small svg {
    width: 18px;
    height: 18px;
}

.demo-preview {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--card-border-color);
    overflow: hidden;
    transform: perspective(1500px) rotateY(-15deg) rotateX(5deg);
    box-shadow: -20px 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.demo-preview:hover {
    transform: perspective(1500px) rotateY(0deg) rotateX(0deg) scale(1.05);
}

.demo-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px; /* Browser top bar */
    background-color: #2e284d;
    border-bottom: 1px solid var(--card-border-color);
    z-index: 1;
}

.demo-preview::after {
    content: '● ● ●';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 5px;
    z-index: 2;
}

.demo-preview img {
    width: 100%;
    display: block;
    margin-top: 30px; /* Push image below the pseudo-browser bar */
}

/* --- Demo Grid Section --- */
.demo-grid-section {
  padding: 100px 20px;
  background-color: var(--background-color);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(405px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto 0;
}

.demo-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--card-border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.demo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(138, 43, 226, 0.3);
  border-color: rgba(138, 43, 226, 0.4);
}


.demo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.demo-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(12, 10, 24, 0.95) 20%, transparent 100%);
  color: var(--heading-color);
  transition: opacity 0.3s ease;
}

/* .demo-card-content.light-theme {
    color: var(--background-color);
    font-weight: 600;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 20%, transparent 100%);
} */

.demo-card-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.demo-card:hover .demo-card-content h3 {
  transform: translateY(0);
  opacity: 1;
}

.demo-card::after {
    content: 'View Demo →';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--highlight-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.demo-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.demo-card:last-child::after{display: none;} 

/* --- Reviews Section (New Testimonials Layout) --- */
.reviews-section {
  padding: 100px 20px;
  background-color: var(--background-color);
  position: relative;
  overflow: hidden;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.testimonial-intro {
    text-align: left;
}

.testimonial-intro .section-subtitle {
    color: var(--text-color);
    opacity: 0.8;
    text-transform: uppercase;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.testimonial-intro h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--heading-color);
    margin: 1rem 0 1.5rem;
    line-height: 1.2;
}

.testimonial-intro p {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    border-radius: 50px;
    background-color: #fff;
    color: var(--background-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.view-all-btn svg {
  transition: transform 0.3s ease;
}

.view-all-btn:hover {
    transform: translateY(-2px);
    background-color: #f0f0f0;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.view-all-btn:hover svg {
    transform: translateX(4px);
}

.testimonials-grid-wrapper {
    height: 550px;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.testimonials-grid-wrapper:hover .testimonial-column {
    animation-play-state: paused;
}

.testimonials-grid {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.testimonial-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    flex: 1;
}

@keyframes scroll-up {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

@keyframes scroll-down {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

#testimonial-col-1 {
    animation: scroll-down 30s linear infinite;
}

#testimonial-col-2 {
    animation: scroll-up 30s linear infinite;
}

.testimonial-card {
  background-color: var(--section-bg-color);
  border: 1px solid var(--card-border-color);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
}

.testimonial-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-rating svg {
  width: 20px;
  height: 20px;
  color: var(--star-color);
}

.testimonial-body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.9;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border-color);
}

.testimonial-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    border: none;
    background-color: #a0f679;
    padding: 6px;
    box-sizing: border-box;
}

.testimonial-author div {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* --- FAQ Section --- */
.faq-section {
  padding: 100px 20px;
  background-color: var(--background-color);
  color: var(--text-color);
  position: relative;
  z-index: 3;
}

.faq-section .section-header .section-subtitle {
  color: var(--highlight-color);
}

.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: var(--section-bg-color);
  border: 1px solid var(--card-border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.faq-item:hover {
  border-color: var(--highlight-color);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--highlight-color);
}

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-color);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0;
}

/* Active State */
.faq-item.active {
  border-color: var(--highlight-color);
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.08), transparent 60%);
  box-shadow: 0 5px 25px rgba(138, 43, 226, 0.15);
}

.faq-item.active .faq-question {
  color: var(--highlight-color);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--highlight-color);
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 20px;
    background-color: var(--background-color);
}

.cta-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    border-radius: 24px;
    background-image: linear-gradient(rgba(18, 12, 40, 0.2), rgba(18, 12, 40, 0.4)), url('https://images.unsplash.com/photo-1693590229281-6a78deecd122?q=80&w=1920&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
    position: relative;
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--heading-color);
    font-weight: 700;
    max-width: 700px;
    line-height: 1.2;
    position: relative;
    margin-bottom: 0;
}

.envato-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-color);
    opacity: 0.8;
}

.envato-link img {
    height: 20px;
    width: auto;
    border: none;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.cta-btn.primary {
    color: var(--heading-color);
    background-color: #1A1B1F;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.primary:hover {
    background-color: #2a2b2f;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}


/* Shimmer effect for animated buttons */
.header-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transform: skewX(-25deg);
  transition: left 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2; /* Ensure it's above the button content but below text */
}

.header-cta-btn:hover::after {
    left: 150%;
}


.cta-btn.secondary {
    background-color: transparent;
    color: var(--heading-color);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* --- Footer --- */
footer {
    padding: 0;
    text-align: center;
    background-color: var(--background-color);
    color: var(--text-color);
}

.copyright-text {
    padding: 2rem 1rem;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* --- Back to Top Button with Progress --- */
.progress-wrap {
  position: fixed;
  right: 50px;
  bottom: 50px;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  box-shadow: inset 0 0 0 2px rgba(138, 43, 226, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 200ms linear, visibility 200ms linear, transform 200ms linear;
  background-color: rgb(52 7 93 / 33%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap .arrow-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.progress-wrap .arrow-up {
  color: var(--highlight-color);
  transition: all 200ms linear;
}

.progress-wrap .progress-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.progress-wrap .progress-circle path {
  fill: none;
  stroke: var(--highlight-color);
  stroke-width: 4;
  box-sizing: border-box;
  transition: stroke-dashoffset 10ms linear;
}


@media (max-width: 1024px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .demo-preview {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
        order: -1; /* Move image to the top on mobile */
    }
    .demo-content h2, .demo-content .section-subtitle {
        text-align: center;
    }
}

@media (max-width: 992px) {
    .testimonials-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    .testimonial-intro {
        text-align: center;
    }
    .testimonial-intro p {
        margin-left: auto;
        margin-right: auto;
    }
}


@media (max-width: 768px) {
  .main-header {
    padding: 0 1.5rem;
  }
  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1000;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
  .main-nav a {
    font-size: 1.5rem;
  }
  .header-cta-btn {
    display: none;
  }

  /* Show sticky CTA on mobile, but not absolute one */
  #sticky-header .header-cta-btn {
      display: flex;
  }

  .mobile-nav-toggle {
    display: block;
  }
  .main-header.nav-open .mobile-nav-toggle .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .main-header.nav-open .mobile-nav-toggle .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  .main-header.nav-open .mobile-nav-toggle .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content {
    margin-bottom: 2rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 0.9rem;
  }
  .carousel-track img {
    width: 280px;
  }
  .section-header h2 {
      font-size: 2rem;
  }
  .cta-title {
      font-size: 2rem;
  }
}

/* On mobile, the CTA is hidden by default. Let's make sure it's visible in the sticky header. */
@media (max-width: 768px) {
    #sticky-header .header-cta-btn {
        display: flex;
    }
    #main-header .header-cta-btn {
        display: none;
    }
}


@media (max-width: 600px) {
    .demo-features-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .testimonials-grid {
        flex-direction: column;
        height: auto;
    }
    #testimonial-col-2 {
        display: none; /* Hide second column on small screens for simplicity */
    }
    .testimonials-grid-wrapper {
        height: 400px;
    }
    .faq-question {
        font-size: 1rem;
        padding: 1.25rem;
    }
    .faq-answer p {
        padding: 0 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .main-header {
        padding: 0 1rem;
    }
    .carousel-track img {
        width: 220px;
    }
    .progress-wrap {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}