/* =====================================================================
   CodeSala — Detail Pages Dark Theme (Tools / Services / Industries)
   A completely separate, modern dark SaaS look (gradient glows, dark cards).
   Scoped under body.cs-dark so it never affects the light site.
   ===================================================================== */
body.cs-dark {
  --cd-bg: #08080c;
  --cd-bg-2: #0e0e15;
  --cd-card: #101019;
  --cd-card-2: #14141f;
  --cd-line: rgba(255, 255, 255, 0.08);
  --cd-line-2: rgba(255, 255, 255, 0.14);
  --cd-text: #b9b9c7;
  --cd-text-dim: #80808f;
  --cd-white: #ffffff;
  --cd-coral: #f1917d;
  --cd-coral-2: #e3705a;
  --cd-violet: #8b6cff;
  --cd-blue: #4f9bff;
  --cd-green: #7ee787;
  --cd-grad: linear-gradient(120deg, #f1917d 0%, #e3705a 100%);
  --cd-grad-cool: linear-gradient(120deg, #8b6cff 0%, #4f9bff 100%);
  background: var(--cd-bg);
  color: var(--cd-text);
}
body.cs-dark ::selection { background: var(--cd-coral); color: #fff; }
body.cs-dark main { overflow-x: hidden; }

/* ---- header on dark pages ---- */
body.cs-dark .tp-header-area.sticky-white-bg,
body.cs-dark #header-sticky { background: rgba(8, 8, 12, 0.72) !important; backdrop-filter: blur(14px); border-bottom: 1px solid var(--cd-line); }
body.cs-dark .cs-main-menu nav > ul > li > a { color: #e9e9f0; }
body.cs-dark .cs-main-menu nav > ul > li > a:hover { color: var(--cd-coral); }
body.cs-dark .cs-oc-open span { background: #fff; }

/* ---- typography ---- */
body.cs-dark h1, body.cs-dark h2, body.cs-dark h3,
body.cs-dark h4, body.cs-dark h5, body.cs-dark h6 { color: var(--cd-white); }
body.cs-dark p { color: var(--cd-text); }

.cd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.cd-section { position: relative; padding: 100px 0; }
.cd-section-sm { padding: 70px 0; }
.cd-center { text-align: center; }

/* ---- glow orbs ---- */
.cd-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none; z-index: 0; }
.cd-glow-coral { background: radial-gradient(circle, #f1917d, transparent 70%); }
.cd-glow-violet { background: radial-gradient(circle, #8b6cff, transparent 70%); }
.cd-glow-blue { background: radial-gradient(circle, #4f9bff, transparent 70%); }
.cd-section > .cd-wrap { position: relative; z-index: 1; }

/* ---- pill / eyebrow ---- */
.cd-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 50px; font-size: 13px; font-weight: 600;
  color: #e9e9f0; background: rgba(255,255,255,.04); border: 1px solid var(--cd-line-2);
  font-family: var(--tp-ff-heading); letter-spacing: .02em;
}
.cd-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cd-coral); box-shadow: 0 0 10px var(--cd-coral); }

/* ---- headings ---- */
.cd-h1 { font-size: clamp(34px, 5.2vw, 66px); line-height: 1.05; letter-spacing: -.02em; margin: 22px 0 0; }
.cd-h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.cd-h3 { font-size: clamp(20px, 2vw, 26px); }
.cd-grad-text { background: var(--cd-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cd-lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; color: var(--cd-text); margin: 22px auto 0; max-width: 620px; }
.cd-section .cd-lead-left { margin-left: 0; margin-right: 0; }

/* ---- buttons ---- */
.cd-btn { display: inline-flex; align-items: center; gap: 9px; padding: 14px 28px; border-radius: 50px;
  font-family: var(--tp-ff-heading); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, background .3s ease; border: 0; }
.cd-btn-primary { background: var(--cd-grad); color: #fff; box-shadow: 0 10px 30px rgba(241,145,125,.28); }
.cd-btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 40px rgba(241,145,125,.4); }
.cd-btn-ghost { background: rgba(255,255,255,.05); color: #fff; border: 1px solid var(--cd-line-2); }
.cd-btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.cd-hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---- hero ---- */
.cd-hero { position: relative; padding: 180px 0 90px; text-align: center; }
.cd-hero .cd-glow-violet { width: 520px; height: 520px; top: -120px; left: 50%; transform: translateX(-60%); }
.cd-hero .cd-glow-coral { width: 420px; height: 420px; top: 40px; right: -80px; opacity: .35; }
.cd-hero-visual { margin-top: 60px; position: relative; }
.cd-hero-mock {
  position: relative; z-index: 1; border-radius: 20px; border: 1px solid var(--cd-line-2);
  background: linear-gradient(180deg, #15151f, #0c0c12); padding: 26px;
  box-shadow: 0 40px 120px rgba(0,0,0,.55); max-width: 900px; margin: 0 auto;
}
.cd-hero-mock .cd-mock-bar { display: flex; gap: 7px; margin-bottom: 18px; }
.cd-hero-mock .cd-mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2a2a36; }
.cd-hero-mock .cd-mock-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.cd-hero-mock .cd-mock-tile { height: 86px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--cd-line); display: grid; place-items: center; color: var(--cd-coral); font-size: 26px; }
.cd-hero-mock .cd-mock-tile.tall { grid-row: span 2; height: auto; }

/* ---- stats ---- */
.cd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border: 1px solid var(--cd-line); border-radius: 18px; background: var(--cd-bg-2); padding: 36px; }
.cd-stat-num { font-family: var(--tp-ff-heading); font-weight: 700; font-size: clamp(28px,3vw,40px); color: #fff; line-height: 1; }
.cd-stat-num span { background: var(--cd-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cd-stat-lbl { color: var(--cd-text-dim); font-size: 14px; margin-top: 8px; }
.cd-stats .cd-stat + .cd-stat { border-left: 1px solid var(--cd-line); padding-left: 24px; }

/* ---- section heads ---- */
.cd-head { text-align: center; max-width: 720px; margin: 0 auto 56px; position: relative; z-index: 1; }
.cd-head .cd-pill { margin-bottom: 18px; }

/* ---- feature grid (icon cards) ---- */
.cd-grid { display: grid; gap: 22px; }
.cd-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cd-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cd-card {
  background: var(--cd-card); border: 1px solid var(--cd-line); border-radius: 20px; padding: 30px;
  transition: transform .35s ease, border-color .35s ease, background .35s ease; position: relative; overflow: hidden;
}
.cd-card:hover { transform: translateY(-6px); border-color: var(--cd-line-2); background: var(--cd-card-2); }
.cd-ico { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; color: #fff; background: var(--cd-grad); margin-bottom: 20px; }
.cd-ico.cool { background: var(--cd-grad-cool); }
.cd-card h3, .cd-card h4 { font-size: 19px; margin: 0 0 10px; }
.cd-card p { font-size: 14.5px; line-height: 1.6; margin: 0; color: var(--cd-text); }

/* ---- steps (numbered, on gradient orb) ---- */
.cd-steps-bg { position: relative; border-radius: 28px; overflow: hidden; padding: 70px 40px; background: radial-gradient(120% 120% at 50% -10%, rgba(139,108,255,.28), rgba(8,8,12,0) 60%), var(--cd-bg-2); border: 1px solid var(--cd-line); }
.cd-step { background: rgba(255,255,255,.03); border: 1px solid var(--cd-line); border-radius: 18px; padding: 28px; }
.cd-step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: var(--tp-ff-heading); font-weight: 700; color: #0a0a0f; margin-bottom: 18px; }
.cd-step:nth-child(1) .cd-step-num { background: var(--cd-coral); }
.cd-step:nth-child(2) .cd-step-num { background: var(--cd-violet); color:#fff; }
.cd-step:nth-child(3) .cd-step-num { background: var(--cd-blue); color:#fff; }
.cd-step:nth-child(4) .cd-step-num { background: var(--cd-green); }
.cd-step h4 { font-size: 18px; margin: 0 0 8px; }
.cd-step p { font-size: 14px; margin: 0; }

/* ---- split (text + panel) ---- */
.cd-split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cd-check { list-style: none; padding: 0; margin: 24px 0 0; }
.cd-check li { position: relative; padding-left: 32px; margin-bottom: 14px; color: #d7d7e0; font-size: 15.5px; }
.cd-check li::before { content: "\f00c"; font-family: "Font Awesome 6 Pro"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--cd-coral); }
.cd-panel { border: 1px solid var(--cd-line); border-radius: 20px; background: linear-gradient(180deg,#13131d,#0c0c12); padding: 30px; position: relative; }
.cd-panel-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--cd-line); margin-bottom: 12px; }
.cd-panel-row .cd-ico { width: 42px; height: 42px; margin: 0; border-radius: 10px; font-size: 16px; }
.cd-panel-row b { color: #fff; display: block; font-family: var(--tp-ff-heading); }
.cd-panel-row span { font-size: 13px; color: var(--cd-text-dim); }

/* ---- faq ---- */
.cd-faq { max-width: 820px; margin: 0 auto; }
.cd-faq-item { border: 1px solid var(--cd-line); border-radius: 16px; background: var(--cd-card); margin-bottom: 14px; padding: 4px 24px; transition: border-color .3s; }
.cd-faq-item.open { border-color: var(--cd-line-2); }
.cd-faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 20px 0; font-family: var(--tp-ff-heading); font-weight: 600; font-size: 17px; color: #fff; }
.cd-faq-q::after { content: "\2b"; color: var(--cd-coral); font-weight: 700; transition: transform .3s; }
.cd-faq-item.open .cd-faq-q::after { content: "\2212"; }
.cd-faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.cd-faq-item.open .cd-faq-a { max-height: 320px; padding-bottom: 20px; }
.cd-faq-a p { margin: 0; font-size: 15px; }

/* ---- related logo cards ---- */
.cd-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.cd-related { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 16px; background: var(--cd-card); border: 1px solid var(--cd-line); transition: transform .3s ease, border-color .3s ease; }
.cd-related:hover { transform: translateY(-4px); border-color: var(--cd-line-2); }
.cd-related-logo { width: 52px; height: 52px; border-radius: 12px; background: #fff; display: grid; place-items: center; flex: 0 0 52px; }
.cd-related-logo img { width: 30px; height: 30px; object-fit: contain; }
.cd-related-logo i { color: var(--cd-coral-2); font-size: 22px; }
.cd-related h4 { font-size: 15.5px; margin: 0; color: #fff; }
.cd-related span { font-size: 12.5px; color: var(--cd-text-dim); }

/* ---- CTA ---- */
.cd-cta { position: relative; border-radius: 28px; overflow: hidden; padding: 72px 40px; text-align: center;
  background: radial-gradient(120% 130% at 50% 0%, rgba(241,145,125,.22), rgba(8,8,12,0) 55%), var(--cd-bg-2); border: 1px solid var(--cd-line); }
.cd-breadcrumb { font-size: 13px; color: var(--cd-text-dim); margin-bottom: 4px; }
.cd-breadcrumb a { color: #cfcfda; }
.cd-breadcrumb a:hover { color: var(--cd-coral); }

/* ---- responsive ---- */
@media (max-width: 991px) {
  .cd-grid-3, .cd-related-grid { grid-template-columns: repeat(2, 1fr); }
  .cd-split { grid-template-columns: 1fr; gap: 34px; }
  .cd-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .cd-stats .cd-stat + .cd-stat { border-left: 0; padding-left: 0; }
}
@media (max-width: 575px) {
  .cd-section { padding: 70px 0; }
  .cd-hero { padding: 140px 0 60px; }
  .cd-grid-3, .cd-grid-2, .cd-related-grid { grid-template-columns: 1fr; }
  .cd-hero-mock .cd-mock-body { grid-template-columns: 1fr 1fr; }
  .cd-steps-bg { padding: 44px 22px; }
  .cd-cta { padding: 50px 24px; }
}

/* 4-col grid for steps */
.cd-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .cd-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .cd-grid-4 { grid-template-columns: 1fr; } }
.cd-related span { display: flex; flex-direction: column; }

/* =====================================================================
   Variant color themes (rotate per page for visual variety)
   ===================================================================== */
.cd-theme-violet { --cd-coral: #8b6cff; --cd-coral-2: #6d4fff; --cd-grad: linear-gradient(120deg,#8b6cff,#5b8bff); }
.cd-theme-blue   { --cd-coral: #4f9bff; --cd-coral-2: #2f7be0; --cd-grad: linear-gradient(120deg,#4f9bff,#43e0c8); }
.cd-theme-green  { --cd-coral: #54d6a0; --cd-coral-2: #2bb985; --cd-grad: linear-gradient(120deg,#54d6a0,#8be07e); }
.cd-theme-amber  { --cd-coral: #ffb35c; --cd-coral-2: #f1917d; --cd-grad: linear-gradient(120deg,#ffb35c,#f1917d); }

/* hero alignment variants */
.cd-hero.left { text-align: left; }
.cd-hero.left .cd-lead { margin-left: 0; }
.cd-hero.left .cd-hero-btns { justify-content: flex-start; }
.cd-hero-split .cd-split { align-items: center; gap: 56px; }
.cd-hero-split .cd-hero-text { text-align: left; }
.cd-hero-split .cd-hero-text .cd-lead { margin-left: 0; }
.cd-hero-split .cd-hero-text .cd-hero-btns { justify-content: flex-start; }
.cd-hero-split { padding-bottom: 80px; }
.cd-hero-stats .cd-stats { margin-top: 56px; }

/* alternating feature layout (zig-zag list) */
.cd-altrow { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 26px; }
.cd-altrow:nth-child(even) .cd-altrow-media { order: 2; }
.cd-altrow-media { border: 1px solid var(--cd-line); border-radius: 18px; background: linear-gradient(180deg,#13131d,#0c0c12); min-height: 220px; display: grid; place-items: center; }
.cd-altrow-media i { font-size: 64px; color: var(--cd-coral); }
.cd-altrow h3 { font-size: 24px; margin: 0 0 12px; }
@media (max-width: 767px){ .cd-altrow { grid-template-columns: 1fr; gap: 20px; } .cd-altrow:nth-child(even) .cd-altrow-media { order: 0; } }

/* =====================================================================
   Tool placeholder widget (hero) + relatable images (services/industries)
   ===================================================================== */
.cd-widget { text-align: left; background: linear-gradient(180deg,#15151f,#0c0c12); border: 1px solid var(--cd-line-2);
  border-radius: 18px; padding: 22px; box-shadow: 0 40px 120px rgba(0,0,0,.55); max-width: 540px; margin: 0 auto; }
.cd-widget-head { display: flex; align-items: center; gap: 9px; font-family: var(--tp-ff-heading); font-weight: 600; color: #fff; font-size: 14px; margin-bottom: 16px; }
.cd-w-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cd-coral); box-shadow: 0 0 10px var(--cd-coral); }
.cd-w-field { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--cd-line); border-radius: 12px; padding: 7px 7px 7px 14px; }
.cd-w-field i { color: var(--cd-text-dim); }
.cd-w-field input { flex: 1; background: transparent; border: 0; color: #fff; font-size: 14px; outline: none; min-width: 0; }
.cd-w-field input::placeholder { color: var(--cd-text-dim); }
.cd-w-btn { background: var(--cd-grad); color: #fff; border: 0; border-radius: 9px; padding: 10px 18px; font-family: var(--tp-ff-heading); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.cd-w-drop { border: 1.5px dashed var(--cd-line-2); border-radius: 12px; padding: 28px; text-align: center; color: var(--cd-text-dim); font-size: 13px; }
.cd-w-drop i { font-size: 30px; color: var(--cd-coral); display: block; margin-bottom: 10px; }
.cd-w-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--cd-line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.cd-w-thumb { width: 42px; height: 42px; border-radius: 9px; background: var(--cd-grad); display: grid; place-items: center; color: #fff; flex: 0 0 42px; }
.cd-w-row b { color: #fff; display: block; font-size: 13.5px; font-family: var(--tp-ff-heading); }
.cd-w-row span { font-size: 12px; color: var(--cd-text-dim); }
.cd-w-pill { margin-left: auto; background: rgba(126,231,135,.15); color: #7ee787; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.cd-w-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 12px; }
.cd-w-input { background: rgba(255,255,255,.04); border: 1px solid var(--cd-line); border-radius: 10px; padding: 10px 12px; }
.cd-w-input span { font-size: 11px; color: var(--cd-text-dim); display: block; }
.cd-w-input b { font-size: 18px; color: #fff; font-family: var(--tp-ff-heading); }
.cd-w-result { background: var(--cd-grad); border-radius: 12px; padding: 16px; color: #fff; }
.cd-w-result span { font-size: 12px; opacity: .85; display: block; }
.cd-w-result b { font-size: 26px; font-family: var(--tp-ff-heading); }
.cd-w-ring { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 14px; background: conic-gradient(var(--cd-coral) 0 80%, rgba(255,255,255,.08) 80% 100%); }
.cd-w-ring span { width: 70px; height: 70px; border-radius: 50%; background: #0e0e15; display: grid; place-items: center; color: #fff; font-family: var(--tp-ff-heading); font-weight: 700; font-size: 20px; }
.cd-w-textarea { background: rgba(255,255,255,.04); border: 1px solid var(--cd-line); border-radius: 12px; padding: 14px; min-height: 80px; color: var(--cd-text-dim); font-size: 13px; margin-bottom: 12px; }
.cd-w-out { background: rgba(255,255,255,.03); border: 1px solid var(--cd-line); border-radius: 12px; padding: 14px; color: #cfcfda; font-size: 13px; line-height: 1.6; }

/* hero image (services / industries) */
.cd-hero-img { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--cd-line-2); box-shadow: 0 40px 120px rgba(0,0,0,.5); max-width: 560px; margin: 0 auto; }
.cd-hero-img img { width: 100%; height: 100%; max-height: 400px; object-fit: cover; display: block; }
.cd-hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(8,8,12,.55)); }

/* gallery (lots of relatable images) */
.cd-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cd-gallery figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--cd-line); position: relative; }
.cd-gallery img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .55s ease; }
.cd-gallery figure:hover img { transform: scale(1.07); }
.cd-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-family: var(--tp-ff-heading); font-weight: 600; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(8,8,12,.82)); }

/* zig-zag media as image */
.cd-altrow-media.img { padding: 0; overflow: hidden; }
.cd-altrow-media.img img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; }

@media (max-width: 767px) { .cd-gallery { grid-template-columns: 1fr; } }
