/* ------------------------- */
/* --- GLOBAL STYLES & VARIABLES --- */
/* ------------------------- */
:root {
  --bg: #0A0A0F;
  --bg-elev: #0F0F17;
  --text: #F5F6F8;
  --muted: #C7C9D1;
  --line: #1C1C24;
  --purple: #7C3AED;
  --purple-2: #8B5CF6;
  --purple-3: #3B0764;
  --accent: #A78BFA;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(124, 58, 237, .2);
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --h1-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  --h2-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  --h3-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  --body-size: clamp(1rem, 1vw + 0.5rem, 1.125rem);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Header height */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-primary);
  font-size: var(--body-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p {
  color: var(--muted);
  max-width: 65ch;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text);
}

ul {
  list-style: none;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-content:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  padding: 0.5em;
  background: var(--purple);
  color: var(--text);
  text-align: center;
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ------------------------- */
/* --- LAYOUT & CONTAINERS --- */
/* ------------------------- */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-padding {
  padding-block: clamp(64px, 8vw, 120px);
}
.bg-elev {
    background-color: var(--bg-elev);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.text-center {
    text-align: center;
}
.text-center p {
    margin-inline: auto;
}

/* ------------------------- */
/* --- ANIMATIONS --- */
/* ------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.card.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.card.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.card.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.card.scroll-reveal:nth-child(5) { transition-delay: 0.05s; }
.card.scroll-reveal:nth-child(6) { transition-delay: 0.15s; }
.card.scroll-reveal:nth-child(7) { transition-delay: 0.25s; }
.card.scroll-reveal:nth-child(8) { transition-delay: 0.35s; }

.product-feature-list li.scroll-reveal {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.product-feature-list li.scroll-reveal.visible {
    opacity: 1;
    transform: translateX(0);
}
.product-feature-list li.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.product-feature-list li.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.product-feature-list li.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.product-feature-list li.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.product-feature-list li.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.product-feature-list li.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
.product-feature-list li.scroll-reveal:nth-child(7) { transition-delay: 0.7s; }
.product-feature-list li.scroll-reveal:nth-child(8) { transition-delay: 0.8s; }
.product-feature-list li.scroll-reveal:nth-child(9) { transition-delay: 0.9s; }
.product-feature-list li.scroll-reveal:nth-child(10) { transition-delay: 1.0s; }

.shape {
    position: absolute;
    border-radius: 999px;
    background: var(--purple);
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite linear alternate;
    pointer-events: none;
}
.shape-1 { width: 400px; height: 400px; top: 10%; left: 5%; animation-duration: 25s; opacity: 0.1; }
.shape-2 { width: 250px; height: 250px; bottom: 15%; right: 10%; animation-duration: 18s; opacity: 0.15;}
.shape-3 {
    width: 20px; height: 20px; border-radius: 4px; top: 25%; left: 15%; animation-duration: 15s; opacity: 0.5; filter: blur(0);
    animation-name: spin;
}


@keyframes float {
    from { transform: translateY(-20px) translateX(10px) rotate(0deg); }
    to { transform: translateY(20px) translateX(-10px) rotate(180deg); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ------------------------- */
/* --- COMPONENTS --- */
/* ------------------------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--purple);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background-color: var(--purple-2);
  box-shadow: 0 12px 35px rgba(124, 58, 237, .3);
}

.btn--secondary {
  background-color: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn--secondary:hover {
  background-color: var(--bg-elev);
  border-color: var(--accent);
}

.btn--lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.card {
  background-color: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
}

.link-cta {
  font-weight: 500;
  display: inline-block;
  transition: transform 0.2s ease;
}
.link-cta:hover {
  transform: translateX(4px);
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent), var(--purple-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}


/* ------------------------- */
/* --- HEADER & NAVIGATION --- */
/* ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  padding-block: 1rem;
  background-color: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
  color: var(--muted);
  font-weight: 500;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link.dropdown-toggle::after {
    width: calc(100% - 20px); /* Don't underline the chevron */
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-link:hover,
.nav-link.active {
    color: var(--text);
}
.dropdown-chevron {
    transition: transform 0.2s ease;
}

.nav-item--has-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 150%;
    left: 0;
    min-width: 220px;
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, top 0.2s ease;
}
.nav-item--has-dropdown:hover > .dropdown-menu {
    top: 100%;
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}
.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}
.dropdown-menu li a:hover {
    background-color: var(--bg);
}
.dropdown-menu li a::after {
    display: none; /* No underline on dropdown items */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
}
.mobile-menu-toggle .icon-close { display: none; }

