/* REDSKY Community Command V2
   Isolated to the public #features section. */

.redsky-community-command {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--redsky-header-offset, 82px));
  padding: clamp(96px, 9vw, 140px) 0;
  border-top: 1px solid rgba(255, 255, 255, .045);
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  background:
    radial-gradient(circle at 13% 34%, rgba(196, 22, 38, .2), transparent 29%),
    radial-gradient(circle at 87% 41%, rgba(112, 17, 31, .17), transparent 27%),
    linear-gradient(118deg, #05070a 0%, #090c11 48%, #05070a 100%);
}

.redsky-community-command::before,
.redsky-community-command::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.redsky-community-command::before {
  opacity: .17;
  background-image:
    linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 84%, transparent);
}

.redsky-community-command::after {
  opacity: .2;
  background:
    repeating-linear-gradient(113deg, transparent 0 78px, rgba(255, 71, 84, .08) 79px 80px),
    linear-gradient(180deg, transparent 72%, rgba(213, 28, 44, .12));
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 84%, transparent);
}

.community-atmosphere,
.community-atmosphere span {
  position: absolute;
  pointer-events: none;
}

.community-atmosphere {
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.community-haze {
  width: 58vw;
  height: 48%;
  border-radius: 50%;
  opacity: .2;
  background: radial-gradient(ellipse, rgba(137, 146, 161, .18), rgba(68, 76, 90, .06) 44%, transparent 72%);
  will-change: transform, opacity;
}

.community-haze--left {
  left: -19%;
  bottom: -13%;
  animation: communityHazeLeft 20s ease-in-out infinite alternate;
}

.community-haze--right {
  right: -22%;
  top: -12%;
  opacity: .13;
  animation: communityHazeRight 26s ease-in-out infinite alternate;
}

.community-light-beam {
  top: -38%;
  left: 42%;
  width: 10%;
  height: 180%;
  opacity: 0;
  transform: rotate(16deg) translate3d(-440%, 0, 0);
  background: linear-gradient(90deg, transparent, rgba(255, 54, 68, .23), transparent);
  will-change: transform, opacity;
  animation: communityLightSweep 15s ease-in-out infinite;
}

.community-command-shell {
  position: relative;
  z-index: 2;
  width: min(1320px, calc(100% - 40px));
}

.community-command-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 104px);
}

.community-command-copy {
  max-width: 650px;
}

.community-command-copy .section-kicker {
  color: #ff6673;
  letter-spacing: .21em;
  text-shadow: 0 0 22px rgba(239, 53, 69, .25);
}

.community-command-copy h2 {
  margin: 18px 0 28px;
  color: #f8fafc;
  font: 850 clamp(2.75rem, 4.8vw, 5.6rem) / .96 Orbitron, Inter, sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.community-command-copy h2 span {
  display: block;
}

.community-command-copy h2 span:nth-child(2) {
  color: #ff4e5e;
  text-shadow: 0 0 34px rgba(218, 28, 45, .17);
}

.community-command-prose {
  display: grid;
  gap: 15px;
  max-width: 620px;
}

.community-command-prose p {
  margin: 0;
  color: #b9c0cb;
  font-size: clamp(.98rem, 1.18vw, 1.08rem);
  line-height: 1.78;
}

.community-command-prose p:first-child {
  color: #e9edf3;
  font-weight: 620;
}

.community-command-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 27px;
}

.community-command-tags span {
  min-height: 36px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 83, 96, .2);
  border-radius: 999px;
  color: #eff2f6;
  background: linear-gradient(180deg, rgba(190, 27, 42, .1), rgba(255, 255, 255, .025));
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .09em;
}

.community-network-panel {
  position: relative;
  min-width: 0;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .115);
  border-radius: clamp(28px, 3vw, 40px);
  background:
    radial-gradient(circle at 50% 47%, rgba(203, 31, 46, .16), transparent 35%),
    linear-gradient(145deg, rgba(17, 21, 28, .93), rgba(6, 9, 13, .86));
  box-shadow:
    0 38px 110px rgba(0, 0, 0, .54),
    0 0 0 1px rgba(217, 35, 50, .065),
    inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
}

