/* "Ready to get started?" Discord panel: headline + button on the left, a
   Discord-style server invite card on the right. No tilt. */

.dspanel-wrap:has(.dsx) { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(16px, 3vw, 32px); }

.dsx {
  --blurple: 88, 101, 242;              /* only used for Discord's own UI bits */
  --acc: var(--cl-accent-rgb, 163, 191, 240); /* site theme accent */
  --mx: 70%;
  --my: 50%;
  max-width: 1100px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 40px !important;
  padding: 34px 34px 34px 40px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(560px 280px at 100% 0%, rgba(var(--acc), 0.08), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--surface-card, #151518) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 30px 70px -45px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}
.dsx::before { display: none !important; }
/* cursor light (subtle) */
.dsx::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(var(--acc), 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.dsx:hover::after { opacity: 1; }

/* big faded Discord mark bleeding off the right edge */
.dsx-mark {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 300px;
  height: 300px;
  color: #fff;
  opacity: 0.025;
  transform: rotate(-12deg);
  pointer-events: none;
}

.dsx-copy, .dsx-invite { position: relative; z-index: 1; }

/* ---------- Copy ---------- */
.dsx .dspanel-title {
  font-family: "Clash Display", var(--font-body, system-ui, sans-serif) !important;
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
  margin: 0 0 10px !important;
  color: #fff !important;
}
.dsx .dspanel-text {
  max-width: 44ch;
  font-size: 15px !important;
  line-height: 1.55 !important;
  color: #a4a6b3 !important;
}
.dsx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; }
.dsx-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px 12px 16px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  /* same look as the site's main buttons (e.g. "Buy Now") */
  color: var(--text-on-accent, #0b0b0d);
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--acc)) 82%, #fff 18%) 0%, rgb(var(--acc)) 58%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -12px rgba(var(--acc), 0.7);
  transition: background-color 0.2s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.dsx-btn svg { width: 20px; height: 20px; }
.dsx-btn:hover { color: var(--text-on-accent, #0b0b0d); filter: brightness(1.05); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 16px 32px -12px rgba(var(--acc), 0.85); }
.dsx-btn:focus-visible, .dsx-invite:focus-visible { outline: 2px solid rgba(var(--acc), 0.9); outline-offset: 3px; }
.dsx-link {
  font-size: 13.5px;
  font-weight: 500;
  color: rgb(var(--acc));
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s ease, color 0.2s ease;
}
.dsx-link:hover { color: #dfe8ff; background-size: 100% 1px; }

/* ---------- Invite card (Discord's own layout) ---------- */
.dsx-invite {
  display: block;
  padding: 16px;
  border-radius: 14px;
  background: #1e1f22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.03);
  text-decoration: none;
  color: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.dsx:hover .dsx-invite {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(var(--acc), 0.08);
}
.dsx-invite__label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b5bac1;
}
.dsx-invite__row { display: flex; align-items: center; gap: 12px; }
.dsx-invite__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, #2b2d31, #232428);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dsx-invite__icon img { width: 28px; height: 28px; object-fit: contain; }
.dsx-invite__name {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  color: #f2f3f5;
}
.dsx-invite__name small { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: #b5bac1; }
.dsx-invite__name small i { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; }
.dsx-invite__join {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #248046;
  transition: background-color 0.2s ease;
}
.dsx-invite:hover .dsx-invite__join { background: #1a6334; }
.dsx-invite__channels {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.dsx-ch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #949ba4;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dsx-ch b { font-size: 18px; font-weight: 500; line-height: 1; color: #80848e; }
/* unread channels: white text + unread dot, like Discord */
.dsx-ch:has(i) { position: relative; color: #f2f3f5; }
.dsx-ch i {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f2f3f5;
  box-shadow: 0 0 0 3px #1e1f22;
}
.dsx-invite:hover .dsx-ch:first-child { background: rgba(255, 255, 255, 0.05); color: #fff; }

/* ---------- Entrance ---------- */
.dsx.dsx-anim .dsx-copy > *,
.dsx.dsx-anim .dsx-invite {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}
.dsx.dsx-anim.dsx-in .dsx-copy > *, .dsx.dsx-anim.dsx-in .dsx-invite { opacity: 1; transform: none; }
.dsx.dsx-in .dsx-copy > :nth-child(2) { transition-delay: 0.08s; }
.dsx.dsx-in .dsx-copy > :nth-child(3) { transition-delay: 0.16s; }
.dsx.dsx-in .dsx-invite { transition-delay: 0.2s, 0.2s, 0s; }
.dsx.dsx-in:hover .dsx-invite { transform: translateY(-4px); transition-delay: 0s; }
.dsx.dsx-anim .dsx-ch { opacity: 0; transform: translateX(-8px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, color 0.2s ease; }
.dsx.dsx-in .dsx-ch { opacity: 1; transform: none; transition-delay: calc(0.45s + var(--i) * 0.09s), calc(0.45s + var(--i) * 0.09s), 0s, 0s; }

/* ---------- Responsive ---------- */
@media (max-width: 899.98px) {
  .dsx { grid-template-columns: 1fr; gap: 26px !important; padding: 26px !important; }
  .dsx-invite { max-width: 400px; }
}
@media (max-width: 479.98px) {
  .dsx-btn { width: 100%; justify-content: center; }
  .dsx-actions { justify-content: center; }
}
