* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

:root {
    --bg: #f7f9fc;
    --surface: #ffffff;
    --navy-950: #0b1220;
    --navy-900: #172033;
    --navy-700: #2a3a5c;
    --text: #172033;
    --text-muted: #57667c;
    --line: #e4e9f1;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --gold: #c9972e;
    --gold-light: #e9c988;
    --gold-dark: #9c711f;
    --gold-gradient: linear-gradient(135deg, #e0b458, #b9812a);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Tajawal", "Cairo", sans-serif;
    direction: rtl;
}

h1, h2, h3, .home-brand, .home-primary-action, .home-login-link, .home-cta-primary {
    font-family: "Cairo", sans-serif;
}

a { color: inherit; text-decoration: none; transition: all 0.2s ease; }

/* ---------- Header ---------- */
.home-header {
    max-width: 1180px;
    min-height: 84px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 800; }
.home-brand img { width: 44px; height: 44px; border-radius: 8px; }

.home-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-inline-start: auto;
    margin-inline-end: 28px;
}

.home-nav a {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-muted);
}

.home-nav a:hover { color: var(--navy-900); }

.home-header-actions { display: flex; align-items: center; gap: 12px; }

.home-login-link {
    padding: 10px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    font-weight: 700;
    font-size: 15px;
}

.home-login-link:hover { border-color: var(--blue); color: var(--blue-dark); }

.home-header-cta {
    padding: 10px 20px;
    border-radius: 6px;
    background: var(--gold-gradient);
    color: var(--navy-950);
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 18px rgb(201 151 46 / 28%);
}

.home-header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgb(201 151 46 / 38%); }

.home-main { overflow: hidden; }

.home-content,
.home-product,
.home-ready > div {
    min-width: 0;
}

.home-content > img {
    display: block;
    width: min(450px, 100%);
    height: auto;
}

/* ---------- Hero ---------- */
.home-hero {
    max-width: 1180px;
    min-height: calc(100vh - 180px);
    margin: 0 auto;
    padding: 64px 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
    align-items: center;
    gap: 80px;
}

.home-status {
    width: fit-content;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #087f5b;
    font-size: 14px;
    font-weight: 700;
}

.home-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px #d1fae5;
}

.home-content h1 { color: var(--navy-900); font-size: clamp(46px, 6vw, 72px); line-height: 1.08; font-weight: 800; }
.home-content h2 { max-width: 600px; margin-top: 18px; font-size: clamp(19px, 2.1vw, 22px); font-weight: 700; color: var(--gold-dark); }
.home-content p { max-width: 610px; margin: 20px 0 32px; color: var(--text-muted); font-size: 17px; line-height: 1.9; }

.home-hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.home-primary-action {
    width: fit-content;
    min-height: 54px;
    padding: 13px 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border-radius: 6px;
    background: var(--gold-gradient);
    color: var(--navy-950);
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 14px 30px rgb(201 151 46 / 30%);
}

.home-primary-action:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgb(201 151 46 / 40%); }

.home-secondary-action {
    width: fit-content;
    min-height: 54px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-weight: 700;
    color: var(--navy-900);
}

.home-secondary-action:hover { border-color: var(--navy-900); }

.home-product {
    border: 1px solid #dce3ed;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 70px rgb(23 32 51 / 12%);
    overflow: hidden;
}

.home-product-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--navy-700);
    background: var(--navy-900);
    color: #fff;
}

.home-product-header img { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; background: #fff; }
.home-product-header div { display: grid; gap: 3px; }
.home-product-header strong { font-size: 18px; font-family: "Cairo", sans-serif; }
.home-product-header span { color: var(--gold-light); font-size: 14px; }
.home-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.home-features div {
    min-height: 130px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    border-bottom: 1px solid var(--line);
}

.home-features div:nth-child(odd) { border-left: 1px solid var(--line); }
.home-features div:nth-child(n+3) { border-bottom: 0; }
.home-features strong { font-size: 17px; font-family: "Cairo", sans-serif; }
.home-features span { color: #64748b; font-size: 14px; }

/* ---------- Ribbon divider (signature element) ---------- */
.ribbon-divider {
    display: block;
    width: 100%;
    height: 46px;
}

.ribbon-divider--flip { transform: scaleY(-1); }

/* ---------- Features section ---------- */
.features-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px 24px 96px;
}

.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 14px;
    margin-bottom: 14px;
}

.section-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

