/* Mahd landing — new sections (2026) */

/* Stats band */
.mahd-stats-band {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2rem);
  margin: 0;
  overflow: hidden;
}

.mahd-stats-band__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(45, 212, 191, 0.14), transparent 65%),
    radial-gradient(ellipse 40% 50% at 15% 60%, rgba(56, 189, 248, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 50% at 85% 40%, rgba(129, 140, 248, 0.08), transparent 55%);
}

.mahd-landing[data-theme="light"] .mahd-stats-band__glow {
  background:
    radial-gradient(ellipse 70% 80% at 50% 50%, rgba(45, 212, 191, 0.12), transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 70%, rgba(56, 189, 248, 0.08), transparent 55%);
}

.mahd-stats-band__wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.mahd-stats-band__panel {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem) clamp(1rem, 3vw, 2rem);
  border-radius: var(--mahd-radius-lg);
  background: rgba(13, 21, 38, 0.55);
  border: 1px solid var(--mahd-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    var(--mahd-shadow),
    0 0 0 1px rgba(45, 212, 191, 0.08) inset;
}

.mahd-stats-band__panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.55),
    rgba(56, 189, 248, 0.35) 45%,
    rgba(129, 140, 248, 0.25) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.mahd-landing[data-theme="light"] .mahd-stats-band__panel {
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(45, 212, 191, 0.12) inset;
}

.mahd-stats-band__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
}

@media (min-width: 900px) {
  .mahd-stats-band__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}

.mahd-stats-band__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
}

@media (min-width: 900px) {
  .mahd-stats-band__item:not(:first-child) {
    border-inline-start: 1px solid var(--mahd-border);
  }
}

.mahd-stats-band__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  background: var(--mahd-surface-strong);
  border: 1px solid var(--mahd-border);
  color: var(--mahd-accent);
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mahd-stats-band__item:hover .mahd-stats-band__icon {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(45, 212, 191, 0.2);
}

.mahd-landing[data-theme="light"] .mahd-stats-band__icon {
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.25);
  color: #0d9488;
}

.mahd-stats-band__value {
  display: block;
  font-family: var(--mahd-font);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--mahd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mahd-stats-band__value--static {
  background: var(--mahd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.mahd-landing[data-theme="light"] .mahd-stats-band__value {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 55%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.mahd-stats-band__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mahd-muted);
  line-height: 1.45;
  max-width: 12rem;
}

.mahd-landing[data-theme="light"] .mahd-stats-band__label {
  color: var(--mahd-muted);
}

@media (max-width: 479px) {
  .mahd-stats-band__item:nth-child(odd) {
    padding-inline-end: 0.35rem;
  }

  .mahd-stats-band__item:nth-child(even) {
    padding-inline-start: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mahd-stats-band__item:hover .mahd-stats-band__icon {
    transform: none;
  }
}

/* Features marquee */
.mahd-features-marquee {
  position: relative;
  margin: 0 calc(-1 * clamp(1rem, 4vw, 2rem));
  padding: 0.5rem 0 1rem;
}

.mahd-features-marquee__viewport {
  overflow: hidden;
  width: 100%;
  min-height: 12rem;
  direction: ltr;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.mahd-features-marquee__track {
  display: flex;
  width: max-content;
  direction: ltr;
  align-items: stretch;
  animation: mahd-features-marquee-ltr 72s linear infinite;
  will-change: transform;
}

.mahd-features-marquee[data-scroll-dir="rtl"] .mahd-features-marquee__track {
  animation-name: mahd-features-marquee-rtl;
}

.mahd-features-marquee:hover .mahd-features-marquee__track {
  animation-play-state: paused;
}

.mahd-features-marquee__group {
  display: flex;
  flex-shrink: 0;
  gap: 1.25rem;
  padding-inline: 0.65rem;
}

.mahd-features-marquee .feature-card {
  flex: 0 0 auto;
  width: min(300px, 82vw);
  min-width: 260px;
  max-width: 320px;
  min-height: 11rem;
}

.mahd-features-marquee .feature-icon .bi {
  font-size: 1.2rem;
}

.feature-card--other .feature-other-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
}

.feature-card--other .feature-other-list li {
  position: relative;
  padding-inline-start: 1.1rem;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  color: var(--mahd-muted, var(--text-secondary));
  line-height: 1.5;
}

.feature-card--other .feature-other-list li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mahd-accent, var(--primary-color));
}

.mahd-features-marquee__fade {
  display: none;
}

@keyframes mahd-features-marquee-ltr {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes mahd-features-marquee-rtl {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mahd-features-marquee__track {
    animation: none !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    padding-bottom: 0.75rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .mahd-features-marquee__viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .mahd-features-marquee .feature-card {
    scroll-snap-align: start;
  }
}

.mahd-section--divider {
  border-top: 1px solid var(--mahd-border);
}

/* How it works */
.mahd-how {
  background: linear-gradient(180deg, rgba(13, 21, 38, 0.5), transparent);
}

.mahd-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .mahd-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .mahd-timeline {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mahd-timeline__step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--mahd-surface);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius);
  transition: transform 0.2s, border-color 0.2s;
}

.mahd-timeline__step:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.45);
}

