:root {
  --brand: #5C67F2;
  --brand-2: #6B74FF;
  --brand-d: #4A53DC;
  --ink: #1C2340;
  --muted: #8A93A8;
  --line: #E8EBF3;
  --paper: #F5F6FB;
  --white: #fff;
  --shadow: 0 10px 30px rgba(36, 48, 110, 0.08);
  --r: 18px;
  --wrap: 1140px;
  --font: var(--font-body, "Vazirmatn", Tahoma, sans-serif);
  --display: var(--font-display, "Estedad", "Vazirmatn", Tahoma, sans-serif);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.45; margin: 0; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
}

.site-header, .site-footer { display: none !important; }
body.elementor-page #content,
.elementor-location-header,
.elementor-location-footer,
.hfe-before-header,
#masthead { margin: 0; padding: 0; background: transparent; }
#masthead,
header.ehf-header { position: sticky; top: 0; z-index: 80; background: #fff; }
#cn-header .e-con-inner,
#cn-footer .e-con-inner,
#cn-home .e-con-inner {
  max-width: none !important;
  padding: 0 !important;
}
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-html .elementor-widget-container { padding: 0 !important; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -48px; z-index: 120; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.cn-wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }

/* Header */
.cn-top {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 90;
}
.cn-top-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.cn-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display) !important;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  font-size: 1.05rem;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
}
.cn-logo-type {
  font-family: var(--display) !important;
  font-weight: 800;
  font-variation-settings: "wght" 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  line-height: 1.15;
}
.cn-logo-aka {
  font-weight: 650;
  font-variation-settings: "wght" 650;
  font-size: 0.68em;
  color: #5A6380;
}
.cn-brand img { width: 42px; height: 42px; border-radius: 12px; }
.cn-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px 18px;
  flex: 1;
}
.cn-nav a {
  color: #5A6380;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}
.cn-nav a:hover,
.cn-nav a.is-active { color: var(--brand); }
.cn-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 0; left: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.cn-top-cta { flex: 0 0 auto; }
/* Higher specificity than Hello Elementor reset `[type=button], button` (#c36). */
button.cn-burger,
.cn-burger[type="button"] {
  display: none;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 10px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: none;
}
button.cn-burger:hover,
button.cn-burger:focus,
.cn-burger[type="button"]:hover,
.cn-burger[type="button"]:focus {
  background: transparent;
  color: var(--ink);
  border: 0;
  box-shadow: none;
}
button.cn-burger span,
.cn-burger[type="button"] span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* Kill Hello reset pink (#c36) on landing/header/footer links & CTA anchors. */
.cn-top a,
.cn-home a,
.cn-foot a,
.cn-sec a,
.cn-hero a,
.cn-cta a,
.cn-news a,
.archive-grid a,
.article-layout a,
.page-hero-lite a {
  color: inherit;
}
.cn-top a:hover,
.cn-home a:hover,
.cn-foot a:hover,
.cn-sec a:hover,
.cn-hero a:hover,
.cn-cta a:hover,
.cn-news a:hover,
.archive-grid a:hover,
.article-layout a:hover {
  color: var(--brand);
}
.cn-nav a { color: #5A6380; }
.cn-nav a:hover,
.cn-nav a.is-active { color: var(--brand); }
.cn-more a { color: var(--brand); }
.cn-foot-grid > div a { color: #5B6580; }
.cn-foot-grid > div a:hover { color: var(--brand); }
.cn-post-cat { color: #fff; }
.cn-copy { color: var(--muted); }

/* Buttons */
.cn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  border: 0;
  cursor: pointer;
}
.cn-btn svg { width: 18px; height: 18px; }
a.cn-btn,
button.cn-btn {
  border: 0;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.cn-btn-primary,
a.cn-btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(92, 103, 242, 0.28);
}
.cn-btn-primary:hover,
a.cn-btn-primary:hover,
.cn-btn-primary:focus,
a.cn-btn-primary:focus {
  background: var(--brand-d);
  color: #fff;
}
.cn-btn-ghost,
a.cn-btn-ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid #D7DCF8;
}
.cn-btn-ghost:hover,
a.cn-btn-ghost:hover,
.cn-btn-ghost:focus,
a.cn-btn-ghost:focus {
  background: #F3F4FF;
  color: var(--brand);
}

/* Stores */
.cn-stores { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1B1F2A;
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px 7px 10px;
  min-height: 44px;
}
.cn-store svg { width: 22px; height: 22px; }
.cn-store span { display: grid; line-height: 1.15; }
.cn-store small { font-size: 9px; letter-spacing: .04em; opacity: .8; font-weight: 600; }
.cn-store span { font-size: 13px; font-weight: 800; font-family: var(--display); }
.cn-store-mark {
  width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center;
  background: #2E3548; font-size: 11px; font-weight: 800;
}

/* Hero */
.cn-hero { padding: 28px 0 18px; overflow: hidden; }
.cn-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.cn-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 800;
  max-width: 16ch;
}
.cn-hero h1 em { color: var(--brand); font-style: normal; }
.cn-hero p {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 42ch;
}
.cn-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.cn-hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.cn-blob {
  position: absolute;
  width: 430px; height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #C9CFFF 0%, #9BA6FF 38%, #7A86F8 58%, transparent 72%);
  filter: blur(8px);
  opacity: .85;
}
.cn-phone {
  position: relative;
  width: min(280px, 100%);
  background: #11131C;
  border-radius: 38px;
  padding: 11px;
  border: 1px solid #2A2E3C;
  box-shadow: 0 30px 60px rgba(28, 35, 80, 0.28);
  z-index: 1;
}
.cn-phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 8px;
  background: #1C1F2A;
  border-radius: 8px;
  z-index: 2;
}
.cn-phone img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top center;
  background: #F4F6FB;
}

