.alta-fo360 {
  --fo360-text: #ffffff;
  --fo360-muted: rgba(255, 255, 255, 0.7);
  --fo360-accent: #8b7cff;
  --fo360-button-border: rgba(255, 255, 255, 0.5);
  --fo360-button-hover: rgba(255, 255, 255, 0.08);
  position: relative;
  width: 100%;
  padding: 96px 24px 120px;
  background: radial-gradient(circle at 50% 90%, #2a1f6b 0%, #0a0820 60%, #04030f 100%);
  color: var(--fo360-text);
  font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}

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

.alta-fo360__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Margin is 0 here — `.alta-fo360__inner` already provides `gap: 40px`
   between its flex children, which spaces the title from the grid below. */
.alta-fo360__title {
  margin: 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: normal;
  text-align: center;
  color: #ffffff;
}

.alta-fo360__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(360px, 560px) minmax(220px, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  width: 100%;
}

.alta-fo360__column {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.alta-fo360__feature {
  display: flex;
  align-items: center;
  gap: 16px;
  /* Uniform row height so the left and right columns align row-for-row,
     even when some labels wrap to two lines. */
  min-height: 52px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fo360-text);
}

.alta-fo360__feature--right {
  flex-direction: row;
}

.alta-fo360__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fo360-accent);
}

.alta-fo360__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.alta-fo360__icon--placeholder {
  background: rgba(139, 124, 255, 0.15);
  border-radius: 8px;
}

.alta-fo360__label {
  flex: 1;
  line-height: 1.35;
}

.alta-fo360__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.alta-fo360__canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.alta-fo360__canvas-wrap:active {
  cursor: grabbing;
}

.alta-fo360__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.alta-fo360__loading {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 60%;
  height: 2px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  pointer-events: none;
}

.alta-fo360__loading-bar {
  height: 100%;
  background: var(--fo360-accent);
  transition: width 0.15s linear;
}

.alta-fo360__hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1538;
  border: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 300;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, background 0.2s ease;
}

.alta-fo360__hotspot:hover {
  background: #ffffff;
  transform: translate(-50%, -50%) scale(1.1);
}

.alta-fo360__hotspot-dot {
  pointer-events: none;
}

.alta-fo360__hotspot-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.alta-fo360__hotspot:hover .alta-fo360__hotspot-tooltip,
.alta-fo360__hotspot:focus-visible .alta-fo360__hotspot-tooltip {
  opacity: 1;
}

.alta-fo360__helper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fo360-muted);
  font-size: 14px;
  user-select: none;
}

.alta-fo360__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.alta-fo360__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: 1px solid var(--fo360-button-border);
  border-radius: 999px;
  color: var(--fo360-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease;
  background: transparent;
}

.alta-fo360__button:hover {
  background: var(--fo360-button-hover);
  border-color: #ffffff;
}

/* ---- Mobile swipe carousel (default hidden, takes over below 700px) ---- */
.alta-fo360__mobile-carousel {
  display: none;
}

@media (max-width: 900px) {
  .alta-fo360 {
    padding: 64px 20px 80px;
  }
  .alta-fo360__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .alta-fo360__column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
  }
  .alta-fo360__feature {
    flex: 0 1 calc(50% - 16px);
    font-size: 14px;
  }
  .alta-fo360__stage {
    order: -1;
  }
}

@media (max-width: 700px) {
  /* Hide the two-column feature layout, take over with the swipe carousel. */
  .alta-fo360__grid > .alta-fo360__column {
    display: none;
  }
  .alta-fo360__grid {
    gap: 24px;
  }

  .alta-fo360__mobile-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .alta-fo360__pages {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .alta-fo360__pages::-webkit-scrollbar {
    display: none;
  }

  .alta-fo360__page {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    list-style: none;
    margin: 0;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    min-width: 0;
  }

  /* Feature rows inside the carousel look the same as desktop, but always left-aligned. */
  .alta-fo360__page .alta-fo360__feature {
    flex: 1 1 auto;
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.35;
    gap: 14px;
  }
  .alta-fo360__page .alta-fo360__icon {
    margin-top: 2px;
  }

  .alta-fo360__dots {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .alta-fo360__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  }
  .alta-fo360__dot:hover {
    border-color: rgba(255, 255, 255, 0.8);
  }
  .alta-fo360__dot.is-active {
    width: 26px;
    background: var(--fo360-accent);
    border-color: var(--fo360-accent);
  }

  /* CTA buttons fit on one row on mobile — narrow padding + smaller type. */
  .alta-fo360__buttons {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
  }
  .alta-fo360__button {
    flex: 0 0 auto;
    padding: 11px 16px;
    font-size: 10px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-align: center;
  }
}

