:root {
  --primary: #6d28d9;
  --primary-dark: #4c1d95;
  --primary-light: #ede9fe;
  --accent: #dbeafe;
  --text: #0f172a;
  --muted: #6b7280;
  --muted-light: #f3f4f6;
  --background: #ffffff;
  --background-alt: #f9f7ff;
  --shadow: 0 20px 45px rgba(109, 40, 217, 0.15);
  --radius-lg: 24px;
  --radius-md: 18px;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', 'Inter', sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--primary);
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--text);
}

p {
  margin: 0 0 1.2em;
  color: var(--muted);
}

strong {
  color: var(--text);
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.container.narrow {
  width: min(880px, 90vw);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
}

.brand img {
  height: 42px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  stroke: var(--text);
  stroke-width: 1.8;
  fill: none;
}

.menu-toggle:hover,
.menu-toggle:focus {
  background: rgba(148, 163, 184, 0.2);
}

.desktop-only {
  display: inline-flex;
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.5rem 0;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: min(480px, 90vw);
  margin: 0 auto;
}

.mobile-menu a {
  font-weight: 600;
  color: var(--muted);
}

.section {
  padding: 6.5rem 0;
  position: relative;
}

.section-centered {
  text-align: center;
}

.gradient-text {
  background: linear-gradient(90deg, #7c3aed, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero {
  position: relative;
  padding-top: 8.5rem;
  padding-bottom: 6rem;
  background: linear-gradient(135deg, #ede9fe, #e0f2fe);
  overflow: hidden;
}

.hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(124, 58, 237, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.8;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: center;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-content h1 span:first-child {
  display: block;
  margin-bottom: 0.4rem;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-visual {
  justify-self: center;
}

.hero-visual img {
  width: min(420px, 80vw);
  filter: drop-shadow(0 25px 40px rgba(79, 70, 229, 0.2));
}

.gradient-divider {
  height: 70px;
  background: linear-gradient(180deg, #e0f2fe, #ffffff);
}

.highlight {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(79, 70, 229, 0.08));
}

.highlight .container {
  position: relative;
}

.highlight-card {
  position: relative;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(67, 56, 202, 0.92));
  color: #fff;
  padding: 3.25rem 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  isolation: isolate;
}

.highlight-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.decor {
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
  z-index: 0;
}

.decor-1 {
  width: 160px;
  height: 160px;
  top: 12%;
  left: 8%;
  border: 3px solid rgba(236, 233, 254, 0.6);
}

.decor-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 12%;
  background: rgba(236, 233, 254, 0.45);
}

.decor-3 {
  width: 90px;
  height: 90px;
  bottom: 8%;
  left: 30%;
  background: rgba(196, 181, 253, 0.5);
}

.decor-4 {
  width: 70px;
  height: 70px;
  top: 28%;
  right: 30%;
  border: 2px solid rgba(196, 181, 253, 0.6);
}

.steps {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  text-align: center;
}

.steps h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 3.5rem;
}

.steps-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 3rem;
}

.step-card {
  background: linear-gradient(135deg, #f9f8ff, #eef2ff);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.18);
}

.step-card img {
  width: 88px;
  margin: 1.5rem auto;
}

.step-number {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: 0 12px 25px rgba(76, 29, 149, 0.25);
}

.integrations {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(236, 233, 254, 0.6));
  text-align: center;
}

.integrations h3 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.integration-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.8rem;
}

.integration-card {
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.integration-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(59, 130, 246, 0.18);
}

.integration-card h4 {
  font-size: 1.35rem;
  margin: 1.8rem 0 1rem;
}

.integration-card p {
  margin: 0;
}

.integration-card img {
  width: 120px;
  margin: 0 auto;
}

.icon-circle {
  width: 90px;
  height: 90px;
  margin: 0 auto;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.12);
  display: grid;
  place-items: center;
}

.icon-circle img {
  width: 56px;
}

.demo {
  background: var(--background);
  text-align: center;
}

.demo h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.demo p {
  font-size: 1.1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(79, 70, 229, 0.2);
  margin: 2.5rem 0;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.pricing {
  background: linear-gradient(135deg, rgba(236, 233, 254, 0.7), rgba(219, 234, 254, 0.7));
}

.pricing-intro {
  text-align: center;
  margin-bottom: 3.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pricing-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.pricing-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pricing-card ul li {
  padding-left: 1.75rem;
  position: relative;
  color: var(--muted);
}

.pricing-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.pricing-card .price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 700;
}

.pricing-card .price span {
  font-size: 2rem;
}

.pricing-card .price small {
  font-size: 0.95rem;
  color: var(--muted);
}

.pricing-card .note {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
  color: #bbf7d0;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  position: relative;
  transform: translateY(-12px);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 0.4rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.2);
}

.faq {
  background: linear-gradient(135deg, rgba(249, 250, 251, 0.9), rgba(236, 233, 254, 0.6));
}

.faq h2 {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: #fff;
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.faq-item a {
  color: var(--primary);
  text-decoration: underline;
}

.contact {
  text-align: center;
  background: #fff;
}

.contact h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.site-footer {
  background: #f4f4f8;
  padding-top: 3.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.footer-about .brand {
  margin-bottom: 1.5rem;
}

.footer-about h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.footer-about p {
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-links a svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-links a:hover {
  transform: translateY(-4px);
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
}

.footer-links {
  display: grid;
  gap: 0.75rem;
  color: var(--muted);
}

.footer-links a {
  font-weight: 500;
}

.footer-bottom {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.28);
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.35);
}

.btn-ghost {
  background: #fff;
  color: var(--primary);
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.1);
}

.btn-light {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: 0.95rem 2.6rem;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}



.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(148, 163, 184, 0.4);
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(30, 64, 175, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 900;
}

.to-top svg {
  width: 26px;
  height: 26px;
  stroke: var(--primary);
  stroke-width: 1.8;
  fill: none;
}

.to-top:hover,
.to-top:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(79, 70, 229, 0.22);
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-menu[hidden] {
    display: none;
  }

  .mobile-menu[aria-hidden="false"] {
    display: block;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .highlight-card {
    padding: 2.5rem 2rem;
  }

  .pricing-card.featured {
    transform: none;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero {
    padding-top: 7rem;
    padding-bottom: 4.5rem;
  }

  .steps-grid,
  .integration-grid,
  .pricing-grid,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .integration-card,
  .pricing-card,
  .faq-item {
    text-align: left;
  }

  .highlight-card p {
    font-size: 1rem;
  }

  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

.to-top.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.legal-page {
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, rgba(236, 233, 254, 0.6), rgba(219, 234, 254, 0.6));
}

.legal-wrapper {
  width: min(900px, 90vw);
  margin: 0 auto;
}

.legal-card {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 3rem;
}

.legal-card header {
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.legal-card header h1 {
  font-size: clamp(2.1rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-card section + section {
  margin-top: 2.5rem;
}

.legal-card h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.legal-card ul {
  padding-left: 1.25rem;
  margin: 0;
}

.legal-card ul li {
  margin-bottom: 0.75rem;
}

.legal-card a {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 2.2rem 1.6rem;
  }
}

.legal-card li ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.legal-card li ul li {
  margin-bottom: 0.5rem;
}

.highlight-text {
  background: rgba(124, 58, 237, 0.08);
  border-left: 4px solid var(--primary);
  padding: 1rem 1.25rem;
  border-radius: 14px;
  color: var(--text);
}
