:root {
    --blue-900: #073b4c;
    --blue-700: #0f6f8f;
    --blue-600: #0f8bb3;
    --blue-100: #e7f7fb;
    --green-600: #14a66a;
    --green-100: #e8f8ef;
    --ink: #102433;
    --muted: #607484;
    --line: #d9e7ee;
    --white: #ffffff;
    --soft: #f6fbfd;
    --shadow: 0 18px 50px rgba(7, 59, 76, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    width: min(1180px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 12px;
    border: 1px solid rgba(217, 231, 238, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 35px rgba(7, 59, 76, 0.08);
    backdrop-filter: blur(16px);
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--blue-600);
    color: var(--white);
    font-weight: 900;
}

.brand__text {
    color: var(--blue-900);
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: 0;
}

.site-nav {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1.3rem;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--blue-700);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.language-switcher button {
    min-width: 38px;
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    font-weight: 900;
    cursor: pointer;
}

.language-switcher button.is-active {
    background: var(--blue-100);
    color: var(--blue-700);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-cta,
.button--primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 12px 26px rgba(15, 139, 179, 0.28);
}

.button--secondary {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--blue-900);
}

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

.button--primary:hover,
.header-cta:hover {
    background: var(--blue-700);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: var(--blue-900);
}

.hero {
    position: relative;
    display: grid;
    min-height: calc(100vh - 84px);
    padding: 86px 0 64px;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__media::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(246, 251, 253, 0.96) 0%, rgba(246, 251, 253, 0.86) 41%, rgba(246, 251, 253, 0.36) 74%, rgba(246, 251, 253, 0.7) 100%);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--green-600);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 780px;
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(2.25rem, 5vw, 4.9rem);
    line-height: 1.02;
}

.hero__lead {
    max-width: 680px;
    margin: 1.25rem 0 0;
    color: #3e5a6a;
    font-size: 1.16rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.9rem;
}

.hero__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    width: min(680px, 100%);
    margin-top: 2.4rem;
}

.hero__metrics div {
    padding: 0.95rem;
    border: 1px solid rgba(217, 231, 238, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 25px rgba(7, 59, 76, 0.06);
}

.hero__metrics strong {
    display: block;
    color: var(--blue-700);
    font-size: 1.12rem;
}

.hero__metrics span {
    color: var(--muted);
    font-size: 0.86rem;
}

.section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 76px 0;
}

.section__head {
    max-width: 780px;
    margin: 0 auto 2rem;
    text-align: center;
}

.section__head--left {
    margin: 0;
    text-align: start;
}

.section__head h2,
.demo-section h2 {
    margin: 0;
    color: var(--blue-900);
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    line-height: 1.08;
}

.section__head p,
.demo-section p {
    margin: 1rem 0 0;
    color: var(--muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
}

.feature-card {
    min-height: 212px;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 12px 28px rgba(7, 59, 76, 0.07);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 900;
}

.feature-card h3 {
    margin: 1rem 0 0.45rem;
    color: var(--blue-900);
    font-size: 1rem;
    line-height: 1.25;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.section--split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.benefits {
    display: grid;
    gap: 0.8rem;
}

.benefit {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 0.8rem;
    align-items: start;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}

.benefit span {
    width: 18px;
    height: 18px;
    margin-top: 0.22rem;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: inset 0 0 0 5px var(--green-100);
}

.benefit p {
    margin: 0;
    color: #385462;
}

.benefit--highlight {
    border-color: rgba(20, 166, 106, 0.34);
    background: var(--green-100);
}

.demo-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 20px;
    padding: 2rem;
    border-radius: 8px;
    background: var(--blue-900);
    color: var(--white);
    box-shadow: var(--shadow);
}

.demo-section .eyebrow {
    color: #8ee8bf;
}

.demo-section h2,
.demo-section p {
    color: var(--white);
}

.demo-section p {
    opacity: 0.82;
}

.contact-section {
    padding-top: 58px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-item {
    display: grid;
    gap: 0.3rem;
    min-height: 126px;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(7, 59, 76, 0.07);
}

.contact-item span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.contact-item strong {
    color: var(--blue-900);
    font-size: 1.08rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

[dir="rtl"] body {
    font-family: Tahoma, Arial, sans-serif;
}

[dir="rtl"] .hero__media::after {
    background: linear-gradient(270deg, rgba(246, 251, 253, 0.96) 0%, rgba(246, 251, 253, 0.86) 41%, rgba(246, 251, 253, 0.36) 74%, rgba(246, 251, 253, 0.7) 100%);
}

[dir="rtl"] .section__head--left {
    text-align: start;
}

@media (max-width: 1040px) {
    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section--split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav,
    .header-actions {
        display: none;
    }

    .site-header.is-open .site-nav {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 0;
        padding-top: 0.5rem;
    }

    .site-header.is-open .site-nav a {
        padding: 0.85rem 0.2rem;
        border-top: 1px solid var(--line);
    }

    .site-header.is-open .header-actions {
        display: grid;
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-header.is-open .language-switcher {
        justify-self: start;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .hero__media::after {
        background: rgba(246, 251, 253, 0.9);
    }

    .hero__metrics,
    .contact-grid {
        grid-template-columns: 1fr;
    }

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

    .demo-section,
    .site-footer {
        display: grid;
    }
}

@media (max-width: 560px) {
    .site-header,
    .hero__content,
    .section,
    .demo-section,
    .site-footer {
        width: min(100% - 22px, 1180px);
    }

    .hero__actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}
