:root {
  --px-navy: #0a0a0a;
  --px-navy-soft: #1a1a1a;
  --px-teal: #7a1528;
  --px-teal-bright: #9b1c31;
  --px-teal-soft: rgba(155, 28, 49, 0.12);
  --px-burgundy: #7a1528;
  --px-burgundy-bright: #9b1c31;
  --px-slate: #64748b;
  --px-slate-dark: #334155;
  --px-mist: #f5f5f5;
  --px-white: #ffffff;
  --px-line: rgba(10, 10, 10, 0.1);
  --px-font: "Manrope", system-ui, sans-serif;
  --px-font-ar: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  --px-max: 1120px;
  --px-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--px-font);
  color: var(--px-navy);
  background: var(--px-white);
  line-height: 1.65;
  overflow-x: clip;
  max-width: 100%;
}

body.lang-ar { font-family: var(--px-font-ar); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.px-container {
  width: 100%;
  max-width: var(--px-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
  box-sizing: border-box;
}

.px-skip {
  position: absolute;
  inset-inline-start: -9999px;
}

.px-skip:focus {
  inset-inline-start: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

.px-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--px-line);
  max-width: 100%;
  overflow-x: clip;
}

.px-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.5rem;
  min-width: 0;
  position: relative;
}

.px-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 1;
  min-width: 0;
}

.px-brand-wordmark {
  font-family: "Libre Baskerville", "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0a0a0a;
  text-decoration: none;
  white-space: nowrap;
}

.px-brand-wordmark:hover {
  color: #0a0a0a;
}

.px-brand-wordmark .px-wm-accent {
  color: #c41e3a;
}

.px-brand__wordmark {
  display: none;
}

.px-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  color: var(--px-burgundy-bright);
  letter-spacing: 0.01em;
}

.px-footer .px-tagline {
  color: rgba(255, 220, 220, 0.85);
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.px-portfolio {
  display: grid;
  gap: 1rem;
}

.px-timeline {
  display: grid;
  gap: 1.25rem;
  border-inline-start: 3px solid var(--px-burgundy-bright);
  padding-inline-start: 1.25rem;
  margin: 0;
}

.px-timeline__item h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.px-timeline__meta {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--px-burgundy-bright);
}

.px-timeline__item p {
  margin: 0;
  color: var(--px-slate);
  font-size: 0.95rem;
}

.px-feature-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.px-feature-list li {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: var(--px-mist);
  border: 1px solid var(--px-line);
  font-size: 0.92rem;
}

.px-contact-intro {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--px-slate);
}

.px-brand__mark-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.px-brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--px-navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.px-brand__text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.px-brand__text span {
  color: var(--px-burgundy-bright);
  display: block;
  font-size: 0.92em;
}

.px-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.55rem 0.85rem;
  min-width: 0;
  flex: 1 1 auto;
}

.px-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--px-slate-dark);
  white-space: nowrap;
}

body.lang-ar .px-nav a { font-size: 0.88rem; }

.px-btn--header {
  white-space: nowrap;
  padding-inline: 0.9rem;
  font-size: 0.85rem;
}

.px-header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.px-lang {
  display: inline-flex;
  border: 1px solid var(--px-line);
  border-radius: 999px;
  overflow: hidden;
}

.px-lang a {
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--px-slate);
}

.px-lang a.is-active {
  background: var(--px-navy);
  color: #fff;
}

.px-menu-toggle {
  display: none;
  border: 1px solid var(--px-line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
}

.px-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.px-btn:hover { transform: translateY(-1px); }

.px-btn--primary {
  background: var(--px-burgundy-bright);
  color: #fff;
  box-shadow: 0 10px 28px rgba(155, 28, 49, 0.28);
}

.px-btn--primary:hover {
  background: var(--px-burgundy);
  color: #fff;
}

.px-btn--ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.px-btn--ghost-dark {
  border-color: var(--px-line);
  color: var(--px-navy);
}

.px-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(155, 28, 49, 0.28), transparent 55%),
    linear-gradient(145deg, #000000 0%, #0a0a0a 45%, #3a0d16 130%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
}

.px-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.px-eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--px-teal-bright);
}

.px-eyebrow--light { color: var(--px-teal-bright); }

.px-hero__brand {
  margin: 0 0 0.45rem;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.px-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 28ch;
  color: rgba(248, 250, 252, 0.92);
}

body.lang-ar .px-hero h1 { max-width: 34ch; }

.px-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 38rem;
  color: rgba(226, 232, 240, 0.82);
}

.px-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.px-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
  animation: pxRise 0.8s ease both;
}

.px-panel__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  font-weight: 600;
}

.px-panel__row--accent {
  border: 1px solid rgba(20, 184, 166, 0.35);
}

.px-pill {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--px-teal-soft);
  color: var(--px-teal-bright);
}

.px-section { padding: 4.5rem 0; }

.px-section--mist {
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

.px-section--navy {
  background: var(--px-navy);
  color: #fff;
}

.px-section__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.px-section__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  letter-spacing: -0.03em;
}

.px-section__head p,
.px-section--navy p {
  margin: 0;
  color: var(--px-slate);
}

.px-section--navy .px-section__head p,
.px-section--navy p { color: rgba(226, 232, 240, 0.75); }

.px-muted { color: rgba(226, 232, 240, 0.62) !important; font-size: 0.95rem; }

