/* =========================================================
   HB SEO Service - Services page
   Palette matches the Home page (dark navy + logo blue)
   ========================================================= */
.sv-page {
  --sv-bg: #0b111a;
  --sv-card: #131b29;
  --sv-card-2: #1a2334;
  --sv-line: #27324a;
  --sv-text: #ffffff;
  --sv-muted: #8f9bb3;
  --sv-blue: #2f7bff;
  --sv-blue-2: #4aa8ff;
  --sv-radius: 20px;
  --sv-ease: cubic-bezier(.22, .8, .24, 1);

  background: var(--sv-bg);
  color: var(--sv-text);
  overflow-x: clip;
}
.sv-page *, .sv-page *::before, .sv-page *::after { box-sizing: border-box; }
.sv-page h1, .sv-page h2, .sv-page h3 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
  letter-spacing: -.02em;
  margin: 0;
}
.sv-page p { margin: 0; color: var(--sv-muted); line-height: 1.65; }
.sv-page a { text-decoration: none; }
.sv-page ul, .sv-page ol { list-style: none; margin: 0; padding: 0; }

.sv-wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }

.sv-section { padding: 96px 0; }
.sv-section--tight { padding: 56px 0; }
.sv-section--cta { padding: 56px 0 110px; }

.sv-head { text-align: center; margin-bottom: 52px; }
.sv-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.sv-head p { margin-top: 12px; font-size: 17px; }

/* ---------------- Buttons ---------------- */
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .35s var(--sv-ease), box-shadow .35s var(--sv-ease), background .35s, border-color .35s;
}
.sv-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-btn--primary {
  color: #fff; background: linear-gradient(135deg, var(--sv-blue), #1d5fe0);
  box-shadow: 0 10px 30px -10px rgba(47, 123, 255, .7);
}
.sv-btn--primary::after { /* light sweep */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transition: transform .7s var(--sv-ease);
}
.sv-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(47, 123, 255, .85); }
.sv-btn--primary:hover::after { transform: translateX(120%); }
.sv-btn--ghost { color: #fff; background: rgba(255,255,255,.03); border-color: var(--sv-line); }
.sv-btn--ghost:hover { transform: translateY(-2px); border-color: var(--sv-blue); background: rgba(47,123,255,.1); }
.sv-btn--card {
  margin-top: auto; align-self: flex-start; padding: 12px 22px; font-size: 14px;
  color: #fff; background: rgba(47,123,255,.12); border-color: rgba(47,123,255,.45);
}
.sv-btn--card:hover { background: var(--sv-blue); border-color: var(--sv-blue); transform: translateY(-2px); }
.sv-btn:focus-visible, .sv-row:focus-visible { outline: 2px solid var(--sv-blue-2); outline-offset: 3px; }

/* ---------------- Hero ---------------- */
.sv-hero { position: relative; padding: 92px 0 84px; overflow: hidden; border-bottom: 1px solid #141c2a; }
.sv-hero__grid {
  position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(var(--sv-line) 1px, transparent 1px), linear-gradient(90deg, var(--sv-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%);
}
.sv-hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.sv-hero__glow--a { width: 520px; height: 520px; left: -120px; top: -160px; background: rgba(47,123,255,.28); animation: svDrift 14s ease-in-out infinite alternate; }
.sv-hero__glow--b { width: 440px; height: 440px; right: -100px; bottom: -180px; background: rgba(74,168,255,.2); animation: svDrift 18s ease-in-out infinite alternate-reverse; }
@keyframes svDrift { to { transform: translate(60px, 40px) scale(1.12); } }

.sv-hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.sv-hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; line-height: 1.06; }
.sv-line { display: block; overflow: hidden; padding-bottom: .08em; }
.sv-line > span { display: block; transform: translateY(110%); animation: svLineUp 1s var(--sv-ease) forwards; }
.sv-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes svLineUp { to { transform: none; } }
.sv-hero__text { margin-top: 22px; font-size: 18px; max-width: 540px; opacity: 0; animation: svFade .9s .45s var(--sv-ease) forwards; }
.sv-hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; opacity: 0; animation: svFade .9s .6s var(--sv-ease) forwards; }
@keyframes svFade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* console (auto-cycling services, echoes the home page monitor) */
.sv-console {
  border: 1px solid var(--sv-line); border-radius: var(--sv-radius); overflow: hidden;
  background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(47,123,255,.06);
  opacity: 0; transform: translateY(24px) scale(.98);
  animation: svConsoleIn 1s .35s var(--sv-ease) forwards, svFloat 7s 1.4s ease-in-out infinite;
}
@keyframes svConsoleIn { to { opacity: 1; transform: none; } }
@keyframes svFloat { 50% { transform: translateY(-8px); } }
.sv-console__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--sv-line); background: rgba(0,0,0,.18); }
.sv-console__bar i { width: 10px; height: 10px; border-radius: 50%; background: #33405a; }
.sv-console__bar span { margin-left: 10px; font-size: 12.5px; color: var(--sv-muted); }
.sv-console__list { padding: 14px; display: grid; gap: 8px; }
.sv-console__list li {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 2px; padding: 15px 18px; border-radius: 12px;
  border: 1px solid transparent; overflow: hidden; transition: background .4s, border-color .4s, transform .5s var(--sv-ease);
}
.sv-console__list b { font-size: 16px; font-weight: 700; color: #cfd8ea; transition: color .3s; }
.sv-console__list span { font-size: 13.5px; color: var(--sv-muted); }
.sv-console__list em { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--sv-blue), var(--sv-blue-2)); transform: scaleX(0); transform-origin: left; }
.sv-console__list li.is-active { background: rgba(47,123,255,.12); border-color: rgba(47,123,255,.5); transform: translateX(6px); }
.sv-console__list li.is-active b { color: #fff; }
.sv-console__list li.is-active em { animation: svProgress 2s linear forwards; }
@keyframes svProgress { to { transform: scaleX(1); } }

/* ---------------- Cards ---------------- */
.sv-services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.sv-card--third { grid-column: span 2; }
.sv-card--half { grid-column: span 3; }

.sv-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 30px 30px; overflow: hidden;
  border: 1px solid var(--sv-line); border-radius: var(--sv-radius);
  background: linear-gradient(160deg, var(--sv-card-2), var(--sv-card));
  transition: transform .5s var(--sv-ease), border-color .4s, box-shadow .5s;
}
.sv-card::before { /* blue top accent, same as home cards */
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--sv-blue), transparent); opacity: .75;
}
.sv-card::after { /* mouse spotlight */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47,123,255,.16), transparent 60%);
}
.sv-card:hover { transform: translateY(-6px); border-color: rgba(47,123,255,.55); box-shadow: 0 30px 60px -30px rgba(47,123,255,.4); }
.sv-card:hover::after { opacity: 1; }
.sv-card > * { position: relative; z-index: 1; }
.sv-card h3 { font-size: 24px; font-weight: 700; margin-top: 22px; }
.sv-card p { margin-top: 10px; font-size: 15.5px; }

