/* Apply Inter font globally */
body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 6rem;
}

a,
button,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(104, 62, 208, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: #111827;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: top 0.2s ease-in-out;
}

.skip-link:focus {
  top: 1rem;
}
/* Simple animation for feature icons on hover */
.feature-icon:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
}

.workflow-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.workflow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(104, 62, 208, 0.28);
  box-shadow: 0 18px 40px -26px rgba(31, 20, 63, 0.45);
}

.workflow-steps {
  counter-reset: workflow;
}

.workflow-steps li {
  position: relative;
  display: flex;
  min-height: 2rem;
  align-items: center;
  padding-left: 2.75rem;
  counter-increment: workflow;
}

.workflow-steps li::before {
  content: counter(workflow);
  position: absolute;
  left: 0;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 999px;
  background: #ede9fe;
  color: #683ed0;
  font-size: 0.75rem;
  font-weight: 700;
}

.workflow-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.84rem;
  top: 1.75rem;
  width: 1px;
  height: 1.2rem;
  background: #ddd6fe;
}

.workflow-steps-blue li::before {
  background: #dbeafe;
  color: #1d4ed8;
}

.workflow-steps-blue li:not(:last-child)::after {
  background: #bfdbfe;
}

.workflow-steps-green li::before {
  background: #d1fae5;
  color: #047857;
}

.workflow-steps-green li:not(:last-child)::after {
  background: #a7f3d0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] .faq-marker {
  transform: rotate(45deg);
}

.faq-marker {
  transition: transform 0.2s ease;
}

.module-map {
  position: relative;
  width: min(100%, 28rem);
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(104, 62, 208, 0.1) 0 27%, transparent 28%),
    radial-gradient(circle at center, transparent 0 46%, rgba(104, 62, 208, 0.14) 46.5% 47%, transparent 47.5%),
    radial-gradient(circle at center, transparent 0 69%, rgba(104, 62, 208, 0.1) 69.5% 70%, transparent 70.5%);
}

.module-map::before,
.module-map::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  z-index: 0;
  height: 1px;
  width: 72%;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(104, 62, 208, 0.25), transparent);
}

.module-map::before {
  transform: rotate(30deg);
}

.module-map::after {
  transform: rotate(150deg);
}

.module-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  width: 10.5rem;
  height: 10.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: linear-gradient(145deg, #7547d7, #5128b5);
  color: #fff;
  box-shadow: 0 22px 44px -24px rgba(51, 25, 108, 0.8);
  text-align: center;
}

.module-core span {
  font-size: 1rem;
  font-weight: 700;
}

.module-core small {
  margin-top: 0.35rem;
  color: #e9ddff;
  font-size: 0.72rem;
  font-weight: 600;
}

.module-node {
  position: absolute;
  z-index: 3;
  min-width: 6.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #e5def5;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  color: #33284a;
  box-shadow: 0 14px 30px -22px rgba(45, 29, 77, 0.65);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.module-node-top {
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
}

.module-node-upper-left {
  left: 1%;
  top: 25%;
}

.module-node-upper-right {
  right: 1%;
  top: 25%;
}

.module-node-lower-left {
  bottom: 24%;
  left: 1%;
}

.module-node-lower-right {
  right: 1%;
  bottom: 24%;
}

.module-node-bottom {
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
}
/* Add custom gradient if desired */
.gradient-bg {
    /* Example gradient - replace with your brand colors */
  background: linear-gradient(to right, #683ed0, #773E8F); /* Example: Light blue to blue */
}
.secondary-cta {
  background-color: transparent;
  border: 1px solid #683ed0; /* Match primary button color */
  color: #683ed0;
}
.secondary-cta:hover {
  background-color: rgba(74, 134, 232, 0.1); /* Light tint on hover */
}

@media (max-width: 420px) {
  .module-core {
    width: 8.5rem;
    height: 8.5rem;
  }

  .module-node {
    min-width: 5.5rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
