:root {
    --navy: #081933;
    --navy-2: #0f274d;
    --orange: #f59e0b;
    --orange-2: #f97316;
    --ink: #102033;
    --muted: #617086;
    --line: #dfe7f1;
    --soft: #f5f8fc;
    --paper: #ffffff;
    --green: #22c55e;
    --red: #ef476f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

a {
    color: inherit;
    text-decoration: none;
}

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

button, input, textarea, select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid rgba(223, 231, 241, .9);
    backdrop-filter: blur(14px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 900;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: var(--orange);
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #34445a;
    font-size: 14px;
    font-weight: 800;
}

.nav-links a:hover {
    color: var(--orange-2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 10px;
    color: var(--navy);
    background: white;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--navy);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    border: 1px solid var(--line);
    font-size: 14px;
    font-weight: 900;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(8, 25, 51, .14);
}

.btn-primary {
    background: var(--orange);
    color: #1f2937;
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-2);
    border-color: var(--orange-2);
}

.btn-light {
    background: white;
    color: var(--navy);
}

.btn-ghost {
    color: white;
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .08);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border-color: #25d366;
}

.hero {
    position: relative;
    min-height: min(780px, calc(100vh - 120px));
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    background:
        linear-gradient(105deg, rgba(8, 25, 51, .96) 0%, rgba(8, 25, 51, .86) 45%, rgba(8, 25, 51, .34) 100%),
        var(--hero-image) center right / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    background: linear-gradient(90deg, var(--orange), var(--orange-2));
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 76px 0 88px;
}

.hero-copy-block {
    max-width: 760px;
}

.eyebrow, .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

h1 {
    max-width: 780px;
    margin: 18px 0 16px;
    color: white;
    font-size: 48px;
    line-height: 1.08;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--navy);
    font-size: 36px;
    line-height: 1.16;
    letter-spacing: 0;
}

p {
    font-size: 16px;
}

.hero p {
    max-width: 700px;
    margin: 0 0 28px;
    color: #e7edf7;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 720px;
    margin-top: 38px;
}

.hero-metrics div {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
}

.hero-metrics strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
}

.hero-metrics span {
    color: #cdd7e7;
    font-size: 14px;
}

section {
    padding: 82px 0;
}

.section-soft {
    background: var(--soft);
}

.section-dark {
    background: linear-gradient(135deg, var(--navy), #071120);
    color: white;
}

.section-head {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-head p {
    margin: 12px 0 0;
    max-width: 720px;
    color: var(--muted);
}

.section-dark h2 {
    color: white;
}

.section-dark .section-head p {
    color: #c9d4e4;
}

.feature-grid, .why-grid, .plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.feature-card, .why-card, .plan-card, .comparison-card, .screen-card, .faq-item, .pricing-hero, .final-cta {
    border-radius: 8px;
}

.feature-card {
    min-height: 150px;
    padding: 22px;
    border: 1px solid var(--line);
    background: white;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover, .screen-card:hover, .plan-card:hover, .why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(8, 25, 51, .11);
    border-color: rgba(245, 158, 11, .55);
}

.icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff7ed;
    color: var(--orange-2);
    margin-bottom: 18px;
}

.feature-card h3, .why-card h3, .plan-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
}

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

.screen-card {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: white;
    box-shadow: 0 16px 38px rgba(8, 25, 51, .08);
}

.screen-card-large {
    grid-column: span 2;
    grid-row: span 2;
}

.screen-card img {
    width: 100%;
    aspect-ratio: 16 / 10.4;
    object-fit: cover;
}

.screen-card figcaption {
    padding: 14px 16px;
    color: var(--navy);
    font-weight: 900;
    border-top: 1px solid var(--line);
}

.pricing-hero {
    margin-bottom: 20px;
    padding: 32px;
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.pricing-hero h2 {
    color: white;
    margin-top: 10px;
}

.pricing-hero p {
    max-width: 640px;
    color: #dbe5f3;
    margin: 10px 0 22px;
    font-size: 18px;
}

.plans {
    margin-bottom: 20px;
}

.plan-card {
    padding: 28px;
    border: 1px solid var(--line);
    background: white;
}

.plan-card-featured {
    border-color: var(--orange);
    box-shadow: 0 20px 46px rgba(245, 158, 11, .18);
}

.plan-price {
    margin: 16px 0 10px;
    color: var(--navy);
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.plan-price span {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 700;
}

.plan-card p {
    margin: 0;
    color: var(--muted);
}

.comparison-card {
    padding: 24px;
    border: 1px solid var(--line);
    background: white;
}

.comparison-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 22px;
}

.table-wrap {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
    padding: 15px 10px;
    border-bottom: 1px solid #edf1f6;
    text-align: left;
}

[dir="rtl"] .pricing-table th,
[dir="rtl"] .pricing-table td {
    text-align: right;
}

.pricing-table th {
    color: var(--navy);
    font-weight: 900;
}

.check {
    color: var(--green);
    font-size: 18px;
}

.cross {
    color: var(--red);
    font-size: 18px;
}

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

.why-card {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
}

.why-card i {
    color: var(--orange);
    font-size: 24px;
    margin-bottom: 16px;
}

.why-card h3 {
    color: white;
}

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

.faq-item {
    padding: 20px 22px;
    border: 1px solid var(--line);
    background: white;
}

.faq-item summary {
    cursor: pointer;
    color: var(--navy);
    font-weight: 900;
}

.faq-item p {
    margin: 12px 0 0;
    color: var(--muted);
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 34px;
    color: white;
    background: linear-gradient(135deg, var(--navy), #12335f);
}

.final-cta h2 {
    color: white;
    margin-top: 10px;
}

.final-cta p {
    max-width: 680px;
    margin: 12px 0 0;
    color: #dbe5f3;
}

.final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer {
    padding: 30px 0;
    color: #cbd5e1;
    background: var(--navy);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-row strong {
    display: block;
    color: white;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    font-weight: 800;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: white;
    font-size: 25px;
    box-shadow: 0 16px 34px rgba(8, 25, 51, .24);
}

.contact-panel {
    padding: 26px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

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

.form-label {
    display: block;
    color: var(--navy);
    font-weight: 900;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: white;
}

textarea.form-control {
    min-height: 130px;
    padding: 12px;
    resize: vertical;
}

.honeypot {
    display: none;
}

.form-status {
    display: none;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 0 0 16px;
}

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}

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

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

@media (max-width: 980px) {
    .nav {
        min-height: auto;
        padding: 14px 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: absolute;
        top: 70px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: white;
        box-shadow: 0 18px 42px rgba(8, 25, 51, .13);
    }

    .nav-panel.is-open {
        display: flex;
    }

    .nav-links, .nav-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-actions .btn {
        width: 100%;
    }

    .hero {
        min-height: auto;
        background-position: center;
    }

    .hero-inner {
        padding: 58px 0 68px;
    }

    .hero-metrics, .feature-grid, .plans, .why-grid {
        grid-template-columns: 1fr;
    }

    .final-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    section {
        padding: 62px 0;
    }
}

@media (max-width: 620px) {
    body, p {
        font-size: 15px;
    }

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

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 26px;
    }

    .hero p, .pricing-hero p {
        font-size: 15px;
    }

    .hero-actions .btn, .final-actions .btn {
        width: 100%;
    }

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

    .screen-card-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .pricing-hero, .final-cta {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.screenshot {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: cover;
}
