/* ==========================================================================
   SMGS Digi Marketers — Soft UI Evolution layer
   Loaded AFTER style.css. Reshapes the dark immersive theme into a light
   soft-interface system: pale blue canvas, tactile neumorphic surfaces,
   deep-blue feature bands and restrained 3D depth.

   Sections
   A. base canvas / reset of the dark world
   B. deep-blue feature bands (keeps white copy on-brand & readable)
   C. neumorphic primitives
   D. buttons
   E. header
   F. home hero + 3D composition
   G. service cards (dimensional)
   H. process timeline
   I. social proof
   J. legacy surfaces (cards / accordion / highlight / footer)
   K. inner-page compatibility fixes
   L. responsive
   M. reduced motion
   ========================================================================== */

/* ---------------------------------------------------- A. base canvas ---- */
html body,
html body.with-world {
  background-color: var(--soft-canvas);
  background-image: var(--g-soft-canvas);
  background-attachment: fixed;
  color: var(--c-text);
}

/* the fixed three.js world / grain / vignette are gone in this theme */
html .grain,
html .vignette,
html .world-layer {
  display: none !important;
}

html main#main-content {
  position: relative;
  z-index: 1;
}

html ::selection {
  background: rgba(1, 76, 163, 0.16);
  color: var(--c-blue-900);
}

/* section rhythm */
html .sui-section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}

html .sui-section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

/* ---------------------------------------------------- B. blue bands ---- */
html .band-blue,
html .hero-section-common,
html .scrim-section,
html .highlight,
html .cta-band,
html .service-scene {
  position: relative;
  color: var(--c-text-on-dark);
  background-color: var(--c-blue);
  background-image: var(--g-blue-band);
  background-size: cover;
  background-position: center;
}

/* compatibility: legacy pages used an inline near-black scrim */
html [style*="rgba(0, 0, 0, 0.45)"],
html .portfolio-section,
html .client-section {
  background-color: transparent !important;
  background-image: var(--g-blue-band) !important;
}

html .portfolio-section {
  border-radius: var(--r-xl);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

html .hero-section-common {
  min-height: clamp(300px, 26vw, 420px);
  border-bottom: 0;
}

html .hero-section-common::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

html .hero-section-common::after,
html .band-blue::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(1, 46, 99, 0.55), transparent);
}

html .hero-section-common > * {
  position: relative;
  z-index: 1;
}

html .hero-section-common h1 {
  color: #ffffff;
  text-shadow: 0 3px 26px rgba(1, 20, 48, 0.4);
}

html .band-blue .text-highlight,
html .hero-section-common .text-highlight,
html .scrim-section .text-highlight,
html .cta-band .text-highlight,
html .highlight .text-highlight,
html .service-scene .text-highlight {
  color: var(--c-amber-400);
}

/* ---------------------------------------------- C. neumorphic basics ---- */
html .neu {
  position: relative;
  border-radius: var(--r-lg);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

html .neu-inset {
  border-radius: var(--r-md);
  background-color: var(--soft-sunken);
  box-shadow: var(--sh-neu-inset);
  border: 0;
}

html .neu-lift {
  transition: transform var(--d-base) var(--ease),
    box-shadow var(--d-base) var(--ease);
  will-change: transform;
}

html .neu-lift:hover,
html .neu-lift:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--sh-neu-lg);
}

/* kicker used on light surfaces */
html .sui-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu-sm);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-blue);
}

html .band-blue .sui-kicker {
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

html .sui-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.18);
}

/* -------------------------------------------------------- D. buttons ---- */
html .base-btn,
html .btn-smgs {
  box-shadow: var(--sh-neu-sm);
}