/* ------------------------- */
/* --- HERO SECTION --- */
/* ------------------------- */
.hero-section {
  text-align: center;
  padding-top: clamp(5rem, 12vw, 8rem);
  padding-bottom: clamp(4rem, 10vw, 6rem);
  position: relative;
  overflow: hidden;
}

.background-aurora {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: 
    radial-gradient(circle at 20% 30%, var(--purple-2), transparent 40%),
    radial-gradient(circle at 80% 70%, var(--purple-3), transparent 40%);
  filter: blur(80px);
  opacity: 0.2;
  z-index: -1;
}

.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: linear-gradient(145deg, var(--purple-3), var(--purple));
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.1);
    animation: pulse 2.5s infinite ease-in-out;
}
.hero-icon svg {
    width: 36px;
    height: 36px;
    color: var(--text);
}
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.1); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(124, 58, 237, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 10px rgba(124, 58, 237, 0.1); }
}


.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2.5rem auto;
    flex-wrap: wrap;
    max-width: 800px;
}
.highlight-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.highlight-card strong {
    color: var(--text);
    font-weight: 500;
    margin-right: 0.5rem;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.trust-row {
  margin-top: 5rem;
  color: var(--muted);
  opacity: 0.7;
}

/* ------------------------- */
/* --- FEATURES SECTION --- */
/* ------------------------- */
.features-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .features-grid.features-grid--4col {
        grid-template-columns: repeat(4, 1fr);
    }
     .features-grid.features-grid--2col {
        grid-template-columns: repeat(2, 1fr);
    }
}


.card--feature {
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card--feature:hover {
    transform: translateY(-8px);
    border-color: var(--purple);
    box-shadow: var(--shadow);
}

.card-icon {
    margin-bottom: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background-color: var(--bg);
    display: grid;
    place-items: center;
}
.card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.card--feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.card--feature p {
    font-size: 0.95rem;
    color: var(--muted);
}


/* ------------------------- */
/* --- HOW IT WORKS SECTION --- */
/* ------------------------- */
.how-it-works-section {
  background-color: var(--bg-elev);
}
.steps-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}
.step {
  text-align: center;
  max-width: 250px;
}
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--purple-3), var(--purple));
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  border: 1px solid var(--purple);
}
.step h3 {
  margin-bottom: 0.5rem;
}

.step-connector {
    flex-grow: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg,var(--line),var(--line) 4px,transparent 4px,transparent 10px);
    margin-top: 24px;
}

.how-it-works-cta {
  text-align: center;
}

/* ------------------------- */
/* --- INTEGRATIONS SECTION --- */
/* ------------------------- */
.integrations-section {
  text-align: center;
  overflow: hidden;
}

.logos-scroller {
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll 30s linear infinite;
  margin-top: 3rem;
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding-inline: 2rem;
}

.logos-track span {
    font-size: 1.2rem;
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

@keyframes scroll {
  to {
    transform: translateX(-50%);
  }
}

/* ------------------------- */
/* --- TESTIMONIALS SECTION --- */
/* ------------------------- */
.testimonials-section {
  background-color: var(--bg-elev);
  position: relative;
}
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, var(--purple-3), transparent 70%);
  filter: blur(60px);
  opacity: 0.2;
}
.testimonial-carousel {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  min-height: 260px;
}
.testimonial-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
}
.testimonial-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}
.card--testimonial {
  background: none;
  border: none;
  text-align: center;
}
.quote {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 2rem;
}
.author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-image: linear-gradient(to bottom right, var(--purple), var(--purple-2));
  color: var(--text);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.author-info {
  text-align: left;
}
.name {
  display: block;
  font-weight: 700;
}
.role {
  color: var(--muted);
}
.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}
.carousel-btn {
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
}
.carousel-btn:hover {
    background-color: var(--purple);
    border-color: var(--purple);
}

.testimonial-card {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    color: var(--muted);
}
.testimonial-card cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: 500;
    color: var(--text);
}