.mahd-timeline__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--mahd-gradient);
  color: #041016;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mahd-timeline__step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mahd-timeline__step p {
  margin: 0;
  color: var(--mahd-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Partners */
.mahd-partners {
  text-align: center;
}

.mahd-partners .mahd-section__desc {
  margin-left: auto;
  margin-right: auto;
}

.mahd-partners__strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.mahd-partner-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
  padding: 1rem 1.25rem;
  background: var(--mahd-bg-elevated);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--mahd-muted);
  transition: transform 0.2s, border-color 0.2s;
}

.mahd-partner-badge i {
  font-size: 1.5rem;
  color: var(--mahd-accent);
}

.mahd-partner-badge:hover {
  transform: translateY(-2px);
  border-color: var(--mahd-accent);
}

/* News */
.mahd-news__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.mahd-news-card {
  padding: 1.5rem;
  background: var(--mahd-surface);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius);
  transition: transform 0.2s;
}

.mahd-news-card:hover {
  transform: translateY(-3px);
}

.mahd-news-card time {
  font-size: 0.8rem;
  color: var(--mahd-accent);
  font-weight: 700;
}

.mahd-news-card h3 {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.mahd-news-card p {
  color: var(--mahd-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.mahd-news-card__link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--mahd-accent);
  font-weight: 700;
  text-decoration: none;
}

.mahd-news-card__link:hover {
  text-decoration: underline;
}

/* Contact + Enterprise hub (unified) */
.mahd-contact-hub__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
}

.mahd-contact-hub__shell {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--mahd-radius-lg);
  border: 1px solid var(--mahd-border);
  background: linear-gradient(
    145deg,
    rgba(45, 212, 191, 0.08) 0%,
    rgba(15, 23, 42, 0.55) 45%,
    rgba(129, 140, 248, 0.06) 100%
  );
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.mahd-landing[data-theme="light"] .mahd-contact-hub__shell {
  background: linear-gradient(
    145deg,
    rgba(45, 212, 191, 0.12) 0%,
    rgba(255, 255, 255, 0.92) 50%,
    rgba(56, 189, 248, 0.08) 100%
  );
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

@media (min-width: 900px) {
  .mahd-contact-hub__shell {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }
}

.mahd-contact-hub__aside {
  padding: 0.25rem 0;
}

.mahd-contact-hub__aside-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  color: var(--mahd-accent);
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.35);
  margin-bottom: 1rem;
}