html .base-btn--primary,
html .btn-smgs {
  background-color: var(--c-blue);
  background-image: linear-gradient(120deg, var(--c-blue) 0%, var(--c-blue-600) 58%, #1f7ae0 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(1, 76, 163, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

html .base-btn--primary:hover,
html .base-btn--primary:focus-visible,
html .btn-smgs:hover,
html .btn-smgs:focus-visible {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 24px 46px rgba(1, 76, 163, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html .base-btn--primary:active,
html .btn-smgs:active {
  transform: translateY(0);
  box-shadow: inset 3px 3px 8px rgba(1, 30, 70, 0.4),
    inset -2px -2px 6px rgba(255, 255, 255, 0.18);
}

/* light surfaced secondary button */
html .base-btn--ghost {
  background-color: var(--soft-raised);
  border-color: rgba(255, 255, 255, 0.75);
  color: var(--c-blue);
  box-shadow: var(--sh-neu-sm);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html .base-btn--ghost:hover,
html .base-btn--ghost:focus-visible {
  color: var(--c-blue-900);
  border-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-3px);
  box-shadow: var(--sh-neu);
}

html .base-btn--dark {
  background-color: var(--soft-raised);
  color: var(--c-blue-900);
  box-shadow: var(--sh-neu-sm);
}

html .base-btn--dark:hover,
html .base-btn--dark:focus-visible {
  background-color: var(--c-blue);
  color: #ffffff;
  transform: translateY(-3px);
}

/* on blue bands the ghost button returns to glassy white */
html .band-blue .base-btn--ghost,
html .cta-band .base-btn--ghost,
html .hero-section-common .base-btn--ghost,
html .scrim-section .base-btn--ghost {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  box-shadow: none;
}

html .band-blue .base-btn--ghost:hover,
html .cta-band .base-btn--ghost:hover,
html .hero-section-common .base-btn--ghost:hover,
html .scrim-section .base-btn--ghost:hover {
  border-color: var(--c-amber-400);
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
}

/* shine sweep is retained but softer on light */
html .base-btn::after,
html .btn-smgs::after {
  opacity: 0.55;
}

/* --------------------------------------------------------- E. header ---- */
html header.site-header {
  background-color: rgba(244, 247, 253, 0.82);
  border-bottom: 1px solid transparent;
}

html header.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(6, 18, 40, 0.06);
  box-shadow: 0 12px 30px rgba(23, 43, 82, 0.1);
}

/* ------------------------------------------------------ F. home hero ---- */
html .home-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 92px) 0 clamp(56px, 7vw, 104px);
  background-color: transparent;
}

html .home-hero__aura {
  position: absolute;
  height: 80%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(38% 52% at 14% 22%, rgba(10, 99, 204, 0.2), transparent 70%),
    radial-gradient(34% 46% at 88% 10%, rgba(255, 140, 0, 0.14), transparent 72%),
    radial-gradient(40% 50% at 62% 40%, rgba(111, 168, 230, 0.18), transparent 74%);
}

html .home-hero__dotgrid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
  background-image: radial-gradient(rgba(1, 76, 163, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 70% at 30% 30%, #000 0%, transparent 74%);
  mask-image: radial-gradient(80% 70% at 30% 30%, #000 0%, transparent 74%);
}

html .home-hero .container {
  position: relative;
  z-index: 2;
}

html .home-hero__title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.034em;
  color: var(--c-blue-900);
  max-width: 18ch;
  text-wrap: balance;
}

html .home-hero__title .hl {
  position: relative;
  color: var(--c-blue);
}

html .home-hero__title .hl--orange {
  color: var(--c-amber-700);
}

html .home-hero__desc {
  margin-top: 22px;
  max-width: 56ch;
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--c-text-muted);
}

html .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

html .home-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(6, 18, 40, 0.08);
}

html .home-hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--c-text);
}

html .home-hero__trust-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu-sm);
  color: var(--c-blue);
  font-size: 0.82rem;
}

/* --- dimensional composition --- */
html .home-stage {
  position: relative;
  min-height: clamp(360px, 42vw, 508px);
  perspective: var(--persp);
  perspective-origin: 60% 40%;
}

