/* =========================================================
   QUANTAPS PLATFORM SECTION
   - Premium but lightweight
   - Services page ready
   - Isolated selectors
   ========================================================= */

.qt-platforms{
  --qt-ink:#0b1227;
  --qt-ink-soft:#5f6f8c;
  --qt-head-ink:#10203b;
  --qt-line:rgba(15,23,42,.07);
  --qt-line-strong:rgba(76,102,255,.14);
  --qt-card-top:rgba(255,255,255,.97);
  --qt-card-bottom:rgba(247,250,252,.96);
  --qt-card-shadow:0 6px 18px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.03);
  --qt-card-shadow-hover:0 10px 24px rgba(15,23,42,.07), 0 4px 12px rgba(15,23,42,.04);
  --qt-max:1320px;

  position:relative;
  z-index:1;
  padding:28px 0 40px;
  color:var(--qt-ink);
  background:transparent;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.qt-platforms,
.qt-platforms *{
  box-sizing:border-box;
}

.qt-platforms :where(h2,p){
  margin:0;
}

.qt-platforms :where(a){
  text-decoration:none;
  color:inherit;
}

/* =========================================================
   HEAD
   ========================================================= */

.qt-platforms__headWrap{
  width:min(1180px, 94vw);
  margin:0 auto 18px;
}

.qt-platforms__head{
  max-width:840px;
  margin:0 auto;
  text-align:center;
}

.qt-platforms__eyebrow{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--qt-line-strong);
  background:rgba(255,255,255,.82);
  color:#3c49f6;
  font-size:11px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  box-shadow:0 4px 12px rgba(15,23,42,.03);
}

.qt-platforms__title{
  margin-top:12px;
  font-size:clamp(1.8rem, 1.56rem + 1vw, 2.55rem);
  line-height:1.04;
  letter-spacing:-.045em;
  font-weight:1000;
  color:var(--qt-head-ink);
}

.qt-platforms__desc{
  max-width:820px;
  margin:10px auto 0;
  color:#6d7c96;
  font-size:14px;
  line-height:1.78;
  font-weight:700;
}

/* =========================================================
   GRID
   ========================================================= */

.qt-platforms__grid{
  width:min(var(--qt-max), 94vw);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:14px;
  align-items:stretch;
}

.qt-platforms__card{
  --qt-brand-rgb:106,126,255;

  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:126px;
  padding:16px 12px 14px;
  border-radius:20px;
  overflow:hidden;
  background:linear-gradient(180deg, var(--qt-card-top), var(--qt-card-bottom));
  border:1px solid var(--qt-line);
  box-shadow:var(--qt-card-shadow);
  outline:none;
  transition:transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.qt-platforms__card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.38), rgba(255,255,255,0) 34%);
}

.qt-platforms__cardGlow{
  position:absolute;
  left:14px;
  right:14px;
  bottom:8px;
  height:3px;
  z-index:1;
  pointer-events:none;
  border-radius:999px;
  opacity:.7;
  background:linear-gradient(
    90deg,
    rgba(var(--qt-brand-rgb),0),
    rgba(var(--qt-brand-rgb),.10),
    rgba(var(--qt-brand-rgb),.28),
    rgba(var(--qt-brand-rgb),.10),
    rgba(var(--qt-brand-rgb),0)
  );
}

@media (hover:hover){
  .qt-platforms__card:hover{
    transform:translateY(-2px);
    border-color:rgba(var(--qt-brand-rgb),.14);
    box-shadow:var(--qt-card-shadow-hover);
  }
}

.qt-platforms__card:active{
  transform:translateY(0) scale(.99);
}

.qt-platforms__card:focus-visible{
  border-color:rgba(var(--qt-brand-rgb),.20);
  box-shadow:0 0 0 4px rgba(var(--qt-brand-rgb),.10), 0 10px 24px rgba(15,23,42,.08);
}

/* =========================================================
   ICON
   ========================================================= */