.mahd-contact-hub__aside-title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.mahd-contact-hub__aside-desc {
  margin: 0 0 1.25rem;
  color: var(--mahd-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.mahd-contact-hub__features {
  margin-bottom: 1.5rem;
}

.mahd-contact-hub__direct {
  padding: 1rem 1.1rem;
  border-radius: var(--mahd-radius);
  background: var(--mahd-bg-elevated);
  border: 1px solid var(--mahd-border);
}

.mahd-contact-hub__direct-label {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mahd-accent);
}

.mahd-contact-hub__direct-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0;
  color: var(--mahd-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.mahd-contact-hub__direct-item:hover {
  color: var(--mahd-accent);
}

.mahd-contact-hub__direct-item i {
  color: var(--mahd-accent);
}

.mahd-contact-hub__hours {
  margin: 0.75rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--mahd-border);
  font-size: 0.88rem;
  color: var(--mahd-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mahd-contact-hub__form-wrap {
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--mahd-radius);
  background: var(--mahd-bg-elevated);
  border: 1px solid var(--mahd-border);
}

.mahd-contact-hub__form-title {
  margin: 0 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.mahd-contact-hub__form-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--mahd-muted);
  text-align: center;
}

.mahd-btn--block {
  width: 100%;
  justify-content: center;
}

.mahd-btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.88;
  padding-inline-end: 2.5rem;
}

.mahd-btn.is-loading::after {
  content: '';
  position: absolute;
  inset-inline-end: 1rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  margin-top: -0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mahd-spin 0.7s linear infinite;
}

@keyframes mahd-spin {
  to { transform: rotate(360deg); }
}

.mahd-contact-form__row--half {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .mahd-contact-form__row--half {
    grid-template-columns: 1fr 1fr;
  }
}

.mahd-contact__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.mahd-contact-card {
  text-align: center;
  padding: 1.25rem;
  background: var(--mahd-bg-elevated);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius);
}

.mahd-contact-card i {
  font-size: 1.75rem;
  color: var(--mahd-accent);
  margin-bottom: 0.5rem;
}

.mahd-contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.mahd-contact-card p {
  margin: 0;
  color: var(--mahd-muted);
  font-size: 0.9rem;
}

.mahd-contact-form {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mahd-contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.mahd-contact-form input,
.mahd-contact-form textarea,
.mahd-contact-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--mahd-border);
  background: var(--mahd-bg-elevated);
  color: var(--mahd-text);
  font-family: inherit;
}

.mahd-contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.25rem;
}

html[dir="ltr"] .mahd-contact-form select {
  background-position: right 1rem center;
  padding-left: 1rem;
  padding-right: 2.25rem;
}

.mahd-contact-form__field label {
  display: block;
}

.mahd-contact-form__field > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mahd-field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--mahd-muted);
}

.mahd-field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #f87171;
}

.mahd-field-error[hidden] {
  display: none;
}

.mahd-contact-form .mahd-input-invalid {
  border-color: rgba(239, 68, 68, 0.65);
  outline-color: rgba(239, 68, 68, 0.25);
}

.mahd-contact-form input:focus,
.mahd-contact-form textarea:focus,
.mahd-contact-form select:focus {
  outline: 2px solid rgba(45, 212, 191, 0.5);
  border-color: var(--mahd-accent);
}

.mahd-contact-form .mahd-input-invalid:focus {
  outline-color: rgba(239, 68, 68, 0.35);
  border-color: rgba(239, 68, 68, 0.75);
}

.mahd-contact-form .mahd-input-ltr {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] .mahd-contact-form .mahd-input-ltr {
  text-align: left;
}

.mahd-contact-form label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mahd-contact-form__count {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--mahd-muted);
}

.mahd-contact-form__count.is-limit {
  color: #f59e0b;
}

.mahd-contact-form__error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.mahd-btn--ghost {
  background: transparent;
  border: 1px solid var(--mahd-border);
  color: var(--mahd-text);
}

.mahd-btn--ghost:hover:not(:disabled) {
  border-color: var(--mahd-accent);
  color: var(--mahd-accent);
}

/* Contact OTP modal */
.mahd-otp-modal__panel {
  max-width: 420px;
  text-align: center;
}

.mahd-otp-modal__shield {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 1.6rem;
  color: var(--mahd-accent);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(56, 189, 248, 0.15));
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.mahd-otp-modal__masked {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--mahd-accent);
  font-weight: 600;
}

.mahd-otp-modal__inputs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  direction: ltr;
}

.mahd-otp-modal__digit {
  width: 2.75rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid var(--mahd-border);
  background: var(--mahd-bg-elevated);
  color: var(--mahd-text);
}

