/* =========================================================
   Coreplex — modern.css
   Load AFTER assets/css/styles.css. No HTML changes needed.
   Remove this one file to go back to the original look.
   ========================================================= */

:root {
  --cx-accent: #8b5cf6;
  --cx-accent-2: #9b8cff;
  --cx-line: rgba(255, 255, 255, .09);
  --cx-surface: rgba(255, 255, 255, .035);
  --cx-surface-hi: rgba(255, 255, 255, .06);
  --cx-radius-sm: 12px;
  --cx-radius: 20px;
  --cx-radius-lg: 28px;
  --cx-ease: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.65;
}

/* ---------- Type ---------- */
h1, h2, h3, .brand-word {
  font-family: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-weight: 600; line-height: 1.02; font-size: clamp(2.6rem, 6.2vw, 5rem); }
h2 { font-weight: 600; line-height: 1.08; font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-weight: 600; letter-spacing: -.02em; }
p, .hero-copy, .lead-copy { text-wrap: pretty; }
.hero-copy, .lead-copy, .section-heading p { max-width: 56ch; line-height: 1.7; }
.eyebrow {
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--cx-accent-2);
}
.gradient-text {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 45%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Navigation: floating glass bar ---------- */
.site-nav {
  margin: 14px auto 0;
  width: min(1180px, calc(100% - 28px));
  left: 0; right: 0;
  padding: .55rem .4rem;
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  background: rgba(14, 14, 24, .55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .55);
  transition: background .3s var(--cx-ease), box-shadow .3s var(--cx-ease);
}
.site-nav .container { padding-inline: 1rem; }
.site-nav .nav-link {
  position: relative;
  font-weight: 500;
  font-size: .93rem;
  border-radius: 999px;
  padding: .45rem .9rem !important;
  transition: background .2s, color .2s;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { background: var(--cx-surface-hi); }
.brand-logo { transition: transform .4s var(--cx-ease); }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }

@media (max-width: 991.98px) {
  .site-nav { border-radius: 24px; }
  .site-nav .navbar-collapse { padding: .8rem .4rem .4rem; }
}

/* ---------- Buttons ---------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform .25s var(--cx-ease), box-shadow .25s var(--cx-ease),
              background-color .25s, border-color .25s;
}
.btn-primary {
  border: 0;
  background: linear-gradient(135deg, #8b5cf6 0%, #6d4aff 100%);
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #9b6dff 0%, #7a5cff 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(139, 92, 246, .8), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.btn-primary:active { transform: translateY(0); }
.btn-glass {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero-slide { transition: opacity 1.4s ease, transform 8s ease-out; }
.hero-slide.active { transform: scale(1.04); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem;
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  letter-spacing: .1em;
}
.status-dot { box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }
.hero-proof {
  padding: .7rem 1.1rem;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  width: fit-content;
}

/* Hero showcase panel */
.hero-showcase {
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.mock-window {
  border-radius: var(--cx-radius);
  border: 1px solid var(--cx-line);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .6);
}
.mock-stat-row > div, .mock-chart {
  border-radius: var(--cx-radius-sm);
  border: 1px solid var(--cx-line);
}
.floating-chip {
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
}
@media (prefers-reduced-motion: no-preference) {
  .floating-chip.chip-top { animation: cx-float 7s ease-in-out infinite; }
  .floating-chip.chip-bottom { animation: cx-float 8s ease-in-out -3s infinite; }
}
@keyframes cx-float { 50% { transform: translateY(-8px); } }

.slide-controls {
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  background: rgba(14, 14, 24, .5);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: .3rem;
}
.slide-controls button {
  border-radius: 50%;
  transition: background .2s, transform .2s var(--cx-ease);
}
.slide-controls button:hover { background: var(--cx-surface-hi); transform: scale(1.08); }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--cx-line); }
.trust-items span {
  padding: .45rem 1rem;
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  background: var(--cx-surface);
  transition: background .2s, border-color .2s;
}
.trust-items span:hover { background: var(--cx-surface-hi); border-color: rgba(155, 140, 255, .4); }