/* ------------------------- */
/* --- PRICING SECTION --- */
/* ------------------------- */
.pricing-coming-soon {
    text-align: center;
    padding: 4rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    margin-top: 3rem;
}
.pricing-coming-soon p {
    margin: 0 auto 1.5rem;
}


/* ------------------------- */
/* --- FAQ SECTION --- */
/* ------------------------- */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}
.accordion-item {
  border-bottom: 1px solid var(--line);
}
.accordion-header {
  font-size: 1rem;
  margin: 0;
}
.accordion-button {
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 500;
}
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease-out;
}
.accordion-content-inner {
  overflow: hidden;
}
.accordion-item.open .accordion-content {
  grid-template-rows: 1fr;
}
.accordion-content-inner {
  padding-bottom: 1.5rem;
}
.accordion-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23C7C9D1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
}
.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

/* ------------------------- */
/* --- FINAL CTA SECTION --- */
/* ------------------------- */
.final-cta-section {
    padding-block: clamp(48px, 6vw, 80px);
    background-image: linear-gradient(90deg, var(--purple-3), var(--purple));
    border-radius: var(--radius);
    text-align: center;
    margin: 0 1.5rem;
}
.final-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.final-cta-buttons {
    display: flex;
    gap: 1rem;
}

/* ------------------------- */
/* --- FOOTER --- */
/* ------------------------- */
.site-footer {
    background-color: var(--bg-elev);
    margin-top: clamp(64px, 8vw, 120px);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text);
}
.footer-column ul li {
    margin-bottom: 0.5rem;
}
.footer-column ul a {
    color: var(--muted);
}
.footer-column ul a:hover {
    color: var(--text);
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.875rem;
}

/* ------------------------- */
/* --- OTHER PAGES --- */
/* ------------------------- */
.page-hero {
    background-color: var(--bg-elev);
    text-align: center;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p {
    font-size: 1.25rem;
    color: var(--muted);
    max-width: 70ch;
    margin-inline: auto;
}

.product-feature-section:nth-child(odd) {
     background-color: var(--bg-elev);
}
.product-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.product-feature-image svg {
    margin: auto;
    max-height: 400px;
    opacity: 0.7;
    color: var(--purple);
}

@media (min-width: 768px) {
    .product-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
    .product-feature-section:nth-child(even) .product-feature-grid .product-feature-text {
        order: 2;
    }
}
.product-feature-list {
    margin-top: 2rem;
}
.product-feature-list ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.product-feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    padding: 1rem;
    background-color: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.product-feature-list li:hover {
    transform: translateY(-4px);
    border-color: var(--purple-3);
}

.product-feature-list .icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--purple-3);
    display: grid;
    place-items: center;
}
.product-feature-list .icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}
.product-feature-list b {
    color: var(--text);
}
.accordion .product-feature-list {
    margin-top: 0;
}
.accordion .product-feature-list li {
    font-size: 0.95rem;
}


.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-group input,
.form-group textarea {
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    outline: none;
}

.future-trends-box {
    background-color: var(--bg);
    border: 1px solid var(--purple-3);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: var(--radius);
    box-shadow: 0 0 40px rgba(124, 58, 237, .15);
    margin: 0 auto 3rem auto;
    max-width: 800px;
}

.future-trends-box p {
    max-width: none;
    font-size: 1.125rem;
    color: var(--text);
    text-align: left;
}

.comparison-table-container {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    text-align: center;
}
.comparison-table th, .comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--line);
}
.comparison-table th {
    font-weight: 600;
    color: var(--text);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.comparison-table .positive {
    color: var(--success);
    font-weight: 700;
    font-size: 1.25rem;
}
.comparison-table .negative {
    color: var(--error);
    font-weight: 700;
     font-size: 1.25rem;
}
.comparison-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}


/* ------------------------- */
/* --- CHAT WIDGET --- */
/* ------------------------- */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}
.chat-bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-image: linear-gradient(to bottom right, var(--purple), var(--purple-2));
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.chat-bubble:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(124, 58, 237, .4);
}
.chat-bubble svg {
    width: 32px;
    height: 32px;
}
.chat-panel {
    position: absolute;
    bottom: calc(100% + 1rem);
    right: 0;
    width: min(420px, 92vw);
    height: min(75vh, 720px);
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}
.chat-panel.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}
.chat-panel[hidden] {
    display: flex !important; /* Keep it in layout for transition */
}