html .home-stage__inner {
  position: relative;
  width: 100%;
  min-height: clamp(360px, 42vw, 508px);
  transform-style: preserve-3d;
  --base-ry: -13deg;
  --base-rx: 7deg;
  transform: rotateY(calc(var(--base-ry) + var(--ry, 0deg)))
    rotateX(calc(var(--base-rx) + var(--rx, 0deg)));
  will-change: transform;
}

html .stage-panel {
  position: absolute;
  border-radius: var(--r-lg);
  background-color: var(--soft-white);
  box-shadow: 0 26px 60px rgba(23, 43, 82, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transform-style: preserve-3d;
}

html .stage-panel__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #f2f6fd, #e8eef9);
  border-bottom: 1px solid rgba(6, 18, 40, 0.06);
}

html .stage-panel__title {
  margin-left: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* web mock */
html .stage-panel--web {
  top: 2%;
  left: 0;
  width: 66%;
  padding-bottom: 16px;
  animation: stageFloat 8s ease-in-out infinite;
}

html .stage-web__hero {
  height: 92px;
  margin: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-blue) 0%, var(--c-blue-600) 70%);
  position: relative;
  overflow: hidden;
}

html .stage-web__hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.35);
}

html .stage-web__row {
  display: flex;
  gap: 10px;
  padding: 0 14px;
}

html .stage-web__block {
  flex: 1;
  height: 44px;
  border-radius: 10px;
  background: #eef3fb;
  box-shadow: var(--sh-neu-inset-sm);
}

html .stage-web__lines {
  padding: 12px 14px 0;
}

html .stage-web__line {
  height: 9px;
  border-radius: 6px;
  background: #e4ebf7;
  margin-bottom: 8px;
}

html .stage-web__line:nth-child(2) { width: 78%; }
html .stage-web__line:nth-child(3) { width: 56%; }

/* social mock */
html .stage-panel--social {
  top: 16%;
  right: 0;
  width: 40%;
  padding-bottom: 14px;
  animation: stageFloat 9s ease-in-out infinite 0.6s;
}

html .stage-social__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px 8px;
}

html .stage-social__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-amber-400), var(--c-blue-600));
}

html .stage-social__meta { flex: 1; }
html .stage-social__name {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-blue-900);
}
html .stage-social__time {
  display: block;
  margin-top: 3px;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

html .stage-social__media {
  height: 96px;
  margin: 4px 12px;
  border-radius: 12px;
  background: linear-gradient(140deg, #ffb35c 0%, var(--c-amber-400) 40%, var(--c-blue-600) 100%);
}

html .stage-social__actions {
  display: flex;
  gap: 12px;
  padding: 10px 14px 0;
}

html .stage-social__actions i {
  font-size: 0.86rem;
  color: var(--c-blue);
}

html .stage-social__bars { padding: 8px 14px 0; }
html .stage-social__bars span { display: block; height: 6px; border-radius: 5px; background: #e4ebf7; margin-bottom: 6px; }
html .stage-social__bars span:last-child { width: 60%; }

/* ai mock */
html .stage-panel--ai {
  bottom: 2%;
  left: 6%;
  width: 58%;
  padding: 14px;
  animation: stageFloat 8.6s ease-in-out infinite 0.3s;
}

html .stage-ai__flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 22px;
}

html .stage-ai__node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: var(--soft-raised);
  box-shadow: var(--sh-neu-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-blue-900);
}

html .stage-ai__node i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(1, 76, 163, 0.1);
  color: var(--c-blue);
  font-size: 0.7rem;
}

html .stage-ai__node--accent i { background: rgba(255, 140, 0, 0.16); color: var(--c-amber-700); }

html .stage-ai__link {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 18px;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, var(--c-blue-300), var(--c-amber-400));
  opacity: 0.7;
  animation: aiPulse 2.6s ease-in-out infinite;
}