.mahd-otp-modal__digit:focus {
  outline: 2px solid rgba(45, 212, 191, 0.55);
  border-color: var(--mahd-accent);
}

.mahd-otp-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mahd-otp-modal__success {
  margin: 1rem 0 0;
  padding: 0.85rem;
  border-radius: 10px;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}

/* Enterprise */
.mahd-enterprise__panel {
  display: grid;
  gap: 2rem;
  padding: 2.5rem clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(129, 140, 248, 0.1));
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius-lg);
}

.mahd-enterprise__panel--solo {
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .mahd-enterprise__panel:not(.mahd-enterprise__panel--solo) {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.mahd-enterprise__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.mahd-enterprise__list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--mahd-muted);
}

.mahd-enterprise__list i {
  color: var(--mahd-accent);
}

/* Enterprise demo contact modal */
.mahd-demo-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  pointer-events: none;
}

.mahd-demo-modal.is-open {
  pointer-events: auto;
}

.mahd-demo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.mahd-demo-modal.is-open .mahd-demo-modal__backdrop {
  opacity: 1;
}

.mahd-demo-modal__panel {
  position: relative;
  width: min(100%, 420px);
  padding: 2rem 1.75rem 1.5rem;
  background: linear-gradient(160deg, rgba(13, 21, 38, 0.96), rgba(6, 11, 20, 0.98));
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius-lg);
  box-shadow: var(--mahd-shadow), 0 0 0 1px rgba(45, 212, 191, 0.08);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.mahd-demo-modal.is-open .mahd-demo-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mahd-landing[data-theme="light"] .mahd-demo-modal__panel {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.98));
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.mahd-demo-modal__close {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--mahd-surface);
  color: var(--mahd-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}

.mahd-demo-modal__close:hover {
  color: var(--mahd-text);
  background: var(--mahd-surface-strong);
}

.mahd-demo-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.2), rgba(56, 189, 248, 0.15));
  color: var(--mahd-accent);
  font-size: 1.5rem;
}

.mahd-demo-modal__title {
  margin: 0 0 0.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--mahd-text);
}

.mahd-demo-modal__desc {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--mahd-muted);
  line-height: 1.6;
}

.mahd-demo-modal__contacts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mahd-demo-modal__contact {
  padding: 0.85rem 1rem;
  border-radius: var(--mahd-radius);
  background: var(--mahd-surface);
  border: 1px solid var(--mahd-border);
}

.mahd-demo-modal__contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mahd-accent);
  margin-bottom: 0.35rem;
}

.mahd-demo-modal__contact-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mahd-demo-modal__value {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  color: var(--mahd-text);
  text-decoration: none;
  word-break: break-all;
}

.mahd-demo-modal__value:hover {
  color: var(--mahd-accent);
}

.mahd-demo-modal__copy {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--mahd-border);
  border-radius: 999px;
  background: transparent;
  color: var(--mahd-muted);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.mahd-demo-modal__copy:hover {
  color: var(--mahd-accent);
  border-color: rgba(45, 212, 191, 0.45);
  background: rgba(45, 212, 191, 0.08);
}

.mahd-demo-modal__toast {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--mahd-accent);
}

body.mahd-demo-modal-open {
  overflow: hidden;
}

/* Footer */
.mahd-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--mahd-border);
  background: linear-gradient(180deg, transparent, rgba(45, 212, 191, 0.04));
  font-family: var(--mahd-font, 'Cairo', 'Segoe UI', system-ui, sans-serif);
}

.mahd-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem clamp(1.25rem, 4vw, 3rem) 1.5rem;
}

.mahd-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: start;
}

@media (min-width: 640px) {
  .mahd-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .mahd-footer__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.mahd-footer__col--brand {
  max-width: 320px;
}

.mahd-footer__brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--mahd-text);
  margin-bottom: 0.75rem;
}

.mahd-footer__brand-link img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mahd-footer__brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--mahd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mahd-footer__tagline {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--mahd-muted);
  line-height: 1.6;
}

.mahd-footer__company {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mahd-muted);
  opacity: 0.85;
}

.mahd-footer__heading {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mahd-accent);
}