#demo-chat .chat-panel { /* Full page demo styles */
    position: relative;
    width: 100%;
    height: 80vh;
    max-height: 800px;
    bottom: auto;
    right: auto;
    margin: 2rem auto;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}


.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
}
.chat-header h3 { font-size: 1.1rem; }
.beta-tag {
    font-size: 0.75rem;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
}
.chat-close-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
}
.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    line-height: 1.4;
}
.chat-message.user {
    background-color: var(--purple);
    color: var(--text);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-message.assistant {
    background-color: var(--bg);
    border: 1px solid var(--line);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-message.typing-indicator {
    display: flex;
    gap: 4px;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--muted);
    animation: typing 1s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

.chat-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--line);
    background-color: var(--bg);
    flex-shrink: 0;
}
.suggested-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.prompt-btn {
    background-color: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.875rem;
    cursor: pointer;
}
.prompt-btn:hover {
    background-color: var(--bg-elev);
    color: var(--text);
}
.chat-form {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.chat-input {
    flex-grow: 1;
    background-color: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text);
    resize: none;
    font-family: inherit;
    font-size: 1rem;
    max-height: 100px;
}
.chat-input:focus {
    outline: none;
    border-color: var(--purple);
}
.send-btn {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background-color: var(--purple);
    color: var(--text);
    cursor: pointer;
}
.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chat-tos {
    font-size: 0.75rem;
    text-align: center;
    color: var(--muted);
    margin-top: 0.75rem;
}
.chat-tos a { font-size: inherit; }

/* ------------------------- */
/* --- RESPONSIVE STYLES --- */
/* ------------------------- */
@media (max-width: 850px) {
  /* --- Header & Navigation --- */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem;
  }
  .main-nav.open {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .nav-item--has-dropdown:hover .dropdown-menu {
    /* Disable hover on mobile */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
  }
  .nav-item--has-dropdown .dropdown-menu {
      position: static;
      background: none;
      border: none;
      box-shadow: none;
      padding: 0;
      width: 100%;
      text-align: center;
      display: none; /* Hidden by default */
      margin-top: 0.5rem;
  }
  .nav-item--has-dropdown.open .dropdown-menu {
      display: block; /* Show on click */
  }
   .nav-item--has-dropdown.open .dropdown-chevron {
      transform: rotate(180deg);
  }

  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu-toggle .icon-menu {
    display: block;
  }
  body.menu-open .mobile-menu-toggle .icon-menu {
    display: none;
  }
  body.menu-open .mobile-menu-toggle .icon-close {
    display: block;
  }
  .header-actions .btn {
      display: none;
  }

  /* --- General Layout & Sections --- */
  .container {
    padding-inline: 1rem;
  }
  .hero-highlights {
    flex-direction: column;
    align-items: center;
  }

  .logos-track {
    gap: 2rem;
    padding-inline: 1rem;
  }
  .logos-track span {
    font-size: 1rem;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  .step-connector {
    display: none;
  }
  .product-feature-section:nth-child(even) .product-feature-grid .product-feature-text {
    order: 1; /* Reset order for mobile stacking */
  }
  .product-feature-text {
    text-align: center;
  }
  .product-feature-text p {
    margin-inline: auto;
  }
  .product-feature-list ul {
    align-items: center;
  }
  .product-feature-list li {
    max-width: 400px; /* Constrain list item width on mobile for readability */
    text-align: left;
  }
  .final-cta-section {
    margin-inline: 1rem;
  }
  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .final-cta-buttons .btn {
    width: 100%;
    max-width: 350px;
  }

  /* --- Footer --- */
  .footer-grid {
    text-align: center;
  }

  /* --- Chat Widget --- */
  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }
  #demo-chat .chat-panel {
    height: 90vh;
    margin: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ------------------------- */
/* --- ABOUT PAGE --- */
/* ------------------------- */
.about-us-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem;
    background-color: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--line);
}
.about-us-card .icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--purple-3);
    display: grid;
    place-items: center;
}
.about-us-card .icon-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}
.about-us-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}
.about-us-card p {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: none;
}

.about-animation svg {
    max-width: 400px;
    margin: auto;
    overflow: visible;
}