.community-network-panel::before,
.community-network-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.community-network-panel::before {
  inset: 0;
  background:
    linear-gradient(#ff6572, #ff6572) 22px 22px / 52px 1px no-repeat,
    linear-gradient(#ff6572, #ff6572) 22px 22px / 1px 52px no-repeat,
    linear-gradient(#ff6572, #ff6572) calc(100% - 22px) calc(100% - 22px) / 52px 1px no-repeat,
    linear-gradient(#ff6572, #ff6572) calc(100% - 22px) calc(100% - 22px) / 1px 52px no-repeat;
  opacity: .42;
}

.community-network-panel::after {
  width: 340px;
  height: 340px;
  right: -150px;
  top: -160px;
  border-radius: 50%;
  opacity: .22;
  background: radial-gradient(circle, rgba(235, 39, 55, .54), transparent 69%);
  animation: communityPanelGlow 7s ease-in-out infinite alternate;
}

.community-network-header,
.community-network-footer {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.community-network-header {
  padding: 24px 28px 0;
  color: #f3f5f8;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.community-network-header strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bfc6d1;
  font-size: .63rem;
  letter-spacing: .1em;
}

.community-network-header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #42ed82;
  box-shadow: 0 0 14px rgba(66, 237, 130, .9);
  animation: communityStatusPulse 2.4s ease-in-out infinite;
}

.community-network-stage {
  position: relative;
  z-index: 2;
  width: min(86%, 530px);
  aspect-ratio: 1;
  margin: 2px auto -4px;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(244, 57, 72, .08), rgba(10, 14, 20, .45) 49%, transparent 70%),
    repeating-radial-gradient(circle, transparent 0 57px, rgba(255, 255, 255, .055) 58px 59px);
}

.community-grid-plane {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 50%;
  opacity: .66;
  background-image:
    linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
  background-size: 31px 31px;
  mask-image: radial-gradient(circle, #000 54%, transparent 75%);
  transform: rotate(-8deg);
}

.community-orbit,
.community-radar-sweep,
.community-route,
.community-node,
.community-network-core {
  position: absolute;
}

.community-orbit {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(255, 98, 110, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.community-orbit::before,
.community-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ff5c69;
  box-shadow: 0 0 11px rgba(255, 58, 73, .78);
}

.community-orbit::before {
  width: 5px;
  height: 5px;
  left: 13%;
  top: 15%;
}

.community-orbit::after {
  width: 4px;
  height: 4px;
  right: 15%;
  bottom: 18%;
}

.community-orbit--outer {
  width: 86%;
  height: 86%;
  animation: communityOrbitSpin 32s linear infinite;
}

.community-orbit--middle {
  width: 66%;
  height: 66%;
  border-style: dashed;
  animation: communityOrbitSpinReverse 24s linear infinite;
}

.community-orbit--inner {
  width: 45%;
  height: 45%;
  opacity: .72;
  animation: communityOrbitSpin 18s linear infinite;
}

.community-radar-sweep {
  inset: 8%;
  border-radius: 50%;
  opacity: .46;
  background: conic-gradient(from 0deg, transparent 0 77%, rgba(237, 45, 60, .17) 89%, transparent 96%);
  animation: communityRadarSpin 12s linear infinite;
}

.community-route {
  height: 1px;
  opacity: .48;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 91, .76), transparent);
}

.community-route::after {
  content: "";
  position: absolute;
  right: 28%;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff6471;
  box-shadow: 0 0 12px rgba(255, 72, 87, .92);
  animation: communityRouteSignal 3.2s ease-in-out infinite;
}

.community-route--one {
  width: 43%;
  left: 17%;
  top: 31%;
  transform: rotate(27deg);
}

.community-route--two {
  width: 45%;
  left: 44%;
  top: 55%;
  transform: rotate(-21deg);
}

.community-route--three {
  width: 37%;
  left: 20%;
  top: 69%;
  transform: rotate(-28deg);
}

.community-node {
  z-index: 4;
  display: grid;
  gap: 5px;
  color: #aeb6c2;
  font-size: .54rem;
  font-weight: 850;
  letter-spacing: .12em;
  white-space: nowrap;
}

.community-node i {
  width: 11px;
  height: 11px;
  border: 2px solid #ff6673;
  border-radius: 50%;
  background: #191017;
  box-shadow: 0 0 0 5px rgba(255, 77, 91, .08), 0 0 18px rgba(255, 69, 83, .52);
  animation: communityNodePulse 3s ease-in-out infinite;
}

.community-node b {
  font: inherit;
}

.community-node--one { left: 19%; top: 25%; }
.community-node--two { left: 10%; top: 61%; }
.community-node--three { right: 7%; top: 34%; align-items: end; }
.community-node--three i,
.community-node--four i { margin-left: auto; }
.community-node--four { right: 12%; bottom: 19%; align-items: end; }
.community-node--two i { animation-delay: -.8s; }
.community-node--three i { animation-delay: -1.5s; }
.community-node--four i { animation-delay: -2.1s; }

.community-network-core {
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 35%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 101, 113, .22);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 17, 29, .62), rgba(8, 10, 15, .9) 68%);
  box-shadow: 0 0 54px rgba(205, 25, 41, .23), inset 0 0 24px rgba(255, 255, 255, .035);
  animation: communityCoreFloat 6.5s ease-in-out infinite alternate;
}