/* ---------- Sections ---------- */
.section-pad { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-heading { margin-bottom: 1rem; }
.muted { opacity: .62; }
.text-link { transition: gap .2s, opacity .2s; }
.text-link:hover { opacity: .8; }

/* ---------- Service cards ---------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: linear-gradient(180deg, var(--cx-surface-hi), var(--cx-surface));
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--cx-ease), border-color .3s, box-shadow .4s var(--cx-ease);
}
.service-card::before {            /* soft spotlight on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at 85% -10%, rgba(139, 92, 246, .22), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 140, 255, .45);
  box-shadow: 0 30px 60px -28px rgba(139, 92, 246, .55);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  border: 1px solid var(--cx-line);
  background: rgba(139, 92, 246, .14);
  transition: transform .4s var(--cx-ease), background .3s;
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); background: rgba(139, 92, 246, .28); }
.service-card h3 { margin-top: 1.1rem; font-size: 1.3rem; }
.service-card .card-link { margin-top: auto; padding-top: 1rem; transition: transform .3s var(--cx-ease); }
.service-card:hover .card-link { transform: translateX(4px); }

.capability-bar {
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  overflow: hidden;
}
.capability-bar > div { transition: background .25s; }
.capability-bar > div:hover { background: var(--cx-surface-hi); }

/* ---------- Work cards ---------- */
.work-card {
  display: block;
  height: 100%;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius);
  background: var(--cx-surface);
  overflow: hidden;
  transition: transform .4s var(--cx-ease), border-color .3s, box-shadow .4s var(--cx-ease);
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(155, 140, 255, .4);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8);
}
.work-image {
  position: relative;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--cx-ease);
}
.work-card .work-image { overflow: hidden; }
.work-card:hover .work-image { transform: scale(1.04); }
.work-tag {
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .18);
}
.work-arrow {
  border-radius: 50%;
  transition: transform .35s var(--cx-ease), background .25s;
}
.work-card:hover .work-arrow { transform: translate(3px, -3px) rotate(0deg); background: var(--cx-accent); }
.work-info { padding: 1.25rem 1.4rem 1.5rem; }

/* ---------- Why Coreplex ---------- */
.reason-list > div {
  padding: 1rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--cx-radius-sm);
  transition: background .25s, border-color .25s;
}
.reason-list > div:hover { background: var(--cx-surface); border-color: var(--cx-line); }
.feature-visual {
  position: relative;
  border-radius: var(--cx-radius-lg);
  overflow: hidden;
  border: 1px solid var(--cx-line);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, .8);
}
.feature-visual img { width: 100%; display: block; }
.floating-note {
  border: 1px solid var(--cx-line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* ---------- Tech cloud ---------- */
.tech-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.tech-cloud span {
  padding: .55rem 1.05rem;
  border: 1px solid var(--cx-line);
  border-radius: 999px;
  background: var(--cx-surface);
  font-weight: 500;
  font-size: .92rem;
  transition: transform .25s var(--cx-ease), background .25s, border-color .25s;
}
.tech-cloud span:hover {
  transform: translateY(-3px);
  background: rgba(139, 92, 246, .16);
  border-color: rgba(155, 140, 255, .5);
}

/* ---------- Testimonial ---------- */
.testimonial-card {
  position: relative;
  border: 1px solid var(--cx-line);
  border-radius: var(--cx-radius-lg);
  background: linear-gradient(160deg, var(--cx-surface-hi), var(--cx-surface));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
}
.testimonial-quote {
  font-family: "Space Grotesk", "DM Sans", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.35;
  letter-spacing: -.02em;
}
.avatar { border-radius: 50%; }

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(155, 140, 255, .28);
  border-radius: var(--cx-radius-lg);
  background:
    radial-gradient(600px circle at 0% 0%, rgba(139, 92, 246, .28), transparent 60%),
    radial-gradient(500px circle at 100% 100%, rgba(99, 102, 241, .22), transparent 60%),
    var(--cx-surface);
  box-shadow: 0 40px 90px -40px rgba(139, 92, 246, .55);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--cx-line); }
