/* ============================================================
   SEO Services Page – Inline Styles
   Matches existing csd-* design pattern in swiflare-fixes.css
   ============================================================ */

/* ---------- HERO (two-column with browser mockup) ---------- */
.csd-hero {
  padding: 100px 0 80px !important;
  text-align: left !important;
}
.csd-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  align-items: center;
}
.csd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4F7CFF;
  border: 1px solid rgba(79,124,255,0.35);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 22px;
}
.csd-eyebrow .blip {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4F7CFF;
  box-shadow: 0 0 0 0 rgba(79,124,255,.6);
  animation: csd-pulse 2.2s infinite;
  flex-shrink: 0;
}
@keyframes csd-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79,124,255,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(79,124,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(79,124,255,0); }
}
.csd-hero h1 {
  font-family: 'Marcellus', serif !important;
  font-size: 64px !important;
  line-height: 1.15 !important;
  font-weight: 400 !important;
  margin-bottom: 20px !important;
  background: -webkit-linear-gradient(45deg, #ffffff, rgba(255,255,255,0.65)) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  letter-spacing: 0 !important;
}
.csd-hero h1 em.accent {
  font-style: normal;
  background: -webkit-linear-gradient(45deg, #4F7CFF, #a8c7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.csd-lead {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px !important;
  line-height: 1.75 !important;
  color: rgba(255,255,255,0.6) !important;
  max-width: 500px;
  margin-bottom: 32px !important;
}
.csd-hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 46px;
  flex-wrap: wrap;
}
.csd-btn-primary {
  background: #4F7CFF;
  color: #ffffff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 13px 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.csd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(79,124,255,.35);
  background: #02155A;
  color: #ffffff;
}
.csd-btn-ghost {
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
  padding: 13px 24px;
  border-radius: 7px;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease;
}
.csd-btn-ghost:hover {
  border-color: #4F7CFF;
  background: rgba(79,124,255,0.08);
  color: #fff;
}
.csd-hero-stats {
  display: flex;
  gap: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 26px;
  flex-wrap: wrap;
}
.csd-hero-stats div b {
  display: block;
  font-family: 'Marcellus', serif;
  font-size: 48px;
  line-height: 50px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 6px;
}
.csd-hero-stats div span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Browser mockup */
.csd-browser {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 30px 70px rgba(0,0,0,.55);
  overflow: hidden;
}
.csd-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.csd-chrome i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.csd-chrome .csd-url {
  margin-left: 10px;
  font-family: 'DM Sans', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
  padding: 5px 12px;
  border-radius: 5px;
  flex: 1;
}
.csd-code {
  padding: 22px 22px 26px;
  font-family: 'DM Sans', monospace;
  font-size: 12.5px;
  line-height: 1.95;
  color: rgba(255,255,255,0.55);
}
.csd-code .cc1 { color: #4F7CFF; }
.csd-code .cc2 { color: #a8c7ff; }
.csd-code .cc3 { color: rgba(255,255,255,0.28); }
.csd-code .caret {
  display: inline-block; width: 7px; height: 14px;
  background: #4F7CFF; vertical-align: -2px;
  animation: csd-blink 1s steps(1) infinite;
}
@keyframes csd-blink { 50% { opacity: 0; } }

/* ---------- SECTION GENERIC ---------- */
.csd-section { padding: 88px 0; }

.csd-label-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #4F7CFF;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  display: block;
}
/* Label tags in white sections use navy instead of teal */
.csd-intro .csd-label-tag,
.csd-services .csd-label-tag,
.csd-process .csd-label-tag,
.csd-features-list .csd-label-tag,
.csd-stack .csd-label-tag {
  color: #02155A;
}
.csd-sec-title {
  font-family: 'Marcellus', serif !important;
  font-size: 54px !important;
  font-weight: 400 !important;
  line-height: 64px !important;
  margin-bottom: 16px !important;
  color: #fff !important;
  max-width: 680px;
}
/* In white sections, titles and subtitles go dark */
.csd-intro .csd-sec-title,
.csd-services .csd-sec-title,
.csd-process .csd-sec-title,
.csd-features-list .csd-sec-title,
.csd-stack .csd-sec-title {
  color: var(--nexin-black) !important;
}
.csd-sec-sub {
  color: rgba(255,255,255,0.55);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 680px;
}
.csd-intro .csd-sec-sub,
.csd-services .csd-sec-sub,
.csd-process .csd-sec-sub,
.csd-features-list .csd-sec-sub,
.csd-stack .csd-sec-sub {
  color: var(--nexin-gray);
}

/* ---------- INTRO / OVERVIEW ---------- */
.csd-intro {
  background: #fff;
}
.csd-intro .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.csd-intro .container > div p {
  font-family: 'DM Sans', sans-serif;
  color: var(--nexin-gray);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.csd-intro .container > img {
  border-radius: 12px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.07);
  width: 100%;
  display: block;
}

/* ---------- SERVICE GRID (12 cells) ---------- */
.csd-services { background: var(--nexin-primary); }
.csd-grid12 {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1px;
  background: var(--nexin-bdr-color);
  margin-top: 46px;
  border: 1px solid var(--nexin-bdr-color);
  border-radius: 14px;
  overflow: hidden;
}
.csd-cell {
  background: var(--nexin-white);
  padding: 30px 26px;
  transition: background .25s ease;
}
.csd-cell:hover { background: #EBF0FF; }
.csd-idx {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  color: var(--nexin-base);
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.csd-cell h4 {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--nexin-black) !important;
  line-height: 1.45 !important;
}

/* ---------- PROCESS (trace timeline) ---------- */
.csd-process { background: #ffffff; }
.csd-trace-wrap { position: relative; margin-top: 64px; }
.csd-trace-line {
  position: absolute; top: 38px; left: 0; right: 0; height: 2px;
  background-image: linear-gradient(90deg, #02155A 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
  z-index: 0;
  opacity: 0.35;
}
.csd-trace {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 18px;
  position: relative;
  z-index: 1;
}
.csd-node { display: flex; flex-direction: column; align-items: flex-start; }
.csd-ring {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--nexin-white);
  border: 2px solid var(--nexin-base);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Marcellus', serif;
  font-weight: 400; font-size: 22px; color: var(--nexin-base);
  margin-bottom: 18px; flex-shrink: 0;
  transition: background .25s ease, color .25s ease;
}
.csd-node:hover .csd-ring { background: var(--nexin-base); color: var(--nexin-white); }
.csd-node h4 {
  font-family: 'Marcellus', serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #0B1026 !important;
  margin-bottom: 8px !important;
  min-height: 38px;
  line-height: 1.4 !important;
}
.csd-node p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--nexin-gray);
  line-height: 1.65;
}

/* ---------- FEATURES (alternating rows) ---------- */
.csd-features-list {
  background: #fff;
}
.csd-features-list .csd-feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  padding: 70px 0;
  border-top: 1px solid var(--nexin-bdr-color);
}
.csd-features-list .csd-feature-row:nth-child(even) {
  direction: rtl;
}
.csd-features-list .csd-feature-row:nth-child(even) > * {
  direction: ltr;
}
.csd-ftag {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--nexin-base);
  background: rgba(2,21,90,0.08);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.csd-feature-row h3 {
  font-family: 'Marcellus', serif !important;
  font-size: 48px !important;
  font-weight: 400 !important;
  line-height: 60px !important;
  margin-bottom: 14px !important;
  color: var(--nexin-black) !important;
}
.csd-fp {
  font-family: 'DM Sans', sans-serif;
  color: var(--nexin-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 22px !important;
}
.csd-benefits { list-style: none; padding: 0; margin: 0; }
.csd-benefits li {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  color: var(--nexin-gray);
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--nexin-bdr-color);
}
.csd-benefits li:before {
  content: "✓";
  position: absolute;
  left: 0; top: 9px;
  color: var(--nexin-base);
  font-weight: 700;
  font-size: 13px;
}
.csd-feature-img {
  background: linear-gradient(135deg, var(--nexin-black), var(--nexin-base));
  border-radius: 14px;
  aspect-ratio: 4/3.1;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--nexin-bdr-color);
}
.csd-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .75;
  mix-blend-mode: luminosity;
}
.csd-feature-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(79,124,255,0.15), transparent 55%);
}

