/* ================================================================
   Maxta Solutions Page — Scoped Styles
   body.page-solutions scope — no global resets/tokens (in main.css)
   Merged: listing + detail + carousel
   ================================================================ */

/* ================================================================
   Shared Tokens (not in main.css, scoped here)
   ================================================================ */
/* sec-label: unified in hero.css */

body.page-solutions .g-text {
  background: linear-gradient(135deg, #1d4ed8, #3b82f6, #8B5CF6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.page-solutions .g-text-light {
  background: linear-gradient(135deg, #60a5fa, #818CF8, #A78BFA);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
body.page-solutions .container--md { max-width: 72rem; }
body.page-solutions .container--xl { max-width: 80rem; }

/* ── Buttons ── */
body.page-solutions .btn-gradient {
  background: linear-gradient(135deg, #0EA5E9, #8B5CF6);
  color: #fff; border-radius: .75rem; font-weight: 600;
  padding: .5rem 1.25rem; font-size: .875rem;
  border: none; cursor: pointer; display: inline-flex;
  align-items: center; gap: .5rem; position: relative; overflow: hidden;
  transition: opacity .25s;
}
body.page-solutions .btn-gradient::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, #38BDF8, #A78BFA);
  opacity: 0; transition: opacity .25s;
}
body.page-solutions .btn-gradient:hover::after { opacity: 1; }
body.page-solutions .btn-gradient span,
body.page-solutions .btn-gradient svg { position: relative; z-index: 1; }
body.page-solutions .btn-gradient svg { width: 1.25rem; height: 1.25rem; }
body.page-solutions .btn-gradient--lg { padding: .875rem 2rem; font-size: 1rem; }

body.page-solutions .btn-outline--dark {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75);
  font-weight: 600; font-size: 1rem; transition: all .25s;
}
body.page-solutions .btn-outline--dark:hover { border-color: rgba(255,255,255,.45); color: #fff; }
body.page-solutions .btn-outline--dark svg { width: 1rem; height: 1rem; }

/* ================================================================
   HERO — Dark, header-aware
   ================================================================ */

/* ================================================================
   SECTION HEADER
   ================================================================ */
body.page-solutions .section-header { text-align: center; margin-bottom: 3.5rem; }
body.page-solutions .section-heading {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--gray-900, #0f172a); line-height: 1.2; margin-bottom: 1rem;
}
body.page-solutions .section-subtext {
  color: var(--gray-600, #475569); max-width: 36rem; margin: 0 auto; line-height: 1.6;
}

/* ================================================================
   MODULE LIST — Listing page
   ================================================================ */
body.page-solutions .sol-modules { background: #f8fafc; padding: 6rem 0; }

body.page-solutions .module-card {
  display: block; background: #fff; border: 1px solid #e2e8f0;
  border-radius: 1rem; padding: 2.5rem; margin-bottom: 2rem;
  transition: transform .3s, box-shadow .3s; position: relative; overflow: hidden;
}
body.page-solutions .module-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(59,130,246,.1), 0 0 0 1px rgba(59,130,246,.15);
}
body.page-solutions .module-card__inner {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center;
}
body.page-solutions .module-card__no {
  position: absolute; top: 1.5rem; left: 1.5rem;
  font-size: 4rem; font-weight: 900; line-height: 1;
  color: rgba(29,78,216,.06); pointer-events: none;
}

/* Icon box */
body.page-solutions .icon-box {
  width: 3rem; height: 3rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
body.page-solutions .icon-box svg { width: 1.25rem; height: 1.25rem; stroke-width: 2; }
body.page-solutions .icon-box--blue   { background: rgba(59,130,246,.08);  border: 1px solid rgba(59,130,246,.2);  color: #1d4ed8; }
body.page-solutions .icon-box--violet { background: rgba(139,92,246,.08);  border: 1px solid rgba(139,92,246,.2);  color: #7c3aed; }
body.page-solutions .icon-box--amber  { background: rgba(245,158,11,.08);  border: 1px solid rgba(245,158,11,.2);  color: #b45309; }
body.page-solutions .icon-box--green  { background: rgba(16,185,129,.08);  border: 1px solid rgba(16,185,129,.2);  color: #047857; }
body.page-solutions .icon-box--rose   { background: rgba(244,63,94,.08);   border: 1px solid rgba(244,63,94,.2);   color: #be123c; }

/* Module text */
body.page-solutions .module-card__title { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: .75rem; line-height: 1.3; }
body.page-solutions .module-card__desc  { color: #475569; font-size: .9375rem; line-height: 1.7; margin-bottom: 1.25rem; }

/* Pills */
body.page-solutions .pill {
  display: inline-flex; align-items: center; font-size: .75rem; font-weight: 600;
  padding: .25rem .625rem; border-radius: 9999px;
}
body.page-solutions .pill--blue   { background: rgba(59,130,246,.08);  border: 1px solid rgba(59,130,246,.2);  color: #1d4ed8; }
body.page-solutions .pill--violet { background: rgba(139,92,246,.08);  border: 1px solid rgba(139,92,246,.2);  color: #7c3aed; }
body.page-solutions .pill--amber  { background: rgba(245,158,11,.08);  border: 1px solid rgba(245,158,11,.2);  color: #b45309; }
body.page-solutions .pill--green  { background: rgba(16,185,129,.08);  border: 1px solid rgba(16,185,129,.2);  color: #047857; }
body.page-solutions .pill--rose   { background: rgba(244,63,94,.08);   border: 1px solid rgba(244,63,94,.2);   color: #be123c; }
body.page-solutions .pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Media frame */
body.page-solutions .module-card__media {
  border-radius: .75rem; overflow: hidden; background: #f8fafc; border: 1px solid #e2e8f0;
}
body.page-solutions .module-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
body.page-solutions .module-card:hover .module-card__media img { transform: scale(1.03); }

/* Arrow */
body.page-solutions .module-card__arrow {
  position: absolute; bottom: 1.5rem; right: 1.5rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #eff6ff; border: 1px solid rgba(59,130,246,.15);
  display: flex; align-items: center; justify-content: center; color: #1d4ed8;
  transition: background .3s, transform .3s;
}
body.page-solutions .module-card:hover .module-card__arrow { background: #1d4ed8; color: #fff; transform: translateX(4px); }
body.page-solutions .module-card__arrow svg { width: 1rem; height: 1rem; }

/* ================================================================
   DETAIL — Section Band
   ================================================================ */
body.page-solutions .sec-band {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 0; margin-bottom: 2.5rem; border-bottom: 1px solid #e2e8f0;
}
body.page-solutions .sec-band__icon {
  width: 3rem; height: 3rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.page-solutions .sec-band__icon svg { width: 1.5rem; height: 1.5rem; }
body.page-solutions .sec-band__icon--blue   { background: rgba(59,130,246,.08);  border: 1px solid rgba(59,130,246,.2);  color: #1d4ed8; }
body.page-solutions .sec-band__icon--violet { background: rgba(139,92,246,.08);  border: 1px solid rgba(139,92,246,.2);  color: #7c3aed; }
body.page-solutions .sec-band__icon--amber  { background: rgba(245,158,11,.08);  border: 1px solid rgba(245,158,11,.2);  color: #b45309; }
body.page-solutions .sec-band__icon--green  { background: rgba(16,185,129,.08);  border: 1px solid rgba(16,185,129,.2);  color: #047857; }
body.page-solutions .sec-band__icon--rose   { background: rgba(244,63,94,.08);   border: 1px solid rgba(244,63,94,.2);   color: #be123c; }

body.page-solutions .sec-band__label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .125rem; }
body.page-solutions .sec-band__label--blue   { color: #1d4ed8; }
body.page-solutions .sec-band__label--violet { color: #7c3aed; }
body.page-solutions .sec-band__label--amber  { color: #b45309; }
body.page-solutions .sec-band__label--green  { color: #047857; }
body.page-solutions .sec-band__label--rose   { color: #be123c; }

body.page-solutions .sec-band__title { font-size: 1.5rem; font-weight: 700; color: #0f172a; }
body.page-solutions .sec-band__pills { margin-left: auto; display: none; gap: .5rem; }

/* ================================================================
   DETAIL — What & Why
   ================================================================ */
body.page-solutions .sol-content { padding: 4rem 0; }

body.page-solutions .sol-what { margin-bottom: 2.5rem; }
body.page-solutions .sol-what__heading {
  font-size: 1.25rem; font-weight: 700; color: #0f172a;
  margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem;
}
body.page-solutions .sol-what__heading svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; color: #3b82f6; }
body.page-solutions .sol-what__body { color: #475569; font-size: .9375rem; line-height: 2; max-width: 64rem; }
body.page-solutions .sol-what__body strong { color: #0f172a; }

body.page-solutions .sol-highlight { font-weight: 600; border-bottom: 2px solid; padding-bottom: 1px; }
body.page-solutions .sol-highlight--blue   { color: #1d4ed8; border-color: rgba(59,130,246,.3); }
body.page-solutions .sol-highlight--violet { color: #7c3aed; border-color: rgba(139,92,246,.3); }
body.page-solutions .sol-highlight--amber  { color: #b45309; border-color: rgba(245,158,11,.3); }
body.page-solutions .sol-highlight--green  { color: #047857; border-color: rgba(16,185,129,.3); }
body.page-solutions .sol-highlight--rose   { color: #be123c; border-color: rgba(244,63,94,.3); }

/* ================================================================
   DETAIL — How Block
   ================================================================ */
body.page-solutions .how-block {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 2rem; margin-bottom: 3rem; display: flex; flex-direction: column;
  gap: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative; overflow: hidden;
}
body.page-solutions .how-block::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; border-radius: 4px 0 0 4px;
}
body.page-solutions .how-block--blue::before   { background: linear-gradient(180deg, #3b82f6, #1d4ed8); }
body.page-solutions .how-block--violet::before { background: linear-gradient(180deg, #8b5cf6, #7c3aed); }
body.page-solutions .how-block--amber::before  { background: linear-gradient(180deg, #f59e0b, #b45309); }
body.page-solutions .how-block--green::before  { background: linear-gradient(180deg, #10b981, #047857); }
body.page-solutions .how-block--rose::before   { background: linear-gradient(180deg, #f43f5e, #be123c); }

body.page-solutions .how-block__header { flex-shrink: 0; text-align: center; }
body.page-solutions .how-block__title { font-size: 2rem; font-weight: 800; margin-bottom: .375rem; letter-spacing: -.025em; }
body.page-solutions .how-block__subtitle { color: #64748b; font-size: .875rem; font-weight: 500; letter-spacing: .025em; }
body.page-solutions .how-block__body { color: #475569; font-size: .875rem; line-height: 1.75; flex: 1; }
body.page-solutions .how-block__body strong { color: #0f172a; font-weight: 600; }

/* ================================================================
   DETAIL — Case Carousel
   ================================================================ */
body.page-solutions .carousel { position: relative; margin-top: 2rem; }
body.page-solutions .carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 1rem;
}
body.page-solutions .carousel__track::-webkit-scrollbar { display: none; }

body.page-solutions .carousel__arrow {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 10;
  width: 2.5rem; height: 3.5rem; border-radius: .75rem;
  background: #fff; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center;
  color: #64748b; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,.06);
  opacity: 0; transition: all .35s;
}
body.page-solutions .carousel:hover .carousel__arrow { opacity: 1; }
body.page-solutions .carousel__arrow:hover { color: #1d4ed8; border-color: rgba(59,130,246,.3); }
body.page-solutions .carousel__arrow svg { width: 1.25rem; height: 1.25rem; }
body.page-solutions .carousel__arrow--left  { left: -1rem; }
body.page-solutions .carousel__arrow--right { right: -1rem; }

/* Case Card */
body.page-solutions .case-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 1rem;
  padding: 1.75rem; display: flex; flex-direction: column;
  scroll-snap-align: start; transition: transform .3s, box-shadow .3s; min-height: 24rem;
}
body.page-solutions .case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(59,130,246,.08), 0 0 0 1px rgba(59,130,246,.12);
}
body.page-solutions .case-card__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
body.page-solutions .case-card__case-no { font-size: .75rem; font-weight: 700; letter-spacing: .05em; color: #1d4ed8; }
body.page-solutions .case-card__title { font-size: 1rem; font-weight: 700; color: #0f172a; margin-bottom: .75rem; }

/* Insight blocks */
body.page-solutions .insight-block {
  border-left: 3px solid; border-radius: 0 .5rem .5rem 0;
  padding: .75rem 1rem; margin-bottom: 1rem; background: #f8fafc;
}
body.page-solutions .insight-block--pain   { border-color: #f43f5e; }
body.page-solutions .insight-block--blue   { border-color: #3b82f6; }
body.page-solutions .insight-block--violet { border-color: #8b5cf6; }
body.page-solutions .insight-block--amber  { border-color: #f59e0b; }
body.page-solutions .insight-block--green  { border-color: #10b981; }
body.page-solutions .insight-block--rose   { border-color: #f43f5e; }

body.page-solutions .insight-block__label { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
body.page-solutions .insight-block__label--pain   { color: #be123c; }
body.page-solutions .insight-block__label--blue   { color: #1d4ed8; }
body.page-solutions .insight-block__label--violet { color: #7c3aed; }
body.page-solutions .insight-block__label--amber  { color: #b45309; }
body.page-solutions .insight-block__label--green  { color: #047857; }
body.page-solutions .insight-block__label--rose   { color: #be123c; }
body.page-solutions .insight-block__text { color: #475569; font-size: .8125rem; line-height: 1.65; }

/* Result badge */
body.page-solutions .case-card__footer { margin-top: auto; padding-top: .75rem; }
body.page-solutions .result-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  font-size: .75rem; font-weight: 600; padding: .375rem .75rem; border-radius: 9999px;
}
body.page-solutions .result-badge--blue   { background: rgba(59,130,246,.08);  border: 1px solid rgba(59,130,246,.18);  color: #1d4ed8; }
body.page-solutions .result-badge--violet { background: rgba(139,92,246,.08);  border: 1px solid rgba(139,92,246,.18);  color: #7c3aed; }
body.page-solutions .result-badge--amber  { background: rgba(245,158,11,.08);  border: 1px solid rgba(245,158,11,.18);  color: #b45309; }
body.page-solutions .result-badge--green  { background: rgba(16,185,129,.08);  border: 1px solid rgba(16,185,129,.18);  color: #047857; }
body.page-solutions .result-badge--rose   { background: rgba(244,63,94,.08);   border: 1px solid rgba(244,63,94,.18);   color: #be123c; }

/* ================================================================
   CTA — Dark section
   ================================================================ */
body.page-solutions .sol-cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 6rem 0; text-align: center; position: relative; overflow: hidden;
}
body.page-solutions .sol-cta__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(59,130,246,.1), transparent 65%);
}
body.page-solutions .sol-cta__inner { position: relative; z-index: 2; max-width: 48rem; margin: 0 auto; padding: 0 1.25rem; }
body.page-solutions .sol-cta__title { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; color: #fff; margin-bottom: 1.5rem; line-height: 1.2; }
body.page-solutions .sol-cta__desc { color: #94A3B8; font-size: 1rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 40rem; margin-left: auto; margin-right: auto; }
body.page-solutions .sol-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Divider */
body.page-solutions .sol-divider { height: 1px; background: #e2e8f0; max-width: 64rem; margin: 0 auto; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (min-width: 768px) {
  body.page-solutions .module-card__inner { grid-template-columns: 1fr 1fr; }
  body.page-solutions .module-card--swap .module-card__inner { direction: rtl; }
  body.page-solutions .module-card--swap .module-card__inner > * { direction: ltr; }
  body.page-solutions .sec-band__pills { display: flex; }
  body.page-solutions .how-block { flex-direction: row; padding: 2.5rem; gap: 3rem; }
  body.page-solutions .how-block__header { border-right: 1px solid #e2e8f0; padding-right: 3rem; text-align: left; }
  body.page-solutions .carousel__track { grid-auto-columns: calc((100% - 1.25rem) / 2); }
}
@media (min-width: 1024px) {
  body.page-solutions .module-card { padding: 3rem; }
  body.page-solutions .carousel__track { grid-auto-columns: calc((100% - 2.5rem) / 3); }
  body.page-solutions .carousel__arrow--left  { left: -2rem; }
  body.page-solutions .carousel__arrow--right { right: -2rem; }
}