.sv-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(47,123,255,.12); border: 1px solid rgba(47,123,255,.35);
  transition: transform .5s var(--sv-ease), background .4s;
}
.sv-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--sv-blue-2); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sv-card:hover .sv-icon { transform: rotate(-6deg) scale(1.08); background: rgba(47,123,255,.2); }

.sv-list { margin: 18px 0 26px; display: grid; gap: 9px; }
.sv-list li { position: relative; padding-left: 22px; font-size: 14.5px; color: #b6c1d6; }
.sv-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--sv-blue); box-shadow: 0 0 0 4px rgba(47,123,255,.18); }

/* ---------------- "More from" rows ---------------- */
.sv-rows { border-top: 1px solid var(--sv-line); }
.sv-row {
  position: relative; display: grid; grid-template-columns: 280px 1fr 56px; align-items: center; gap: 28px;
  padding: 30px 12px; border-bottom: 1px solid var(--sv-line); color: #fff; overflow: hidden;
  transition: padding .45s var(--sv-ease), background .4s;
}
.sv-row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(47,123,255,.12), transparent 70%); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--sv-ease); }
.sv-row > * { position: relative; }
.sv-row__title { font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.sv-row__text { color: var(--sv-muted); font-size: 16px; line-height: 1.55; }
.sv-row__go { justify-self: end; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--sv-line); transition: background .4s, border-color .4s, transform .5s var(--sv-ease); }
.sv-row__go svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sv-row:hover { padding-left: 28px; }
.sv-row:hover::before { transform: scaleX(1); }
.sv-row:hover .sv-row__go { background: var(--sv-blue); border-color: var(--sv-blue); transform: translateX(-6px); }