.qt-platforms__iconBox{
  position:relative;
  z-index:2;
  width:50px;
  height:50px;
  border-radius:15px;
  display:grid;
  place-items:center;
  color:rgb(var(--qt-brand-rgb));
  background:linear-gradient(180deg,#fff,#f7f9fc);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 6px 14px rgba(15,23,42,.05), 0 2px 6px rgba(var(--qt-brand-rgb),.05);
  overflow:visible;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.qt-platforms__iconBox::before{
  content:"";
  position:absolute;
  inset:-5px;
  z-index:-1;
  border-radius:18px;
  background:radial-gradient(circle, rgba(var(--qt-brand-rgb),.06), transparent 72%);
}

.qt-platforms__icon{
  width:24px;
  height:24px;
  display:block;
  color:currentColor;
  fill:currentColor;
  stroke:none;
  overflow:visible;
  transform:translateZ(0);
}

.qt-platforms__icon use{
  pointer-events:none;
}

/* =========================================================
   TEXT
   ========================================================= */

.qt-platforms__text{
  position:relative;
  z-index:2;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
}

.qt-platforms__name{
  max-width:13ch;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.95rem;
  line-height:1.08;
  font-weight:900;
  letter-spacing:-.022em;
  color:#0a1024;
}

.qt-platforms__sub{
  font-size:.78rem;
  line-height:1.05;
  font-weight:780;
  letter-spacing:.01em;
  white-space:nowrap;
  color:color-mix(in srgb, rgb(var(--qt-brand-rgb)) 72%, #5d6b7e);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1200px){
  .qt-platforms__grid{
    grid-template-columns:repeat(6, minmax(0, 1fr));
  }
}

@media (max-width:1024px){
  .qt-platforms{
    padding:24px 0 30px;
  }

  .qt-platforms__grid{
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:12px;
  }

  .qt-platforms__card{
    min-height:118px;
    border-radius:18px;
  }

  .qt-platforms__iconBox{
    width:47px;
    height:47px;
    border-radius:14px;
  }
}

@media (max-width:768px){
  .qt-platforms{
    padding:20px 0 26px;
  }

  .qt-platforms__headWrap{
    margin-bottom:14px;
  }

  .qt-platforms__eyebrow{
    min-height:26px;
    padding:0 10px;
    font-size:10px;
  }

  .qt-platforms__title{
    font-size:clamp(1.55rem, 1.38rem + 1vw, 2rem);
  }

  .qt-platforms__desc{
    font-size:13px;
    line-height:1.72;
    max-width:56ch;
  }

  .qt-platforms__grid{
    width:100%;
    padding:0 12px;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:10px;
  }

  .qt-platforms__card{
    min-height:102px;
    padding:12px 8px 11px;
    gap:7px;
    border-radius:16px;
  }

  .qt-platforms__iconBox{
    width:42px;
    height:42px;
    border-radius:13px;
  }

  .qt-platforms__name{
    max-width:11ch;
    font-size:.82rem;
  }

  .qt-platforms__sub{
    font-size:.66rem;
  }

  .qt-platforms__cardGlow{
    left:12px;
    right:12px;
    bottom:7px;
  }
}

@media (max-width:420px){
  .qt-platforms__grid{
    gap:9px;
  }

  .qt-platforms__card{
    min-height:98px;
    padding:11px 7px 10px;
  }

  .qt-platforms__name{
    font-size:.79rem;
  }
}

@media (prefers-reduced-motion:reduce){
  .qt-platforms,
  .qt-platforms *{
    transition:none !important;
    animation:none !important;
  }
}

/* =========================================================
   QT PLATFORMS COLLAPSE
   ========================================================= */

.qt-platforms__actions{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

.qt-platforms__toggle{
  all:unset;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid rgba(15,23,42,.10);
  background:linear-gradient(180deg,#fff,#f7f9fc);
  color:#0a1024;
  font:800 .92rem/1 Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  box-shadow:0 6px 18px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.03);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.qt-platforms__toggleIcon{
  width:16px;
  height:16px;
  flex:0 0 16px;
  transition:transform .18s ease;
}

.qt-platforms.is-expanded .qt-platforms__toggleIcon{
  transform:rotate(180deg);
}

@media (hover:hover){
  .qt-platforms__toggle:hover{
    transform:translateY(-1px);
    border-color:rgba(93,116,255,.18);
    box-shadow:0 10px 24px rgba(15,23,42,.07), 0 4px 12px rgba(15,23,42,.04);
  }
}

.qt-platforms__toggle:focus-visible{
  box-shadow:0 0 0 4px rgba(93,116,255,.10), 0 10px 24px rgba(15,23,42,.08);
}

/* desktop collapse */
@media (min-width:769px){
  .qt-platforms--collapsible:not(.is-expanded) .qt-platforms__card--hidden-desktop{
    display:none !important;
  }
}

/* mobile collapse */
@media (max-width:768px){
  .qt-platforms--collapsible:not(.is-expanded) .qt-platforms__card--hidden-mobile{
    display:none !important;
  }

  .qt-platforms__actions{
    margin-top:14px;
    padding:0 12px;
  }

  .qt-platforms__toggle{
    width:100%;
    max-width:320px;
    min-height:44px;
    font-size:.88rem;
  }
}

.qt-services-page{
  position:relative;
}

.qt-services-page__platforms{
  position:relative;
}

.qt-services-page__bottom{
  padding:10px 0 42px;
}

.qt-services-page__shell{
  width:min(1180px, 94vw);
  margin:0 auto;
}

.qt-services-page__contact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:20px 22px;
  border:1px solid rgba(57,84,138,.10);
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,255,.94));
  box-shadow:0 10px 24px rgba(19,39,84,.04);
}

.qt-services-page__contactText{
  min-width:0;
  flex:1 1 auto;
  color:#5f6f8d;
  font-size:14px;
  line-height:1.75;
  font-weight:700;
}

.qt-services-page__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
}

.qt-services-page__btn{
  min-height:46px;
  padding:0 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  text-decoration:none;
  font-size:13px;
  font-weight:900;
  letter-spacing:-.01em;
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.qt-services-page__btn:hover{
  transform:translateY(-1px);
}

.qt-services-page__btn--primary{
  color:#fff;
  background:linear-gradient(135deg, #3c49f6, #5b69ff);
  box-shadow:0 10px 18px rgba(56,70,245,.18);
}

.qt-services-page__btn--ghost{
  color:#3c49f6;
  background:#fff;
  border:1px solid rgba(57,84,138,.12);
}

@media (max-width:860px){
  .qt-services-page__bottom{
    padding:6px 0 34px;
  }

  .qt-services-page__contact{
    flex-direction:column;
    align-items:flex-start;
    padding:16px;
    gap:14px;
    border-radius:18px;
  }

  .qt-services-page__contactText{
    font-size:13px;
    line-height:1.7;
  }

  .qt-services-page__actions{
    width:100%;
  }

  .qt-services-page__btn{
    flex:1 1 0;
    min-width:0;
  }
}

@media (max-width:560px){
  .qt-services-page__actions{
    flex-direction:column;
    width:100%;
  }

  .qt-services-page__btn{
    width:100%;
  }
}