/* ==========================================================================
   Mohamed Zaman — Freelance Digital Marketing
   Single shared stylesheet. Light, minimal, one brand accent.
   ========================================================================== */

:root {
  --brand: #2548d8;
  --brand-600: #1b35a8;
  --brand-500: #3b5cf0;
  --brand-100: #e0e7ff;
  --brand-50: #eef2ff;

  --ink: #111318;
  --text: #262b36;
  --muted: #4a5160;
  --subtle: #6b7280;
  --line: #e5e7eb;
  --soft: #f6f7f9;
  --white: #ffffff;
  --ok: #0f766e;

  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05), 0 2px 8px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 24px 60px rgba(30, 50, 120, 0.18);

  --container: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 3.3vw, 2.45rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
strong { color: var(--ink); font-weight: 600; }

:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lede, .center .section-lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 0.97rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-align: center; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px rgba(37, 72, 216, 0.28); }
.btn-primary:hover { background: var(--brand-600); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(37, 72, 216, 0.34); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--brand-600); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-600); transform: translateY(-2px); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }
.link-arrow { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform 0.2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
/* blur lives on a pseudo-element so the header isn't a containing block for the fixed mobile menu */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(17, 24, 39, 0.05); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 1.05rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1.15rem; box-shadow: 0 6px 14px rgba(37, 72, 216, 0.3); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--subtle); letter-spacing: 0; line-height: 1.2; }
.brand-text { line-height: 1.15; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted); padding: 9px 11px; border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease; white-space: nowrap;
}
.main-nav a:hover { color: var(--ink); background: var(--soft); }
.main-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-50); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 13px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 20px 24px 120px; overflow-y: auto; transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav a { font-family: var(--font-head); font-size: 1.15rem; font-weight: 500; padding: 15px 16px; border-radius: 14px; color: var(--ink); border-bottom: 1px solid var(--soft); }
  .main-nav a[aria-current="page"] { background: var(--brand-50); }
  .main-nav a.nav-mobile-cta { display: flex; margin-top: 18px; color: #fff; background: var(--brand); border-bottom: 0; justify-content: center; font-size: 1rem; font-weight: 600; padding: 16px 20px; border-radius: 999px; }
  .main-nav a.nav-mobile-cta:hover { background: var(--brand-600); color: #fff; }
}
.nav-mobile-cta { display: none; }
body.nav-open { overflow: hidden; }

/* ---------- Generic sections ---------- */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 { margin-bottom: 0.45em; }
.section-lede, .lede { font-size: 1.15rem; color: var(--muted); line-height: 1.7; max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 500; font-size: 0.82rem;
  color: var(--brand); background: var(--brand-50); padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; letter-spacing: 0.01em;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.eyebrow-plain { background: none; padding: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 88px; overflow-x: clip; background:
  radial-gradient(900px 520px at 88% -8%, rgba(59, 92, 240, 0.14), transparent 62%),
  radial-gradient(700px 420px at -6% 92%, rgba(37, 72, 216, 0.07), transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 0.45em; }
.hero h1 .accent { color: var(--brand); }
.hero .lede { margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero-note { font-size: 0.92rem; color: var(--subtle); margin: 0 0 30px; }
.hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; padding: 22px 0 0; border-top: 1px solid var(--line); margin: 0; list-style: none; }
.hero-facts li { margin: 0; font-size: 0.95rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.hero-facts svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.hero-facts b { color: var(--ink); font-weight: 600; display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-head); }

/* ---------- Hero 3D scene (pure CSS, no libraries) ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 520px; perspective: 1500px; }
.stage {
  position: relative; width: min(540px, 100%); aspect-ratio: 1 / 0.95; transform-style: preserve-3d;
  transform: rotateX(calc(8deg + var(--ty, 0deg))) rotateY(calc(-16deg + var(--tx, 0deg)));
  transition: transform 0.25s ease-out;
}
.dash {
  position: absolute; inset: 9% 2% 36% 8%; background: #fff; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg), 0 2px 0 #fff inset; padding: 16px 18px; transform: translateZ(0);
}
.dash-top { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.dash-top i:nth-child(2) { background: #fbbf24; } .dash-top i:nth-child(3) { background: #34d399; }
.dash-url { flex: 1; height: 22px; border-radius: 11px; background: var(--soft); margin-left: 10px; display: flex; align-items: center; padding: 0 12px; font-size: 0.68rem; color: var(--subtle); font-family: var(--font-body); }
.dash-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; }
.dash-chart { background: linear-gradient(180deg, var(--brand-50), #fff 80%); border: 1px solid var(--brand-100); border-radius: 14px; padding: 12px 12px 6px; }
.dash-chart .label { font-size: 0.68rem; font-weight: 600; color: var(--muted); font-family: var(--font-head); margin-bottom: 4px; }
.dash-chart svg { width: 100%; height: auto; overflow: visible; }
.dash-chart .line { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.2s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.dash-chart .area { opacity: 0; animation: fadein 1.2s 1.6s forwards; }
.dash-chart .pt { opacity: 0; animation: fadein 0.4s 2.5s forwards; }
.dash-list { display: flex; flex-direction: column; gap: 10px; }
.sk { display: block; border-radius: 6px; background: var(--soft); height: 8px; }
.sk.w80 { width: 80%; } .sk.w60 { width: 60%; } .sk.w40 { width: 40%; } .sk.brand { background: var(--brand-100); }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 9px 10px; display: flex; flex-direction: column; gap: 6px; }
.serp .t { height: 9px; width: 75%; border-radius: 5px; background: var(--brand); opacity: 0.85; }
.dash-foot { display: flex; gap: 10px; margin-top: 14px; }
.chip { font-size: 0.66rem; font-family: var(--font-head); font-weight: 500; padding: 5px 10px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.chip.on { background: var(--brand-50); color: var(--brand); border-color: var(--brand-100); }

.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(30, 50, 120, 0.16); padding: 12px 14px; animation: float 6s ease-in-out infinite; }
.float-a { top: 0%; right: -2%; --z: 70px; width: 44%; animation-delay: 0s; }
.float-b { bottom: 8%; left: 6%; --z: 90px; width: 44%; animation-delay: -2.2s; }
.float .row { display: flex; align-items: center; gap: 10px; }
.float .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.float .ic svg { width: 18px; height: 18px; }
.float .ttl { font-family: var(--font-head); font-weight: 600; font-size: 0.74rem; color: var(--ink); line-height: 1.2; }
.float .sub { font-size: 0.66rem; color: var(--subtle); line-height: 1.3; }
.float .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }

.bars3d { position: absolute; right: 12%; bottom: 8%; width: 120px; height: 120px; transform-style: preserve-3d; --z: 50px; transform: translateZ(50px); }
.bar { position: absolute; bottom: 0; width: 18px; height: var(--h); transform-style: preserve-3d; left: calc(var(--i) * 24px); animation: grow 1.4s calc(0.6s + var(--i) * 0.12s) cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: bottom; }
.bar i { position: absolute; display: block; }
.bar .f { inset: 0; background: linear-gradient(180deg, #5b79ff, var(--brand)); transform: translateZ(9px); border-radius: 3px; }
.bar .r { inset: 0; background: linear-gradient(180deg, var(--brand), var(--brand-600)); transform: rotateY(90deg) translateZ(9px); }
.bar .t { left: 0; top: -9px; width: 18px; height: 18px; background: #a9baff; transform: rotateX(90deg); }
.bar:nth-child(odd) .f { background: linear-gradient(180deg, #c7d2fe, #a5b4fc); }
.bar:nth-child(odd) .r { background: linear-gradient(180deg, #a5b4fc, #8190f0); }
.bar:nth-child(odd) .t { background: #e0e7ff; }

.orb { position: absolute; border-radius: 50%; }
.orb-1 { width: 74px; height: 74px; top: 2%; left: 0; --z: 40px; background: radial-gradient(circle at 32% 30%, #fff, #c7d2fe 38%, var(--brand) 100%); box-shadow: 0 22px 34px rgba(37, 72, 216, 0.3); animation: float 7s ease-in-out infinite; animation-delay: -1s; }
.orb-2 { width: 54px; height: 54px; right: -2%; top: 46%; --z: 90px; border: 9px solid var(--brand-100); background: transparent; animation: float 8s ease-in-out infinite; animation-delay: -3s; }
.cube { position: absolute; width: 34px; height: 34px; left: 2%; bottom: 2%; --z: 130px; background: linear-gradient(135deg, #c7d2fe, #8ea0ff); border-radius: 9px; transform: translateZ(130px) rotate(18deg); box-shadow: 0 16px 26px rgba(37, 72, 216, 0.25); animation: float 7.5s ease-in-out infinite; animation-delay: -4s; }

@keyframes float { 0%, 100% { transform: translateZ(var(--z, 0px)) translateY(0); } 50% { transform: translateZ(var(--z, 0px)) translateY(-11px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }

/* ---------- Who I help strip ---------- */
.help-strip { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.help-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; justify-content: center; }
.help-strip p { margin: 0; font-family: var(--font-head); font-weight: 500; font-size: 0.92rem; color: var(--muted); }
.help-strip ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; }
.help-strip li { margin: 0; font-size: 0.9rem; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 500; border: 1px solid var(--line); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 26px; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card .icon { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 23px; height: 23px; }
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.9em; }
.card .for { font-size: 0.88rem; color: var(--subtle); border-top: 1px dashed var(--line); padding-top: 12px; margin-top: auto; margin-bottom: 14px; }
.card .for b { color: var(--ink); font-weight: 600; }
.card .link-arrow { margin-top: auto; }
.card .for + .link-arrow { margin-top: 0; }
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: none; border-color: var(--line); }

.service-detail { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; padding: 44px 0; border-top: 1px solid var(--line); align-items: start; }
.service-detail:first-of-type { border-top: 0; padding-top: 0; }
.service-detail .icon svg { width: 26px; height: 26px; }
.service-detail h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); }
.service-detail .meta { display: grid; gap: 14px; margin: 18px 0 22px; }
.service-detail .meta div { font-size: 0.97rem; color: var(--muted); }
.service-detail .meta b { display: block; color: var(--ink); font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.ticks { list-style: none; padding: 0; margin: 0 0 22px; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 11px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232548d8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3.2L15 6.8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks li strong { color: var(--ink); }

/* equal-height cards inside reveal wrappers */
.grid > .reveal { display: flex; }
.grid > .reveal > * { flex: 1 1 auto; min-width: 0; }
.card-cta { background: linear-gradient(135deg, var(--brand), var(--brand-600)); border-radius: var(--r-md); padding: 34px; color: #fff; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.card-cta::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.2), transparent 65%); }
.card-cta h3 { color: #fff; font-size: 1.4rem; position: relative; z-index: 1; }
.card-cta p { color: rgba(255,255,255,.9); position: relative; z-index: 1; margin-bottom: 1.2em; }
.card-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }

/* ---------- Benefits ---------- */
.benefit { display: flex; gap: 18px; padding: 26px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.benefit .num { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--brand); background: var(--brand-50); width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.benefit h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.benefit p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; list-style: none; padding: 0; margin: 0; }
.process::before { content: ""; position: absolute; left: 6%; right: 6%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--brand-100), var(--brand), var(--brand-100)); z-index: 0; }
.step { position: relative; z-index: 1; margin: 0; }
.step .n { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); color: var(--brand); font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 0 0 7px #fff; transition: background 0.3s ease, color 0.3s ease; }
.step:hover .n { background: var(--brand); color: #fff; }
.step h3 { font-size: 1.05rem; margin-bottom: 0.35em; }
.step p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.section-alt .step .n { box-shadow: 0 0 0 7px var(--soft); }
.process-v { grid-template-columns: 1fr; }
.process-v::before { display: none; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center; }
.portrait { position: relative; max-width: 400px; margin: 0 auto; }
.portrait::before { content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 28px; background: linear-gradient(145deg, var(--brand-100), var(--brand-50)); z-index: 0; }
.portrait img { position: relative; z-index: 1; width: 100%; border-radius: 26px; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.portrait .badge { position: absolute; z-index: 2; left: -14px; bottom: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 0.85rem; }
.portrait .badge b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 0.95rem; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; }
.fact-list li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 0.95rem; color: var(--muted); }
.fact-list b { display: block; font-family: var(--font-head); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); margin-bottom: 3px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.tag-list li { margin: 0; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.9rem; color: var(--text); font-weight: 500; }

/* ---------- Areas / industries ---------- */
.pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-cloud li { margin: 0; padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; color: var(--ink); font-size: 0.95rem; }
.pill-cloud li.hl { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
details.faq[open] { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
details.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-family: var(--font-head); font-weight: 500; color: var(--ink); font-size: 1.04rem; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232548d8' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M10 5v10M5 10h10'/%3E%3C/svg%3E") center / 12px no-repeat; transition: transform 0.25s ease; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 24px 22px; color: var(--muted); }
details.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; height: 100%; transition: transform 0.25s ease, box-shadow 0.25s ease; color: inherit; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: inherit; }
.post-card .thumb { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.14rem; margin-bottom: 0.45em; color: var(--ink); }
.post-card p { color: var(--muted); font-size: 0.96rem; margin-bottom: 1em; }
.post-card .link-arrow { margin-top: auto; }
.meta-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 0.85rem; color: var(--subtle); margin-bottom: 12px; }
.cat { font-family: var(--font-head); font-weight: 500; font-size: 0.75rem; color: var(--brand); background: var(--brand-50); padding: 4px 11px; border-radius: 999px; }
.post-featured { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 0; }
.post-featured .thumb { aspect-ratio: auto; min-height: 280px; }
.post-featured .body { padding: 38px; justify-content: center; }
.post-featured h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ---------- Article ---------- */
.article-hero { padding: 40px 0 28px; background: radial-gradient(800px 380px at 92% -20%, rgba(59, 92, 240, 0.1), transparent 65%), #fff; }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 0.5em; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); margin: 6px auto 0; }
.article-cover img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.article-wrap { padding: 52px 0 72px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.prose h2 { font-size: 1.6rem; margin-top: 2.1em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.7em; }
.prose p, .prose li { color: #2f3542; }
.prose a { text-decoration: underline; text-decoration-color: var(--brand-100); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--brand); color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.summary-box { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--r-md); padding: 22px 26px; margin: 0 0 2em; }
.summary-box h2 { font-size: 0.8rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin: 0 0 10px; }
.summary-box ul { margin: 0; padding-left: 1.15em; font-size: 1rem; }
.summary-box li { margin-bottom: 6px; color: var(--ink); }
.inline-cta { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; border-radius: var(--r-md); padding: 28px; margin: 2.4em 0; }
.inline-cta h3 { color: #fff; margin-bottom: 0.3em; }
.inline-cta p { color: rgba(255, 255, 255, 0.88); margin-bottom: 1.1em; font-size: 1rem; }
.author-box { display: flex; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; margin: 2.6em auto 0; max-width: 720px; background: var(--soft); }
.author-box img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 18%; flex: none; }
.author-box b { font-family: var(--font-head); color: var(--ink); display: block; }
.author-box p { margin: 4px 0 0; font-size: 0.95rem; color: var(--muted); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.86rem; color: var(--subtle); padding: 22px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: "/"; margin: 0 9px; color: #c4c8d0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 34px 0 64px; background:
  radial-gradient(760px 380px at 95% -20%, rgba(59, 92, 240, 0.13), transparent 62%),
  radial-gradient(520px 320px at -5% 110%, rgba(37, 72, 216, 0.06), transparent 60%), #fff; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; margin-top: 22px; }
.page-hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.2rem); }
.page-hero .lede { margin-bottom: 26px; }
.glance { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-md); }
.glance h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand); margin-bottom: 16px; }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dt { font-family: var(--font-head); font-size: 0.78rem; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.05em; }
.glance dd { margin: 2px 0 0; color: var(--ink); font-weight: 500; font-size: 0.98rem; }

