/* ============================================================
   SkinSignal / the landing's community section
   index.html #community. The copy on the left (~0.78fr); on the right
   (~1.22fr), a preview of what opens at launch: the Discord mark, the
   channels and four features. js/community.js fills the real pictures.

   OPEN, AND HONEST ABOUT BEING NEW. The server is live, and the panel
   shows it as it is: its channels and what each is for. No member list,
   no chat, no online count, no activity. The "Open now" dot is still.
   Discord blurple (#5865F2) is kept to the Discord moments; the rest is
   the site's own blue and gold.
   ============================================================ */

.dc {
  --dc-blurple: #5865f2;
  --dc-gold: #e4ae39;
  --dc-blue: #6a9fff;
  --dc-ink: #f1f3f6;
  --dc-ink-2: #b9bfca;
  --dc-ink-3: #8a919e;
  --dc-line: rgba(96, 140, 220, 0.16);
  --pad: clamp(20px, 3.8vw, 76px);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 6.6vw, 124px) 0 clamp(64px, 5.6vw, 108px);
  background:
    radial-gradient(34% 48% at 72% 40%, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0) 72%),
    radial-gradient(30% 40% at 86% 70%, rgba(61, 127, 255, var(--amb-blue, 0.08)), rgba(61, 127, 255, 0) 72%),
    #05080d;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.dc__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  padding: 0 var(--pad);
}

/* ============================================================
   THE COPY
   ============================================================ */
