:root {
    --navy: #081d3a;
    --navy-soft: #102d55;
    --blue: #174f8c;
    --blue-light: #eaf3fb;
    --red: #d62828;
    --text: #162033;
    --muted: #5f6d80;
    --surface: #ffffff;
    --surface-alt: #f6f8fb;
    --border: #dce3ec;
    --shadow: 0 18px 45px rgba(8, 29, 58, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.65;
}

body[dir="rtl"] {
    font-family:
        "Noto Sans Arabic",
        "Segoe UI",
        Tahoma,
        sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.brand-wordmark,
.platform-wordmark {
    color: var(--navy);
    font-size: 1.48rem;
    font-weight: 750;
    letter-spacing: -0.035em;
}

.brand-t {
    color: var(--red);
    font-weight: 900;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.main-nav a {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 650;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--red);
}

.language-button {
    min-height: 38px;
    padding: 7px 14px;
    color: var(--navy);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.hero {
    overflow: hidden;
    padding: 96px 0 82px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(214, 40, 40, 0.08),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f8fc 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
    align-items: center;
    gap: 64px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--red);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.16em;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.12;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 6vw, 5.8rem);
    letter-spacing: -0.055em;
}

h2 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4vw, 3.45rem);
    letter-spacing: -0.04em;
}

h3 {
    margin: 0 0 14px;
    font-size: 1.42rem;
    letter-spacing: -0.025em;
}

.hero-description {
    max-width: 720px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 1.14rem;
}

.hero-actions,
.card-actions,
.support-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 780;
    text-decoration: none;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--navy);
    box-shadow: 0 10px 24px rgba(8, 29, 58, 0.18);
}

.button-secondary {
    color: var(--navy);
    background: #ffffff;
    border-color: var(--border);
}

.hero-points {
    margin: 30px 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
}

.hero-points li {
    position: relative;
    padding-inline-start: 22px;
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
}

.hero-points li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--red);
    font-weight: 900;
}

.hero-panel {
    min-height: 500px;
    padding: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(8, 29, 58, 0.10);
    border-radius: 34px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.95),
            rgba(234, 243, 251, 0.92)
        );
    box-shadow: var(--shadow);
}

.platform-core {
    width: 220px;
    height: 220px;
    margin: 0 auto 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    border: 1px solid rgba(8, 29, 58, 0.10);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(8, 29, 58, 0.12);
}

.platform-logo {
    width: 66px;
    height: 66px;
    object-fit: contain;
}

.platform-core strong {
    color: var(--muted);
    font-size: 0.86rem;
}

.platform-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.platform-services span {
    padding: 13px;
    color: var(--navy);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 750;
}

.platform-services span:last-child {
    grid-column: 1 / -1;
}

.model-section,
.solution-section,
.process-section,
.why-section,
.contact-section,
.msp-path-section {
    padding: 90px 0;
}

.section-heading {
    max-width: 800px;
    margin-bottom: 42px;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 1.06rem;
}

.model-grid,
.solution-grid,
.process-grid {
    display: grid;
    gap: 24px;
}

.model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.solution-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.model-card,
.solution-card,
.process-grid article {
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(8, 29, 58, 0.05);
}

.hosted-model {
    border-top: 5px solid var(--blue);
}

.ownership-model {
    border-top: 5px solid var(--red);
}

.card-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--red);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.14em;
}

.model-card p,
.solution-card p,
.process-grid p {
    color: var(--muted);
}

.text-link {
    color: var(--blue);
    font-weight: 800;
    text-decoration: none;
}

.alternate,
.process-section {
    background: var(--surface-alt);
}

.solution-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.solution-card .button,
.solution-card .card-actions {
    margin-top: auto;
}

.solution-icon {
    min-width: 54px;
    min-height: 54px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--navy);
    border-radius: 15px;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.msp-path-section {
    color: #ffffff;
    background: var(--navy);
}

.msp-path-section h2 {
    color: #ffffff;
}

.msp-path-section p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
}

.msp-path-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 54px;
}

.msp-path-steps {
    display: grid;
    gap: 14px;
}

.msp-path-steps span {
    padding: 17px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    font-weight: 750;
}

.support-banner {
    padding: 42px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--blue-light);
}

.support-banner p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
}

.process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid article > span {
    display: block;
    margin-bottom: 20px;
    color: var(--red);
    font-size: 1.65rem;
    font-weight: 900;
}

.why-section {
    color: #ffffff;
    background:
        linear-gradient(
            125deg,
            var(--navy),
            var(--navy-soft)
        );
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}

.why-section h2 {
    color: #ffffff;
}

.why-section ul {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    list-style: none;
}