/* ---------- TECH STACK GRID ---------- */
.csd-stack { background: var(--nexin-primary); }
.csd-stack-grid {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  gap: 14px;
  margin-top: 48px;
}
.csd-stack-card {
  background: var(--nexin-white);
  border: 1px solid var(--nexin-bdr-color);
  border-radius: 10px;
  padding: 22px 16px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.csd-stack-card:hover {
  transform: translateY(-4px);
  border-color: var(--nexin-base);
  box-shadow: 0 14px 28px rgba(var(--nexin-base-rgb),0.1);
}
.csd-stitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--nexin-base);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.csd-sitems {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--nexin-gray);
  line-height: 1.7;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991px) {
  .csd-hero .container { grid-template-columns: 1fr; }
  .csd-hero h1 { font-size: 46px !important; }
  .csd-intro .container { grid-template-columns: 1fr; }
  .csd-grid12 { grid-template-columns: repeat(2,1fr); }
  .csd-trace { grid-template-columns: 1fr 1fr; }
  .csd-trace-line { display: none; }
  .csd-features-list .csd-feature-row { grid-template-columns: 1fr; }
  .csd-features-list .csd-feature-row:nth-child(even) { direction: ltr; }
  .csd-stack-grid { grid-template-columns: repeat(3,1fr); }
  .csd-sec-title { font-size: 36px !important; line-height: 1.3 !important; }
  .csd-feature-row h3 { font-size: 36px !important; line-height: 1.3 !important; }
}
@media (max-width: 620px) {
  .csd-stack-grid { grid-template-columns: repeat(2,1fr); }
  .csd-grid12 { grid-template-columns: 1fr; }
  .csd-hero-stats { gap: 20px; }
}