.section-heading {
    max-width: 620px;
    font-family: "Cairo", sans-serif;
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.3;
}

.section-subheading {
    max-width: 560px;
    margin-top: 14px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.85;
}

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

.feature-card {
    padding: 30px 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    gap: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgb(23 32 51 / 8%);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--navy-900);
}

.feature-icon svg { width: 26px; height: 26px; stroke: var(--gold-light); }

.feature-card strong { font-family: "Cairo", sans-serif; font-size: 18px; color: var(--navy-900); }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.8; }

/* ---------- Process section ---------- */
.process-section {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 88px 24px;
}

.process-inner { max-width: 1180px; margin: 0 auto; }

.process-steps {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    position: relative;
}

.process-steps::before {
    content: "";
    position: absolute;
    top: 27px;
    right: 16.5%;
    left: 16.5%;
    height: 2px;
    background: repeating-linear-gradient(to left, var(--line) 0 8px, transparent 8px 16px);
    z-index: 0;
}

.process-step { position: relative; z-index: 1; display: grid; gap: 16px; }

.process-number {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: var(--navy-950);
    font-family: "Cairo", sans-serif;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 8px 18px rgb(201 151 46 / 30%);
}

.process-step strong { font-family: "Cairo", sans-serif; font-size: 18px; color: var(--navy-900); }
.process-step p { color: var(--text-muted); font-size: 14.5px; line-height: 1.8; max-width: 300px; }

/* ---------- Ready / CTA band ---------- */
.home-ready {
    padding: 72px max(24px, calc((100vw - 1132px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: var(--navy-950);
    background-image: radial-gradient(circle at 12% 20%, rgb(201 151 46 / 16%), transparent 42%);
    color: #fff;
}

.home-ready span { color: var(--gold-light); font-size: 14px; font-weight: 700; }
.home-ready h2 { margin-top: 10px; font-family: "Cairo", sans-serif; font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; max-width: 480px; }
.home-ready p { margin-top: 10px; color: #aab6c9; font-size: 15px; max-width: 460px; line-height: 1.8; }

.home-cta-primary {
    padding: 15px 26px;
    border-radius: 6px;
    background: var(--gold-gradient);
    color: var(--navy-950);
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 14px 30px rgb(201 151 46 / 25%);
}

.home-cta-primary:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.home-footer { padding: 28px 24px; text-align: center; color: #64748b; font-size: 14px; background: var(--navy-950); border-top: 1px solid var(--navy-700); }
.home-footer div { color: #8494ac; }
.home-footer a { color: var(--gold-light); }

@media (max-width: 900px) {
    .home-nav { display: none; }
}

@media (max-width: 800px) {
    .home-header { min-height: 72px; }
    .home-hero { min-height: auto; padding: 48px 24px 64px; grid-template-columns: 1fr; gap: 40px; }
    .home-content h1 { font-size: 46px; }
    .home-ready { align-items: flex-start; flex-direction: column; }
    .home-ready a,
    .home-primary-action { width: 100%; justify-content: center; }
    .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-steps { grid-template-columns: 1fr; gap: 40px; }
    .process-steps::before { display: none; }
}

@media (max-width: 480px) {
    .home-header, .home-hero { padding-inline: 16px; }
    .home-brand img { width: 38px; height: 38px; }
    .home-login-link { padding: 9px 13px; font-size: 14px; }
    .home-header-cta { padding: 9px 15px; font-size: 14px; }
    .home-content h1 { font-size: 38px; }
    .home-content h2 { font-size: 18px; }
    .home-content p { font-size: 16px; }
    .home-product-header { padding: 18px; }
    .home-product-header img { width: 58px; height: 58px; }
    .home-product-header strong { font-size: 16px; }
    .home-product-header span { font-size: 13px; }
    .home-features div { padding: 18px; }
    .home-ready { padding: 48px 16px; gap: 24px; }
    .home-ready h2 { font-size: 20px; }
    .home-features { grid-template-columns: 1fr; }
    .home-features div, .home-features div:nth-child(odd), .home-features div:nth-child(n+3) { min-height: 105px; border-left: 0; border-bottom: 1px solid var(--line); }
    .home-features div:last-child { border-bottom: 0; }
    .features-grid { grid-template-columns: 1fr; }
    .features-section { padding-top: 0; padding-bottom: 64px; }
    .process-section { padding: 56px 16px; }
    .feature-card { padding: 24px 20px; }
}
