.feature-grid-section {
  background: var(--band-bg);
  color: var(--band-ink);
  padding: 100px 0;
}
.feature-grid-section .section-head p { color: rgba(255,255,255,0.65); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

/*
 * Card border gets its own slow glow on hover (ember-toned, separate
 * from the icon ring's iris tone below) — timed slower than a normal
 * hover so it reads as a glow "breathing in" rather than snapping on.
 * Two different colours doing two different things on hover reads
 * better than one uniform flash.
 */
.feature-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.8s ease, box-shadow 0.8s ease;
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent) 15%, transparent) inset,
    0 0 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.feature-card h3 { font-size: 19px; font-weight: 600; color: var(--band-ink); margin: 22px 0 8px; }
.feature-card p { font-size: 14.5px; color: rgba(255,255,255,0.6); line-height: 1.6; margin: 0; }

/*
 * Icon badge — glow border at rest, revolving gradient ring on card
 * hover. Three nested layers:
 *   .feature-icon        the box itself; clips its own oversized spin
 *                         layer via overflow:hidden, sized down to a
 *                         thin ring by the 1px padding "gap".
 *   .feature-icon-spin   the conic-gradient ring — absolutely
 *                         positioned and oversized (inset:-70%, well
 *                         past the box), which is what turns the
 *                         gradient's colour bands into a thin sweeping
 *                         arc once clipped, rather than a full circle.
 *                         Hidden/paused at rest.
 *   .feature-icon-inner  the visible icon face, sits above the spin
 *                         layer (z-index:1) and never itself moves.
 * The hover trigger lives on .feature-card (the ancestor), not the
 * badge, so the whole card is the hit area and the ring reacts even
 * when the cursor isn't directly over the icon.
 */
.feature-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px; /* squircle — use 50% for a circle */
  padding: 1px;         /* the ring gap the spin layer clips to */
  overflow: hidden;
  isolation: isolate;   /* keeps z-index scoped to this badge, no stacking leaks */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--accent-2) 15%, transparent) inset,
    0 0 20px color-mix(in srgb, var(--accent-2) 35%, transparent);
}
.feature-icon-spin {
  position: absolute;
  inset: -70%;
  z-index: 0;
  pointer-events: none;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,   var(--accent-2) 55deg, transparent 130deg,
    transparent 210deg, var(--accent)   275deg, transparent 340deg, transparent 360deg
  );
  opacity: 0;
  animation: feature-icon-spin 4s linear infinite;
  animation-play-state: paused;
  transition: opacity 0.4s ease;
}
.feature-card:hover .feature-icon-spin {
  opacity: 0.9;
  animation-play-state: running;
}
@keyframes feature-icon-spin {
  to { transform: rotate(360deg); }
}
.feature-icon-inner {
  position: relative;
  z-index: 1; /* sits above the spin layer */
  width: 100%;
  height: 100%;
  border-radius: 17px; /* 1px less than .feature-icon's, since its 1px padding already accounts for the ring gap */
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent-2) 55%, transparent), rgba(9,10,12,0.5) 75%),
    #090a0c; /* dark base so a white-stroke SVG icon pops */
  color: #fff;
}
.feature-icon-inner svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