.community-network-core img {
  width: 78%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)) saturate(.9);
}

.community-network-core i {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  color: #f4f6f9;
  font: 850 .58rem Orbitron, sans-serif;
  letter-spacing: .16em;
  white-space: nowrap;
}

.community-network-footer {
  margin: 0 28px 25px;
  padding-top: 19px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #858e9a;
  font-size: .58rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.community-network-footer b {
  color: #f5f6f8;
  font: 850 .7rem Orbitron, sans-serif;
}

.community-command-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(42px, 5vw, 68px);
}

.community-command-card {
  position: relative;
  min-height: 250px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 25, 40, .12), transparent 35%),
    linear-gradient(155deg, rgba(18, 22, 29, .9), rgba(8, 11, 15, .75));
  box-shadow: 0 22px 55px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .035);
  transition: transform .34s ease, border-color .34s ease, box-shadow .34s ease;
}

.community-command-card::before {
  content: "";
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 0;
  height: 1px;
  opacity: .6;
  transform: scaleX(.34);
  transform-origin: left center;
  background: linear-gradient(90deg, #ff4d5d, transparent);
  transition: transform .34s ease, opacity .34s ease;
}

.community-command-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 79, 93, .27);
  box-shadow: 0 28px 66px rgba(0, 0, 0, .34), 0 0 30px rgba(184, 18, 33, .08);
}

.community-command-card:hover::before {
  opacity: .9;
  transform: scaleX(1);
}

.community-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.community-card-top > span {
  color: #ff6875;
  font: 850 .68rem Orbitron, sans-serif;
  letter-spacing: .16em;
}

.community-card-top > i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 91, 104, .2);
  border-radius: 13px;
  color: #f0f2f5;
  background: rgba(203, 29, 45, .09);
  font: 850 .6rem Orbitron, sans-serif;
  letter-spacing: .08em;
  box-shadow: inset 0 0 20px rgba(213, 26, 43, .06);
}

.community-command-card h3 {
  margin: 35px 0 13px;
  color: #f7f8fa;
  font: 800 clamp(1.02rem, 1.4vw, 1.25rem) / 1.22 Orbitron, sans-serif;
  letter-spacing: -.02em;
}

.community-command-card p {
  margin: 0;
  color: #aeb6c2;
  font-size: .91rem;
  line-height: 1.68;
}

@keyframes communityHazeLeft {
  from { opacity: .13; transform: translate3d(-5%, 3%, 0) scale(.96); }
  to { opacity: .24; transform: translate3d(11%, -5%, 0) scale(1.1); }
}

@keyframes communityHazeRight {
  from { transform: translate3d(8%, -4%, 0) scale(1.05); }
  to { transform: translate3d(-10%, 7%, 0) scale(.97); }
}

@keyframes communityLightSweep {
  0%, 17% { opacity: 0; transform: rotate(16deg) translate3d(-440%, 0, 0); }
  32% { opacity: .11; }
  69% { opacity: .08; }
  84%, 100% { opacity: 0; transform: rotate(16deg) translate3d(620%, 0, 0); }
}

@keyframes communityPanelGlow {
  from { opacity: .14; transform: scale(.94); }
  to { opacity: .25; transform: scale(1.08); }
}

