/*
  Features 17 — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy these three
  files into any project and open index.html as-is.
*/

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

:root {
  --white: #ffffff;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-900: #0f172a;
  --blue-600: #2563eb;
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background-color: var(--white);
  line-height: 1.5;
}

.features {
  padding: clamp(4rem, 3.5rem + 2vw, 6rem) clamp(1rem, 0.3rem + 3vw, 2rem);
}

.features__inner {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.intro {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
}

.kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.heading {
  margin: 0.75rem 0 0;
  font-weight: 600;
  font-size: clamp(1.875rem, 1.5rem + 1.9vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.lede {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--slate-600);
}

.map {
  position: relative;
  margin-top: 4rem;
}

.connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--slate-200);
}

.connector path {
  stroke-dasharray: 100;
  stroke-dashoffset: 0;
}

.connector--horizontal {
  display: none;
}

.nodes {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

.node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--white);
  padding: 0 0.75rem;
}

.node__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background-color: var(--white);
  color: var(--blue-600);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.node__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.node__label {
  font-size: 0.875rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .connector--horizontal {
    display: block;
  }

  .connector--vertical {
    display: none;
  }

  .nodes {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }

  .node {
    flex: 1;
  }
}

/* Motion — disabled entirely under reduced motion; the connecting line
   already renders fully drawn and every node is fully visible outside
   this media query. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes al-features17-line {
    from {
      stroke-dashoffset: 100;
    }
    to {
      stroke-dashoffset: 0;
    }
  }

  @keyframes al-features17-node {
    from {
      opacity: 0;
      transform: scale(0.8);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .connector path {
    animation: al-features17-line 1100ms cubic-bezier(0.65, 0, 0.35, 1) both;
  }

  .node__icon {
    animation: al-features17-node 400ms cubic-bezier(0.34, 1.35, 0.64, 1) both;
  }
}
