:root {
    --bg: #edf2ff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #0b1020;
    --muted: #55627a;
    --line: #d7e0ff;
    --line-strong: #c5d2ff;
    --primary: #0f172a;
    --primary-2: #1e293b;
    --accent: #0891b2;
    --shadow-soft: 0 16px 38px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 28px 80px rgba(43, 63, 125, 0.16);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

body.page-welcome {
    margin: 0;
    color: var(--text);
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at 12% -10%, rgba(14, 165, 233, 0.16), transparent 34%),
        radial-gradient(circle at 92% 0%, rgba(15, 23, 42, 0.10), transparent 36%),
        radial-gradient(circle at 15% 50%, rgba(2, 132, 199, 0.04), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.04), transparent 25%),
        linear-gradient(to right, rgba(167, 184, 224, 0.22) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(167, 184, 224, 0.22) 1px, transparent 1px),
        linear-gradient(180deg, #f8faff 0%, var(--bg) 58%, #f4f7ff 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px, 100% 100%;
    background-attachment: fixed;
}

.shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(248, 251, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.topbar-row {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    text-decoration: none;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.brand-fallback {
    display: none;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-badge {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.20);
}

.menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.lang-dropdown-wrap {
    position: relative;
    margin-inline: 4px;
}

.lang-dropdown {
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #2a3a54;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 14px;
    outline: none;
    cursor: pointer;
}

.lang-dropdown:focus {
    border-color: #9ac4ea;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15);
}

.menu a {
    text-decoration: none;
    color: #4a5a76;
    font-weight: 600;
    font-size: 14px;
    transition: color .2s ease;
}

.menu a:hover {
    color: var(--text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    cursor: pointer;
}

.btn-primary {
    color: #fff;
    border-color: rgba(15, 23, 42, 0.3);
    background: linear-gradient(130deg, var(--primary), var(--primary-2));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.30);
}

.btn-ghost {
    color: #22324d;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.9);
}

.btn-ghost:hover {
    transform: translateY(-1px);
    border-color: #aebfff;
    background: #ffffff;
}

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

.hero-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero-intro .pill {
    margin: 0 auto 24px;
}

.hero-intro p {
    margin: 24px auto 0;
}

.hero-intro .hero-actions {
    justify-content: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.90);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #3f4d67;
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #0ea5e9;
    box-shadow: 0 0 0 5px rgba(14, 165, 233, 0.18);
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: .98;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(95deg, #0b4a6f, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 680px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    gap: 11px;
    flex-wrap: wrap;
}

.hero-proof {
    margin: 14px auto 0;
    font-size: 14px;
    color: #4f5f7b;
    font-weight: 600;
}

.partner-logos {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.partner-logos span {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.75);
    color: #50607c;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.section {
    padding: 88px 0;
}

.section-white {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.64);
}

.section-title {
    margin: 0;
    font-size: clamp(2.1rem, 3.8vw, 2.9rem);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-sub {
    margin: 10px 0 0;
    max-width: 760px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.center-title.section-sub {
    margin-inline: auto;
}

.grid-3 {
    margin-top: 30px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.process-step {
    min-height: 100%;
}

.service {
    background: var(--surface-strong);
    padding: 24px;
    border-color: #d5ddff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service:hover {
    transform: translateY(-2px);
    border-color: #b8c8ff;
    box-shadow: var(--shadow-lg);
}

.service h4 {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.service p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

.stack {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    border: 1px solid #d3ddff;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    color: #34455f;
    font-weight: 600;
}

.proof {
    background: transparent;
}

.proof-compact {
    padding-top: 0;
    padding-bottom: 44px;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    padding: 20px;
    text-align: center;
}

.metric b {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 8px;
    color: #5e6d86;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.case-study {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.case-mini {
    margin-top: 16px;
    padding: 24px;
    border-color: #d5ddff;
    background: rgba(255, 255, 255, 0.9);
}

.case-mini-pill {
    margin-bottom: 10px;
}

.case-mini-header h3 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.02em;
}

.case-mini-header p {
    margin: 10px 0 0;
    color: #465877;
    line-height: 1.65;
    max-width: 860px;
}

.case-mini-kpis {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.case-mini-kpis div {
    border: 1px solid #d8e2ff;
    border-radius: 10px;
    background: rgba(244, 248, 255, 0.9);
    padding: 10px;
}

.case-mini-kpis b {
    display: block;
    font-size: 18px;
    color: #163f63;
}

.case-mini-kpis span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #5f6f89;
}

.case-mini-content {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.case-mini-content p {
    margin: 0;
    color: #42536e;
    line-height: 1.7;
}

.case-study-highlight {
    background: linear-gradient(135deg, #124f74, #0891b2);
    padding: 40px;
    color: #ffffff;
}

.case-study-highlight h3 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.case-study-highlight p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}

.case-kpis {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.case-kpis div {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.12);
    padding: 10px;
}

.case-kpis b {
    display: block;
    font-size: 18px;
}

.case-kpis span {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.case-study-content {
    padding: 28px;
    background: rgba(255, 255, 255, 0.9);
}

.case-study-content p {
    margin: 0 0 14px;
    color: #42536e;
    line-height: 1.7;
}

.case-study-content p:last-child {
    margin-bottom: 0;
}

.case-timeline {
    margin: 14px 0 0;
    padding-left: 20px;
    color: #3b4c68;
    display: grid;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.testimonial-result {
    margin: 12px 0 0;
    color: #0b4a6f !important;
    font-size: 13px !important;
    font-weight: 700;
}

.testimonials-title,
.center-title {
    text-align: center;
}

.pricing-grid,
.team-grid,
.resource-grid {
    margin-top: 30px;
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 28px;
    border: 1px solid #cedafe;
    border-top: 4px solid #b6c7ff;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 252, 255, 0.9) 100%);
    box-shadow: 0 10px 24px rgba(25, 52, 95, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.price-card:hover {
    transform: translateY(-3px);
    border-color: #afc2ff;
    box-shadow: 0 16px 30px rgba(25, 52, 95, 0.1);
}

.price-card h4 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #0f1f39;
    letter-spacing: -0.01em;
}

.price-card.featured {
    border-top-color: var(--accent);
    border-color: #7ecde0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(238, 249, 252, 0.96) 100%);
    box-shadow: 0 18px 34px rgba(5, 99, 130, 0.15);
    transform: translateY(-4px);
}

.price {
    margin: 2px 0 4px;
    font-size: 44px;
    font-weight: 800;
    color: #143f60;
    letter-spacing: -0.02em;
}

.price-note {
    font-size: 30px;
    color: var(--muted);
    font-weight: 600;
}

.feature-list {
    list-style: none;
    margin: 6px 0 14px;
    padding: 0;
    display: grid;
    gap: 11px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.5;
}

.feature-list span {
    color: var(--accent);
    font-weight: 800;
}

.plan-fit,
.plan-not-fit {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
}

.plan-fit {
    color: #315b42;
    font-weight: 700;
    margin-top: auto;
}

.plan-not-fit {
    margin-top: 6px;
    color: #7a4f55;
}

.price-card .btn {
    margin-top: 2px;
    align-self: flex-start;
}

.pricing-note {
    margin: 14px 0 0;
    color: #5c6a83;
    text-align: center;
    font-size: 13px;
}

.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.faq-list {
    margin-top: 28px;
    display: grid;
    gap: 12px;
}

.faq-item {
    padding: 20px;
}

.faq-item h4 {
    margin: 0;
    font-size: 18px;
}

.faq-item p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.contact-wrap {
    max-width: 840px;
    margin: 0 auto;
}

.cta {
    border: 1px solid #cad7ff;
    background: linear-gradient(130deg, #edf3ff 0%, #f6f0ff 100%);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.cta p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.contact-response {
    margin-top: 8px !important;
    font-size: 13px;
    color: #214b6e !important;
    font-weight: 700;
}

.contact-alert {
    margin: 14px 0 2px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
}

.contact-alert-success {
    background: #e9f9ef;
    border: 1px solid #9fe0b3;
    color: #1f6a39;
}

.contact-alert-error {
    background: #fff1f1;
    border: 1px solid #f0b6b6;
    color: #8a2632;
}

.contact-form {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.field-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #2f425e;
    font-size: 13px;
    font-weight: 700;
}

.field-help {
    margin: 7px 0 0;
    color: #5e6d86;
    font-size: 12px;
    line-height: 1.55;
}

.contact-form .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c6d3f0;
    border-radius: 8px;
    font: inherit;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(8, 145, 178, 0.2);
    border-color: #9ac4ea;
}

.field-block {
    display: block;
}

.contact-form button {
    width: fit-content;
    margin-top: 4px;
}

.cta p:last-of-type {
    margin-top: 16px;
    font-size: 14px;
}

.cta p:last-of-type a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.cta p:last-of-type a:hover {
    text-decoration: underline;
}

.legal-main {
    padding-top: 40px;
}

.legal-back {
    width: fit-content;
}

.legal-doc {
    margin-top: 16px;
    max-width: 920px;
}

.legal-doc h3 {
    margin: 24px 0 8px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.35;
    color: #1b2c45;
}

.legal-doc p {
    overflow-wrap: anywhere;
    word-break: normal;
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    padding: 42px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
    margin-bottom: 20px;
}

.footer-grid b {
    color: var(--text);
}


.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
}

.footer-logo {
    height: 40px;
    width: auto;
    display: block;
}
.footer-grid p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 340px;
}

.link-list {
    margin-top: 12px;
    display: grid;
    gap: 9px;
}

.link-list a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
}

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

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #5f6c84;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    text-decoration: none;
    color: #5f6c84;
}

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

.legal-section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.5);
}

.legal-wrap {
    max-width: 920px;
}

.legal-section .section-title {
    font-size: clamp(1.75rem, 2.4vw, 2.2rem);
    line-height: 1.2;
}

.legal-section .section-sub {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.65;
    max-width: 720px;
}

.legal-section + .legal-section {
    padding-top: 24px;
    border-top: 0;
}

html[dir="rtl"] body.page-welcome {
    font-family: 'Cairo', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

html[dir="rtl"] .topbar-row,
html[dir="rtl"] .menu,
html[dir="rtl"] .topbar-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer-row,
html[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

html[dir="rtl"] .lang-dropdown-wrap {
    margin-right: 8px;
    margin-left: 0;
}

html[dir="rtl"] .section-sub,
html[dir="rtl"] .service,
html[dir="rtl"] .faq-item,
html[dir="rtl"] .case-study-content,
html[dir="rtl"] .link-list {
    text-align: right;
}

html[dir="rtl"] .case-timeline {
    padding-right: 20px;
    padding-left: 0;
}

html[dir="rtl"] .case-mini,
html[dir="rtl"] .case-mini-content,
html[dir="rtl"] .case-mini-header {
    text-align: right;
}

html[dir="rtl"] .field-label,
html[dir="rtl"] .field-help {
    text-align: right;
}

html[dir="rtl"] .legal-doc,
html[dir="rtl"] .legal-doc h1,
html[dir="rtl"] .legal-doc h3,
html[dir="rtl"] .legal-doc p {
    text-align: right;
}

html[dir="rtl"] .pill {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    padding: 9px 16px;
}

html[dir="rtl"] .hero h1 {
    line-height: 1.14;
    letter-spacing: 0;
    margin-bottom: 18px;
}

html[dir="rtl"] .hero p {
    line-height: 1.85;
    max-width: 760px;
}

html[dir="rtl"] .hero-actions {
    gap: 14px;
}

html[dir="rtl"] .metric span {
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}

@media (max-width: 980px) {
    .hero {
        padding-top: 84px;
    }

    .grid-3,
    .proof-grid,
    .pricing-grid,
    .team-grid,
    .resource-grid {
        grid-template-columns: 1fr;
    }

    .case-study,
    .contact-form .row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .case-kpis {
        grid-template-columns: 1fr;
    }

    .case-mini-kpis {
        grid-template-columns: 1fr;
    }

    .menu {
        display: none;
    }

    .topbar-actions {
        gap: 12px;
    }

    .lang-dropdown {
        padding: 9px 10px;
        font-size: 12px;
    }

    .price-card,
    .price-card.featured,
    .price-card:hover {
        transform: none;
    }

    .price-card h4 {
        font-size: 23px;
    }

    .price {
        font-size: 38px;
    }

    .price-note {
        font-size: 24px;
    }

    .feature-list li {
        font-size: 16px;
    }

    .legal-doc {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .shell {
        width: min(1160px, calc(100% - 30px));
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        gap: 9px;
    }

    .contact-form button {
        width: 100%;
    }

    .section {
        padding: 64px 0;
    }

    .price-card {
        padding: 22px;
    }

    .price-card h4 {
        font-size: 21px;
    }

    .price {
        font-size: 34px;
    }

    .price-note {
        font-size: 21px;
    }

    .legal-main {
        padding-top: 26px;
    }

    .legal-back {
        width: 100%;
    }

    .legal-doc h3 {
        margin-top: 20px;
    }

    .cta {
        padding: 28px 20px;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
    }
}
