:root {
    --primary-blue: #2161c2;
    --secondary-blue: #66a9f2;
    --deep-navy: #132b50;
    --bg-main: #f4f8fd;
    --white: #ffffff;
    --text-dark: #132b50;
    --text-gray: #647794;
    --line: rgba(33, 97, 194, 0.12);
    --shadow-soft: 0 18px 60px rgba(19, 43, 80, 0.08);
    --shadow-card: 0 18px 38px rgba(19, 43, 80, 0.12);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Tajawal", sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(circle at top right, rgba(102, 169, 242, 0.22), transparent 30%),
        radial-gradient(circle at left center, rgba(33, 97, 194, 0.08), transparent 26%),
        linear-gradient(180deg, #f9fbff 0%, #f4f8fd 52%, #ffffff 100%);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, black 32%, transparent 82%);
    opacity: 0.35;
    pointer-events: none;
    z-index: -1;
}

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

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

.hero {
    padding: 34px 0 40px;
}

.hero-shell {
    position: relative;
}

.top-logo {
    position: absolute;
    top: -18px;
    right: 0;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 3.1rem;
    font-weight: 900;
    line-height: 1;
    z-index: 5;
}

.hero-grid {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: center;
    padding-top: 64px;
}

.hero-copy {
    order: 1;
    max-width: 530px;
    justify-self: end;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3.9vw, 3.35rem);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1.15rem;
}

.highlight {
    color: var(--primary-blue);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: "";
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0.1em;
    height: 0.2em;
    background: rgba(102, 169, 242, 0.26);
    border-radius: 999px;
    z-index: -1;
}

.hero-description {
    font-size: 1.38rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 1rem 1.7rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1.08rem;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary-blue), var(--primary-blue));
    box-shadow: 0 16px 34px rgba(33, 97, 194, 0.24);
}

.secondary-btn {
    color: var(--deep-navy);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.primary-btn:hover,
.secondary-btn:hover {
    transform: translateY(-3px);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(19, 43, 80, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(19, 43, 80, 0.06);
}

.trust-pill strong {
    color: var(--primary-blue);
    font-size: 1rem;
}

.trust-pill span {
    color: var(--text-dark);
    font-weight: 700;
}

.hero-visual {
    order: 2;
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10px;
}

.hero-image {
    position: relative;
    width: min(760px, 100%);
    max-width: 100%;
    transform: translateY(-18px);
    filter: drop-shadow(0 26px 42px rgba(33, 97, 194, 0.12));
}

.stats-strip {
    padding: 20px 0 10px;
}

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

.stat-card {
    padding: 1.35rem 1.2rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(19, 43, 80, 0.08);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.stat-card strong {
    display: block;
    color: var(--primary-blue);
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.35rem;
}

.stat-card span {
    color: var(--text-gray);
    font-weight: 700;
}

.features {
    padding: 76px 0 96px;
}

.section-head {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-kicker {
    color: var(--primary-blue);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    color: var(--text-dark);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 0.9rem;
}

.section-desc {
    color: var(--text-gray);
    font-size: 1.1rem;
    font-weight: 500;
}

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

.feature-card {
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 247, 255, 0.95));
    border: 1px solid rgba(19, 43, 80, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: right;
}

.feature-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(102, 169, 242, 0.18), rgba(33, 97, 194, 0.12));
    border: 1px solid rgba(33, 97, 194, 0.12);
}

.feature-icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.feature-card h3 {
    color: var(--deep-navy);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.9;
}

@media (max-width: 1180px) {
    .hero-grid {
        gap: 2rem;
    }

    .hero-copy h1 {
        font-size: clamp(1.95rem, 3.5vw, 3rem);
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .hero-image {
        width: min(700px, 100%);
        transform: translateY(-8px);
    }
}

@media (max-width: 992px) {
    .hero-grid,
    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 78px;
        gap: 2rem;
    }

    .top-logo {
        right: 50%;
        transform: translateX(50%);
        font-size: 2.5rem;
        top: -10px;
    }

    .hero-copy {
        order: 2;
        max-width: 100%;
        justify-self: center;
        text-align: center;
    }

    .hero-actions,
    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
        min-height: auto;
        padding-top: 0;
    }

    .hero-image {
        width: min(680px, 100%);
        transform: none;
    }
}

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

    .hero {
        padding-top: 22px;
    }

    .top-logo {
        font-size: 2rem;
        top: -4px;
    }

    .hero-copy h1 {
        font-size: 1.85rem;
        line-height: 1.18;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-visual {
        display: block;
    }

    .hero-image {
        width: min(620px, 100%);
        transform: none;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .hero-grid {
        padding-top: 64px;
    }

    .hero-copy h1 {
        font-size: 1.7rem;
    }

    .trust-pill {
        width: 100%;
        justify-content: center;
    }

    .feature-card,
    .stat-card {
        padding: 1.4rem;
    }
}