.mahd-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mahd-footer__nav a {
  color: var(--mahd-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.mahd-footer__nav a:hover {
  color: var(--mahd-accent);
}

.mahd-footer__contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mahd-footer__contact-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.mahd-footer__contact-list i {
  color: var(--mahd-accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.mahd-footer__contact-list a {
  color: var(--mahd-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.mahd-footer__contact-list a:hover {
  color: var(--mahd-text);
}

.mahd-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--mahd-border);
  text-align: center;
}

.mahd-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mahd-muted);
  opacity: 0.85;
}

.mahd-landing[data-theme="light"] .mahd-footer {
  background: linear-gradient(180deg, transparent, rgba(45, 212, 191, 0.06));
}

/* Back to top */
.mahd-back-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 191, 0.35);
  background: var(--mahd-gradient);
  color: #041016;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.25), var(--mahd-shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
  font-size: 1.15rem;
}

html[dir="ltr"] .mahd-back-top {
  left: auto;
  right: 1.5rem;
}

.mahd-back-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mahd-back-top:hover {
  transform: translateY(-2px);
}

/* Copyright / legal standalone page */
body:has(.mahd-copyright-page) {
  margin: 0;
  background: #060b14;
  font-family: 'Cairo', 'Segoe UI', system-ui, sans-serif;
}

.mahd-copyright-page {
  min-height: 100vh;
}

.mahd-copyright-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
  border-bottom: 1px solid var(--mahd-border);
}

.mahd-copyright-top__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  font-weight: 800;
}

.mahd-copyright-top__brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.mahd-copyright-top__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mahd-copyright-top__actions a {
  color: var(--mahd-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.mahd-copyright-top__actions a:hover {
  color: var(--mahd-accent);
}

.mahd-copyright-hero {
  text-align: center;
  padding: 3rem clamp(1rem, 4vw, 3rem) 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.mahd-copyright-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  background: var(--mahd-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mahd-copyright-hero p {
  margin: 0.35rem 0;
  color: var(--mahd-muted);
  line-height: 1.7;
}

.mahd-copyright-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) 2rem;
}

.mahd-copyright-card {
  background: var(--mahd-surface);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius-lg);
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(12px);
  transition: transform 0.2s, border-color 0.2s;
}

.mahd-copyright-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.4);
}

.mahd-copyright-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--mahd-text);
  padding-bottom: 0.65rem;
  border-bottom: 2px solid transparent;
  border-image: var(--mahd-gradient) 1;
}

.mahd-copyright-card p,
.mahd-copyright-card li {
  color: var(--mahd-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.mahd-copyright-card ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0;
}

.mahd-copyright-card li {
  position: relative;
  padding-inline-start: 1.35rem;
  margin-bottom: 0.4rem;
}

.mahd-copyright-card li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--mahd-accent);
  font-weight: 700;
}

.mahd-copyright-card .highlight {
  color: var(--mahd-accent);
  font-weight: 700;
}

.mahd-copyright-contact {
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 2rem clamp(1rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(56, 189, 248, 0.1));
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius-lg);
  text-align: center;
}

.mahd-copyright-contact h2 {
  margin: 0 0 1.5rem;
  color: var(--mahd-text);
  font-size: 1.5rem;
}

.mahd-copyright-contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.mahd-copyright-contact__item {
  padding: 1.25rem;
  background: var(--mahd-surface);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius);
}

.mahd-copyright-contact__item h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--mahd-text);
}

.mahd-copyright-contact__item a {
  color: var(--mahd-accent);
  text-decoration: none;
  font-weight: 700;
}

.mahd-copyright-contact__item a:hover {
  text-decoration: underline;
}

.mahd-copyright-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  max-width: 1280px;
  margin: 0 auto 2rem;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.mahd-copyright-service {
  text-align: center;
  padding: 1.25rem 1rem;
  background: var(--mahd-surface);
  border: 1px solid var(--mahd-border);
  border-radius: var(--mahd-radius);
}

.mahd-copyright-service .icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.mahd-copyright-service h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  color: var(--mahd-text);
}

.mahd-copyright-service p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--mahd-muted);
}