/* ---------------- Steps ---------------- */
.sv-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.sv-steps::before { /* connecting line */
  content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--sv-blue), var(--sv-blue-2)); transform: scaleX(0); transform-origin: left;
  transition: transform 1.6s .3s var(--sv-ease); opacity: .7;
}
.sv-steps.is-in::before { transform: scaleX(1); }
.sv-step { position: relative; padding-top: 0; }
.sv-step__no {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 20px; color: #fff;
  background: var(--sv-bg); border: 2px solid var(--sv-blue); box-shadow: 0 0 0 6px rgba(47,123,255,.12), 0 0 28px rgba(47,123,255,.35);
}
.sv-step h3 { font-size: 20px; font-weight: 700; margin-top: 22px; }
.sv-step p { margin-top: 8px; font-size: 15px; }

/* ---------------- Why ---------------- */
.sv-why { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.sv-why__intro { position: sticky; top: 110px; }
.sv-why__intro h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; }
.sv-why__intro p { margin-top: 14px; font-size: 17px; max-width: 380px; }
.sv-why__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sv-line); }
.sv-why__item { display: flex; gap: 16px; padding: 26px 22px 26px 0; border-bottom: 1px solid var(--sv-line); }
.sv-why__item:nth-child(odd) { border-right: 1px solid var(--sv-line); }
.sv-why__item:nth-child(even) { padding-left: 26px; }
.sv-why__item svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; fill: none; stroke: var(--sv-blue-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; background: rgba(47,123,255,.14); }
.sv-why__item h3 { font-size: 18px; font-weight: 700; }
.sv-why__item p { margin-top: 5px; font-size: 14.5px; }

/* ---------------- CTA ---------------- */
.sv-cta {
  position: relative; overflow: hidden; text-align: center; padding: 76px 32px; border-radius: 28px;
  border: 1px solid rgba(47,123,255,.4);
  background: linear-gradient(160deg, #16213a, #0f1727);
}
.sv-cta__glow { position: absolute; width: 640px; height: 640px; left: 50%; top: -420px; margin-left: -320px; border-radius: 50%; background: rgba(47,123,255,.35); filter: blur(100px); animation: svPulse 6s ease-in-out infinite; pointer-events: none; }
@keyframes svPulse { 50% { opacity: .55; transform: scale(1.12); } }
.sv-cta > *:not(.sv-cta__glow) { position: relative; }
.sv-cta h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.sv-cta p { margin: 14px auto 0; max-width: 520px; font-size: 17px; }
.sv-cta__actions { margin-top: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------------- Scroll reveal ---------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--sv-ease), transform .9s var(--sv-ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
/* keep card hover transform working after reveal */
.sv-card[data-reveal].is-in { transition: opacity .9s var(--sv-ease) var(--d, 0ms), transform .5s var(--sv-ease), border-color .4s, box-shadow .5s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .sv-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .sv-console { max-width: 560px; }
  .sv-steps { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .sv-steps::before { display: none; }
  .sv-why { grid-template-columns: 1fr; gap: 36px; }
  .sv-why__intro { position: static; }
}
@media (max-width: 900px) {
  .sv-card--third, .sv-card--half { grid-column: span 3; }
  .sv-card--third:last-of-type { grid-column: span 6; }
  .sv-row { grid-template-columns: 1fr 48px; gap: 8px 20px; }
  .sv-row__text { grid-column: 1; }
  .sv-row__go { grid-column: 2; grid-row: 1 / span 2; }
}
@media (max-width: 680px) {
  .sv-wrap { width: calc(100% - 40px); }
  .sv-section { padding: 64px 0; }
  .sv-hero { padding: 56px 0 56px; }
  .sv-services { grid-template-columns: 1fr; }
  .sv-card--third, .sv-card--half, .sv-card--third:last-of-type { grid-column: auto; }
  .sv-steps { grid-template-columns: 1fr; }
  .sv-why__grid { grid-template-columns: 1fr; }
  .sv-why__item:nth-child(odd) { border-right: 0; }
  .sv-why__item:nth-child(even) { padding-left: 0; }
  .sv-cta { padding: 56px 22px; }
  .sv-hero__actions .sv-btn, .sv-cta__actions .sv-btn { width: 100%; }
  .sv-row__title { font-size: 22px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  .sv-page *, .sv-page *::before, .sv-page *::after { animation: none !important; transition: none !important; }
  .sv-line > span, .sv-hero__text, .sv-hero__actions, .sv-console, [data-reveal] { opacity: 1 !important; transform: none !important; }
  .sv-steps::before { transform: scaleX(1); }
}