.why-section li {
    position: relative;
    padding: 17px 20px 17px 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
}

[dir="rtl"] .why-section li {
    padding: 17px 50px 17px 20px;
}

.why-section li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 20px;
    color: #ff6b6b;
    font-weight: 900;
}

.contact-section {
    background: var(--surface-alt);
}

.contact-section #r56-preserved-intake-forms {
    display: block;
}

.site-footer {
    color: rgba(255, 255, 255, 0.78);
    background: #05152c;
}

.footer-grid {
    padding: 56px 0 40px;
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) 1.2fr;
    gap: 50px;
}

.footer-brand .brand-wordmark {
    color: #ffffff;
}

.footer-brand p {
    margin-top: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 26px;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.footer-bottom strong {
    color: #ffffff;
}

[dir="rtl"] .eyebrow {
    letter-spacing: 0;
}

[dir="rtl"] .main-nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .card-actions,
[dir="rtl"] .support-actions {
    direction: rtl;
}

@media (max-width: 980px) {
    .header-inner {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
    }

    .main-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-grid,
    .msp-path-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .support-banner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .hero {
        padding: 70px 0 60px;
    }

    h1 {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .model-grid,
    .solution-grid,
    .solution-grid.two-columns,
    .process-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        padding: 26px;
    }

    .platform-core {
        width: 190px;
        height: 190px;
    }

    .main-nav {
        gap: 12px 16px;
    }

    .main-nav a {
        font-size: 0.87rem;
    }

    .support-banner {
        padding: 26px;
    }

    .footer-bottom {
        padding: 22px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

/* R58_LOCAL_CAIRO_BEGIN */
html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    font-family: "Cairo", sans-serif !important;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] p,
html[dir="rtl"] a,
html[dir="rtl"] li,
html[dir="rtl"] span,
html[dir="rtl"] label {
    font-family: "Cairo", sans-serif;
}
/* R58_LOCAL_CAIRO_END */

/* BEGIN WTX_STAGE12J_FRONTEND_VISIBILITY_SOCIAL */

/*
 * The intake forms are displayed on a light surface.
 * Override the older dark-background label colours.
 */
.contact-section
#r56-preserved-intake-forms
.intake-form
.form-heading
h3 {
  color: #071e36 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.contact-section
#r56-preserved-intake-forms
.intake-form
.form-heading
p {
  color: #334155 !important;
  opacity: 1 !important;
}

.contact-section
#r56-preserved-intake-forms
.intake-form
label,
.contact-section
#r56-preserved-intake-forms
.intake-form
label > span {
  color: #071e36 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/*
 * High-contrast footer typography.
 */
.site-footer .footer-brand p,
.site-footer .footer-links,
.site-footer .footer-links a,
.site-footer .footer-bottom,
.site-footer .footer-bottom span {
  color: #f4f8fc !important;
  opacity: 1 !important;
}

.site-footer .footer-links a {
  text-decoration-color: rgba(244, 248, 252, 0.5);
  text-underline-offset: 0.2em;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible {
  color: #45d8b0 !important;
  text-decoration-color: #45d8b0;
}

/*
 * Restored webTronex social-media section.
 */
.site-footer .footer-social {
  margin-top: 1.5rem;
}

.site-footer .footer-social-title {
  display: block;
  margin-bottom: 0.75rem;
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 750;
}

.site-footer .footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.site-footer .footer-social-link {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff !important;
  text-decoration: none !important;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.site-footer .footer-social-link:hover,
.site-footer .footer-social-link:focus-visible {
  border-color: #45d8b0;
  background: #087d91;
  color: #ffffff !important;
  outline: none;
  transform: translateY(-2px);
}

.site-footer .footer-social-link svg {
  width: 22px;
  height: 22px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer .footer-social-link svg text {
  fill: currentColor;
  stroke: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.site-footer .social-facebook:hover,
.site-footer .social-facebook:focus-visible {
  background: #1877f2;
}

.site-footer .social-linkedin:hover,
.site-footer .social-linkedin:focus-visible {
  background: #0a66c2;
}

.site-footer .social-instagram:hover,
.site-footer .social-instagram:focus-visible {
  background: #c13584;
}

.site-footer .social-github:hover,
.site-footer .social-github:focus-visible {
  background: #24292f;
}

.site-footer .social-whatsapp:hover,
.site-footer .social-whatsapp:focus-visible {
  background: #128c7e;
}

html[dir="rtl"] .site-footer .footer-social-links {
  justify-content: flex-start;
}

/* END WTX_STAGE12J_FRONTEND_VISIBILITY_SOCIAL */