/* seo mock */
html .stage-panel--seo {
  top: 0;
  right: 6%;
  width: 34%;
  padding: 12px 14px 16px;
  animation: stageFloat 10s ease-in-out infinite 0.9s;
}

html .stage-seo__label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

html .stage-seo__metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-blue-900);
  line-height: 1.1;
  margin-top: 2px;
}

html .stage-seo__metric em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  color: #1f9d55;
  margin-left: 4px;
}

html .stage-seo__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  margin-top: 12px;
}

html .stage-seo__bars span {
  flex: 1;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--c-blue-300), var(--c-blue));
  transform-origin: bottom;
}

html .stage-seo__bars span:nth-child(1) { height: 34%; }
html .stage-seo__bars span:nth-child(2) { height: 52%; }
html .stage-seo__bars span:nth-child(3) { height: 44%; }
html .stage-seo__bars span:nth-child(4) { height: 72%; background: linear-gradient(180deg, var(--c-amber-400), var(--c-amber-700)); }
html .stage-seo__bars span:nth-child(5) { height: 88%; background: linear-gradient(180deg, var(--c-amber-400), var(--c-amber-700)); }

/* floating orbs / chips */
html .stage-orb {
  position: absolute;
  border-radius: 50%;
  background-image: linear-gradient(140deg, var(--c-blue-600), var(--c-blue-900));
  box-shadow: var(--sh-blue-glow), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  animation: stageFloat 7.4s ease-in-out infinite;
}

html .stage-orb--a { width: 54px; height: 54px; top: 44%; left: 46%; }
html .stage-orb--b {
  width: 34px; height: 34px; right: 4%; bottom: 24%;
  background-image: linear-gradient(140deg, var(--c-amber-400), var(--c-amber-700));
  box-shadow: var(--sh-orange-glow), inset 0 2px 6px rgba(255, 255, 255, 0.4);
  animation-delay: 0.8s;
}

html .stage-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(23, 43, 82, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--c-blue-900);
  animation: stageFloat 6.8s ease-in-out infinite;
}

html .stage-chip i { color: var(--c-amber-700); }
html .stage-chip--a { bottom: 46%; left: -2%; animation-delay: 0.4s; }
html .stage-chip--b { top: 40%; right: -4%; animation-delay: 1s; }

@keyframes stageFloat {
  0%, 100% { translate: 0 -8px; }
  50% { translate: 0 8px; }
}

@keyframes aiPulse {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scaleY(0.7); }
  50% { opacity: 1; transform: translate(-50%, -50%) scaleY(1.1); }
}

/* ------------------------------------------------- G. service cards ---- */
html .svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

html .svc-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: var(--r-xl);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform var(--d-base) var(--ease),
    box-shadow var(--d-base) var(--ease);
  overflow: hidden;
}

html .svc-card:hover,
html .svc-card:focus-within {
  transform: translateY(-8px);
  box-shadow: var(--sh-neu-lg);
}

html .svc-card__visual {
  position: relative;
  height: 210px;
  margin-bottom: 24px;
  border-radius: var(--r-lg);
  background-color: var(--soft-sunken);
  box-shadow: var(--sh-neu-inset);
  overflow: hidden;
}

html .svc-card__num {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(1, 76, 163, 0.32);
}

html .svc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(140deg, var(--c-blue) 0%, var(--c-blue-600) 100%);
  box-shadow: var(--sh-blue-glow);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

html .svc-card h3 {
  margin: 0 0 10px;
  font-size: var(--fs-h4);
  color: var(--c-blue-900);
}

html .svc-card p {
  margin: 0 0 18px;
  color: var(--c-text-muted);
  font-size: 0.98rem;
  line-height: 1.66;
}

html .svc-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

html .svc-card ul li {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background-color: var(--soft-white);
  box-shadow: var(--sh-neu-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-blue);
}

html .svc-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background-color: var(--soft-white);
  box-shadow: var(--sh-neu-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--c-blue);
  transition: transform var(--d-fast) var(--ease),
    box-shadow var(--d-fast) var(--ease), color var(--d-fast) var(--ease);
}

