/* Codenixo Services — final premium index */

.services-premium {
  --sp-ink: #071127;
  --sp-copy: #60708f;
  --sp-line: rgba(148,163,184,.18);
  --sp-soft: #f8faff;
  --sp-card: rgba(255,255,255,.96);
  --sp-shadow: 0 20px 54px -40px rgba(15,23,42,.28);
  color: var(--sp-ink);
  background: #fff;
}
html.dark .services-premium {
  --sp-ink: #f8fafc;
  --sp-copy: #cbd5e1;
  --sp-line: rgba(255,255,255,.09);
  --sp-soft: rgba(15,23,42,.44);
  --sp-card: rgba(15,23,42,.86);
  background: #020617;
}
.services-premium p { color: var(--sp-copy); }
.services-premium a { text-decoration: none; }

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.sp-eyebrow::after {
  content: "";
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg,var(--brand),transparent);
}
html.dark .sp-eyebrow { color: var(--brand-light); }

.sp-title {
  margin: 0;
  color: var(--sp-ink);
  font-family: var(--font-display);
  font-size: clamp(34px,3.35vw,50px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -.055em;
}
html[lang="bn"] .sp-title,
html[lang="bn"] .sp-hero__title,
html[lang="bn"] .sp-cta h2 {
  font-family: var(--font-bn);
  font-style: normal;
  line-height: 1.18;
  letter-spacing: -.012em;
  text-transform: none;
}

.sp-section { padding: 78px 0; }
.sp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.sp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}
html.dark .sp-link { color: var(--brand-light); }

/* Transparent over the hero. Shared global .scrolled rules take over after scroll. */
@media (min-width: 1181px) {
  body[data-page="services"] .navbar:not(.scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html.dark body[data-page="services"] .navbar:not(.scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Hero */
.sp-hero {
  position: relative;
  min-height: clamp(690px,82vh,810px);
  overflow: hidden;
  background: #f7f9ff;
}
.sp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sp-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
}
.sp-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(255,255,255,.995) 0%,
      rgba(255,255,255,.985) 31%,
      rgba(255,255,255,.83) 44%,
      rgba(255,255,255,.22) 60%,
      rgba(255,255,255,0) 77%);
}
html.dark .sp-hero__veil {
  background:
    linear-gradient(90deg,
      rgba(2,6,23,.99) 0%,
      rgba(2,6,23,.96) 32%,
      rgba(2,6,23,.77) 46%,
      rgba(2,6,23,.16) 66%,
      rgba(2,6,23,0) 82%);
}
.sp-hero__inner {
  position: relative;
  z-index: 2;
  min-height: clamp(690px,82vh,810px);
  display: flex;
  align-items: center;
  padding-top: 118px;
  padding-bottom: 36px;
}
.sp-hero__copy {
  width: min(49%,640px);
}
.sp-hero__title {
  display: flex;
  flex-direction: column;
  margin: 0 0 20px;
  color: var(--sp-ink);
  font-family: var(--font-display);
  font-size: clamp(54px,5.9vw,86px);
  font-style: italic;
  font-weight: 800;
  line-height: .90;
  letter-spacing: -.067em;
  text-transform: uppercase;
}
.sp-hero__title > span { display: block; }
.sp-hero__lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--sp-copy) !important;
  font-size: clamp(18px,1.48vw,21px);
  line-height: 1.58;
}
.sp-hero__actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.sp-hero__actions .app-button,
.sp-hero__actions .btn-secondary {
  min-height: 50px;
  padding-inline: 27px;
}
.sp-secondary {
  border-color: rgba(99,102,241,.15);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
html.dark .sp-secondary {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.075);
  color: #f8fafc;
}
.sp-hero__trust {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 36px;
}
.sp-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #53627f;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
}
html.dark .sp-hero__trust-item { color: #cbd5e1; }
.sp-trust-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(145deg,#818cf8,#4f46e5);
  box-shadow: 0 0 0 4px rgba(99,102,241,.08);
}

/* Core service grid */
.sp-services { background: #fff; }
html.dark .sp-services { background: #020617; }
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}
.sp-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--sp-line);
  border-radius: 20px;
  background: var(--sp-card);
  box-shadow: var(--sp-shadow);
  transition: transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.sp-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,102,241,.23);
  box-shadow: 0 24px 58px -38px rgba(79,70,229,.28);
}
.sp-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--brand);
  background: linear-gradient(145deg,#eef2ff,#e0e7ff);
}
html.dark .sp-icon { background: rgba(99,102,241,.14); }
.sp-icon svg,
.sp-approach-card__icon svg,
.sp-principle__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sp-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f3f5fe;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
}
html.dark .sp-arrow { background: rgba(255,255,255,.07); }
.sp-card h3 {
  margin: 18px 0 8px;
  color: var(--sp-ink);
  font-size: 19px;
  line-height: 1.24;
  letter-spacing: -.026em;
}
.sp-card > p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.6;
}
.sp-card ul {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.sp-card li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  color: var(--sp-copy);
  font-size: 13px;
  line-height: 1.46;
}
.sp-card li > span:first-child { color: var(--brand); }
.sp-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}
html.dark .sp-card__cta { color: var(--brand-light); }

/* Approach */
.sp-approach {
  padding-top: 74px;
  padding-bottom: 74px;
  background:
    radial-gradient(circle at 9% 12%,rgba(99,102,241,.055),transparent 30%),
    var(--sp-soft);
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}
.sp-approach__grid {
  display: grid;
  grid-template-columns: minmax(250px,.78fr) minmax(0,1.22fr);
  gap: 42px;
  align-items: center;
}
.sp-approach__intro > p:not(.sp-eyebrow) {
  max-width: 430px;
  margin: 16px 0 22px;
  font-size: 15px;
  line-height: 1.68;
}
.sp-soft-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--sp-line);
  border-radius: 11px;
  background: #fff;
  color: var(--sp-ink);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 30px -26px rgba(15,23,42,.45);
}
html.dark .sp-soft-btn { background: rgba(15,23,42,.74); }