.callout { border: 1px solid var(--brand-100); background: var(--brand-50); border-radius: var(--r-md); padding: 26px 28px; display: flex; gap: 18px; }
.callout svg { width: 26px; height: 26px; color: var(--brand); flex: none; margin-top: 2px; }
.callout h3 { margin-bottom: 0.3em; }
.callout p:last-child { margin-bottom: 0; }
.callout p { color: var(--text); font-size: 1rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.cols-note { font-size: 0.92rem; color: var(--subtle); }

.related { display: flex; flex-wrap: wrap; gap: 12px; }
.related a { display: inline-flex; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; font-size: 0.95rem; transition: all 0.2s ease; }
.related a:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 92px; }
.cta-box { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 56px; color: #fff; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%); display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; }
.cta-box::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -120px; top: -160px; background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 66%); }
.cta-box::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: 22%; bottom: -150px; background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 66%); }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; margin-bottom: 0.35em; font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.cta-box p { color: rgba(255, 255, 255, 0.9); font-size: 1.1rem; margin: 0; max-width: 540px; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-actions .sm { font-size: 0.88rem; color: rgba(255, 255, 255, 0.82); text-align: center; margin: 4px 0 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.35rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.88rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field .err { display: none; color: #b42318; font-size: 0.85rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin-top: 14px; font-size: 0.95rem; border-radius: 12px; padding: 0; }
.form-status.ok, .form-status.bad { padding: 14px 16px; }
.form-status.ok { background: #ecfdf3; color: #05603a; border: 1px solid #abefc6; }
.form-status.bad { background: #fef3f2; color: #912018; border: 1px solid #fecdca; }
.form-small { font-size: 0.85rem; color: var(--subtle); margin: 14px 0 0; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: inherit; transition: all 0.2s ease; }
a.contact-card:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 23px; height: 23px; }
.contact-card.wa .ic { background: #e7f8ef; color: #12804a; }
.contact-card b { display: block; font-family: var(--font-head); color: var(--ink); font-weight: 600; font-size: 1rem; }
.contact-card span { color: var(--muted); font-size: 0.95rem; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--soft); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 0.96rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 44px; }
.footer-grid h2 { font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink); margin-bottom: 16px; font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--brand); }
.footer-about p { color: var(--muted); max-width: 340px; font-size: 0.94rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--subtle); font-size: 0.88rem; }
.footer-bottom a { color: var(--subtle); }

/* ---------- Mobile quick-contact bar ---------- */
.mobile-bar { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; padding: 56px 0; background: radial-gradient(700px 400px at 90% 0%, rgba(59, 92, 240, 0.12), transparent 60%), #fff; }
.notfound .code { font-family: var(--font-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--brand-100); letter-spacing: -0.04em; margin: 0 0 6px; }

/* ---------- Scroll reveal (only when JS is present) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 440px; order: 2; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr; gap: 26px; }
  .process::before { display: none; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 18px; }
  .step .n { margin: 0; grid-row: 1 / span 2; box-shadow: none; }
  .about-grid, .contact-grid, .two-col, .service-detail { grid-template-columns: 1fr; gap: 36px; }
  .portrait { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { grid-template-columns: 1fr; padding: 48px 34px; }
  .post-featured { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 1.02rem; padding-bottom: 76px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding: 36px 0 52px; }
  .hero-visual { min-height: 0; margin-top: 4px; }
  .hero-visual { padding: 4px 0 20px; }
  .stage { width: 100%; max-width: 360px; aspect-ratio: 1 / 0.98; transform: rotateX(5deg) rotateY(-9deg); }
  .dash { inset: 13% 0 38% 5%; padding: 10px 12px; border-radius: 16px; }
  .dash-top { margin-bottom: 8px; } .dash-url { display: none; }
  .dash-body { gap: 8px; } .dash-chart { padding: 8px 8px 2px; border-radius: 10px; }
  .dash-chart .label { font-size: 0.6rem; } .serp { padding: 6px 7px; gap: 4px; border-radius: 9px; }
  .dash-foot { gap: 6px; margin-top: 8px; } .dash-foot .chip:nth-child(n+3) { display: none; }
  .chip { font-size: 0.6rem; padding: 4px 8px; }
  .float { padding: 7px 10px; border-radius: 12px; }
  .float .ic { width: 26px; height: 26px; border-radius: 8px; } .float .ic svg { width: 14px; height: 14px; }
  .float .row { gap: 7px; } .float .ttl { font-size: 0.64rem; white-space: nowrap; } .float .sub, .float-b .chips { display: none; }
  .float-a { width: auto; right: 0; top: 2%; } .float-b { width: auto; left: 3%; bottom: 10%; }
  .orb-1 { width: 46px; height: 46px; top: 4%; left: 1%; } .orb-2 { width: 34px; height: 34px; border-width: 6px; right: 0; top: 50%; }
  .bars3d { right: 6%; bottom: 8%; transform: translateZ(50px) scale(0.6); transform-origin: bottom right; }
  .cube { width: 22px; height: 22px; left: 9%; bottom: 4%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .card-cta { padding: 26px; }
  .grid > .reveal[style*="span 2"] { grid-column: span 1 !important; }
  .hero-facts { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .cta-box { padding: 40px 24px; border-radius: 22px; }
  .cta-band { padding-bottom: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .post-featured .body { padding: 24px; }
  .author-box { flex-direction: column; text-align: center; }
  .callout { flex-direction: column; gap: 10px; padding: 22px; }
  .brand small { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, 0.94); border-top: 1px solid var(--line);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: 0.92rem; }
  body.nav-open .mobile-bar { display: none; }
}
@media (max-width: 380px) {
  .container { padding: 0 18px; }
  .btn { padding: 14px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .dash-chart .line { stroke-dashoffset: 0; } .dash-chart .area, .dash-chart .pt { opacity: 1; }
}
@media print {
  .site-header, .mobile-bar, .cta-band, .hero-visual { display: none !important; }
}
