/* Services overview — premium / bento-adjacent board */
:root {
  --purple-50: #f6eeff;
  --pink-300: #d5a3ff;
  --svc-deep: #1a0b3a;
  --svc-purple-800: #4c1ba8;
  --svc-violet: #7b2cff;
  --svc-pink: #c77dff;
  --svc-ink: #1a0b3a;
  --svc-muted: #5e5478;
  --svc-shadow-deep: 0 28px 80px rgba(26, 11, 58, 0.14);
  --svc-shadow-hover: 0 36px 100px rgba(123, 44, 255, 0.22);
}

@media (prefers-reduced-motion: reduce) {
  .svc-tile,
  .svc-tile-inner,
  .svc-feature,
  .svc-btn-solid,
  .svc-hero-marquee-inner {
    transition: none !important;
    animation: none !important;
  }
}

.page-services .subpage-main {
  padding-bottom: 0;
}

.page-services em {
  font-style: normal !important;
}

/* ── Hero ── */
.svc-hero {
  position: relative;
  padding: clamp(72px, 11vw, 120px) 32px 48px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 55% at 50% -30%, rgba(123, 44, 255, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(199, 125, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 45% 35% at 0% 100%, rgba(76, 27, 168, 0.1), transparent 50%),
    linear-gradient(180deg, #fff 0%, #f7f3fc 50%, var(--purple-50, #f6eeff) 100%);
}
.svc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123, 44, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 44, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black 50%, transparent);
  pointer-events: none;
}
.svc-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.svc-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--svc-violet);
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(123, 44, 255, 0.08);
  border: 1px solid rgba(123, 44, 255, 0.18);
  margin-bottom: 22px;
}
.svc-hero-eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--svc-violet), var(--svc-pink));
  box-shadow: 0 0 12px rgba(123, 44, 255, 0.5);
}
.svc-hero-title {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--svc-ink);
  margin-bottom: 22px;
}
.svc-hero-title .svc-hero-accent {
  display: inline;
  background: linear-gradient(120deg, var(--svc-deep) 0%, var(--svc-violet) 45%, var(--svc-purple-800) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.svc-hero-lede {
  font-size: clamp(17px, 1.85vw, 20px);
  line-height: 1.62;
  color: var(--svc-muted);
  max-width: 640px;
  margin: 0 auto;
}
.svc-hero-lede a {
  color: var(--svc-violet);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(123, 44, 255, 0.35);
}
.svc-hero-lede a:hover {
  border-bottom-color: var(--svc-violet);
}

/* Marquee strip */
.svc-hero-marquee {
  margin-top: 40px;
  width: min(980px, calc(100% - 24px));
  margin-left: auto;
  margin-right: auto;
  border-radius: 100px;
  border: 1px solid rgba(123, 44, 255, 0.12);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(42, 10, 94, 0.06);
}
.svc-hero-marquee-inner {
  display: flex;
  gap: 28px;
  padding: 14px 28px;
  animation: svc-marquee 28s linear infinite;
  width: max-content;
}
@keyframes svc-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.svc-hero-marquee-item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svc-muted);
  white-space: nowrap;
}
.svc-hero-marquee-item::after {
  content: '·';
  margin-left: 28px;
  opacity: 0.35;
}

/* ── Board ── */
.svc-board-wrap {
  padding: 24px 32px 100px;
  background: linear-gradient(180deg, var(--purple-50, #f6eeff) 0%, #fff 22%, #faf7ff 100%);
  position: relative;
}
.svc-board-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 44, 255, 0.2), transparent);
}
.svc-board-head {
  max-width: 1280px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.svc-board-head h2 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--svc-ink);
}
.svc-board-head p {
  font-size: 15px;
  color: var(--svc-muted);
  max-width: 420px;
  line-height: 1.55;
}

/* Bento grid */
.svc-bento {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  grid-auto-rows: minmax(120px, auto);
}

.svc-feature {
  grid-column: span 12;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  min-height: 300px;
  text-decoration: none;
  color: #fff !important;
  box-shadow: var(--svc-shadow-deep);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  background: var(--svc-deep);
}
@media (max-width: 880px) {
  .svc-feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}