.sp-approach__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.sp-approach-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  min-height: 152px;
  padding: 20px 18px;
  border: 1px solid var(--sp-line);
  border-radius: 18px;
  background: var(--sp-card);
  box-shadow: var(--sp-shadow);
}
.sp-approach-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  color: var(--brand);
  background: linear-gradient(145deg,#eef2ff,#e0e7ff);
}
html.dark .sp-approach-card__icon { background: rgba(99,102,241,.14); }
.sp-step {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.sp-approach-card h3 {
  margin: 0 0 6px;
  color: var(--sp-ink);
  font-size: 17px;
  line-height: 1.24;
}
.sp-approach-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.56;
}

/* Qualitative trust strip; deliberately no fabricated stats. */
.sp-principles {
  padding: 0;
  background: var(--sp-soft);
}
.sp-principles__panel {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  border-top: 1px solid var(--sp-line);
  border-bottom: 1px solid var(--sp-line);
}
.sp-principle {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  align-items: center;
  min-height: 92px;
  padding: 18px 22px;
  border-left: 1px solid var(--sp-line);
}
.sp-principle:first-child { border-left: 0; }
.sp-principle__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--brand);
  background: rgba(99,102,241,.08);
}
.sp-principle h3 {
  margin: 0 0 3px;
  color: var(--sp-ink);
  font-size: 13px;
  line-height: 1.3;
}
.sp-principle p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.42;
}

/* CTA */
.sp-cta {
  padding: 44px 0 72px;
  background: var(--sp-soft);
}
.sp-cta__panel {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 34px 38px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 140%,rgba(255,255,255,.2),transparent 34%),
    linear-gradient(110deg,#6366f1 0%,#5c5df0 52%,#4f46e5 100%);
  box-shadow: 0 28px 66px -36px rgba(79,70,229,.55);
}
.sp-cta__panel::after {
  content: "";
  position: absolute;
  right: 12%;
  bottom: -74px;
  width: 360px;
  height: 125px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  transform: rotate(-8deg);
}
.sp-cta__panel > * { position: relative; z-index: 1; }
.sp-cta__eyebrow {
  margin: 0 0 7px;
  color: rgba(255,255,255,.76) !important;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.sp-cta h2 {
  margin: 0 0 7px;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(30px,3.05vw,42px);
  line-height: 1.03;
  letter-spacing: -.045em;
}
.sp-cta p {
  margin: 0;
  color: rgba(255,255,255,.87) !important;
  font-size: 14px;
  line-height: 1.55;
}
.sp-cta .btn-white {
  min-height: 48px;
  white-space: nowrap;
}

/* Responsive */
@media (max-width: 1080px) {
  .sp-hero__copy { width: 54%; }
  .sp-hero__trust { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 520px; }
  .sp-grid { grid-template-columns: 1fr 1fr; }
  .sp-approach__grid { grid-template-columns: 1fr; }
  .sp-principles__panel { grid-template-columns: 1fr 1fr; }
  .sp-principle:nth-child(3) { border-left: 0; }
}

@media (max-width: 820px) {
  .sp-section { padding: 64px 0; }
  .sp-hero {
    min-height: auto;
    padding-top: 112px;
  }
  .sp-hero__inner {
    min-height: 0;
    display: block;
    padding-top: 28px;
    padding-bottom: 0;
  }
  .sp-hero__copy {
    width: 100%;
    max-width: 690px;
    padding-bottom: 30px;
  }
  .sp-hero__veil {
    background: linear-gradient(180deg,rgba(255,255,255,.98) 0%,rgba(255,255,255,.96) 44%,rgba(255,255,255,.2) 72%,rgba(255,255,255,0) 100%);
  }
  html.dark .sp-hero__veil {
    background: linear-gradient(180deg,rgba(2,6,23,.99) 0%,rgba(2,6,23,.96) 44%,rgba(2,6,23,.32) 72%,rgba(2,6,23,0) 100%);
  }
  .sp-hero__bg {
    position: relative;
    height: min(78vw,620px);
  }
  .sp-hero__bg img { object-position: 63% center; }
  .sp-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sp-approach__cards { grid-template-columns: 1fr 1fr; }
  .sp-cta__panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .sp-section { padding: 56px 0; }
  .sp-hero { padding-top: 96px; }
  .sp-hero__title {
    font-size: clamp(44px,13.4vw,64px);
    line-height: .93;
  }
  .sp-hero__lead { font-size: 17px; }
  .sp-hero__actions { align-items: stretch; }
  .sp-hero__actions .app-button,
  .sp-hero__actions .btn-secondary {
    flex: 1 1 100%;
    justify-content: center;
  }
  .sp-hero__trust {
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    margin-top: 28px;
  }
  .sp-hero__bg {
    height: 92vw;
    max-height: 520px;
  }
  .sp-grid,
  .sp-approach__cards,
  .sp-principles__panel {
    grid-template-columns: 1fr;
  }
  .sp-card { min-height: 0; }
  .sp-approach-card { min-height: 0; }
  .sp-principle,
  .sp-principle:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--sp-line);
  }
  .sp-principle:first-child { border-top: 0; }
  .sp-cta { padding: 38px 0 54px; }
  .sp-cta__panel {
    padding: 28px 24px;
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-card { transition: none; }
}
