/* ============================================
   PREMIUM SERVICE CARDS — ARISDEX
   ============================================ */

.psc-section {
  padding: 96px 0;
  background: var(--primary-bg, #0D0D0F);
  position: relative;
  overflow: hidden;
}

.psc-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(58, 95, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 95, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 15%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 15%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.psc-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 18% 22%, rgba(58, 95, 255, 0.055) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 82% 78%, rgba(0, 200, 150, 0.045) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ─── HEADER ─────────────────────────────── */

.psc-header {
  text-align: center;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.psc-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-cobalt, #3A5FFF);
  margin-bottom: 24px;
}

.psc-label::before,
.psc-label::after {
  content: '';
  flex-shrink: 0;
  width: 36px;
  height: 1px;
}

.psc-label::before {
  background: linear-gradient(90deg, transparent, rgba(58, 95, 255, 0.55));
}

.psc-label::after {
  background: linear-gradient(90deg, rgba(58, 95, 255, 0.55), transparent);
}

.psc-heading {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: clamp(1.875rem, 4.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 22px;
}

.psc-heading em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(125deg, var(--accent-cobalt, #3A5FFF) 0%, var(--accent-emerald, #00C896) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.psc-intro {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted, #8B8B90);
  max-width: 580px;
  margin: 0 auto;
}

/* ─── BENTO GRID ─────────────────────────── */

.psc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* ─── BASE CARD ──────────────────────────── */

.psc-card {
  background: rgba(22, 22, 26, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: default;
  transition:
    transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.38s ease,
    box-shadow 0.38s ease,
    background 0.38s ease;
}

/* Mouse-follow glow overlay */
.psc-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: radial-gradient(
    circle at var(--cx, 50%) var(--cy, 30%),
    rgba(58, 95, 255, 0.09) 0%,
    transparent 62%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.psc-card:hover {
  transform: translateY(-7px);
  border-color: rgba(58, 95, 255, 0.3);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(58, 95, 255, 0.09),
    0 4px 20px rgba(58, 95, 255, 0.07);
  background: rgba(28, 28, 34, 0.9);
}

.psc-card:hover::after { opacity: 1; }

/* ─── COBALT FEATURED ────────────────────── */

.psc-card--cobalt {
  background: linear-gradient(
    148deg,
    rgba(58, 95, 255, 0.11) 0%,
    rgba(20, 20, 26, 0.85) 58%
  );
  border-color: rgba(58, 95, 255, 0.18);
}

.psc-card--cobalt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(58, 95, 255, 0.55) 35%,
    rgba(58, 95, 255, 0.55) 65%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.psc-card--cobalt::after {
  background: radial-gradient(
    circle at var(--cx, 28%) var(--cy, 28%),
    rgba(58, 95, 255, 0.15) 0%,
    transparent 62%
  );
}

.psc-card--cobalt:hover {
  border-color: rgba(58, 95, 255, 0.45);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(58, 95, 255, 0.14),
    0 0 48px rgba(58, 95, 255, 0.12);
}

/* ─── EMERALD FEATURED ───────────────────── */

.psc-card--emerald {
  background: linear-gradient(
    148deg,
    rgba(0, 200, 150, 0.09) 0%,
    rgba(20, 20, 26, 0.85) 58%
  );
  border-color: rgba(0, 200, 150, 0.18);
}

.psc-card--emerald::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 200, 150, 0.5) 35%,
    rgba(0, 200, 150, 0.5) 65%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.psc-card--emerald::after {
  background: radial-gradient(
    circle at var(--cx, 72%) var(--cy, 28%),
    rgba(0, 200, 150, 0.12) 0%,
    transparent 62%
  );
}

.psc-card--emerald:hover {
  border-color: rgba(0, 200, 150, 0.42);
  box-shadow:
    0 24px 72px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 200, 150, 0.12),
    0 0 48px rgba(0, 200, 150, 0.1);
}

/* ─── GRID PLACEMENT ─────────────────────── */

.psc-card--1,
.psc-card--6 { grid-column: span 2; min-height: 268px; }

.psc-card--7,
.psc-card--8 { grid-column: span 2; }

/* ─── CARD INNER ─────────────────────────── */

.psc-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ─── ICON ───────────────────────────────── */

.psc-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.psc-card:hover .psc-icon {
  transform: scale(1.1) translateY(-2px);
}

.psc-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.psc-card--cobalt .psc-icon {
  background: rgba(58, 95, 255, 0.13);
  border: 1px solid rgba(58, 95, 255, 0.26);
  color: #7A9FFF;
}

.psc-card--emerald .psc-icon {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.26);
  color: #20D9A8;
}

.psc-card:not(.psc-card--cobalt):not(.psc-card--emerald) .psc-icon {
  background: rgba(58, 95, 255, 0.07);
  border: 1px solid rgba(58, 95, 255, 0.14);
  color: rgba(100, 140, 255, 0.85);
}

/* ─── TAG ────────────────────────────────── */

.psc-tag {
  display: inline-flex;
  align-self: flex-start;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.psc-card--cobalt .psc-tag {
  background: rgba(58, 95, 255, 0.12);
  border: 1px solid rgba(58, 95, 255, 0.26);
  color: #8AB0FF;
}

.psc-card--emerald .psc-tag {
  background: rgba(0, 200, 150, 0.1);
  border: 1px solid rgba(0, 200, 150, 0.26);
  color: #2DEABC;
}

.psc-card:not(.psc-card--cobalt):not(.psc-card--emerald) .psc-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(175, 175, 185, 0.7);
}

/* ─── TITLE ──────────────────────────────── */

.psc-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: #ededf0;
  margin-bottom: 11px;
  transition: color 0.3s ease;
}

.psc-card--1 .psc-title,
.psc-card--6 .psc-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.psc-card:hover .psc-title { color: #ffffff; }

/* ─── DESCRIPTION ────────────────────────── */

.psc-desc {
  font-family: 'Inter', 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.78;
  color: var(--text-muted, #8B8B90);
  flex-grow: 1;
}

/* ─── STAGGER REVEAL ─────────────────────── */

/* Stagger delays via CSS custom property */
.psc-grid .psc-card:nth-child(1) { --psc-delay: 0.05s; }
.psc-grid .psc-card:nth-child(2) { --psc-delay: 0.11s; }
.psc-grid .psc-card:nth-child(3) { --psc-delay: 0.17s; }
.psc-grid .psc-card:nth-child(4) { --psc-delay: 0.23s; }
.psc-grid .psc-card:nth-child(5) { --psc-delay: 0.29s; }
.psc-grid .psc-card:nth-child(6) { --psc-delay: 0.35s; }
.psc-grid .psc-card:nth-child(7) { --psc-delay: 0.41s; }
.psc-grid .psc-card:nth-child(8) { --psc-delay: 0.47s; }

/* Override site's .reveal styles for psc cards */
.psc-section .psc-card.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s ease var(--psc-delay, 0s),
    transform 0.65s cubic-bezier(0.23, 1, 0.32, 1) var(--psc-delay, 0s),
    border-color 0.38s ease,
    box-shadow 0.38s ease,
    background 0.38s ease;
}

.psc-section .psc-card.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reset delay + add hover lift — higher specificity wins over nth-child */
.psc-card.reveal.is-visible:hover {
  --psc-delay: 0s;
  transform: translateY(-7px);
}

/* ─── RESPONSIVE ─────────────────────────── */

@media (max-width: 1100px) {
  .psc-grid { grid-template-columns: repeat(2, 1fr); }

  .psc-card--1,
  .psc-card--6 { grid-column: span 2; }

  .psc-card--2,
  .psc-card--3,
  .psc-card--4,
  .psc-card--5,
  .psc-card--7,
  .psc-card--8 { grid-column: span 1; }
}

@media (max-width: 640px) {
  .psc-section { padding: 64px 0; }
  .psc-header { margin-bottom: 48px; }

  .psc-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .psc-card--1,
  .psc-card--2,
  .psc-card--3,
  .psc-card--4,
  .psc-card--5,
  .psc-card--6,
  .psc-card--7,
  .psc-card--8 {
    grid-column: span 1;
    min-height: auto;
  }

  .psc-card { padding: 26px 22px; border-radius: 18px; }

  .psc-card--1 .psc-title,
  .psc-card--6 .psc-title { font-size: 16px; }

  .psc-intro { font-size: 14px; }
}
