/*
Theme Name: SSoft Landing
Theme URI: https://example.com
Author: SSoft
Author URI: https://example.com
Description: Single-page landing theme for SSoft. All content is managed through ACF / Secure Custom Fields (the "Landing Page Content" options page).
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: ssoft
*/

/* ============================================================
   SSoft — Custom software for growing businesses
   Global stylesheet
   ============================================================ */

/* ---------- Reset & base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: #0e0e0e;
  color: #fff;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
a { text-decoration: none; color: inherit; }

/* ---------- Layout ---------- */
.page { width: 100%; overflow: hidden; background: #0e0e0e; }

.cols {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(72px, 9vw, 120px);
}

/* ---------- Shared typography ---------- */
.eyebrow {
  width: max-content;
  padding: 6px 24px;
  border-radius: 500px;
  box-shadow: inset 0 0 0 1px #b3b3b3;
  font-size: 14px;
  font-weight: 500;
  color: #b3b3b3;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 48px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .01em;
}

.body-text {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: #b3b3b3;
}

/* ---------- Buttons (CTA) ---------- */
.cta {
  display: flex;
  align-items: center;
  width: max-content;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cta:hover { transform: translateY(-2px); }

.btn-label {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 500px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 600;
}

.arw {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-left: 4px;
  border-radius: 500px;
  background: #fff;
  color: #000;
  transition: transform .35s ease;
}
.cta:hover .arw { transform: rotate(45deg); }
.arw-flip { transform: rotate(180deg); }

.cta-lg .btn-label { height: 49px; }
.cta-lg .arw { width: 49px; height: 49px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s cubic-bezier(.22,1,.36,1), transform .85s cubic-bezier(.22,1,.36,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Generic padded dark card (services / contact / footer) */
.pad-card { border-radius: 32px; background: #181819; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
  background: #181819;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.hero-pad {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 128px 60px 120px;
  min-height: 750px;
  box-sizing: border-box;
}

.hero-glow-top {
  position: absolute;
  left: 50%;
  top: -20px;
  width: 1120px;
  max-width: 126%;
  height: 190px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,117,255,.3), rgba(37,117,255,0));
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  left: 50%;
  top: 100%;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.orb-a {
  width: 600px; height: 490px;
  margin-left: -300px; margin-top: -215px;
  background: rgba(45,124,255,.98);
  filter: blur(72px);
  animation: pulseA 11s ease-in-out infinite;
}
.orb-b {
  width: 560px; height: 470px;
  margin-left: -280px; margin-top: -205px;
  background: rgba(37,117,255,.9);
  filter: blur(76px);
  animation: pulseB 14s ease-in-out infinite;
}
@keyframes pulseA {
  0%   { transform: translate(-390px, 64px) scale(.88); opacity: .66; }
  50%  { transform: translate(-30px, -86px) scale(1.42); opacity: 1; }
  100% { transform: translate(-390px, 64px) scale(.88); opacity: .66; }
}
@keyframes pulseB {
  0%   { transform: translate(390px, 54px) scale(1.4); opacity: 1; }
  50%  { transform: translate(30px, -76px) scale(.88); opacity: .68; }
  100% { transform: translate(390px, 54px) scale(1.4); opacity: 1; }
}

/* Navigation */
.nav {
  position: absolute;
  left: 20px; right: 20px; top: 20px;
  height: 70px;
  border-radius: 500px;
  background: rgba(14,14,14,.4);
  backdrop-filter: blur(32px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  display: flex;
  padding: 12px 12px 12px 24px;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
}
.nav-logo-img { height: 42px; width: auto; }
.nav-desktop { display: flex; gap: 40px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 600; color: #b3b3b3; }
.lnk { transition: color .25s ease; }
.lnk:hover { color: #fff; }
.nav-cta-d { height: 46px; }
.nav-burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 500px;
  background: #fff; color: #000;
  align-items: center; justify-content: center;
}

.hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  max-width: 790px;
  margin: 0 auto;
  padding-top: 96px;
}
.hero-head { display: flex; flex-direction: column; gap: 24px; align-items: center; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tag {
  padding: 6px 12px;
  border-radius: 500px;
  background: #282828;
  box-shadow: inset 0 0 0 1px rgba(179,179,179,.5);
  font-size: 14px;
  font-weight: 600;
}
.hero-title {
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
  text-wrap: balance;
}
.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  max-width: 394px;
}
.hero-lead { font-size: 18px; font-weight: 400; line-height: 1.6; color: #fff; }

/* ============================================================
   About
   ============================================================ */
.about { display: flex; flex-direction: column; gap: 64px; }
.about-head { display: flex; flex-direction: column; gap: 12px; }
.about-text {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .01em;
}

.facts {
  display: flex;
  gap: clamp(20px, 4vw, 64px);
  align-items: center;
  justify-content: center;
}
.fact {
  position: relative;
  flex-shrink: 0;
  width: 340px; height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fact-mid { width: 420px; height: 420px; }

.fact-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.fact-glow-l {
  width: 470px; height: 470px;
  background: radial-gradient(closest-side, rgba(64,138,255,1), rgba(45,124,255,.78) 48%, rgba(37,117,255,.2) 72%, rgba(37,117,255,0) 86%);
  transform: translate(-18px, 60px);
}
.fact-glow-r {
  width: 470px; height: 470px;
  background: radial-gradient(closest-side, rgba(64,138,255,1), rgba(45,124,255,.78) 48%, rgba(37,117,255,.2) 72%, rgba(37,117,255,0) 86%);
  transform: translate(18px, 60px);
}
.fact-glow-mid {
  width: 560px; height: 560px;
  filter: blur(48px);
  background: radial-gradient(closest-side, rgba(80,150,255,1), rgba(50,128,255,.8) 46%, rgba(37,117,255,.24) 70%, rgba(37,117,255,0) 84%);
  transform: translate(0, -28px);
}

.fact-disc {
  position: relative;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: #1a1a1c;
  box-shadow: 0 0 0 20px rgba(255,255,255,.03);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 40px;
  text-align: center;
}
.fact-disc-mid { width: 372px; height: 372px; gap: 12px; padding: 0 48px; }
.fact-num { font-size: 64px; font-weight: 700; line-height: 1.1; letter-spacing: .01em; color: #e8e8e8; }
.fact-num-mid { font-size: 76px; }
.fact-label { font-size: 17px; font-weight: 400; line-height: 1.6; color: #b3b3b3; }
.fact-label-mid { font-size: 18px; }

/* ============================================================
   Services (accordion)
   ============================================================ */
.services { padding: 64px 55px; display: flex; flex-direction: column; gap: 50px; }
.svc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.svc-head-titles { display: flex; flex-direction: column; gap: 12px; }
.svc-desc {
  width: 520px; max-width: 100%;
  font-size: 18px; font-weight: 400; line-height: 1.6; color: #b3b3b3;
}

.accordion { display: flex; flex-direction: column; }

/* Shared accordion item behaviour */
.faq-item { cursor: pointer; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .5s cubic-bezier(.22,1,.36,1), opacity .4s ease, margin-top .4s ease;
}
.faq-item.open .faq-a { opacity: 1; margin-top: 24px; }
.arwc {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 500px;
  box-shadow: inset 0 0 0 1.4px rgba(179,179,179,.25);
  color: #b3b3b3;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.faq-item.open .arwc { transform: rotate(45deg); }

/* Services-specific frames */
.services .faq-item { border: 1px solid rgba(179,179,179,.25); }
.services .faq-item + .faq-item { margin-top: -1px; }

.svc-row {
  display: flex;
  padding: 24px 32px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: background .3s ease;
}
.svc-row:hover { background: rgba(255,255,255,.02); }
.svc-row:hover .arwc { transform: rotate(45deg); }
.svc-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  color: #b3b3b3;
}
.faq-item.open .svc-title { color: #fff; }

.svc-panel { padding: 0 32px 28px; }
.services .faq-item:first-child .svc-panel { padding-left: 24px; padding-right: 24px; }

.svc-open {
  display: flex;
  gap: 32px;
  border-radius: 20px;
  background: #0e0e0e;
  padding: 32px;
  align-items: stretch;
}
.svc-img {
  width: 486px; height: 322px;
  object-fit: cover;
  border-radius: 24px;
  flex-shrink: 0;
}
.svc-open-main { flex: 1; display: flex; gap: 24px; align-items: flex-start; }
.svc-open-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: space-between;
  min-height: 322px;
}
.svc-open-head { display: flex; flex-direction: column; gap: 12px; }
.svc-open-title { font-size: 34px; font-weight: 500; line-height: 1.4; color: #fff; }
.svc-open-text { font-size: 18px; font-weight: 400; line-height: 1.6; color: #b3b3b3; }
.svc-open-actions { display: flex; flex-direction: column; gap: 24px; }
.svc-open-close {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 500px;
  background: #2575ff;
  color: #fff;
  box-shadow: inset 0 0 0 1.4px rgba(179,179,179,.25);
}

.svc-simple {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-radius: 20px;
  background: #0e0e0e;
  padding: 32px;
}
.svc-simple-text { font-size: 18px; font-weight: 400; line-height: 1.6; color: #b3b3b3; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  border-radius: 500px;
  box-shadow: inset 0 0 0 1px rgba(179,179,179,.4);
  font-size: 14px;
  font-weight: 500;
  color: #b3b3b3;
}

/* ============================================================
   Projects
   ============================================================ */
.projects { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.projects-head { align-self: stretch; display: flex; flex-direction: column; gap: 12px; }
.proj-grid { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.proj-card {
  border-radius: 24px;
  background: #181819;
  padding: 10px 10px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.proj-card:hover { transform: translateY(-8px); }

.proj-media { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 605/288; }
.proj-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.22,1,.36,1);
}
.proj-card:hover .proj-img { transform: scale(1.05); }
.proj-tag {
  position: absolute;
  left: 24px; top: 24px;
  padding: 10px 16px;
  border-radius: 500px;
  background: #fff;
  color: #0e0e0e;
  font-size: 16px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #181819;
}
.proj-body { padding: 0 14px; display: flex; flex-direction: column; gap: 12px; }
.proj-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #b3b3b3; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #d9d9d9; }
.proj-title { font-size: 24px; font-weight: 600; line-height: 1.4; }
.proj-text { font-size: 16px; font-weight: 400; line-height: 1.6; color: #b3b3b3; }

/* ============================================================
   Clients
   ============================================================ */
.clients-sec { display: flex; gap: 32px; align-items: center; }
.clients-marq { position: relative; width: 655px; max-width: 100%; height: 600px; overflow: hidden; flex-shrink: 0; }
.marq-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 620px; height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,117,255,.5), rgba(37,117,255,.12) 55%, rgba(37,117,255,0) 75%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}
.marq-fade-top {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 2;
  background: linear-gradient(180deg, #0e0e0e, rgba(14,14,14,0));
  pointer-events: none;
}
.marq-fade-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 2;
  background: linear-gradient(0deg, #0e0e0e, rgba(14,14,14,0));
  pointer-events: none;
}
.marq-cols { display: flex; gap: 24px; justify-content: center; }
.marq-col { display: flex; flex-direction: column; gap: 24px; }
.marq-col-up { animation: marqUp 22s linear infinite; }
.marq-col-down { animation: marqDown 22s linear infinite; margin-top: -58px; }
@keyframes marqUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes marqDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.marq-logo {
  width: 240px; height: 240px;
  border-radius: 50%;
  background: #181819;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marq-logo-img { width: 150px; opacity: .95; filter: brightness(0) invert(1); }

.clients-content { flex: 1; display: flex; flex-direction: column; gap: 48px; }
.clients-head { display: flex; flex-direction: column; gap: 12px; }
.clients-title { max-width: 498px; }

/* ============================================================
   Consultation + FAQ
   ============================================================ */
.consult-faq { display: flex; gap: 48px; align-items: flex-start; }
.consult-card {
  position: relative;
  overflow: hidden;
  width: 492px;
  flex-shrink: 0;
  border-radius: 24px;
  background: #181819;
  min-height: 480px;
  padding: 32px;
}
.consult-glow {
  position: absolute;
  right: -80px; bottom: -120px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: rgba(37,117,255,.5);
  filter: blur(70px);
  pointer-events: none;
}
.consult-head { position: relative; display: flex; flex-direction: column; gap: 20px; }
.consult-icon {
  width: 64px; height: 64px;
  border-radius: 500px;
  background: #fff;
  color: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
}
.consult-title { font-size: 34px; font-weight: 500; line-height: 1.4; }
.consult-cta { position: absolute; left: 32px; bottom: 32px; z-index: 2; }

.faq { flex: 1; display: flex; flex-direction: column; gap: 48px; min-width: 0; }
.faq-head { display: flex; flex-direction: column; gap: 12px; }
.faq-list { display: flex; flex-direction: column; }
.faq .faq-item { border-bottom: 1px solid rgba(179,179,179,.25); padding: 24px 0; }
.faq-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.faq-q { font-size: 20px; font-weight: 600; line-height: 1.3; color: #b3b3b3; }
.faq .faq-item.open .faq-q { color: #fff; }
.faq .arwc { width: 46px; height: 46px; }
.faq .faq-item.open .arwc { background: #2575ff; color: #fff; box-shadow: none; }
.faq-answer { max-width: 728px; font-size: 18px; font-weight: 400; line-height: 1.6; color: #b3b3b3; }

/* ============================================================
   Contact
   ============================================================ */
.contact { position: relative; overflow: hidden; padding: 40px 55px; }
.contact-blob {
  position: absolute;
  left: -150px; top: 50%;
  transform: translateY(-50%);
  width: 460px; height: auto;
  pointer-events: none;
  user-select: none;
}
.contact-glow {
  position: absolute;
  left: -120px; top: -40px;
  width: 360px; height: 420px;
  border-radius: 50%;
  background: rgba(37,117,255,.45);
  filter: blur(80px);
  pointer-events: none;
}
.contact-grid { position: relative; display: flex; gap: 32px; align-items: center; justify-content: flex-end; }
.contact-info { width: 405px; flex-shrink: 0; display: flex; flex-direction: column; gap: 48px; }
.contact-intro { display: flex; flex-direction: column; gap: 12px; }
.contact-intro-head { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  border-radius: 20px;
  background: #272727;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-field { display: flex; flex-direction: column; gap: 8px; }
.contact-field-label { font-size: 16px; color: #b3b3b3; line-height: 1.6; }
.contact-field-value { font-size: 24px; font-weight: 600; line-height: 1.4; }

.contact-form {
  width: 540px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #0e0e0e;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.ff { flex: 1; min-width: 200px; }
.field-label { font-size: 14px; font-weight: 600; }
.field-label-sm { font-size: 12px; font-weight: 600; }
.input {
  height: 47px;
  border-radius: 500px;
  background: #181819;
  box-shadow: inset 0 0 0 1px rgba(179,179,179,.3);
  padding: 0 20px;
  color: #fff;
  font-size: 14px;
  border: none;
  outline: none;
}
.select {
  height: 47px;
  border-radius: 500px;
  background: #181819;
  box-shadow: inset 0 0 0 1px rgba(179,179,179,.3);
  padding: 0 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border: none;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 24 24'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 24px center;
}
.textarea {
  height: 104px;
  resize: none;
  border-radius: 20px;
  background: #181819;
  box-shadow: inset 0 0 0 1px rgba(179,179,179,.3);
  padding: 14px 24px;
  color: #fff;
  font-size: 14px;
  border: none;
  outline: none;
}
.form-count { font-size: 12px; font-weight: 500; text-align: right; color: #b3b3b3; }
.form-agree { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.checkbox { width: 16px; height: 16px; border-radius: 4px; accent-color: #2575ff; flex-shrink: 0; }
.form-agree-text { font-family: Inter, sans-serif; font-size: 12px; line-height: 1.4; }
.form-agree-link { color: #2575ff; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative;
  border-radius: 24px;
  background: #181819;
  padding: 48px 55px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow: hidden;
}
.footer-glow {
  position: absolute;
  left: 50%; bottom: -260px;
  width: 900px; max-width: 120%;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,117,255,.55), rgba(37,117,255,.12) 55%, rgba(37,117,255,0) 78%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.footer-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.footer-logo { height: 64px; width: auto; flex-shrink: 0; }
.footer-menu { display: flex; align-items: center; gap: 28px; }
.footer-link {
  font-size: 18px;
  font-weight: 500;
  color: #b3b3b3;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.fdiv { width: 1px; height: 16px; background: rgba(255,255,255,.25); }
.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.25);
  padding: 20px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-copy { font-size: 16px; font-weight: 400; color: #b3b3b3; }
.footer-legal { display: flex; align-items: center; gap: 16px; }
.footer-legal-link { font-size: 16px; font-weight: 500; color: #fff; }
.footer-legal-sep { width: 16px; height: 1px; background: rgba(255,255,255,.25); }

/* ============================================================
   Success popup
   ============================================================ */
.ss-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.ss-popup.open { opacity: 1; visibility: visible; }
.ss-popup-bg { position: absolute; inset: 0; background: rgba(8,8,10,.72); backdrop-filter: blur(6px); }
.ss-popup-card {
  position: relative;
  width: 460px;
  max-width: 100%;
  border-radius: 28px 0px 0px 28px;
  background: #181819;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 40px 90px rgba(0,0,0,.55);
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  overflow: hidden;
  transform: translateY(18px) scale(.95);
  transition: transform .4s cubic-bezier(.22,1,.36,1);
}
/* Custom scrollbar for popup content */
.ss-popup-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
}

.ss-popup-card::-webkit-scrollbar {
  width: 10px;
}

.ss-popup-card::-webkit-scrollbar-track {
  background: transparent;
	margin: 16px 0;
}

.ss-popup-card::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, .25);
  border-radius: 0px;
	border-right: 5px solid transparent; /* pushes the visible thumb left */
  background-clip: padding-box;
}

.ss-popup-card::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, .4);
	background-clip: padding-box;
}
.ss-popup.open .ss-popup-card { transform: none; }
.popup-glow {
  position: absolute;
  left: 50%; top: -120px;
  width: 360px; height: 300px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37,117,255,.55), rgba(37,117,255,0));
  filter: blur(30px);
  pointer-events: none;
}
.popup-icon {
  position: relative;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: #2575ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 34px rgba(37,117,255,.5);
}
.popup-title { position: relative; font-size: 30px; font-weight: 600; line-height: 1.2; }
.popup-text { position: relative; font-size: 17px; font-weight: 400; line-height: 1.6; color: #b3b3b3; }
.popup-close {
  position: relative;
  margin-top: 8px;
  height: 48px;
  padding: 0;
  border-radius: 500px;
  background: #fff;
  color: #FFF;
  font-size: 16px;
  font-weight: 600;
}

/* ============================================================
   Mobile navigation overlay
   ============================================================ */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,10,11,.92);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .35s ease, visibility .35s ease, transform .35s ease;
}
.mnav.open { opacity: 1; visibility: visible; transform: none; }
.mnav-link { font-size: 30px; font-weight: 600; color: #fff; padding: 10px; }
.mnav-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 500px;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mnav-cta {
  margin-top: 18px;
  font-size: 18px;
  padding: 14px 32px;
  border-radius: 500px;
  background: #fff;
  color: #000;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-desktop { display: none; }
  .nav-cta-d { display: none; }
  .nav-burger { display: flex; }
  .svc-open { flex-direction: column; }
  .svc-img { width: 100%; height: auto; aspect-ratio: 486/322; }
  .clients-sec { flex-direction: column-reverse; gap: 48px; }
  .clients-marq { width: 100%; height: 360px; }
  .consult-faq { flex-direction: column; }
  .consult-card { width: 100%; min-height: 300px; }
  .contact-grid { flex-direction: column; }
  .contact-info { width: 100%; }
  .contact-form { width: 100%; }
  .contact-blob { display: none; }
  .footer-menu { gap: 18px; }
  .footer-link { font-size: 16px; }
  .facts { flex-wrap: wrap; justify-content: center; gap: 32px; }
  .hero-inner { gap: 48px; }
}

@media (max-width: 760px) {
  .proj-grid { grid-template-columns: 1fr; }
  .svc-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .svc-desc { width: auto; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-logo { height: 56px; }
  .footer-menu { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-link { font-size: 20px; }
  .fdiv { display: none; }
}

@media (max-width: 560px) {
  .form-row { flex-direction: column; }
  .form-row .ff { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 14px; align-items: flex-start; }
  .footer-logo { height: 52px; }
  .hero-pad { padding: 96px 20px 40px; min-height: 800px; }
  .hero-inner { justify-content: flex-start; }
  .orb-a, .orb-b {
    width: 480px; height: 320px;
    margin-left: -240px; margin-top: -90px;
    opacity: .72;
    filter: blur(70px);
  }
  .contact { padding: 32px 20px; }
  .services { padding: 32px 20px; }
  .footer { padding: 32px 20px 24px; }
  .facts { gap: 28px; }
  .fact, .fact-mid { width: 270px; height: 270px; }
  .fact-glow-l, .fact-glow-r, .fact-glow-mid { width: 320px; height: 320px; }
  .fact-disc, .fact-disc-mid { width: 240px; height: 240px; padding: 0 30px; }
  .fact-num, .fact-num-mid { font-size: 54px; }
}

/* ============================================================
   Legal popups (Privacy policy / Cookies policy)
   ============================================================ */
.ss-popup-card-legal {
  width: 640px;
  max-width: 100%;
  max-height: 80vh;
  align-items: stretch;
  text-align: left;
  padding: 48px 40px 40px;
  overflow-y: auto;
}
.popup-close-corner {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 500px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.popup-close-corner:hover { background: rgba(255,255,255,.18); }
.ss-popup-legal .popup-title { text-align: left; }
.popup-legal-content {
  position: relative;
  font-family: Inter, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #b3b3b3;
  text-align: left;
}
.popup-legal-content h1,
.popup-legal-content h2,
.popup-legal-content h3 {
  color: #fff;
  font-family: Manrope, sans-serif;
  margin: 20px 0 10px;
}
.popup-legal-content p { margin: 0 0 14px; }
.popup-legal-content ul,
.popup-legal-content ol { margin: 0 0 14px 20px; }
.popup-legal-content a { color: #2575ff; text-decoration: underline; }

@media (max-width: 560px) {
  .ss-popup-card-legal { padding: 40px 20px 28px; max-height: 85vh; }
}