html .svc-card__link:hover,
html .svc-card__link:focus-visible {
  color: #fff;
  background-color: var(--c-blue);
  box-shadow: var(--sh-blue-glow);
}

html .svc-card__link i { transition: transform var(--d-fast) var(--ease); }
html .svc-card__link:hover i { transform: translateX(4px); }

/* visual mock: browser */
html .viz-browser {
  position: absolute;
  inset: 26px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 43, 82, 0.18);
  overflow: hidden;
}
html .viz-browser__bar { display: flex; gap: 5px; padding: 9px 12px; background: #eef3fb; }
html .viz-browser__bar span { width: 8px; height: 8px; border-radius: 50%; background: #c8d6ec; }
html .viz-browser__hero { height: 62px; margin: 12px; border-radius: 10px; background: linear-gradient(135deg, var(--c-blue), var(--c-blue-600)); }
html .viz-browser__row { display: flex; gap: 8px; padding: 0 12px; }
html .viz-browser__row span { flex: 1; height: 30px; border-radius: 8px; background: #eef3fb; }
html .viz-phone {
  position: absolute;
  right: 26px;
  bottom: 20px;
  width: 54px;
  height: 96px;
  border-radius: 14px;
  background: #fff;
  border: 3px solid #dbe4f3;
  box-shadow: 0 16px 30px rgba(23, 43, 82, 0.22);
  z-index: 2;
}
html .viz-phone::after { content: ""; position: absolute; left: 50%; top: 6px; width: 18px; height: 3px; border-radius: 3px; background: #dbe4f3; transform: translateX(-50%); }

/* visual mock: social */
html .viz-social {
  position: absolute;
  inset: 26px 40px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(23, 43, 82, 0.18);
  padding: 12px;
}
html .viz-social__head { display: flex; align-items: center; gap: 8px; }
html .viz-social__avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--c-amber-400), var(--c-blue-600)); }
html .viz-social__lines { flex: 1; }
html .viz-social__lines span { display: block; height: 6px; border-radius: 4px; background: #e4ebf7; }
html .viz-social__lines span:first-child { width: 70%; margin-bottom: 5px; }
html .viz-social__lines span:last-child { width: 46%; }
html .viz-social__media { height: 74px; margin: 10px 0; border-radius: 10px; background: linear-gradient(140deg, #ffc07a, var(--c-amber-400) 45%, var(--c-blue-600)); }
html .viz-social__stats { display: flex; gap: 12px; font-size: 0.7rem; font-weight: 700; color: var(--c-blue); }
html .viz-social__dots { position: absolute; bottom: 14px; right: 16px; display: flex; gap: 5px; }
html .viz-social__dots span { width: 6px; height: 6px; border-radius: 50%; background: #d3ddef; }
html .viz-social__dots span:first-child { background: var(--c-orange); }

/* visual mock: workflow */
html .viz-flow {
  position: absolute;
  inset: 30px 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 40px;
  align-content: center;
}
html .viz-flow__node {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(23, 43, 82, 0.14);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--c-blue-900);
}
html .viz-flow__node i { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 7px; background: rgba(1, 76, 163, 0.1); color: var(--c-blue); font-size: 0.66rem; }
html .viz-flow__node--accent i { background: rgba(255, 140, 0, 0.16); color: var(--c-amber-700); }
html .viz-flow__line { position: absolute; background: linear-gradient(90deg, var(--c-blue-300), rgba(1, 76, 163, 0.05)); height: 2px; }
html .viz-flow__line--h { left: 18%; right: 18%; top: 50%; }
html .viz-flow__line--v { top: 18%; bottom: 18%; left: 50%; width: 2px; height: auto; background: linear-gradient(180deg, var(--c-blue-300), rgba(255, 140, 0, 0.4)); }
html .viz-flow__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--c-orange);
  box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.5);
  animation: flowPulse 2.4s ease-out infinite;
}
@keyframes flowPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(255, 140, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* visual mock: analytics */
html .viz-analytics { position: absolute; inset: 26px 26px; display: flex; flex-direction: column; }
html .viz-analytics__top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
html .viz-analytics__score { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1; color: var(--c-blue-900); }
html .viz-analytics__delta { font-size: 0.74rem; font-weight: 700; color: #1f9d55; }
html .viz-analytics__bars { display: flex; align-items: flex-end; gap: 8px; flex: 1; }
html .viz-analytics__bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--c-blue-300), var(--c-blue)); }
html .viz-analytics__bars span:nth-child(1) { height: 30%; }
html .viz-analytics__bars span:nth-child(2) { height: 48%; }
html .viz-analytics__bars span:nth-child(3) { height: 40%; }
html .viz-analytics__bars span:nth-child(4) { height: 66%; }
html .viz-analytics__bars span:nth-child(5) { height: 82%; background: linear-gradient(180deg, var(--c-amber-400), var(--c-amber-700)); }
html .viz-analytics__bars span:nth-child(6) { height: 96%; background: linear-gradient(180deg, var(--c-amber-400), var(--c-amber-700)); }
html .viz-analytics__legend { display: flex; gap: 14px; margin-top: 12px; font-size: 0.68rem; font-weight: 600; color: var(--c-text-muted); }
html .viz-analytics__legend b { color: var(--c-blue); }

