.flora-native-section {
  background: #050607;
  color: #f4f4f5;
  overflow: hidden;
}

.flora-native-stack {
  display: flex;
  flex-direction: column;
  gap: 104px;
}

.flora-native-module {
  width: 100%;
  max-width: none;
  margin-right: auto;
  margin-left: auto;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.flora-native-module.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flora-native-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
  gap: 48px;
  margin-bottom: 48px;
}

.flora-native-section .heading-style-h3 {
  font-size: clamp(28px, 2.7vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.flora-native-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.flora-native-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 244, 245, 0.72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.flora-native-link:hover {
  color: #fff;
  transform: translateX(2px);
}

.flora-native-kicker {
  color: rgba(244, 244, 245, 0.6);
}

.flora-native-kicker strong {
  color: #f4f4f5;
}

.flora-native-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.flora-native-card-grid.two-one {
  grid-template-columns: minmax(0, 1fr) 334px;
}

.flora-native-card-grid.support-bottom {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flora-native-card-grid.management-bottom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flora-native-card {
  position: relative;
  min-height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.flora-native-card.tall {
  min-height: 240px;
}

.flora-native-card.wide {
  min-height: 240px;
}

.flora-native-card.dashboard {
  min-height: 340px;
}

.flora-native-card--white-glove {
  min-height: 240px;
  margin: 0;
}

.flora-native-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transform: scale(1.015);
  transition: opacity 0.35s ease, transform 0.55s ease;
}

.flora-native-card:hover img {
  opacity: 0.92;
  transform: scale(1.04);
}

.flora-native-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.52) 62%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
}

.flora-native-card-content {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 1;
}

.flora-native-card-title {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.flora-native-card-copy {
  margin-top: 6px;
  color: rgba(244, 244, 245, 0.72);
  font-size: 15px;
  line-height: 1.45;
}

.flora-native-cursor-card {
  min-height: 240px;
  padding: 34px;
  isolation: isolate;
}

.flora-native-cursor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(84, 240, 223, 0.16), transparent 28%),
    radial-gradient(circle at 20% 58%, rgba(255, 211, 77, 0.12), transparent 26%);
  opacity: 0.72;
}

.flora-native-presence {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translate3d(var(--x), var(--y), 0);
  animation: flora-native-presence-drift var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  will-change: transform;
}

.flora-native-presence.francisco {
  --x: 188px;
  --y: 28px;
  --x1: -18px;
  --y1: 18px;
  --x2: 8px;
  --y2: -9px;
  --duration: 5.5s;
  --delay: -0.8s;
  --presence: #54f0df;
}

.flora-native-presence.charlie {
  --x: 48px;
  --y: 84px;
  --x1: 24px;
  --y1: -12px;
  --x2: -8px;
  --y2: 10px;
  --duration: 4.8s;
  --delay: -1.6s;
  --presence: #ffd34d;
}

.flora-native-presence.justine {
  --x: 162px;
  --y: 150px;
  --x1: -22px;
  --y1: -20px;
  --x2: 14px;
  --y2: 7px;
  --duration: 5.2s;
  --delay: -2.3s;
  --presence: #ff7aa6;
}

.flora-native-cursor {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  clip-path: polygon(0 0, 100% 48%, 38% 64%, 22% 100%);
  background: var(--presence);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.34));
  transform: rotate(-14deg);
}

.flora-native-name-pill {
  position: relative;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
  background: rgba(0, 0, 0, 0.38);
  color: var(--presence);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.flora-native-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.flora-native-dashboard-grid > .flora-native-card-grid {
  gap: 16px;
}

.flora-native-dashboard-grid .management-bottom .flora-native-card {
  min-height: 200px;
}

@keyframes flora-native-presence-drift {
  0%, 100% {
    transform: translate3d(var(--x), var(--y), 0) rotate(-2deg);
  }

  38% {
    transform: translate3d(calc(var(--x) + var(--x1)), calc(var(--y) + var(--y1)), 0) rotate(3deg);
  }

  68% {
    transform: translate3d(calc(var(--x) + var(--x2)), calc(var(--y) + var(--y2)), 0) rotate(-1deg);
  }
}

@media (max-width: 991px) {
  .flora-native-stack {
    gap: 72px;
  }

  .flora-native-header,
  .flora-native-card-grid,
  .flora-native-card-grid.two-one,
  .flora-native-card-grid.support-bottom,
  .flora-native-card-grid.management-bottom {
    grid-template-columns: 1fr;
  }

  .flora-native-card {
    min-height: 280px;
  }

  .flora-native-card.dashboard {
    min-height: 340px;
  }
}

@media (max-width: 767px) {
  .flora-native-stack {
    gap: 56px;
  }

  .flora-native-header {
    gap: 20px;
    margin-bottom: 28px;
  }

  .flora-native-actions {
    margin-top: 18px;
  }

  .flora-native-card-grid,
  .flora-native-card-grid.two-one,
  .flora-native-card-grid.support-bottom,
  .flora-native-card-grid.management-bottom {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .flora-native-card {
    flex: 0 0 82%;
    min-height: 260px;
    border-radius: 24px;
    scroll-snap-align: start;
  }

  .flora-native-card.wide,
  .flora-native-card.dashboard {
    flex-basis: 92%;
    min-height: 300px;
  }

  .flora-native-card-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .flora-native-card-title {
    font-size: 18px;
  }

  .flora-native-card-copy {
    font-size: 14px;
  }

  .flora-native-presence.francisco {
    --x: 148px;
    --y: 26px;
    --x1: -14px;
    --y1: 14px;
    --x2: 7px;
    --y2: -7px;
  }

  .flora-native-presence.charlie {
    --x: 38px;
    --y: 82px;
    --x1: 18px;
    --y1: -10px;
    --x2: -6px;
    --y2: 8px;
  }

  .flora-native-presence.justine {
    --x: 132px;
    --y: 140px;
    --x1: -18px;
    --y1: -16px;
    --x2: 10px;
    --y2: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flora-native-presence {
    animation: none;
  }
}