.site-footer h6 { letter-spacing: .1em; font-size: .74rem; font-weight: 600; opacity: .7; }
.site-footer a { transition: color .2s, transform .2s; }
.site-footer a:not(.brand):hover { transform: translateX(2px); }
.social-icon {
  width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--cx-line);
  border-radius: 50%;
  transition: transform .3s var(--cx-ease), background .25s, border-color .25s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(139, 92, 246, .2);
  border-color: rgba(155, 140, 255, .5);
}
.footer-bottom { border-top: 1px solid var(--cx-line); }

/* ---------- Accessibility & polish ---------- */
:focus-visible {
  outline: 2px solid var(--cx-accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection { background: rgba(139, 92, 246, .45); color: #fff; }
img { max-width: 100%; }

@media (max-width: 767.98px) {
  .service-card, .work-card, .testimonial-card, .cta-panel { border-radius: 18px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   SPACING REFINEMENT  (8px rhythm)
   Scale: 8 · 16 · 24 · 32 · 48 · 64 · 96
   ========================================================= */
:root {
  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --section-y: clamp(4.5rem, 8vw, 7rem);
  --gutter: clamp(1.25rem, 4vw, 2rem);
}

/* Containers: consistent side breathing room */
.container { padding-inline: var(--gutter); max-width: 1180px; }

/* Section rhythm */
.section-pad { padding-block: var(--section-y); }
.section-heading { margin-bottom: var(--sp-5); }
.section-heading .eyebrow { margin-bottom: var(--sp-2); }
.section-heading h2 { margin-bottom: var(--sp-3); }
.section-heading p:last-child { margin-bottom: 0; }
.section-heading.text-center p { margin-inline: auto; }
.section-heading .text-link { display: inline-block; margin-top: var(--sp-3); }
.section-heading.d-flex { margin-bottom: var(--sp-5); }
.section-heading .eyebrow + h2 { margin-top: 0; }

/* Remove the ad-hoc bootstrap margins so the scale is the only spacing */
.section-heading + .row.mt-4,
.section-heading + .tech-cloud.mt-5,
.row.g-3.mt-4 { margin-top: 0 !important; }
.tech-cloud.mt-5 { margin-top: 0 !important; }
.capability-bar.mt-5 { margin-top: var(--sp-6) !important; }

/* Card grids: even, roomier gutters */
.row.g-3 { --bs-gutter-x: var(--sp-3); --bs-gutter-y: var(--sp-3); }
.row.g-5 { --bs-gutter-x: var(--sp-6); --bs-gutter-y: var(--sp-5); }

/* ---------- Navigation ---------- */
.site-nav { padding: var(--sp-1) .25rem; }
.site-nav .navbar-nav { gap: .25rem; }
.site-nav .nav-link { padding: .5rem 1rem !important; }
.site-nav .btn-sm { padding: .55rem 1.25rem; }

/* ---------- Hero ---------- */
.hero-home { padding-top: clamp(7.5rem, 14vh, 10rem); padding-bottom: clamp(5.5rem, 10vh, 7.5rem); }
.hero-kicker { margin-bottom: var(--sp-4); }
.hero-layout { gap: clamp(2rem, 5vw, 4.5rem); }
.hero-main-copy .eyebrow { margin-bottom: var(--sp-2); }
.hero-main-copy h1 { margin-bottom: var(--sp-3); }
.hero-copy { margin-bottom: 0; }
.hero-actions { margin-top: var(--sp-4) !important; gap: var(--sp-2) !important; }
.hero-actions .btn { padding: .85rem 1.6rem; }
.hero-proof { margin-top: var(--sp-5); gap: var(--sp-2); padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2); }
.hero-proof small { display: block; margin-top: .15rem; }

.hero-showcase { padding: var(--sp-3); }
.showcase-top, .showcase-bottom { padding-inline: .25rem; }
.showcase-top { margin-bottom: var(--sp-2); }
.showcase-bottom { margin-top: var(--sp-2); }
.mock-content { padding: var(--sp-2); gap: var(--sp-2); }
.mock-stat-row { gap: var(--sp-1); }
.mock-stat-row > div { padding: .85rem 1rem; }
.mock-chart { padding: .85rem 1rem; }
.floating-chip { padding: .7rem 1rem; gap: .75rem; }

.hero-bottomline { margin-top: var(--sp-6); }
.slide-controls { gap: var(--sp-1); }

/* ---------- Trust strip ---------- */
.trust-strip { padding-block: var(--sp-4); }
.trust-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4); }
.trust-label { margin: 0; }
.trust-items { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.trust-items span { padding: .5rem 1.1rem; }

/* ---------- Service cards ---------- */
.service-card { padding: var(--sp-4); }
.service-card .card-number { margin-bottom: var(--sp-3); display: block; }
.service-card .service-icon { margin-bottom: var(--sp-3); }
.service-card h3 { margin: 0 0 var(--sp-1); }
.service-card p { margin: 0; line-height: 1.65; }
.service-card .card-link { padding-top: var(--sp-3); }

/* Process bar */
.capability-bar > div { padding: var(--sp-3) var(--sp-4); }
.capability-bar strong { margin-right: var(--sp-2); }

/* ---------- Work cards ---------- */
.work-image { min-height: 240px; padding: var(--sp-2); }
.work-info { padding: var(--sp-3) var(--sp-3) var(--sp-4); }
.work-info h3 { margin: 0 0 var(--sp-1); }
.work-info p { margin: 0; }
.work-tag { padding: .35rem .85rem; }

/* ---------- Why Coreplex ---------- */
#why, .section-pad .lead-copy { margin-top: var(--sp-3); }
.col-lg-6 > .eyebrow { margin-bottom: var(--sp-2); }
.col-lg-6 > h2 { margin-bottom: var(--sp-2); }
.reason-list { margin-top: var(--sp-4); display: grid; gap: var(--sp-1); }
.reason-list > div { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-2) var(--sp-3); }
.reason-list small { display: block; margin-top: .25rem; line-height: 1.55; }
.floating-note { padding: var(--sp-2) var(--sp-3); gap: var(--sp-2); }

/* ---------- Tech cloud ---------- */
.tech-cloud { gap: var(--sp-1) .75rem; max-width: 860px; margin-inline: auto; }
.tech-cloud span { padding: .6rem 1.2rem; }

/* ---------- Testimonial ---------- */
.testimonial-card { padding: clamp(2rem, 5vw, 4rem); max-width: 880px; margin-inline: auto; }
.testimonial-quote { margin: var(--sp-2) 0 var(--sp-4); }
.testimonial-person { display: flex; align-items: center; gap: var(--sp-2); }
.testimonial-person small { display: block; }
.testimonial-card > p.small { margin-top: var(--sp-4) !important; padding-top: var(--sp-3); border-top: 1px solid var(--cx-line); max-width: 60ch; }

/* ---------- CTA ---------- */
.cta-section { padding-block: 0 var(--section-y); }
.cta-panel {
  padding: clamp(2rem, 5vw, 4rem);
  gap: var(--sp-4);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
}
.cta-panel .eyebrow { margin-bottom: var(--sp-2); }
.cta-panel h2 { margin-bottom: var(--sp-2); }
.cta-panel p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { padding-top: var(--sp-6); padding-bottom: var(--sp-4); }
.site-footer h6 { margin-bottom: var(--sp-2); }
.site-footer a:not(.brand):not(.social-icon),
.site-footer span:not(.brand-word):not(.brand-dot) { display: block; padding-block: .3rem; }
.site-footer .social-links { display: flex; gap: var(--sp-1); }
.site-footer .social-icon { padding: 0; }
.footer-bottom { margin-top: var(--sp-5); padding-top: var(--sp-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-1) var(--sp-3); }

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
  .section-heading { margin-bottom: var(--sp-4); }
  .hero-showcase { margin-top: var(--sp-4); }
  .reason-list > div { padding: var(--sp-2); }
}
@media (max-width: 575.98px) {
  :root { --section-y: 4rem; }
  .service-card { padding: var(--sp-3); }
  .capability-bar > div { padding: var(--sp-2) var(--sp-3); }
  .trust-strip .container { flex-direction: column; align-items: flex-start; }
  .cta-panel .btn { width: 100%; }
}