.dc__open { color: #a4adff; }
.dc__eyebrow span[aria-hidden] { margin: 0 0.4em; }
.dc__eyebrow {
  margin: 0 0 clamp(14px, 1.2vw, 20px);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(12px, 0.78vw, 14px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-ink-2);
}
.dc__title {
  margin: 0;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 800;
  font-size: clamp(40px, 3.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--dc-ink);
}
.dc__line { display: block; }
.dc__line--gold {
  color: var(--dc-gold);
  background: linear-gradient(180deg, #f6d27a 0%, #e8b544 52%, #c98a1c 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dc__body {
  max-width: 540px;
  margin: clamp(16px, 1.4vw, 22px) 0 0;
  font-family: var(--font-body);
  font-size: clamp(15px, 1vw, 18.5px);
  line-height: 1.55;
  color: var(--dc-ink-2);
}
.dc__body--second { margin-top: 12px; color: var(--dc-ink-3); }

.dc__features {
  display: grid;
  gap: clamp(14px, 1.2vw, 20px);
  margin: clamp(24px, 2.2vw, 36px) 0 clamp(26px, 2.4vw, 38px);
  padding: 0;
  list-style: none;
}
.dc-feat { display: flex; align-items: flex-start; gap: 16px; }
.dc-feat__icon {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--dc-gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dc-feat__text {
  font-family: var(--font-body);
  font-size: clamp(13.5px, 0.84vw, 15.5px);
  line-height: 1.45;
  color: var(--dc-ink-2);
}
.dc-feat__text b {
  display: block;
  margin-bottom: 3px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-weight: 500;
  font-size: clamp(12.5px, 0.78vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dc-ink);
}

/* The one blurple button: Discord's own colour, the site's door shape. */
.dc__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: clamp(52px, 3.3vw, 62px);
  padding: 0 clamp(22px, 1.7vw, 30px);
  border: 1px solid rgba(160, 170, 255, 0.35);
  border-radius: 10px;
  background: linear-gradient(180deg, #6a76f6 0%, #5865f2 100%);
  box-shadow: 0 14px 34px -12px rgba(88, 101, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 0.98vw, 17.5px);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--hover-dur, 200ms) var(--ease), box-shadow var(--hover-dur, 200ms) ease, background var(--hover-dur, 200ms) ease;
}
.dc__cta svg { width: 24px; height: 24px; flex: none; }
.dc__cta .dc__cta-arrow { width: 16px; height: 16px; }
.dc__cta:hover { background: linear-gradient(180deg, #7682f7 0%, #5f6cf3 100%); box-shadow: 0 16px 38px -12px rgba(88, 101, 242, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.26); transform: translateY(-1px); }
.dc__cta:focus-visible { outline: 2px solid #a4adff; outline-offset: 3px; }


.dc__micro {
  margin: 16px 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-ink-3);
}
.dc__micro b { font-weight: 500; color: var(--dc-gold); }

/* ============================================================
   THE PREVIEW
   ============================================================ */
.dc__art { position: relative; min-width: 0; padding-top: clamp(70px, 6vw, 110px); }

/* Real cards, faint, behind the panel: atmosphere, not content. */
.dc__atmo { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dc__ghost {
  position: absolute;
  width: 44%;
  aspect-ratio: 3 / 1;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.2;
  filter: saturate(0.8) brightness(0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.dc__ghost picture,
.dc__ghost img { display: block; width: 100%; height: 100%; object-fit: contain; }
.dc__ghost--1 { left: 2%; top: 8%; rotate: -8deg; }
.dc__ghost--2 { right: 0; top: 2%; rotate: 9deg; }
.dc__ghost--3 { right: -6%; bottom: 14%; rotate: 12deg; width: 36%; }

/* The Discord mark, on its own tile above the panel. Still. */
.dc__logo {
  position: absolute;
  left: 44%;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: clamp(120px, 9.4vw, 180px);
  height: clamp(120px, 9.4vw, 180px);
  border-radius: 32%;
  background: linear-gradient(160deg, #6f7cf7 0%, #5865f2 60%, #4a55d6 100%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 80px -20px rgba(88, 101, 242, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  color: #ffffff;
}
.dc__logo svg { width: 58%; height: 58%; }

.dc__panel {
  position: relative;
  z-index: 2;
  border: 1px solid rgba(96, 140, 220, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.96) 0%, rgba(8, 12, 20, 0.97) 100%);
  box-shadow: 0 50px 100px -44px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dc__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 1.3vw, 22px) clamp(18px, 1.5vw, 26px) 10px;
}
.dc__server { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dc__server-mark { display: block; width: auto; height: clamp(18px, 1.3vw, 24px); }
.dc__server-name { font-family: var(--font-body); font-weight: 700; font-size: clamp(14px, 0.95vw, 17px); color: var(--dc-ink); white-space: nowrap; }

/* The status: open, with a still dot. Never a breathing "online" light,
   never a count. */
.dc__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(88, 101, 242, 0.5);
  border-radius: 999px;
  background: rgba(88, 101, 242, 0.1);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: clamp(10.5px, 0.66vw, 12.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5cbff;
  white-space: nowrap;
}
.dc__status i { width: 7px; height: 7px; border-radius: 50%; background: #8a95ff; }

.dc__preview-label {
  margin: 0;
  padding: 0 clamp(18px, 1.5vw, 26px) 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dc-ink-3);
}

.dc__panel-body {
  display: grid;
  grid-template-columns: clamp(150px, 11vw, 210px) minmax(0, 1fr);
}

.dc__rail {
  padding: 14px 10px 14px clamp(14px, 1.2vw, 20px);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.dc__rail-head {
  margin: 2px 8px 8px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dc-ink-3);
}
.dc__rail ul { margin: 0; padding: 0; list-style: none; }
.dc__rail li {
  padding: 7px 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: clamp(13px, 0.82vw, 15px);
  color: var(--dc-ink-3);
  white-space: nowrap;
}
.dc__rail li.is-on { background: rgba(255, 255, 255, 0.05); color: var(--dc-ink); }

.dc__modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 0.8vw, 14px);
  padding: clamp(12px, 1vw, 18px);
}
.dc-mod {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(12px, 0.9vw, 16px);
  border: 1px solid var(--dc-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  min-width: 0;
}
.dc-mod__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.dc-mod__title {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: clamp(11.5px, 0.74vw, 13.5px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dc-ink);
}
/* Each feature names the channel it lives in. */
.dc-mod__ch {
  flex: none;
  padding: 2px 7px;
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: #b3baff;
}
.dc-mod__row { display: flex; align-items: center; gap: 12px; }
.dc-mod__icon { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--dc-blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dc-mod__text { margin: 0; font-family: var(--font-body); font-size: clamp(12.5px, 0.76vw, 14px); line-height: 1.45; color: var(--dc-ink-2); }
.dc-mod__count { font-weight: 700; color: var(--dc-gold); }

.dc-mod__emblem { flex: none; width: clamp(54px, 4vw, 72px); height: clamp(54px, 4vw, 72px); }
.dc-mod__emblem picture,
.dc-mod__emblem img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6)); }

.dc-mod__card {
  display: block;
  aspect-ratio: 3 / 1;
  border: 1px solid rgba(240, 180, 41, 0.6);
  border-radius: 6px;
  overflow: hidden;
  background: #0b0e14;
}
.dc-mod__card picture,
.dc-mod__card img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* The rivalry: three rungs, no names. */
.dc-mod__ladder { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dc-mod__ladder li {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
}
.dc-mod__ladder li:first-child { background: rgba(228, 174, 57, 0.08); box-shadow: inset 2px 0 0 var(--dc-gold); }
.dc-mod__ladder span { width: 22px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; color: var(--dc-ink-2); }
.dc-mod__ladder li:first-child span { color: var(--dc-gold); }
.dc-mod__ladder i { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.dc-mod__ladder li:nth-child(1) i { width: 78%; }
.dc-mod__ladder li:nth-child(2) i { width: 64%; }
.dc-mod__ladder li:nth-child(3) i { width: 52%; }

.dc__panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px clamp(18px, 1.5vw, 26px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.dc__foot-k {
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dc-ink);
}
.dc__foot-v { font-family: var(--font-body); font-size: 12.5px; color: var(--dc-ink-3); }
.dc__wave {
  margin-left: auto;
  padding: 3px 9px;
  border: 1px solid rgba(228, 174, 57, 0.45);
  border-radius: 999px;
  font-family: var(--font-display);
  font-stretch: 100%;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f5d78a;
}

/* ============================================================
   MOTION, only when asked for (js/community.js arms it)
   Once in, then still. Only the faint cards behind drift, 3px, slowly.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .dc__ghost { animation: dcDrift 16s ease-in-out infinite alternate; }
  .dc__ghost--2 { animation-delay: -5s; }
  .dc__ghost--3 { animation-delay: -10s; }

  .dc.is-armed .dc__copy > * { opacity: 0; translate: 0 var(--reveal-rise, 12px); }
  .dc.is-armed .dc__panel,
  .dc.is-armed .dc__logo { opacity: 0; translate: 0 var(--reveal-rise, 12px); scale: 0.98; }

  .dc.is-in .dc__copy > * {
    opacity: 1;
    translate: 0 0;
    transition: opacity var(--reveal-fade, 550ms) ease, translate var(--reveal-dur, 650ms) var(--ease);
  }
  .dc.is-in .dc__copy > :nth-child(3),
  .dc.is-in .dc__copy > :nth-child(4) { transition-delay: 80ms; }
  .dc.is-in .dc__copy > .dc__features { transition-delay: 160ms; }
  .dc.is-in .dc__copy > .dc__cta,
    .dc.is-in .dc__copy > .dc__micro { transition-delay: 240ms; }
  .dc.is-in .dc__panel,
  .dc.is-in .dc__logo {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: opacity var(--reveal-fade, 550ms) ease 120ms, translate var(--reveal-dur, 650ms) var(--ease) 120ms, scale var(--reveal-dur, 650ms) var(--ease) 120ms;
  }
  .dc.is-in .dc__logo { transition-delay: 260ms; }
}

@keyframes dcDrift {
  from { translate: 0 0; }
  to   { translate: 0 -3px; }
}

/* ============================================================
   NARROWER SCREENS
   ============================================================ */
/* STACKED: the copy, then the preview at full width. */
@media (max-width: 1049px) {
  .dc__inner { grid-template-columns: minmax(0, 1fr); }
  .dc__copy { max-width: 640px; }
}

/* PHONES: the preview simplifies rather than shrinks. No channel rail,
   the four features one under another, the real emblem and card kept. */
@media (max-width: 699px) {
  .dc__panel-body { grid-template-columns: minmax(0, 1fr); }
  .dc__rail { display: none; }
  .dc__modules { grid-template-columns: minmax(0, 1fr); }
  .dc__panel-head { flex-wrap: wrap; }
  .dc__logo { left: auto; right: 6%; width: 96px; height: 96px; }
  .dc__art { padding-top: 64px; }
  .dc__ghost { width: 60%; }
  .dc__wave { margin-left: 0; }
  .dc__cta { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .dc__ghost { animation: none; }
  .dc__copy > *, .dc__panel, .dc__logo, .dc__cta { transition: none; }
  .dc__cta:hover { transform: none; }
}