.px-grid-3,
.px-grid-2,
.px-footer__grid,
.px-contact,
.px-founder,
.px-hero__grid {
  min-width: 0;
  max-width: 100%;
}

.px-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.px-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.px-grid-3 > *,
.px-grid-2 > * { min-width: 0; }

.px-card,
.px-rule {
  padding: 1.35rem;
  border-radius: var(--px-radius);
  border: 1px solid var(--px-line);
  background: #fff;
}

.px-rule {
  border: none;
  border-block-start: 3px solid var(--px-teal);
  border-radius: 0;
  padding-inline: 0;
  background: transparent;
}

.px-card h3,
.px-rule h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.px-card p,
.px-rule p {
  margin: 0;
  color: var(--px-slate);
  font-size: 0.95rem;
}

.px-evalq-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.px-evalq-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.px-page-hero {
  padding: 3.5rem 0 2.5rem;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(20, 184, 166, 0.12), transparent 50%),
    linear-gradient(180deg, #f8fafc, #fff);
}

.px-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.px-page-hero p {
  margin: 0;
  max-width: 42rem;
  color: var(--px-slate);
}

.px-founder {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 2.25rem;
  align-items: start;
}

.px-founder__photo img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
  border: 1px solid var(--px-line);
  box-shadow: 0 16px 40px rgba(11, 18, 32, 0.12);
}

.px-photo-slot {
  aspect-ratio: 3/4;
  max-width: 300px;
  border: 2px dashed rgba(15, 118, 110, 0.45);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--px-teal-soft);
  font-weight: 700;
}

.px-founder__label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--px-teal);
}

.px-founder h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.px-founder__role {
  margin: 0 0 1rem;
  color: var(--px-slate);
  font-weight: 600;
}

.px-badges {
  list-style: none;
  margin: 1.1rem 0 1.4rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.px-badges li {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--px-mist);
  border: 1px solid var(--px-line);
  font-size: 0.82rem;
  font-weight: 700;
}

.px-contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.25rem;
}

.px-contact-card {
  display: grid;
  gap: 0.4rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--px-line);
}

.px-contact-card span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--px-slate);
}

.px-contact-card a { font-weight: 700; word-break: break-word; }

.px-qr {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-top: 0.75rem;
  padding: 0.5rem;
  border: 1px solid var(--px-line);
  border-radius: 12px;
  background: #fff;
}

.px-form {
  display: grid;
  gap: 0.95rem;
  max-width: 34rem;
}

.px-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.px-form input,
.px-form select,
.px-form textarea {
  font: inherit;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--px-line);
}

.px-form textarea { min-height: 120px; resize: vertical; }

.px-alert {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.px-alert--ok { background: var(--px-teal-soft); color: var(--px-teal); }
.px-alert--err { background: #fef2f2; color: #b91c1c; }

.px-footer__logo {
  display: none;
}

.px-footer-wordmark {
  display: inline-block;
  font-family: "Libre Baskerville", "Times New Roman", Georgia, serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-decoration: none;
  margin: 0 0 0.35rem;
  max-width: 100%;
}

.px-footer-wordmark:hover {
  color: #ffffff;
  opacity: 0.95;
}

.px-footer-wordmark .px-wm-accent {
  color: #c41e3a;
}

.px-footer__brand {
  margin-bottom: 0.35rem;
  min-width: 0;
  max-width: 100%;
  color: #fff;
}

.px-footer__grid > div:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.px-footer__legal {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.55);
}

.px-cta {
  padding: 3.5rem 0;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(155, 28, 49, 0.35), transparent 50%),
    #000;
}

.px-cta h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
}

.px-cta p {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  color: rgba(226, 232, 240, 0.75);
}

.px-footer {
  background: #070b14;
  color: rgba(226, 232, 240, 0.78);
  padding: 3.25rem 0 1.75rem;
}

.px-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
  align-items: start;
}

.px-footer h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.px-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.px-footer a:hover { color: var(--px-teal-bright); }

.px-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.px-evalq-page {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

.px-prose { max-width: 44rem; color: var(--px-slate-dark); }

.px-elementor-area:empty { display: none; }
.px-elementor-area:not(:empty) { padding: 1.5rem 0 3rem; }

.px-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.px-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pxRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .px-nav { display: none; }
  .px-menu-toggle { display: inline-flex; }
  .px-brand {
    flex: 1 1 auto;
    max-width: calc(100% - 8.5rem);
  }
  .px-brand-wordmark {
    font-size: 1.15rem;
    display: block;
    max-width: 100%;
    overflow: hidden;
  }
  .px-header__actions {
    flex-shrink: 0;
  }
  .px-header.is-open .px-nav {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--px-line);
    z-index: 60;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .px-header.is-open .px-nav a {
    font-size: 1rem;
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .px-hero__grid,
  .px-grid-3,
  .px-grid-2,
  .px-footer__grid,
  .px-contact,
  .px-founder,
  .px-evalq-band {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .px-hero__grid,
  .px-grid-3,
  .px-grid-2,
  .px-footer__grid,
  .px-contact,
  .px-founder,
  .px-evalq-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .px-header__actions .px-btn { display: none; }
  .px-brand {
    max-width: calc(100% - 6.5rem);
  }
  .px-brand-wordmark,
  .px-footer-wordmark {
    font-size: 1.15rem;
  }
}
