:root {
  --cb-main-color: #a4a4a4;
  --cb-secondary-color: #bce5ff; /*#26658c;*/
}

body.page {
  font-family: "Vazirmatn";
  direction: rtl;
  text-align: right;
}
.current-menu-item {
  color: var(--cb-secondary-color);
}
.cipher-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  backdrop-filter: blur(10px);
  background: rgb(0 0 0 / 53%);
  position: fixed;
  z-index: 999999;
  color: #b4b4b4;
  box-sizing: border-box;
  gap: 30px;
  left: 50%;
  transform: translate(-50%, 25%);
  top: 0;
  border-radius: 8px;
  mix-blend-mode: luminosity;
  font-size: 0.9rem;
  width: max-content;
}
.cipher-menu .logo .cipher-brand {
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  font-family: sans-serif;
  font-weight: 700;
  line-height: 1.1;
}
.cipher-menu .logo .cipher-brand span {
  color: var(--cb-secondary-color);
}

.logo {
  max-width: 150px;
}

.menu-items {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.menu-items li {
  margin: 0 15px;
}

.menu-items a {
  text-decoration: none;
  color: inherit;
}

.cipher-menu.mobile,
.cb-menu-contents {
  display: none;
}

/* General footer styling */
.cipher-footer {
  background-color: #09090931; /* Dark charcoal background */
  color: #ececec; /* Light gray text for readability */
  padding: 1.5rem 1rem;
  border-top: 1px solid #333; /* Subtle top border */
}

/* Footer contents container */
.footer-contents {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Individual footer content sections */
.cipher-content-footer {
  flex: 1;
  min-width: 200px;
  padding: 1rem;
}

/* Footer logo styling */
.cipher-footer-logo-cont h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff; /* White for emphasis */
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

/* Logo description styling */
.cipher-logo-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #a0a0a0; /* Muted gray for secondary text */
  max-width: 300px;
}

/* Footer headers */
.cipher-header-footer {
  /* font-size: 1.1rem; */
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
}

/* Footer menu items */
.footer-items.ts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-items.ts li {
  margin-bottom: 0.75rem;
}

.footer-items.ts li a {
  color: #b0b0b0; /* Light gray for links */
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-items.ts li a:hover {
  color: #3b82f6; /* Bright blue for hover */
  transform: translateX(5px); /* Subtle slide effect */
}

/* Copyright section */
.cipher-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #333; /* Separator line */
  margin-top: 2rem;
}

.copyright {
  font-size: 0.85rem;
  color: #a0a0a0;
}

.cipher-process-section,
.cipher-metrics-section,
.cipher-cta-section {
  width: 100%;
  box-sizing: border-box;
  background: #020306;
  color: #f2f6fb;
  overflow: hidden;
}

.cipher-process-inner,
.cipher-metrics-inner,
.cipher-cta-inner {
  width: 100%;
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.cipher-process-section {
  padding: 96px 24px;
  background:
    radial-gradient(circle at 82% 0%, rgba(50, 132, 210, 0.14), transparent 34%),
    linear-gradient(180deg, #030406 0%, #050608 100%);
}

.cipher-process-header {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.cipher-process-heading,
.cipher-metrics-heading,
.cipher-cta-heading {
  margin: 0;
  color: #f6f8fb;
  font-size: clamp(1.65rem, 2.6vw, 3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}

.cipher-process-description,
.cipher-cta-description {
  margin: 0;
  color: #9faab8;
  font-size: 1rem;
  font-weight: 400;
  line-height: 2;
}

.cipher-process-steps,
.cipher-metrics-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.cipher-process-card,
.cipher-metric-card {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(160, 205, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border-radius: 8px;
  padding: 28px;
  overflow: hidden;
}

.cipher-process-card::before,
.cipher-metric-card::before,
.cipher-cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-top: 1px solid rgba(190, 229, 255, 0.22);
}

.cipher-process-number {
  display: inline-block;
  margin-bottom: 44px;
  color: #9bd5ff;
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1;
}

.cipher-process-card h3 {
  margin: 0 0 14px;
  color: #eef4fb;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.65;
}

.cipher-process-card p,
.cipher-metric-text {
  margin: 0;
  color: #9ca7b5;
  font-size: 0.94rem;
  line-height: 1.9;
}

.cipher-process-card a {
  display: inline-flex;
  align-items: center;
  margin-top: 22px;
  color: #bce5ff;
  font-size: 0.88rem;
  line-height: 1.6;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.cipher-process-card a:hover,
.cipher-process-card a:focus {
  color: #ffffff;
  transform: translateX(-4px);
}

.cipher-metrics-section {
  padding: 56px 24px;
  background: linear-gradient(180deg, #050608 0%, #030405 100%);
}

.cipher-metrics-heading {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(1.45rem, 2.2vw, 2.35rem);
}

.cipher-metrics-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cipher-metric-card {
  min-height: 190px;
}

.cipher-metric-value {
  display: block;
  margin-bottom: 12px;
  color: #bce5ff;
  font-family: Arial, sans-serif;
  font-size: clamp(2.1rem, 4.3vw, 4.8rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.cipher-metric-label {
  display: block;
  margin-bottom: 14px;
  color: #f2f6fb;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.cipher-cta-section {
  padding: 72px 24px 88px;
  background:
    radial-gradient(circle at 50% 100%, rgba(105, 180, 255, 0.256), transparent 42%),
    #00000000;
}

.cipher-cta-inner {
  max-width: 1080px;
}

.cipher-cta-box {
  position: relative;
  box-sizing: border-box;
  padding: 56px 48px;
  border: 1px solid rgba(188, 229, 255, 0.17);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(188, 229, 255, 0.085), transparent 38%),
    rgba(255, 255, 255, 0.025);
  text-align: center;
  overflow: hidden;
}

.cipher-cta-heading {
  max-width: 880px;
  margin: 0 auto 18px;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
}

.cipher-cta-description {
  max-width: 680px;
  margin: 0 auto;
}

.cipher-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.cipher-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(188, 229, 255, 0.42);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.cipher-cta-primary {
  background: #bce5ff;
  color: #071019;
}

.cipher-cta-secondary {
  background: transparent;
  color: #d9ecff;
}

.cipher-cta-button:hover,
.cipher-cta-button:focus {
  border-color: rgba(255, 255, 255, 0.72);
}

.cipher-cta-note {
  display: block;
  margin-top: 18px;
  color: #8c97a6;
  font-size: 0.86rem;
  line-height: 1.8;
}

@media (prefers-reduced-motion: reduce) {
  .cipher-process-card a,
  .cipher-cta-button {
    transition: none;
  }
}

@media (min-width: 1200px) and (max-width: 1366px) {
  .cipher-menu {
    padding: 10px 18px;
    gap: 20px;
    font-size: 0.84rem;
  }

  .cipher-menu .logo .cipher-brand {
    font-size: 1.08rem;
  }

  .logo {
    max-width: 128px;
  }

  .menu-items {
    gap: 6px;
  }

  .menu-items li {
    margin: 0 10px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .cipher-menu {
    padding: 9px 14px;
    gap: 14px;
    font-size: 0.76rem;
  }

  .cipher-menu .logo .cipher-brand {
    font-size: 0.98rem;
  }

  .logo {
    max-width: 108px;
  }

  .menu-items {
    gap: 2px;
  }

  .menu-items li {
    margin: 0 7px;
  }
}

@media (min-width: 769px) and (max-width: 991px) {
  .cipher-menu:not(.mobile) {
    display: none;
  }

  .cipher-menu.mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 74%;
    font-size: 14px;
    padding: 6px 12px;
    top: 6px;
    border-radius: 18px;
  }

  .cb-menu-btn.no-act {
    width: 0;
    height: 0;
    opacity: 0;
    scale: 0;
  }

  .cipher-menu .logo .cipher-brand {
    font-size: 1.2em;
    font-family: Tahoma;
  }

  .ham-menu {
    display: flex;
  }

  .cipher-menu.cb-open {
    width: 82%;
    box-shadow: 0px 0px 40px 0px rgb(87 171 237 / 20%) inset;
  }

  .cipher-menu.cb-open .ham-menu {
    display: flex;
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
  }

  .cipher-menu.cb-open .logo {
    visibility: hidden;
    opacity: 0;
  }

  .cb-menu-contents {
    visibility: hidden;
    position: fixed;
    transform: translateY(-20px);
    opacity: 0;
    top: 56px;
    left: 9%;
    z-index: 999;
    width: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    color: #79bdff;
    background: rgb(0 0 0 / 53%);
    box-shadow: 0px 0px 40px 0px rgb(87 171 237 / 20%) inset;
    mix-blend-mode: luminosity;
  }

  .cb-open .cb-menu-contents {
    visibility: visible;
    opacity: 1;
    transform: translateY(5px);
  }

  .menu-items {
    gap: 0;
    width: 100%;
    flex-direction: column-reverse;
  }

  .menu-items li {
    margin: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .menu-items a {
    color: #75acc6;
  }

  .menu-items li:not(:first-child) {
    border-bottom: 1px solid #0471e429;
  }
}

@media (max-width: 768px) {
  .cipher-menu:not(.mobile) {
    display: none;
  }

  .cipher-menu.mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 70%;
    font-size: 14px;
    padding: 5px 10px;
    top: 5px;
    border-radius: 18px;
  }

  .cb-menu-btn.no-act {
    width: 0;
    height: 0;
    opacity: 0;
    scale: 0;
  }

  .cipher-menu .logo .cipher-brand {
    font-size: 1.35em;
    font-family: Tahoma;
  }

  .ham-menu {
    display: flex;
  }

  .cipher-menu.cb-open {
    width: 90%;
    box-shadow: 0px 0px 40px 0px rgb(87 171 237 / 20%) inset;
  }

  .cipher-menu.cb-open .ham-menu {
    display: flex;
    position: absolute !important;
    left: 50%;
    transform: translateX(-50%);
  }

  .cipher-menu.cb-open .logo {
    visibility: hidden;
    opacity: 0;
  }

  .cb-menu-contents {
    visibility: hidden;
    position: fixed;
    transform: translateY(-20px);
    opacity: 0;
    top: 50px;
    left: 5%;
    z-index: 999;
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    color: #79bdff;
    background: rgb(0 0 0 / 53%);
    box-shadow: 0px 0px 40px 0px rgb(87 171 237 / 20%) inset;
    mix-blend-mode: luminosity;
  }
  .cb-open .cb-menu-contents {
    visibility: visible;
    opacity: 1;
    transform: translateY(5px);
  }

  .menu-items {
    gap: 0;
    width: 100%;
    flex-direction: column-reverse;
  }
  .menu-items li {
    margin: 0 15px;
    width: 100%;
    text-align: center;
  }

  .menu-items li {
    margin: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .menu-items a {
    color: #75acc6;
  }
  .menu-items li:not(:first-child) {
    border-bottom: 1px solid #0471e429;
  }
  .cipher-footer {
    padding: 0.75rem 0.5rem;
  }
  .cipher-logo-description {
    max-width: none;
  }
  .footer-contents {
    flex-direction: column;
    gap: 10px;
  }
  .cipher-copyright {
    padding-top: 1rem;
    margin-top: 1rem;
  }
  .cipher-process-section {
    padding: 72px 18px;
  }
  .cipher-process-header {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }
  .cipher-process-heading,
  .cipher-metrics-heading,
  .cipher-cta-heading {
    font-size: 1.75rem;
  }
  .cipher-process-steps,
  .cipher-metrics-list {
    grid-template-columns: 1fr;
  }
  .cipher-process-card,
  .cipher-metric-card {
    padding: 24px;
  }
  .cipher-process-number {
    margin-bottom: 28px;
  }
  .cipher-metrics-section {
    padding: 48px 18px;
  }
  .cipher-cta-section {
    padding: 52px 18px 68px;
  }
  .cipher-cta-box {
    padding: 34px 22px;
  }
  .cipher-cta-actions {
    flex-direction: column;
  }
  .cipher-cta-button {
    width: 100%;
  }
}
