:root {
    --expert-ink: #13211f;
    --expert-muted: #5f716d;
    --expert-line: #dbe7e2;
    --expert-surface: #f5faf7;
    --expert-brand: #17674f;
    --expert-brand-dark: #0f4839;
    --expert-accent: #d6f1df;
}

* { box-sizing: border-box; }

.expert-home {
    min-height: 100vh;
    margin: 0;
    color: var(--expert-ink);
    background: #fff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

.expert-nav,
.expert-hero,
.expert-section,
.expert-footer,
.expert-information {
    width: min(1140px, calc(100% - 40px));
    margin-inline: auto;
}

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

.expert-brand { color: var(--expert-ink); display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; direction: ltr; }
.expert-brand span { font-size: 1.08rem; font-weight: 800; letter-spacing: -.035em; }
.expert-brand small { margin-top: 4px; color: var(--expert-brand); font-size: .62rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.expert-nav-links, .expert-nav-actions { display: flex; align-items: center; gap: 18px; }
.expert-nav-links a, .expert-login { color: var(--expert-muted); font-size: .9rem; font-weight: 650; text-decoration: none; }
.expert-nav-links a:hover, .expert-login:hover { color: var(--expert-brand); }

.expert-lang { position: static; }
.expert-lang.zx-lang { background: #edf5f1; }
.expert-lang.zx-lang a.on { color: var(--expert-brand); }

.expert-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: clamp(40px, 7vw, 112px);
    align-items: center;
    padding: clamp(56px, 9vw, 116px) 0 clamp(64px, 10vw, 132px);
}

.expert-eyebrow {
    margin: 0 0 15px;
    color: var(--expert-brand);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.expert-hero h1,
.expert-section h2,
.expert-information h1 {
    margin: 0;
    max-width: 700px;
    letter-spacing: -.055em;
    line-height: 1.03;
}
.expert-hero h1 { font-size: clamp(2.65rem, 5.5vw, 5rem); }
.expert-section h2, .expert-information h1 { font-size: clamp(2rem, 3.7vw, 3.4rem); }
.expert-lede { max-width: 640px; margin: 25px 0 0; color: var(--expert-muted); font-size: clamp(1rem, 1.6vw, 1.2rem); }

.expert-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.expert-button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 750; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.expert-button:hover { transform: translateY(-1px); }
.expert-button-primary { color: #fff; background: var(--expert-brand); box-shadow: 0 10px 22px -13px rgba(23, 103, 79, .72); }
.expert-button-primary:hover { color: #fff; background: var(--expert-brand-dark); }
.expert-button-quiet { color: var(--expert-brand); border-color: #c4ddd1; background: #fff; }
.expert-button-quiet:hover { color: var(--expert-brand-dark); background: var(--expert-surface); }
.expert-note { margin: 17px 0 0; color: var(--expert-muted); font-size: .83rem; }

.expert-hero-panel { overflow: hidden; border: 1px solid var(--expert-line); border-radius: 18px; background: linear-gradient(145deg, #f5fbf7, #eaf6ef); box-shadow: 0 24px 50px -35px rgba(21, 68, 52, .55); }
.expert-panel-top { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--expert-line); color: var(--expert-muted); font-size: .78rem; font-weight: 750; }
.expert-panel-dot { width: 8px; height: 8px; border-radius: 50%; background: #39a66e; }
.expert-flow-list { display: grid; gap: 0; margin: 0; padding: 7px 24px; list-style: none; }
.expert-flow-list li { display: grid; grid-template-columns: 43px 1fr; gap: 14px; padding: 24px 0; border-bottom: 1px solid var(--expert-line); }
.expert-flow-list li:last-child { border-bottom: 0; }
.expert-flow-number { color: var(--expert-brand); font-size: .75rem; font-weight: 800; }
.expert-flow-list strong { font-size: 1rem; }
.expert-flow-list p { margin: 5px 0 0; color: var(--expert-muted); font-size: .88rem; }

.expert-section { padding: clamp(56px, 8vw, 100px) 0; border-top: 1px solid var(--expert-line); }
.expert-section-heading { max-width: 690px; }
.expert-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.expert-card { min-height: 218px; padding: 26px; border: 1px solid var(--expert-line); border-radius: 14px; background: #fff; }
.expert-card-icon { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; color: var(--expert-brand); background: var(--expert-accent); font-weight: 850; }
.expert-card h3 { margin: 22px 0 8px; font-size: 1.08rem; letter-spacing: -.025em; }
.expert-card p { margin: 0; color: var(--expert-muted); font-size: .92rem; }

.expert-trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 48px; background: var(--expert-surface); border: 0; border-radius: 18px; padding-inline: clamp(24px, 5vw, 64px); }
.expert-trust-copy { color: var(--expert-muted); }
.expert-trust-copy p { margin: 0 0 16px; }
.expert-trust-copy a { color: var(--expert-brand); font-weight: 750; text-decoration: none; }

.expert-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0; color: var(--expert-muted); font-size: .82rem; }
.expert-footer a { color: inherit; text-decoration: none; }
.expert-footer a:hover { color: var(--expert-brand); }

.expert-information { max-width: 820px; padding: 78px 0 100px; }
.expert-information .expert-lede { margin-top: 16px; }
.expert-information-card { margin-top: 30px; padding: 28px; border: 1px solid var(--expert-line); border-radius: 14px; }
.expert-information-card h2 { margin: 0 0 14px; font-size: 1.05rem; letter-spacing: -.02em; }
.expert-information-card ul { display: grid; gap: 12px; margin: 0; padding-inline-start: 22px; color: var(--expert-muted); }
.expert-information-card p { margin: 0; color: var(--expert-muted); }
.expert-information-callout { background: var(--expert-surface); }
.expert-information .expert-button { margin-top: 30px; }

.expert-home a:focus-visible { outline: 3px solid rgba(23, 103, 79, .38); outline-offset: 3px; }

/* Arabic needs breathing room around joined letters and diacritics. */
[dir="rtl"] .expert-hero h1,
[dir="rtl"] .expert-section h2,
[dir="rtl"] .expert-information h1 { line-height: 1.35; letter-spacing: normal; }
[dir="rtl"] .expert-eyebrow { letter-spacing: normal; }
.expert-flow-list li > div, .expert-trust > div { min-width: 0; }
.expert-home p, .expert-home li { overflow-wrap: anywhere; }

@media (max-width: 760px) {
    .expert-nav { min-height: auto; padding: 20px 0; flex-wrap: wrap; }
    .expert-nav-links { display: none; }
    .expert-nav-actions { margin-inline-start: auto; gap: 11px; }
    .expert-login { font-size: .82rem; }
    .expert-hero, .expert-trust { grid-template-columns: 1fr; }
    .expert-hero { padding-top: 48px; }
    .expert-cards { grid-template-columns: 1fr; margin-top: 30px; }
    .expert-card { min-height: 0; }
    .expert-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .expert-button { transition: none; }
    .expert-button:hover { transform: none; }
}