/* ------------------------------------------------- H. process ---------- */
html .process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

html .process-track::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 54px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--c-blue) 0%, var(--c-blue-300) 45%, var(--c-amber-400) 100%);
  opacity: 0.5;
}

html .process-step {
  position: relative;
  z-index: 1;
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

html .process-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--c-blue) 0%, var(--c-blue-600) 100%);
  box-shadow: var(--sh-blue-glow);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

html .process-step:nth-child(4) .process-step__num {
  background: linear-gradient(140deg, var(--c-amber-400), var(--c-amber-700));
  box-shadow: var(--sh-orange-glow);
}

html .process-step h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h5);
  color: var(--c-blue-900);
}

html .process-step p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.64;
  color: var(--c-text-muted);
}

/* ------------------------------------------------- I. social proof ---- */
html .proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 54px;
}

html .proof-stat {
  padding: 26px 22px;
  border-radius: var(--r-lg);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
  border: 1px solid rgba(255, 255, 255, 0.72);
  text-align: center;
}

html .proof-stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--c-blue);
}

html .proof-stat__value.is-orange { color: var(--c-amber-700); }

html .proof-stat__label {
  display: block;
  margin-top: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

html .logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

html .logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 104px;
  padding: 16px;
  border-radius: var(--r-md);
  background-color: var(--soft-white);
  box-shadow: var(--sh-neu-sm);
  transition: transform var(--d-base) var(--ease),
    box-shadow var(--d-base) var(--ease);
}

html .logo-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-neu);
}

html .logo-tile img {
  max-width: 100%;
  max-height: 62px;
  width: auto;
  object-fit: contain;
  filter: saturate(0.95);
}

/* --------------------------------------------------- J. legacy look ---- */
html .card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--r-lg);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
}

html .card:not(.bordershadow-2):hover {
  transform: translateY(-8px);
  box-shadow: var(--sh-neu-lg);
  border-color: rgba(255, 255, 255, 0.9);
}

html .highlight .card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
}

html .highlight .card-title { color: var(--c-blue); }
html .highlight .card-text { color: var(--c-text-muted); }

html .accordion-item {
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu-sm);
}

html .accordion-item:has(.accordion-button:not(.collapsed)) {
  box-shadow: var(--sh-neu);
}

html .accordion-button,
html .accordion-button:not(.collapsed) {
  background-color: var(--soft-raised);
  color: var(--c-blue-900);
}

