:root {
    --bg: #f6f7f1;
    --surface: #ffffff;
    --surface-soft: #f1f5ea;
    --card-bg: rgba(255, 255, 255, 0.9);
    --primary: #6f8064;
    --primary-dark: #4f5d47;
    --primary-soft: #ddeccf;
    --accent: #afc49a;
    --warning: #d89a3d;
    --warning-soft: #fff4da;
    --text: #111827;
    --muted: #65705f;
    --border: #dde3d3;
    --border-soft: #edf1e7;
    --shadow: 0 24px 70px rgba(63, 76, 54, 0.13);
    --shadow-soft: 0 14px 34px rgba(63, 76, 54, 0.08);
    --radius-xl: 34px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top right, rgba(221, 236, 207, 0.98), transparent 360px),
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.9), transparent 260px),
        linear-gradient(135deg, #fafbf7 0%, #f6f7f1 48%, #eef3e6 100%);
    color: var(--text);
}

body[data-lang="en"] {
    direction: ltr;
}

body[data-lang="ar"] {
    direction: rtl;
}

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

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

h1 {
    max-width: 760px;
    font-size: clamp(42px, 5.2vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
    margin-bottom: 14px;
}

body[data-lang="ar"] h1,
body[data-lang="ar"] h2 {
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
}

p {
    color: var(--muted);
    line-height: 1.85;
}

.landing-nav {
    position: sticky;
    top: 14px;
    z-index: 20;
    width: min(1160px, calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.brand,
.nav-actions,
.nav-links {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-weight: 950;
    letter-spacing: -0.03em;
    color: var(--text);
    padding-inline: 9px;
    min-width: max-content;
}

.brand-mark {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 7px rgba(111, 128, 100, 0.13);
}

.nav-links {
    justify-content: center;
    gap: 4px;
}

.nav-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 850;
}

.nav-links a:hover {
    background: var(--surface-soft);
}

.nav-actions {
    justify-content: flex-end;
    gap: 8px;
}

.btn,
.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    transition: 180ms ease;
    white-space: nowrap;
}

.btn:hover,
.language-toggle:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 12px 22px rgba(79, 93, 71, 0.16);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary,
.language-toggle {
    background: var(--surface);
    border-color: var(--border);
    color: var(--primary-dark);
}

.btn-secondary:hover,
.language-toggle:hover {
    background: var(--surface-soft);
}

.btn-large {
    padding: 13px 22px;
    font-size: 14px;
}

.hero-section,
.section-block,
.landing-footer {
    width: min(1160px, calc(100% - 32px));
    margin-inline: auto;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    gap: 44px;
    align-items: center;
    min-height: calc(100vh - 92px);
    padding: 60px 0 38px;
}

.hero-content {
    min-width: 0;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 15px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid #c8d9b8;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 950;
}

.hero-lead {
    max-width: 700px;
    margin-bottom: 14px;
    color: var(--primary-dark);
    font-size: clamp(20px, 2.1vw, 28px);
    line-height: 1.45;
    font-weight: 850;
}

.hero-subtitle {
    max-width: 700px;
    margin-bottom: 27px;
    font-size: 16.5px;
}

.hero-actions,
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.trust-strip {
    margin-top: 20px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 850;
}

.trust-strip span {
    padding: 8px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-preview {
    min-width: 0;
}

.preview-window {
    position: relative;
    padding: 18px;
    min-height: 470px;
    border-radius: var(--radius-xl);
    background:
        linear-gradient(160deg, rgba(255,255,255,0.96), rgba(241,245,234,0.86));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-window::before {
    content: "";
    position: absolute;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: rgba(175, 196, 154, 0.22);
    inset-inline-start: -84px;
    top: -74px;
}

.preview-topbar {
    position: relative;
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-bottom: 22px;
}

.preview-topbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8d2c1;
}

.preview-main-card,
.storage-path-card,
.data-table-preview,
.pipeline-preview {
    position: relative;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--border-soft);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

.preview-main-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    margin-bottom: 14px;
}

.preview-main-card small,
.storage-path-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 7px;
}

.preview-main-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--primary-dark);
    color: #fff;
    font-size: 25px;
    font-weight: 950;
}

.pipeline-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    margin-bottom: 14px;
}

.pipeline-preview div {
    display: grid;
    gap: 7px;
    padding: 12px 10px;
    border-radius: 16px;
    background: var(--surface-soft);
    text-align: center;
}

.pipeline-preview span {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 950;
}

.pipeline-preview strong {
    font-size: 13px;
}

.storage-path-card {
    padding: 16px;
    margin-bottom: 14px;
}

.storage-path-card code {
    display: block;
    padding: 13px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    color: #20301d;
    background: #f8fbf3;
    border: 1px dashed #c8d9b8;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 850;
}

.data-table-preview {
    padding: 12px;
}