.svc-feature-media {
  position: relative;
  min-height: 220px;
}
.svc-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.svc-feature-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 35%, rgba(26, 11, 58, 0.45) 100%);
}
@media (max-width: 880px) {
  .svc-feature-media::after {
    background: linear-gradient(180deg, transparent 50%, rgba(26, 11, 58, 0.75) 100%);
  }
}
.svc-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--svc-shadow-hover);
}
.svc-feature-body {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #1f0d45 0%, var(--svc-deep) 40%, var(--svc-purple-800) 140%);
}
@media (max-width: 880px) {
  .svc-feature-body {
    margin-top: -48px;
  }
}
.svc-feature-tag {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}
.svc-feature h3 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 10px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}
.svc-feature p {
  font-size: 15px;
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.76);
  margin-bottom: 18px;
  max-width: 440px;
}
.svc-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.svc-feature-link svg {
  transition: transform 0.3s ease;
}
.svc-feature:hover .svc-feature-link svg {
  transform: translateX(5px);
}

/* Tiles */
.svc-tile {
  grid-column: span 12;
  position: relative;
  border-radius: 22px;
  padding: 1px;
  text-decoration: none !important;
  border-bottom: none !important;
  background: linear-gradient(135deg, rgba(123, 44, 255, 0.45), rgba(199, 125, 255, 0.2), rgba(123, 44, 255, 0.12));
  box-shadow: 0 4px 24px rgba(26, 11, 58, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
@media (min-width: 700px) {
  .svc-tile {
    grid-column: span 6;
  }
}
@media (min-width: 981px) {
  .svc-tile {
    grid-column: span 4;
  }
}
.svc-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--svc-shadow-hover);
}
.svc-tile-inner {
  height: 100%;
  border-radius: 21px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(247, 243, 252, 0.92) 100%);
  backdrop-filter: blur(16px);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: background 0.35s ease;
}
.svc-tile:hover .svc-tile-inner {
  background: linear-gradient(165deg, #fff 0%, rgba(246, 238, 255, 0.95) 100%);
}
.svc-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.svc-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(123, 44, 255, 0.12), rgba(199, 125, 255, 0.06));
  border: 1px solid rgba(123, 44, 255, 0.15);
  color: var(--svc-violet);
  flex-shrink: 0;
}
.svc-tile-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--svc-violet);
  opacity: 0.75;
  text-align: right;
}
.svc-tile h3 {
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--svc-ink);
  line-height: 1.25;
  margin: 0;
}
.svc-tile p {
  font-size: 14px;
  line-height: 1.58;
  color: var(--svc-muted);
  margin: 0;
  flex: 1;
}
.svc-tile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--svc-violet);
  letter-spacing: 0.02em;
}
.svc-tile-foot svg {
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.svc-tile:hover .svc-tile-foot svg {
  transform: translate(3px, -3px);
  opacity: 1;
}

/* Accent rotation on icons */
.svc-tile:nth-child(5n + 2) .svc-tile-icon {
  background: linear-gradient(145deg, rgba(199, 125, 255, 0.18), rgba(123, 44, 255, 0.06));
  border-color: rgba(199, 125, 255, 0.22);
}
.svc-tile:nth-child(5n + 3) .svc-tile-icon {
  background: linear-gradient(145deg, rgba(76, 27, 168, 0.12), rgba(179, 157, 219, 0.08));
  color: var(--svc-purple-800);
}

/* CTA band */
.svc-bottom-cta {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px 80px;
}
.svc-bottom-cta-inner {
  border-radius: 24px;
  padding: clamp(32px, 5vw, 48px) clamp(28px, 4vw, 56px);
  background: linear-gradient(135deg, #0d0820 0%, #2a0a5e 55%, #3b1283 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.svc-bottom-cta-inner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(199, 125, 255, 0.25), transparent 65%);
  pointer-events: none;
}
.svc-bottom-cta h3 {
  position: relative;
  z-index: 1;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  max-width: 460px;
  margin: 0;
}
.svc-bottom-cta-lede {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  max-width: 420px;
}
.svc-bottom-cta-lede strong {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}
.svc-bottom-cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.svc-btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--svc-violet), var(--svc-pink));
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  border: none;
  box-shadow: 0 8px 32px rgba(123, 44, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.svc-btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(123, 44, 255, 0.45);
}
.svc-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 100px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.92) !important;
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.svc-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 980px) {
  .svc-bento {
    grid-template-columns: 1fr;
  }
  .svc-tile {
    grid-column: span 12;
  }
}