html .accordion-button:not(.collapsed) {
  background-image: linear-gradient(90deg, rgba(1, 76, 163, 0.1), rgba(255, 255, 255, 0) 70%);
  color: var(--c-blue);
}

html .accordion-body { color: var(--c-text-muted); }

html .marquee {
  border-top: 1px solid rgba(6, 18, 40, 0.06);
  border-bottom: 1px solid rgba(6, 18, 40, 0.06);
  background-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html .marquee-item { color: var(--c-text-muted); }

html .section-title { color: var(--c-blue-900); }
html .section-title.text-start::after { left: 0; transform: none; }
html .band-blue .section-title,
html [style*="rgba(0, 0, 0, 0.45)"] .section-title,
html .hero-section-common .section-title { color: #fff; }

/* inline links that sat on the dark canvas need a brighter tone on blue */
html .band-blue .text-orange,
html .scrim-section .text-orange,
html .hero-section-common .text-orange,
html [style*="rgba(0, 0, 0, 0.45)"] .text-orange { color: #ffc07a; }

/* inputs on light & blue surfaces */
html .form-control {
  background-color: var(--soft-white);
  border: 1px solid rgba(6, 18, 40, 0.08);
  border-radius: var(--r-md);
  box-shadow: var(--sh-neu-inset-sm);
  color: var(--c-text);
}

html .form-control::placeholder { color: #8290a8; }

html .form-control:focus {
  background-color: #fff;
  border-color: var(--c-blue-300);
  box-shadow: var(--sh-neu-inset-sm), 0 0 0 4px rgba(10, 99, 204, 0.16);
  color: var(--c-text);
}

/* footer */
html footer.site-footer {
  color: #cdd8ee;
  background-image: var(--g-blue-band);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top: 0;
}

/* section ticker stays legible on the pale canvas */
html .section-ticker { color: var(--c-text-muted); }
html .section-ticker__bar { background-color: rgba(6, 18, 40, 0.12); }

/* mobile sticky cta → light soft bar */
html .mobile-cta {
  background-color: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(6, 18, 40, 0.06);
  box-shadow: 0 -12px 30px rgba(23, 43, 82, 0.1);
}

html .mobile-cta__link {
  background-color: var(--soft-raised);
  color: var(--c-blue-900);
  box-shadow: var(--sh-neu-sm);
}

html .mobile-cta__link i { color: var(--c-blue); }
html .mobile-cta__link--wa i { color: #128c7e; }
html .mobile-cta__link--cta,
html .mobile-cta__link--cta i {
  background-color: var(--c-blue);
  color: #fff;
}

/* ------------------------------------------ K. inner-page fixes -------- */
/* legacy pages placed white copy directly on the near-black scrim of the
   old world canvas. The explicit `band-blue` class (and the style-attribute
   match below for pages we do not edit) restores contrast on brand blue. */
html .bggray { background-color: transparent; }

html .hero-desc { color: var(--c-text-muted); }

/* ------------------------------------------------ L. responsive -------- */
@media (max-width: 1199px) {
  html .logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  html .home-stage,
  html .home-stage__inner {
    min-height: 420px;
  }

  html .home-stage__inner { --base-ry: -8deg; --base-rx: 5deg; }

  html .svc-grid { grid-template-columns: 1fr; }

  html .process-track { grid-template-columns: 1fr 1fr; }
  html .process-track::before { display: none; }

  html .proof-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  html .home-hero { padding-top: 34px; }

  html .home-stage {
    min-height: auto;
    perspective: none;
    margin-top: 40px;
  }

  html .home-stage__inner {
    min-height: auto;
    transform: none;
    display: grid;
    gap: 16px;
  }

  html .stage-panel,
  html .stage-panel--web,
  html .stage-panel--social,
  html .stage-panel--ai,
  html .stage-panel--seo {
    position: relative;
    inset: auto;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    animation: none;
  }

  html .home-stage__inner { display: flex; flex-direction: column; }

  html .stage-orb,
  html .stage-chip { display: none; }

  html .proof-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  html .logo-grid { grid-template-columns: repeat(2, 1fr); }
  html .logo-tile { height: 88px; }
}

@media (max-width: 420px) {
  html .process-track { grid-template-columns: 1fr; }
}

/* pointer-driven tilt only where it reads well */
@media (hover: none), (pointer: coarse) {
  html .home-stage__inner { transform: none !important; }
}

/* ------------------------------------------------ M. reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html .home-stage__inner {
    transform: none !important;
  }

  html .stage-panel,
  html .stage-orb,
  html .stage-chip,
  html .viz-flow__pulse {
    animation: none !important;
  }
}

/* ------------------------------------------- N. inner pages (homepage) ---- */
/* Every inner page now opens with the same pale hero treatment as the home
   page — soft aura, dot grid, display title — and reuses the section / card
   primitives so the whole site reads as one system. */

html .page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 76px) 0 clamp(40px, 5.5vw, 70px);
  border-bottom: 1px solid rgba(6, 18, 40, 0.06);
}

html .page-hero .site-container {
  position: relative;
  z-index: 2;
}

html .page-hero__crumbs {
  margin-bottom: 20px;
}

html .page-hero__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
}

html .page-hero__crumbs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--c-blue);
  text-decoration: none;
}

