:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #22c55e;
  --surface: #0f172a;
  --neutral-0: #ffffff;
  --neutral-50: #f9fafb;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-700: #334155;
  --neutral-900: #0f172a;
  --max-width: 1180px;
  --rounded-lg: 1rem;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s ease;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--neutral-700);
  background-color: var(--neutral-0);
  line-height: 1.7;
  font-size: 1rem;
}

body.dark-mode {
  background-color: #080b16;
  color: #e2e8f0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}

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

section {
  padding: 5rem 0;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.section-heading p {
  color: var(--neutral-700);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.18), transparent 55%),
              radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.18), transparent 55%);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.95rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.12);
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--neutral-900);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--neutral-700);
  margin: 1.5rem 0 2rem;
}

.card-feature {
  height: 100%;
  border: none;
  border-radius: var(--rounded-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.99));
  box-shadow: var(--shadow-soft);
  padding: 2rem;
  transition: var(--transition);
}

.card-feature:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(79, 70, 229, 0.12);
}

.badge-soft {
  background-color: rgba(79, 70, 229, 0.12);
  color: var(--brand);
  border-radius: 999px;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat {
  flex: 1 1 200px;
}

.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--brand);
}

.embed-responsive {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: var(--rounded-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.embed-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

.integration-tile {
  border: 1px solid var(--neutral-200);
  border-radius: var(--rounded-lg);
  padding: 1.5rem;
  background-color: var(--neutral-0);
  transition: var(--transition);
}

.integration-tile:hover {
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(67, 56, 202, 0.12);
}

.testimonial-card {
  border: none;
  border-radius: 1.25rem;
  padding: 2.5rem;
  background: linear-gradient(160deg, rgba(79, 70, 229, 0.9), rgba(14, 165, 233, 0.9));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.image-frame {
  position: relative;
  border-radius: clamp(1.5rem, 3vw, 2.25rem);
  overflow: hidden;
  box-shadow: 0 32px 70px rgba(15, 23, 42, 0.22);
}

.image-frame::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.image-frame__img {
  display: block;
  width: 100%;
}

.metric-card {
  border-radius: clamp(1.4rem, 3vw, 2rem);
  padding: clamp(1.8rem, 3vw, 2.4rem);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.3);
}

.metric-card strong {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
}

.metric-card span {
  display: block;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: rgba(226, 232, 240, 0.82);
}

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

footer {
  background: #0b1121;
  color: rgba(226, 232, 240, 0.92);
  padding: 4rem 0 2rem;
}

footer a {
  color: rgba(226, 232, 240, 0.92);
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

.btn-primary {
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
  box-shadow: 0 12px 24px rgba(67, 56, 202, 0.25);
}

.btn-outline-primary {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: rgba(79, 70, 229, 0.4);
  --bs-btn-hover-bg: rgba(79, 70, 229, 0.08);
  --bs-btn-hover-border-color: var(--brand);
}

.navbar {
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  transition: var(--transition);
}

.navbar-scrolled {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
}

.navbar-nav .nav-link {
  font-weight: 600;
  margin: 0 0.35rem;
  color: rgba(15, 23, 42, 0.75);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
}

.navbar .btn {
  margin-left: 0.75rem;
}

.badge-light {
  background-color: rgba(226, 232, 240, 0.2);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
}

.feature-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(79, 70, 229, 0.14);
  color: var(--brand);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.timeline {
  border-left: 2px solid var(--neutral-200);
  padding-left: 2rem;
}

.timeline-step {
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -2.65rem;
  top: 0.35rem;
  width: 0.75rem;
  height: 0.75rem;
  background-color: var(--brand);
  border-radius: 999px;
}

.legal-list ul {
  padding-left: 1.25rem;
}

.legal-list li + li {
  margin-top: 0.6rem;
}

@media (max-width: 991px) {
  .navbar .btn {
    margin-left: 0;
    margin-top: 1rem;
  }

  .stats {
    gap: 1.25rem;
  }

  section {
    padding: 4rem 0;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.light-mode) {
    background-color: #080b16;
    color: #e2e8f0;
  }
}

body.dark-mode .card-feature,
body.dark-mode .integration-tile {
  background: rgba(15, 23, 42, 0.75);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.15);
}

body.dark-mode .metric-card {
  background: rgba(12, 18, 32, 0.95);
  color: #f8fafc;
  box-shadow: 0 28px 60px rgba(8, 12, 21, 0.5);
}

body.dark-mode .metric-card span {
  color: rgba(226, 232, 240, 0.78);
}

body.dark-mode .section-heading h2,
body.dark-mode .hero__title {
  color: #f8fafc;
}

body.dark-mode .section-heading p {
  color: rgba(226, 232, 240, 0.78);
}

body.dark-mode .navbar {
  background-color: rgba(8, 11, 22, 0.9) !important;
}

body.dark-mode footer {
  background-color: #050910;
}
