@import url("panel-subpage.css");

/* Feature sections */
.feat-section {
  position: relative;
  padding: clamp(2rem, 4vh, 3rem) clamp(1.25rem, 4vw, 3rem);
  overflow: hidden;
  z-index: 2;
}

.feat-section__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.55;
}
.feat-section__glow--purple {
  width: 420px; height: 420px;
  top: 10%; left: -8%;
  background: rgba(110, 0, 255, 0.1);
}
.feat-section__glow--cyan {
  width: 380px; height: 380px;
  top: 20%; right: -6%;
  background: rgba(0, 209, 255, 0.08);
}
.feat-section__glow--magenta {
  width: 400px; height: 400px;
  bottom: 5%; left: 20%;
  background: rgba(255, 0, 170, 0.07);
}

.feat-divider {
  height: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(110, 0, 255, 0.18), rgba(0, 209, 255, 0.12), transparent);
}

/* ── Feature block (2-col) ── */
.feat-block {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 960px) {
  .feat-block {
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
  .feat-block--reverse .feat-block__copy { order: 2; }
  .feat-block--reverse .feat-block__visual { order: 1; }
}

.feat-block__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: rgba(110, 0, 255, 0.55);
  margin-bottom: 0.75rem;
}

.feat-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.feat-block__desc {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
}

.feat-block__sub {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.feat-block__bullets {
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feat-block__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
}
.feat-block__bullets li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  flex-shrink: 0;
}

.feat-block__copy.cp-glass {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.feat-plugins__cards.cp-glass {
  padding: clamp(1.5rem, 3vw, 2rem);
}

.feat-block__visual {
  position: relative;
}

@media (min-width: 768px) {
  .feat-block:nth-child(even) .feat-block__copy { margin-left: clamp(0.5rem, 3vw, 2rem); }
  .feat-block:nth-child(odd) .feat-block__copy { margin-right: clamp(0.5rem, 3vw, 2rem); }
}


/* ── Embedded screenshot visual ── */
.feat-visual {
  position: relative;
  perspective: 1200px;
}

.feat-visual__float {
  animation: feat-float 6s ease-in-out infinite;
  transform: rotateY(-2deg) rotateX(1deg);
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}

.feat-visual:hover .feat-visual__float {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

@keyframes feat-float {
  0%, 100% { transform: rotateY(-2deg) rotateX(1deg) translateY(0); }
  50% { transform: rotateY(-1deg) rotateX(0.5deg) translateY(-10px); }
}

.feat-visual .glow-frame__img {
  cursor: zoom-in;
  border-radius: 0.5rem;
}

.feat-visual__chip {
  position: absolute;
  padding: 0.4rem 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(11, 16, 32, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  pointer-events: none;
  animation: accent-float 7s ease-in-out infinite;
}
.feat-visual__chip--tl { top: 8%; left: -4%; animation-delay: -2s; }
.feat-visual__chip--br { bottom: 10%; right: -2%; animation-delay: -4s; }

/* Glow tints per feature */
.feat-visual--purple .glow-layer--purple { opacity: 0.72; }
.feat-visual--cyan .glow-layer--blue { opacity: 0.65; }
.feat-visual--cyan .glow-layer--center {
  background: radial-gradient(circle at 50% 50%, rgba(0, 220, 255, 0.45) 0%, transparent 68%);
}
.feat-visual--magenta .glow-layer--pink { opacity: 0.62; }
.feat-visual--magenta .glow-layer--purple { opacity: 0.55; }

/* ── Floating glass extras ── */
.feat-extras {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feat-extra {
  padding: 1rem 1.125rem;
  border-radius: 0.875rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.feat-extra:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 32px rgba(110, 0, 255, 0.1);
}
.feat-extra h3 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
}
.feat-extra p {
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.42);
}

/* ── Plugins / community layout ── */
.feat-plugins {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 960px) {
  .feat-plugins {
    grid-template-columns: 1.15fr 1fr;
    gap: 3rem;
  }
}

.feat-plugins__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .feat-visual__float,
  .feat-visual__chip {
    animation: none !important;
    transform: none !important;
  }
  .feat-visual:hover .feat-visual__float {
    transform: none;
  }
}
