@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

.cly-platforms-shell,
.cly-platform-single-shell,
.cly-platforms-archive-page,
.cly-platform-single-page{
  --cly-bg:#07070d;
  --cly-bg-2:#0f0f18;
  --cly-card:rgba(17,17,28,.84);
  --cly-card-2:rgba(20,20,34,.94);
  --cly-line:rgba(255,255,255,.08);
  --cly-line-strong:rgba(255,255,255,.14);
  --cly-text:#f7f3ff;
  --cly-muted:#aba3c3;
  --cly-purple:#6d28d9;
  --cly-purple-2:#8b5cf6;
  --cly-purple-3:#c084fc;
  --cly-cyan:#7fe7ff;
  --cly-shadow:0 24px 60px rgba(0,0,0,.42);
  background:linear-gradient(180deg,#07070d 0%,#0a0a12 40%,#0d0d17 100%);
  color:var(--cly-text);
  font-family:'DM Sans',sans-serif;
  position:relative;
  overflow:hidden;
}

.cly-platforms-bg{position:absolute;inset:0;pointer-events:none}
.cly-grid{
  position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:56px 56px;
  mask-image:linear-gradient(180deg,rgba(0,0,0,.75),transparent 95%);
  opacity:.16;
}
.cly-orb{position:absolute;border-radius:999px;filter:blur(70px)}
.cly-orb-a{width:340px;height:340px;left:-90px;top:100px;background:rgba(109,40,217,.18)}
.cly-orb-b{width:320px;height:320px;right:5%;top:180px;background:rgba(192,132,252,.12)}
.cly-orb-c{width:380px;height:380px;left:34%;bottom:10%;background:rgba(127,231,255,.06)}

.cly-platforms-wrap{width:min(1220px,92%);margin:0 auto;position:relative;z-index:2}

/* tighter overall spacing */
.cly-platforms-hero,
.cly-platforms-archive{
  padding:54px 0;
  position:relative;
}

.cly-platform-hero{
  padding:46px 0 24px;
  position:relative;
}

.cly-platform-meta-strip{
  padding:14px 0 16px;
  position:relative;
}

.cly-platform-section{
  padding:16px 0;
  position:relative;
}

.cly-kicker{
  display:inline-flex;align-items:center;gap:10px;margin-bottom:12px;
  color:#ddb8ff;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;
}
.cly-kicker::before{
  content:"";width:8px;height:8px;border-radius:999px;
  background:linear-gradient(135deg,var(--cly-purple-2),var(--cly-purple-3));
  box-shadow:0 0 18px rgba(192,132,252,.7);
}

.cly-platforms-hero-grid,
.cly-platform-hero-grid{display:grid;grid-template-columns:1.04fr .96fr;gap:34px;align-items:center}

.cly-platforms-hero-copy h1,
.cly-platforms-archive-head h2,
.cly-platform-hero-copy h1{
  margin:0 0 14px;
  font-family:'Syne',sans-serif;
  font-size:clamp(32px,4.8vw,58px);
  line-height:.96;
  letter-spacing:-.05em;
  color:#fff;
}
.cly-platforms-archive-head h2{font-size:clamp(28px,3.6vw,42px)}
.cly-platform-hero-copy h2{margin:0 0 12px;color:#dcd5ef;font-size:17px;font-weight:700}

.cly-platforms-hero-copy p,
.cly-platforms-archive-head p,
.cly-platform-hero-copy p,
.cly-platform-prose p,
.cly-platform-live-card p{
  margin:0;
  color:var(--cly-muted);
  font-size:15px;
  line-height:1.8;
}

.cly-platforms-hero-stats,
.cly-platform-meta-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.cly-platform-meta-grid{grid-template-columns:repeat(4,1fr);margin-top:0}
.cly-platforms-hero-stats div,
.cly-platform-meta-grid > div,
.cly-platform-live-card,
.cly-platform-outcome,
.cly-platform-text-block{
  background:linear-gradient(180deg,rgba(18,18,31,.88),rgba(11,11,20,.9));
  border:1px solid var(--cly-line);
  border-radius:24px;
  box-shadow:var(--cly-shadow);
}
.cly-platforms-hero-stats div,
.cly-platform-meta-grid > div{padding:16px}
.cly-platforms-hero-stats small,
.cly-platform-meta-grid small{
  display:block;margin-bottom:8px;color:var(--cly-muted);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase
}
.cly-platforms-hero-stats strong,
.cly-platform-meta-grid strong{display:block;color:#fff;font-size:18px;line-height:1.25}

.cly-platforms-hero-panel{position:relative}
.cly-platforms-panel-window,
.cly-platform-browser{
  border-radius:28px;overflow:hidden;background:linear-gradient(180deg,rgba(17,17,30,.95),rgba(10,10,18,.9));border:1px solid var(--cly-line);box-shadow:var(--cly-shadow)
}
.cly-platforms-panel-top,
.cly-platform-browser-top{display:flex;gap:8px;padding:16px 18px;border-bottom:1px solid rgba(255,255,255,.06)}
.cly-platforms-panel-top span,
.cly-platform-browser-top span{width:10px;height:10px;border-radius:999px;background:rgba(255,255,255,.18)}
.cly-platforms-panel-body{padding:24px}
.cly-mini-metric{padding:18px;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);margin-bottom:12px}
.cly-mini-metric small{display:block;margin-bottom:8px;color:var(--cly-muted);font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.cly-mini-metric strong{font-family:'Syne',sans-serif;font-size:34px;color:#fff}
.cly-mini-flow{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:12px}
.cly-mini-flow span{height:86px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.cly-mini-tags{display:flex;gap:10px;flex-wrap:wrap}
.cly-mini-tags span,
.cly-platform-chip-grid span,
.cly-platform-workflow span,
.cly-platform-status,
.cly-platform-open{
  display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;font-size:12px;font-weight:700
}
.cly-mini-tags span,
.cly-platform-chip-grid span,
.cly-platform-workflow span{color:#efe9ff;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.cly-platform-status{color:#f3dfff;background:rgba(109,40,217,.14);border:1px solid rgba(192,132,252,.22)}
.cly-platform-open{color:#9df2ff;background:rgba(127,231,255,.08);border:1px solid rgba(127,231,255,.16)}

.cly-platforms-archive-head{max-width:860px;margin:0 0 24px}
.cly-platforms-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}

.cly-platform-card{
  position:relative;overflow:hidden;border-radius:28px;background:linear-gradient(180deg,rgba(18,18,31,.88),rgba(11,11,20,.9));border:1px solid var(--cly-line);box-shadow:var(--cly-shadow);transition:.3s ease
}
.cly-platform-card:hover{transform:translateY(-6px);border-color:rgba(192,132,252,.28)}
.cly-platform-card-image{display:block;position:relative;aspect-ratio:16/10;background:#111}
.cly-platform-card-image img,
.cly-platform-browser-body img,
.cly-platform-gallery-item img{display:block;width:100%;height:100%;object-fit:cover}
.cly-platform-card-overlay{position:absolute;inset:0;background:linear-gradient(180deg,transparent 30%,rgba(7,7,13,.18) 60%,rgba(7,7,13,.8) 100%)}
.cly-platform-placeholder{
  height:100%;min-height:240px;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(circle at 50% 20%,rgba(109,40,217,.28),transparent 35%),linear-gradient(135deg,rgba(109,40,217,.22),rgba(127,231,255,.08));
}
.cly-platform-placeholder span{color:#ddd1f6;font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.cly-platform-card-body{padding:24px}
.cly-platform-card-top{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.cly-platform-card h3,.cly-platform-live-card h3{margin:0 0 8px;color:#fff;font-family:'Syne',sans-serif;font-size:26px;line-height:1.04}
.cly-platform-card h3 a{color:#fff;text-decoration:none}
.cly-platform-card h4{margin:0 0 14px;color:#dbd4ef;font-size:15px;font-weight:700}
.cly-platform-card p{margin:0;color:var(--cly-muted);font-size:14px;line-height:1.7}
.cly-platform-card-footer{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-top:16px}
.cly-platform-domain{color:#cbbbf1;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}

.cly-platform-card-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.cly-platform-btn{
  display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;border-radius:14px;text-decoration:none;font-size:14px;font-weight:700;transition:.25s ease
}
.cly-platform-btn.primary{color:#fff;background:linear-gradient(135deg,var(--cly-purple),var(--cly-purple-2));box-shadow:0 14px 28px rgba(109,40,217,.28)}
.cly-platform-btn.primary:hover{transform:translateY(-2px);box-shadow:0 18px 36px rgba(109,40,217,.38)}
.cly-platform-btn.secondary{color:#fff;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.12)}
.cly-platform-btn.secondary:hover{transform:translateY(-2px);background:rgba(255,255,255,.05)}

.cly-platform-browser-body{aspect-ratio:16/10;background:#111}
.cly-platform-text-block,
.cly-platform-live-card,
.cly-platform-outcome{padding:18px 20px;max-width:940px}
.cly-platform-chip-grid,
.cly-platform-workflow{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.cly-platform-gallery-grid{display:grid;grid-template-columns:1.2fr .8fr .8fr;gap:14px;margin-top:14px}
.cly-platform-gallery-item{display:block;border-radius:22px;overflow:hidden;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);min-height:210px;transition:.25s ease}
.cly-platform-gallery-item.is-large{grid-row:span 2;min-height:500px}
.cly-platform-gallery-item:hover{transform:translateY(-4px);border-color:rgba(192,132,252,.28)}
.cly-platform-empty{padding:28px;border-radius:22px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);color:var(--cly-muted)}

@media (max-width:1100px){
  .cly-platforms-hero-grid,
  .cly-platform-hero-grid,
  .cly-platforms-grid,
  .cly-platform-gallery-grid,
  .cly-platform-meta-grid,
  .cly-platforms-hero-stats{grid-template-columns:1fr}
  .cly-platform-gallery-item.is-large{grid-row:auto;min-height:320px}
}
@media (max-width:700px){
  .cly-platforms-hero,
  .cly-platforms-archive{padding:48px 0}
  .cly-platform-hero{padding:40px 0 22px}
  .cly-platform-meta-strip{padding:12px 0 14px}
  .cly-platform-section{padding:14px 0}
  .cly-platform-card h3,.cly-platform-live-card h3{font-size:22px}
  .cly-platforms-hero-copy h1,
  .cly-platforms-archive-head h2,
  .cly-platform-hero-copy h1{font-size:32px}
  .cly-platforms-hero-copy p,
  .cly-platforms-archive-head p,
  .cly-platform-hero-copy p,
  .cly-platform-prose p,
  .cly-platform-live-card p{font-size:14px}
}


.cly-platforms-featured-strip{position:relative;padding:0 0 12px}
.cly-platforms-featured-grid .cly-platform-card.is-featured{border-color:rgba(192,132,252,.32)}
.cly-platform-card-logo{margin-bottom:10px}
.cly-platform-card-logo img,.cly-platform-hero-logo img{width:72px;height:72px;object-fit:contain;border-radius:16px;background:#fff;padding:10px;border:1px solid rgba(255,255,255,.08)}
.cly-platform-hero-logo{margin:0 0 14px}
.cly-platform-stack{margin-top:6px;color:#a99fd0;font-size:11px;line-height:1.4}
.cly-platform-lightbox{position:fixed;inset:0;z-index:9999;background:rgba(4,4,10,.92);display:flex;align-items:center;justify-content:center;padding:30px}
.cly-platform-lightbox img{max-width:min(1200px,92vw);max-height:86vh;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.cly-platform-lightbox-close{position:absolute;top:18px;right:22px;width:46px;height:46px;border:none;border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:28px;cursor:pointer}
body.cly-lightbox-open{overflow:hidden}


.cly-platform-filters{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.cly-platform-filter,
.cly-platform-card-cats span,
.cly-platform-hero-cats a{
  display:inline-flex;align-items:center;min-height:36px;padding:0 14px;border-radius:999px;
  background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);color:#efe9ff;
  font-size:11px;font-weight:700;text-decoration:none;transition:.25s ease
}
.cly-platform-filter:hover,
.cly-platform-hero-cats a:hover{transform:translateY(-2px);border-color:rgba(192,132,252,.28)}
.cly-platform-filter.is-active{background:linear-gradient(135deg,var(--cly-purple),var(--cly-purple-2));border-color:transparent;color:#fff;box-shadow:0 12px 24px rgba(109,40,217,.28)}
.cly-platform-card-cats{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.cly-platform-hero-cats{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 8px}


.cly-platform-result{margin-top:6px;color:#cdbef3;font-size:11px;line-height:1.45}
.cly-platform-info-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.cly-platform-info-card{
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(19,19,32,.86), rgba(11,11,20,.84));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 50px rgba(0,0,0,.35);
}
.cly-platform-info-card h3{
  margin:0;
  color:#fff;
  font-size:18px;
  line-height:1.35;
}
.cly-platform-gallery-item{position:relative;cursor:pointer}
.cly-platform-gallery-item::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg, transparent 55%, rgba(7,7,15,.78) 100%);opacity:.95;pointer-events:none}
.cly-platform-gallery-label{position:absolute;left:12px;right:12px;bottom:10px;z-index:2;color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em}
.cly-platform-lightbox{position:fixed;inset:0;display:none;align-items:center;justify-content:center;padding:32px;background:rgba(5,5,10,.82);backdrop-filter:blur(12px);z-index:99999}
.cly-platform-lightbox.is-open{display:flex}
.cly-platform-lightbox-image{max-width:min(1100px,92vw);max-height:82vh;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.cly-platform-lightbox-close{position:absolute;top:20px;right:24px;width:44px;height:44px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;font-size:28px;line-height:1;cursor:pointer}
.cly-platform-lightbox-caption{position:absolute;left:50%;bottom:28px;transform:translateX(-50%);max-width:min(900px,86vw);padding:10px 14px;border-radius:999px;background:rgba(13,13,22,.72);border:1px solid rgba(255,255,255,.12);color:#fff;font-size:13px;font-weight:700;text-align:center}
body.cly-lightbox-open{overflow:hidden}
@media (max-width:980px){.cly-platform-info-grid{grid-template-columns:1fr}}


/* v1.3.0 polish */
.cly-platform-hero-grid{align-items:start}
.cly-platform-hero-copy{padding-top:4px}
.cly-platform-domain-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;margin:10px 0 0;border-radius:999px;background:rgba(127,231,255,.08);border:1px solid rgba(127,231,255,.18);color:#b8f7ff;font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.cly-platform-browser{position:relative;border-radius:30px;overflow:hidden;box-shadow:0 30px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.06), 0 0 60px rgba(109,40,217,.18)}
.cly-platform-browser::after{content:'';position:absolute;inset:auto -10% -18% auto;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle, rgba(127,231,255,.18), transparent 70%);filter:blur(10px);pointer-events:none}
.cly-platform-browser-body{aspect-ratio:16/10;background:linear-gradient(180deg,#090911,#0f1020)}
.cly-platform-browser-body img{object-position:top center}
.cly-platform-meta-grid{grid-template-columns:repeat(4,minmax(0,1fr));align-items:stretch}
.cly-platform-meta-card{
  position:relative;
  min-height:138px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  padding:16px;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(18,18,31,.94), rgba(10,10,20,.94));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 18px 46px rgba(0,0,0,.34);
}
.cly-platform-meta-card strong{
  font-family:'Syne',sans-serif;
  font-size:18px;
  line-height:1.12;
  letter-spacing:-.03em;
  word-break:break-word;
}
.cly-platform-meta-card small{font-size:10px;color:#bfb7d9}
.cly-platform-info-card{min-height:140px;display:flex;flex-direction:column;justify-content:flex-start;gap:10px}
.cly-platform-info-card h3{
  font-family:'Syne',sans-serif;
  font-size:clamp(16px,1.5vw,22px);
  line-height:1.28;
  letter-spacing:-.02em;
  margin:0;
  color:#fff;
}
.cly-platform-stack-grid span{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.1)}
.cly-platform-text-block{position:relative;overflow:hidden}
.cly-platform-text-block::before,.cly-platform-live-card::before,.cly-platform-outcome::before{content:'';position:absolute;inset:0 0 auto 0;height:1px;background:linear-gradient(90deg, rgba(192,132,252,.0), rgba(192,132,252,.45), rgba(127,231,255,.0));opacity:.9}
.cly-platform-gallery-grid{grid-template-columns:1.2fr .9fr .9fr;align-items:stretch}
.cly-platform-gallery-item{min-height:200px;box-shadow:0 16px 40px rgba(0,0,0,.28)}
.cly-platform-gallery-item.is-large{min-height:420px}
.cly-platform-gallery-item img{transition:transform .35s ease;object-position:top center}
.cly-platform-gallery-item:hover img{transform:scale(1.035)}
.cly-platform-gallery-item::after{background:linear-gradient(180deg, rgba(7,7,15,.06) 0%, rgba(7,7,15,.14) 48%, rgba(7,7,15,.88) 100%)}
.cly-platform-gallery-label{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.cly-platform-gallery-label::before{content:'';width:7px;height:7px;border-radius:999px;background:linear-gradient(135deg,var(--cly-purple-2),var(--cly-cyan));box-shadow:0 0 10px rgba(127,231,255,.4)}
.cly-platform-workflow-steps{gap:10px;counter-reset:workflowStep}
.cly-platform-workflow-steps span{position:relative;min-height:40px;padding:0 16px 0 40px;background:rgba(255,255,255,.045)}
.cly-platform-workflow-steps span::before{counter-increment:workflowStep;content:counter(workflowStep);position:absolute;left:8px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:999px;background:linear-gradient(135deg,var(--cly-purple),var(--cly-purple-2));color:#fff;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(109,40,217,.3)}
.cly-platform-live-card{background:linear-gradient(180deg, rgba(18,18,31,.9), rgba(10,10,20,.96));}
.cly-platform-live-card h3{font-size:clamp(18px,2vw,24px);letter-spacing:-.03em}
.cly-platform-outcome .cly-platform-prose p{color:#efe9ff;font-size:14px;line-height:1.7}
.cly-platform-lightbox[hidden]{display:none !important}
.cly-platform-lightbox{background:rgba(5,5,10,.76);backdrop-filter:blur(14px)}
.cly-platform-lightbox-image{max-width:min(1240px,92vw);max-height:82vh;border-radius:20px;box-shadow:0 30px 90px rgba(0,0,0,.58)}
.cly-platform-lightbox-caption{position:absolute;left:50%;bottom:30px;transform:translateX(-50%);max-width:min(900px,88vw);padding:10px 14px;border-radius:999px;background:rgba(13,13,22,.76);border:1px solid rgba(255,255,255,.14);color:#fff;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-align:center}
@media (max-width:1100px){
  .cly-platform-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .cly-platform-meta-grid{grid-template-columns:1fr}
  .cly-platform-meta-card{min-height:auto}
  .cly-platform-browser{border-radius:24px}
  .cly-platform-gallery-grid{grid-template-columns:1fr}
  .cly-platform-gallery-item,.cly-platform-gallery-item.is-large{min-height:240px}
  .cly-platform-info-card{min-height:auto}
}


/* compact spacing patch */
.cly-platforms-featured-strip{padding:0 0 10px}
.cly-platforms-archive-head{margin:0 0 22px}
.cly-platform-card-logo{margin-bottom:8px}
.cly-platform-card-cats{margin-top:10px}
.cly-platform-card-actions{margin-top:14px}
.cly-platform-text-block + .cly-platform-info-grid,
.cly-platform-info-grid + .cly-platform-text-block,
.cly-platform-text-block + .cly-platform-live-card,
.cly-platform-live-card + .cly-platform-text-block{margin-top:0}
.cly-platform-hero-copy p + .cly-platform-hero-cats{margin-top:8px}
.cly-platform-browser-top,.cly-platforms-panel-top{padding:12px 14px}
.cly-platform-lightbox-close{top:14px;right:16px;width:40px;height:40px;font-size:24px}
@media (max-width:700px){
  .cly-platforms-archive-head{margin:0 0 18px}
  .cly-platform-card-body{padding:18px}
  .cly-platform-btn{min-height:42px;padding:0 16px;font-size:13px}
}