html .page-hero__crumbs a:hover,
html .page-hero__crumbs a:focus-visible {
  color: var(--c-blue-900);
}

html .page-hero__crumbs a i {
  font-size: 0.72rem;
}

html .page-hero__crumbs li[aria-current] {
  color: var(--c-text-muted);
}

html .page-hero__crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(6, 18, 40, 0.28);
}

html .page-hero__title {
  margin: 16px 0 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.034em;
  color: var(--c-blue-900);
  text-wrap: balance;
}

html .page-hero__desc {
  margin-top: 18px;
  max-width: 64ch;
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--c-text-muted);
}

html .page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

html .page-hero--center {
  text-align: center;
}

html .page-hero--center .page-hero__title,
html .page-hero--center .page-hero__desc {
  margin-inline: auto;
}

html .page-hero--center .page-hero__crumbs ol {
  justify-content: center;
}

html .page-hero--center .page-hero__actions {
  justify-content: center;
}

/* feature / benefit cards on light surfaces */
html .feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

html .feature-list--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html .feature-card {
  padding: 26px 24px;
  border-radius: var(--r-lg);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
  border: 1px solid rgba(255, 255, 255, 0.72);
  transition: transform var(--d-base) var(--ease),
    box-shadow var(--d-base) var(--ease);
}

html .feature-card:hover,
html .feature-card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--sh-neu-lg);
}

html .feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--c-blue) 0%, var(--c-blue-600) 100%);
  box-shadow: var(--sh-blue-glow);
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}

html .feature-card h3 {
  margin: 0 0 8px;
  font-size: var(--fs-h5);
  color: var(--c-blue-900);
}

html .feature-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.66;
  color: var(--c-text-muted);
}

/* framed figure on light surfaces */
html .content-figure {
  padding: 14px;
  border-radius: var(--r-xl);
  background-color: var(--soft-raised);
  box-shadow: var(--sh-neu);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

html .content-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
}

/* long-form prose block */
html .prose {
  max-width: 74ch;
  color: var(--c-text-muted);
}

html .prose h2 {
  margin-top: 2.2rem;
  color: var(--c-blue-900);
}

html .prose a {
  color: var(--c-blue);
}

html .prose strong {
  color: var(--c-text);
}

/* homepage-style lead paragraphs on inner pages */
html .page-lead {
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--c-text-muted);
}

@media (max-width: 991px) {
  html .feature-list,
  html .feature-list--2 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  html .feature-list,
  html .feature-list--2 {
    grid-template-columns: 1fr;
  }
}