/* Highlights */
.cn-highlights { padding: 8px 0 28px; }
.cn-highlights-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 8px;
}
.cn-hi {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 18px;
}
.cn-hi + .cn-hi { border-inline-start: 1px solid var(--line); }
.cn-hi i {
  width: 46px; height: 46px; flex: 0 0 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--brand);
  background: #EEF0FF;
}
.cn-hi svg { width: 22px; height: 22px; }
.cn-hi strong { display: block; font-family: var(--display); font-size: 0.98rem; }
.cn-hi span { color: var(--muted); font-size: 0.8rem; }

/* Stats */
.cn-stats { padding: 8px 0 36px; }
.cn-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 8px;
}
.cn-stat { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); }
.cn-stat i { color: var(--brand); display: grid; }
.cn-stat svg { width: 22px; height: 22px; }
.cn-stat b { font-family: var(--display); font-size: 1.15rem; }
.cn-stat span { color: var(--muted); font-size: 0.88rem; }

/* Sections */
.cn-sec { padding: 56px 0; }
.cn-sec-soft { background: var(--paper); }
.cn-center { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 28px; }
.cn-more { text-align: center; margin: 22px 0 0; }
.cn-more a { color: var(--brand); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.cn-more svg { width: 16px; height: 16px; }

/* Services */
.cn-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cn-svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 148px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 22px 12px 18px;
  box-shadow: var(--shadow);
  text-align: center;
}
.cn-svc:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(36, 48, 110, 0.12); }
.cn-svc i {
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center;
}
.cn-svc svg { width: 28px; height: 28px; }
.cn-svc span { font-family: var(--display); font-weight: 700; font-size: 0.98rem; }
.tone-blue { background: #E8EEFF; color: #3B6BFF; }
.tone-indigo { background: #ECE8FF; color: #5C67F2; }
.tone-orange { background: #FFE9D6; color: #F08A2A; }
.tone-purple { background: #F1E3FF; color: #9B4DFF; }
.tone-teal { background: #DDF6F2; color: #1AA391; }
.tone-green { background: #E3F7E4; color: #2E9B4A; }

/* Articles */
.cn-posts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cn-post {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.cn-post-media { position: relative; display: block; }
.cn-post-media img { width: 100%; height: 168px; object-fit: cover; }
.cn-chip {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
}
.cn-post-body { padding: 14px 14px 16px; display: grid; gap: 8px; flex: 1; }
.cn-post-body h3 { font-size: 0.98rem; }
.cn-post-body p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.75; }
.cn-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--muted);
  font-size: 0.78rem;
}
.cn-post-meta a { color: var(--brand); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.cn-post-meta svg { width: 14px; height: 14px; }

/* CTA */
.cn-cta {
  background: linear-gradient(90deg, var(--brand-2), var(--brand) 42%, var(--brand-d));
  border-radius: 28px;
  padding: 28px 28px 0;
  display: grid;
  grid-template-columns: 190px 1fr 280px;
  gap: 18px;
  align-items: end;
  color: #fff;
  overflow: hidden;
  min-height: 280px;
}
.cn-qr {
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  margin-bottom: 28px;
}
.cn-qr img { width: 140px; height: 140px; margin: 0 auto 8px; }
.cn-qr span { font-size: 0.82rem; font-weight: 700; display: block; }
.cn-cta-copy { padding-bottom: 36px; }
.cn-cta-copy h2 { font-size: 1.55rem; margin-bottom: 8px; }
.cn-cta-copy p { margin: 0 0 16px; color: #E7EAFF; }
.cn-cta .cn-store { background: #15182A; }
.cn-cta-phones { position: relative; height: 250px; }
.cn-phone.sm { width: 150px; border-radius: 26px; padding: 8px; position: absolute; }
.cn-phone.sm img { border-radius: 20px; aspect-ratio: 9/17; }
.cn-phone.back { left: 8px; bottom: -18px; transform: rotate(-9deg); }
.cn-phone.front { right: 18px; bottom: -8px; transform: rotate(8deg); }

/* Newsletter */
.cn-news-wrap { padding-top: 8px; padding-bottom: 72px; }
.cn-news {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cn-news > i {
  width: 44px; height: 44px; flex: 0 0 44px;
  border-radius: 12px; background: #EEF0FF; color: var(--brand);
  display: grid; place-items: center;
}
.cn-news svg { width: 22px; height: 22px; }
.cn-news p { margin: 0; flex: 1; font-weight: 600; }
.cn-news-fields { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.cn-news-fields input {
  border: 0; outline: 0; min-width: 220px; padding: 8px 14px; background: transparent;
}
.cn-news-fields .cn-btn { min-height: 42px; padding: 0 18px; }

/* Footer */
.cn-foot { background: #fff; border-top: 1px solid var(--line); padding: 48px 0 18px; }
.cn-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 28px;
}
.cn-foot h2 { font-size: 1rem; margin: 8px 0 12px; }
.cn-foot p { color: var(--muted); margin: 12px 0; }
.cn-foot-grid > div a { display: block; color: #5B6580; margin: 6px 0; font-size: 0.92rem; }
.cn-foot-grid > div a:hover { color: var(--brand); }
.cn-social { display: flex; gap: 8px; }
.cn-social a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--brand);
}
.cn-social svg { width: 18px; height: 18px; }
.cn-contact-line { display: flex; gap: 8px; align-items: flex-start; color: #5B6580; margin: 8px 0; }
.cn-contact-line svg { width: 18px; height: 18px; color: var(--brand); flex: 0 0 18px; margin-top: 4px; }
.cn-copy {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Pages / magazine articles */
.container { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.page-hero-lite { background: linear-gradient(180deg, #EEF1FF, var(--paper)); border-bottom: 1px solid var(--line); padding: 28px 0 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.86rem; margin-bottom: 12px; }
.crumbs svg { width: 14px; height: 14px; }
.article-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; max-width: 24ch; color: var(--ink); }
.archive-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 28px 0 64px; }
.archive-grid .cn-post { height: 100%; }
.search-box { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; margin-top: 16px; max-width: 520px; }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; padding: 8px 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-family: var(--display); font-weight: 700; border: 0; }
.btn-navy { background: var(--brand); color: #fff; }
.btn-sm { min-height: 40px; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 36px; padding: 28px 0 64px; }
.article-kicker { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; }
.article-share { display: flex; gap: 8px; margin-inline-start: auto; }
.share-btn { min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--brand); font-size: 0.72rem; font-weight: 800; }
.share-btn.copied { background: var(--brand); color: #fff; }
.article-lead { font-size: 1.08rem; color: #3A4663; margin: 0 0 20px; max-width: 42em; }
.featured-img { border-radius: 16px; overflow: hidden; margin: 0 0 24px; }
.article-body { font-size: 1.05rem; line-height: 2.05; color: #243044; max-width: 42em; }
.article-body h2, .article-body h3 { margin: 2rem 0 0.7rem; }
.article-body p { margin: 0 0 1rem; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.tags a { background: var(--paper); border-radius: 999px; padding: 6px 12px; font-size: 0.8rem; color: var(--brand); font-weight: 600; }
.related { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { margin-bottom: 14px; font-size: 1.15rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.related-card img { height: 108px; width: 100%; object-fit: cover; }
.related-card span { display: block; padding: 10px 12px 14px; font-size: 0.88rem; font-weight: 700; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
.side-card-title { font-size: 0.95rem; margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.side-list em { font-style: normal; color: var(--muted); font-size: 0.78rem; }
.sidebar-sticky { position: sticky; top: 96px; }
.empty { padding: 28px 0; text-align: center; color: var(--muted); }
.comments { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.wpcf7-form label { display: grid; gap: 6px; margin-bottom: 14px; font-weight: 600; }
.wpcf7-form input, .wpcf7-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.wpcf7-submit { background: var(--brand); color: #fff; border: 0; border-radius: 999px; min-height: 44px; padding: 0 20px; font-weight: 700; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .cn-posts, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .cn-cta { grid-template-columns: 170px 1fr; }
  .cn-cta-phones { display: none; }
  .cn-nav a { font-size: 0.82rem; }
}
@media (max-width: 980px) {
  .cn-hero-grid, .cn-highlights-bar, .cn-stats-row, .cn-foot-grid, .article-layout, .related-grid { grid-template-columns: 1fr; }
  .cn-highlights-bar { gap: 8px; }
  .cn-hi + .cn-hi { border: 0; }
  .cn-svc-grid { grid-template-columns: 1fr 1fr; }
  .cn-nav { display: none; }
  .cn-nav.is-open {
    display: grid;
    position: absolute;
    inset-inline: 0;
    top: 76px;
    background: #fff;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line);
    z-index: 70;
  }
  .cn-top-cta { min-height: 40px; padding: 0 12px; font-size: 0.8rem; margin-inline-start: auto; }
  .cn-top-cta svg { display: none; }
  button.cn-burger,
  .cn-burger[type="button"] { display: block; }
  .cn-top { position: sticky; top: 0; z-index: 80; }
  .cn-hero-visual { min-height: 420px; }
  .cn-phone { width: 220px; }
  .cn-blob { width: 320px; height: 320px; }
  .cn-news, .cn-news-fields { flex-wrap: wrap; }
  .cn-news-fields { width: 100%; }
  .cn-news-fields input { min-width: 0; flex: 1; }
  .sidebar-sticky { position: static; }
}
@media (max-width: 640px) {
  .cn-posts, .archive-grid, .cn-svc-grid { grid-template-columns: 1fr; }
  .cn-cta { grid-template-columns: 1fr; padding: 22px; }
  .cn-qr { margin: 0 auto 12px; width: min(220px, 100%); }
  .cn-stats-row { grid-template-columns: 1fr 1fr; gap: 18px; }
}