@keyframes communityStatusPulse {
  50% { opacity: .42; box-shadow: 0 0 7px rgba(66, 237, 130, .6); }
}

@keyframes communityOrbitSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes communityOrbitSpinReverse {
  from { transform: translate(-50%, -50%) rotate(360deg); }
  to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes communityRadarSpin {
  to { transform: rotate(360deg); }
}

@keyframes communityRouteSignal {
  0%, 100% { opacity: .24; transform: translateX(-70%); }
  50% { opacity: 1; transform: translateX(140%); }
}

@keyframes communityNodePulse {
  50% { transform: scale(1.18); box-shadow: 0 0 0 8px rgba(255, 77, 91, .045), 0 0 22px rgba(255, 69, 83, .7); }
}

@keyframes communityCoreFloat {
  from { transform: translate(-50%, -50%) translate3d(0, -3px, 0); }
  to { transform: translate(-50%, -50%) translate3d(0, 5px, 0); }
}

@media (max-width: 1120px) {
  .community-command-intro {
    grid-template-columns: minmax(0, .82fr) minmax(440px, 1.18fr);
    gap: 42px;
  }

  .community-network-panel {
    min-height: 560px;
  }

  .community-command-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-command-card {
    min-height: 220px;
  }
}

@media (max-width: 900px) {
  .redsky-community-command {
    min-height: 0;
  }

  .community-command-intro {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .community-command-copy {
    max-width: 760px;
  }

  .community-network-panel {
    width: min(100%, 700px);
    min-height: 570px;
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .redsky-community-command {
    padding: 80px 0;
  }

  .redsky-community-command::before {
    opacity: .11;
    background-size: 46px 46px;
  }

  .community-command-shell {
    width: min(100% - 28px, 1320px);
  }

  .community-haze--right,
  .community-light-beam {
    display: none;
  }

  .community-haze {
    width: 118vw;
    height: 30%;
  }

  .community-command-copy h2 {
    margin: 15px 0 23px;
    font-size: clamp(2.15rem, 10.7vw, 3.15rem);
    line-height: .99;
    letter-spacing: -.045em;
  }

  .community-command-prose {
    gap: 13px;
  }

  .community-command-prose p {
    font-size: .95rem;
    line-height: 1.66;
  }

  .community-command-tags {
    gap: 8px;
    margin-top: 23px;
  }

  .community-command-tags span {
    min-height: 34px;
    padding: 8px 10px;
    font-size: .61rem;
    letter-spacing: .07em;
  }

  .community-command-intro {
    gap: 32px;
  }

  .community-network-panel {
    min-height: 0;
    border-radius: 25px;
    backdrop-filter: none;
  }

  .community-network-header {
    padding: 20px 20px 0;
    font-size: .57rem;
    letter-spacing: .11em;
  }

  .community-network-header strong {
    font-size: .51rem;
    letter-spacing: .06em;
  }

  .community-network-stage {
    width: min(96%, 440px);
    margin-top: 0;
  }

  .community-network-footer {
    margin: 0 20px 21px;
    gap: 8px;
    font-size: .48rem;
    letter-spacing: .075em;
  }

  .community-network-footer b {
    font-size: .58rem;
  }

  .community-node {
    font-size: .44rem;
    letter-spacing: .07em;
  }

  .community-command-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
  }

  .community-command-card {
    min-height: 225px;
    padding: 20px;
    border-radius: 20px;
  }

  .community-card-top > i {
    width: 36px;
    height: 36px;
  }

  .community-command-card h3 {
    margin: 25px 0 11px;
    font-size: .92rem;
  }

  .community-command-card p {
    font-size: .82rem;
    line-height: 1.58;
  }
}

@media (max-width: 360px) {
  .community-command-copy h2 {
    font-size: 2.04rem;
  }

  .community-command-tags span {
    width: 100%;
    justify-content: center;
  }

  .community-network-header {
    align-items: flex-start;
  }

  .community-network-header strong {
    max-width: 90px;
    justify-content: flex-end;
    text-align: right;
  }

  .community-network-footer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .community-command-cards {
    grid-template-columns: 1fr;
  }

  .community-command-card {
    min-height: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .redsky-community-command *,
  .redsky-community-command *::before,
  .redsky-community-command *::after {
    animation: none !important;
    transition: none !important;
  }
}
