
:root{
  --bg:#0b1020; --card:#11162a; --ink:#e6e9f2; --muted:#b6bed3;
  --brand:#6ee7b7; --brand-2:#38bdf8; --ring:#334155;
  --content-width: 960px; /* desktop max width for centered content */
}

/* GLOBAL SAFETY */
*{ box-sizing:border-box }
html,body{ height:100% }
body{
  margin:0;
  overflow-x:hidden;
  background: var(--bg); /* solid base */
  color:var(--ink);
  font-family:Inter,system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;
}
a{ color:inherit }
img,svg,video{ display:block; max-width:100%; height:auto }

/* WRAPPERS: mobile = full width; desktop = centered max width */
.container,
.hero-wrap{
  width:100%;
  max-width:1100px;
  margin:0 auto;
  padding:24px;
}

/* Vertical rhythm so sections don't visually overlap */
.container > header{ margin-bottom: 20px; }
.hero-card{ margin: 8px 0 28px; }   /* space above and below hero */
.section{ padding:8px 0 28px; }
.section + .section{ margin-top: 12px; } /* gap between sections */

/* Header */
header{ display:flex; align-items:center; gap:16px }
.logo{ height:56px; width:auto; filter:drop-shadow(0 2px 12px rgba(56,189,248,.25)) }
.brand{ font:700 22px/1 Inter,system-ui,sans-serif; letter-spacing:.2px }
.tag{ color:var(--muted); font-size:14px }

/* HERO */
.hero-card{
  position:relative;
  display:flex; flex-wrap:wrap; align-items:center; gap:48px;
  background:linear-gradient(180deg,#0f2230,#0b1a22);
  border-radius:20px; padding:28px;
  border:1px solid rgba(148,163,184,.18);
}
/* Let flex children actually shrink (prevents overflow on iOS) */
.hero-left, .hero-right{
  flex:1 1 420px;      /* base preferred width */
  min-width:0;         /* allow shrink */
}
.hero-right{ flex-basis:380px; display:flex; justify-content:flex-end; } /* image on right */
.hero-media{
  border-radius:16px; overflow:hidden; max-width:480px; width:100%;
  margin:0;             /* remove margin-left:auto */
}

.cta{ margin-top:24px; display:flex; gap:12px; flex-wrap:wrap }
.cta > *{ min-width:0; flex:0 1 auto }  /* buttons wrap instead of pushing width */
.btn{ border:1px solid var(--ring); padding:12px 18px; border-radius:12px; text-decoration:none; font-weight:600 }
.btn.primary{ background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#081220; border:none }

h2{ font:700 26px/1.2 Inter,system-ui,sans-serif; margin:0 0 10px }

.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border:1px solid rgba(148,163,184,.18);
  border-radius:18px;
  padding:22px;
  overflow:hidden;
}
.lead{ color:var(--muted) }
.service-title{ display:flex; align-items:center; gap:10px; font-weight:700 }
.service-title svg{ flex:0 0 22px }
.clients{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px }
.pill{ padding:8px 12px; border-radius:999px; background:rgba(99,102,241,.12); border:1px solid rgba(99,102,241,.35) }
footer{ padding:30px 0; color:var(--muted); font-size:14px }

.clients-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.clients { 
  flex: 1 1 300px;
}

.client-media {
  flex: 1 1 380px;
  display: flex;
  justify-content: flex-end;
}
.client-media img {
  max-width: 360px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

/* Mobile: stack with image under clients */
@media (max-width: 640px){
  .clients-wrap { flex-direction: column; align-items: flex-start; }
  .client-media { justify-content: center; }
  .client-media img { max-width: 100%; }
}

/* Desktop: center everything narrower than the container */
@media (min-width: 1024px){
  .container,
  .hero-wrap,
  .section {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-card{
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
  }
}

/* RESPONSIVE (mobile tweaks) */
@media (max-width: 640px){
  .container, .hero-wrap{ padding:22px 16px }
  .hero-card{ gap:20px; padding:22px }
  /* Force order: text first, image second */
  .hero-left{ flex:1 1 100%; order:1; }
  .hero-right{ flex:1 1 100%; order:2; justify-content:center; }
  .hero-media{ margin:8px 0 0; max-width: 560px; }
  .grid{ grid-template-columns:1fr }
}

/* Utility (optional): avoid 100vw pitfalls if present anywhere */
[style*="100vw"], .uses-100vw { width:100% !important; }

/* Our client: keep pills compact */
.clients-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;        /* don't stretch columns */
  justify-content: space-between;
}

/* Left column: list of clients */
.clients {
  flex: 1 1 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;        /* <-- critical: don't stretch children vertically */
}

/* Each client pill should hug its text */
.pill {
  display: inline-flex;           /* shrink-to-content */
  align-items: center;
  height: auto !important;        /* guard against inherited heights */
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.35);
  white-space: nowrap;            /* keep on one line */
  line-height: 1.2;
}

/* Right column: image */
.client-media {
  flex: 1 1 380px;
  display: flex;
  justify-content: flex-end;
}
.client-media img {
  max-width: 360px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Mobile: stack */
@media (max-width: 640px){
  .clients-wrap { flex-direction: column; align-items: flex-start; }
  .client-media { justify-content: center; }
  .client-media img { max-width: 100%; }
}

/* Our client — two-column with responsive logos */
.clients-wrap{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  align-items:flex-start;                 /* don't stretch columns */
  justify-content:space-between;
}

/* Left column: logo grid */
.clients-logos{
  flex:1 1 320px;
  display:grid;
  grid-template-columns:repeat(3, minmax(120px,1fr));
  gap:16px;
  align-items:center;
}

/* Logo images scale nicely without distortion */
.client-logo{
  width:100%;
  max-width:180px;                        /* cap width per logo */
  max-height:70px;                        /* cap height per logo */
  object-fit:contain;                     /* preserve aspect ratio */
  justify-self:start;                     /* align left for cleaner edge */
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

/* Right column: showcase image */
.client-media{
  flex:1 1 380px;
  display:flex;
  justify-content:flex-end;
}
.client-media img{
  width:100%;
  max-width:480px;
  border-radius:12px;
  box-shadow:0 6px 16px rgba(0,0,0,.25);
}

/* Responsive: stack & reflow logos */
@media (max-width: 900px){
  .clients-logos{ grid-template-columns:repeat(2, minmax(120px,1fr)); }
}
@media (max-width: 640px){
  .clients-wrap{ flex-direction:column; align-items:flex-start; }
  .clients-logos{ grid-template-columns:1fr 1fr; width:100%; }
  .client-media{ justify-content:center; width:100%; }
  .client-media img{ max-width:100%; }
}