.table-row {
    display: grid;
    grid-template-columns: 0.7fr 1.25fr 0.75fr;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-soft);
    color: #2f352d;
    font-size: 12px;
    font-weight: 850;
}

.table-row:last-child {
    border-bottom: 0;
}

.table-head {
    color: var(--muted);
    font-size: 11px;
}

.dot.ready {
    color: var(--primary-dark);
}

.dot.review {
    color: #9a5b13;
}

.dot.soon {
    color: #7b8174;
}

.section-block {
    padding: 76px 0;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 30px;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading.narrow {
    margin-bottom: 0;
}

.intro-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.intro-strip div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.intro-strip span {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-weight: 950;
}

.intro-strip p {
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.65;
}

.steps-grid,
.plans-grid,
.systems-grid {
    display: grid;
    gap: 14px;
}

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

.step-card,
.plan-card,
.system-card,
.filing-card,
.security-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

.step-card {
    padding: 21px;
    min-height: 210px;
}

.step-card span {
    display: inline-flex;
    margin-bottom: 24px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 950;
}

.step-card h3,
.plan-card h3,
.system-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
}

.step-card p,
.plan-card p,
.system-card p {
    margin-bottom: 0;
    font-size: 13.5px;
}

.systems-section {
    padding-top: 86px;
}

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

.system-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    min-height: 230px;
}

.system-card::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(221, 236, 207, 0.48);
    inset-inline-end: -45px;
    bottom: -55px;
}

.system-card.available {
    border-color: #c8d9b8;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(221,236,207,0.52));
}

.system-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin: 22px 0 16px;
    border-radius: 16px;
    background: var(--surface-soft);
    font-size: 21px;
}

.status-pill {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 950;
}

.status-pill.available {
    background: var(--primary);
    color: #fff;
}

.status-pill.soon {
    background: #f3f3ef;
    color: #747b6e;
}

.split-section {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 34px;
    align-items: center;
}

.filing-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}

.folder-tree {
    direction: ltr;
    text-align: left;
    padding: 18px;
    border-radius: 18px;
    background: #fbfdf8;
    border: 1px dashed #c8d9b8;
    color: #2f3a2b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 13px;
    line-height: 1.9;
    font-weight: 800;
}

.folder-icon {
    color: var(--primary);
}

.indent { padding-left: 18px; }
.indent-2 { padding-left: 36px; }
.indent-3 { padding-left: 54px; }
.indent-4 { padding-left: 72px; }
.indent-5 { padding-left: 90px; }

.file-line {
    color: #835710;
}

.check-list,
.plan-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.check-list li,
.plan-card li {
    position: relative;
    padding-inline-start: 24px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.65;
}

.check-list li::before,
.plan-card li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: var(--primary-dark);
    font-weight: 950;
}

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

.plan-card {
    padding: 24px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.plan-head {
    min-height: 116px;
    display: grid;
    align-content: start;
    gap: 10px;
}

.plan-head p {
    margin-bottom: 0;
}

.plan-card strong {
    min-height: 36px;
    display: flex;
    align-items: center;
    font-size: 26px;
    letter-spacing: -0.04em;
}

.plan-cta {
    width: 100%;
    margin-bottom: 2px;
}

.plan-note {
    margin-top: -2px;
    padding: 9px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.58);
    border: 1px solid var(--border-soft);
    color: var(--primary-dark);
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.55;
}

.plan-card.featured {
    border-color: #c8d9b8;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(221,236,207,0.56));
}

.security-section {
    padding: 30px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.security-section > div {
    max-width: 760px;
}

.landing-footer {
    padding: 28px 0 46px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

@media (max-width: 1040px) {
    .landing-nav {
        grid-template-columns: 1fr auto;
        border-radius: 24px;
    }

    .nav-links {
        grid-column: 1 / -1;
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-top: 4px;
    }

    body[data-lang="ar"] .nav-links {
        justify-content: flex-end;
    }

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

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

    .hero-content {
        text-align: center;
    }

    h1,
    .hero-lead,
    .hero-subtitle {
        margin-inline: auto;
    }

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

    .steps-grid,
    .systems-grid,
    .intro-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .landing-nav,
    .hero-section,
    .section-block,
    .landing-footer {
        width: min(100% - 22px, 1160px);
    }

    .landing-nav {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .brand {
        flex: 1;
    }

    .nav-actions {
        width: 100%;
        justify-content: stretch;
    }

    .nav-actions .btn,
    .language-toggle {
        flex: 1;
    }

    .nav-links {
        order: 4;
    }

    h1 {
        font-size: 40px;
    }

    .hero-section {
        padding-top: 40px;
    }

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

    .hero-preview {
        display: none;
    }

    .steps-grid,
    .systems-grid,
    .plans-grid,
    .intro-strip,
    .pipeline-preview {
        grid-template-columns: 1fr;
    }

    .plan-card.featured {
        transform: none;
    }

    .security-section,
    .landing-footer {
        flex-direction: column;
        align-items: stretch;
    }
}