.about-animation .central-node {
    animation: pulse 3s infinite ease-in-out;
}

.about-animation .platform-node {
    animation: float 8s infinite ease-in-out;
}
.about-animation .platform-node:nth-child(3) { animation-delay: -1.3s; }
.about-animation .platform-node:nth-child(4) { animation-delay: -2.6s; }
.about-animation .platform-node:nth-child(5) { animation-delay: -4s; }
.about-animation .platform-node:nth-child(6) { animation-delay: -5.3s; }
.about-animation .platform-node:nth-child(7) { animation-delay: -6.6s; }
.about-animation .platform-node:nth-child(8) { animation-delay: -7.9s; }

.about-animation .path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: draw 5s forwards ease-in-out;
    animation-delay: 0.5s;
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.usp-item {
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.usp-item:hover {
    transform: translateY(-5px);
    border-color: var(--purple-2);
}
.usp-item h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 500;
}
.usp-icon {
    color: var(--success);
    flex-shrink: 0;
}
.value-card {
    background-color: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--purple);
    border-radius: var(--radius);
    padding: 2rem;
    height: 100%;
}
.value-card h3 {
    margin-bottom: 0.5rem;
}

/* ---------------------------------- */
/* --- HOW TO GET STARTED PAGE --- */
/* ---------------------------------- */
.timeframe-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-elev);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 4rem;
    max-width: 800px;
    margin-inline: auto;
}
.timeframe-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--accent);
}
.timeframe-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}
.timeframe-card p {
    font-size: 0.9rem;
    color: var(--muted);
    max-width: none;
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: var(--line);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: -1;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
}
.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}
.timeline-item:nth-child(odd) .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: -15px;
    border: medium solid var(--line);
    border-width: 15px 0 15px 15px;
    border-color: transparent transparent transparent var(--bg-elev);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: -15px;
    border: medium solid var(--line);
    border-width: 15px 15px 15px 0;
    border-color: transparent var(--bg-elev) transparent transparent;
}


.timeline-node {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px;
    top: 15px;
    background-color: var(--purple);
    border: 4px solid var(--bg);
    border-radius: 50%;
    z-index: 1;
    display: grid;
    place-items: center;
}
.timeline-item:nth-child(even) .timeline-node {
    left: -25px;
}
.timeline-node svg {
    width: 24px;
    height: 24px;
    color: var(--text);
}

.timeline-content {
    position: relative;
}

.timeline-item .card {
    height: auto;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.timeline-details-list {
    margin-top: 1rem;
    padding-left: 1rem;
}
.timeline-details-list li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.timeline-details-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
}
.support-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg);
    border-color: var(--purple-3);
    padding: 2rem;
    margin-top: 4rem;
    max-width: 800px;
    margin-inline: auto;
}
.support-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: var(--purple-2);
}

@media (max-width: 850px) {
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 70px;
    }
    .timeline-node {
        left: 6px;
    }
    .timeline-item:nth-child(even) .timeline-node {
        left: 6px;
    }
    .timeline-item .timeline-content::before {
        content: " ";
        height: 0;
        position: absolute;
        top: 22px;
        width: 0;
        z-index: 1;
        left: -15px;
        border: medium solid var(--line);
        border-width: 15px 15px 15px 0;
        border-color: transparent var(--bg-elev) transparent transparent;
    }
     .timeline-item:nth-child(odd) .timeline-content::before {
         border-color: transparent var(--bg-elev) transparent transparent;
         border-width: 15px 15px 15px 0;
         left: -15px;
         right: auto;
    }
}

/* ---------------------------------- */
/* --- Additional Responsive Polish --- */
/* ---------------------------------- */

@media (max-width: 850px) {
  /* Make carousel height flexible to avoid empty space or overflow */
  .testimonial-carousel {
    min-height: auto;
  }
}

@media (max-width: 767px) {
  /* Reduce size of large decorative images on mobile for better balance */
   .product-feature-image svg,
   .about-animation svg {
    max-height: 300px;
  }
}

@media (max-width: 480px) {
  /* Reduce padding on cards for very small screens to give content more space */
  .card, 
  .card--feature, 
  .card--testimonial, 
  .value-card, 
  .timeline-item .card,
  .support-card,
  .pricing-coming-soon,
  .final-cta-section {
    padding: 1.5rem;
  }
}