/* ============================================================
   Platinum ERP marketing site — design system
   ============================================================ */

:root {
    --ink: #0f1218;
    --ink-soft: #3a4150;
    --muted: #6b7280;
    --line: #e6e8ec;
    --surface: #ffffff;
    --surface-soft: #f6f7f9;
    --surface-tint: #eef1fb;
    --accent: #4152d6;
    --accent-ink: #2f3fb8;
    --accent-soft: #eef0fd;
    --good: #12946f;
    --good-soft: #e7f7f1;
    --warn: #b4720a;
    --radius: 14px;
    --radius-lg: 20px;
    --shadow: 0 1px 2px rgba(15, 18, 24, 0.04), 0 8px 24px -12px rgba(15, 18, 24, 0.12);
    --shadow-lg: 0 4px 8px rgba(15, 18, 24, 0.04), 0 24px 48px -16px rgba(15, 18, 24, 0.18);
    --font-en: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-ar: "Cairo", "Segoe UI", sans-serif;
    --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-en);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.lang-ar { font-family: var(--font-ar); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 68px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 1.15rem;
    margin-inline-end: auto;
}
.brand-mark {
    color: var(--accent);
    font-size: 1.1rem;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-end: auto;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink-soft);
    background: none;
    border: none;
    cursor: pointer;
}
.nav-link:hover { background: var(--surface-soft); color: var(--ink); }

.nav-dropdown { position: relative; }
.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    width: 380px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display: none;
    max-height: 70vh;
    overflow-y: auto;
}
.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel { display: block; }
.nav-dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
}
.nav-dropdown-item:hover { background: var(--surface-soft); }
.nav-dropdown-icon { font-size: 1.2rem; line-height: 1.4; }
.nav-dropdown-name { display: block; font-weight: 700; font-size: 0.92rem; }
.nav-dropdown-tagline { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.nav-dropdown-divider { height: 1px; background: var(--line); margin: 8px 4px; }
.nav-dropdown-item-soon { opacity: 0.75; }
.soon-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--warn);
    background: #fbf1de;
    padding: 1px 7px;
    border-radius: 999px;
    margin-top: 3px;
}

.lang-switch {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}
.lang-btn {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
}
.lang-btn.active { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 15% -10%, var(--surface-tint), transparent 60%),
        radial-gradient(900px 420px at 100% 0%, #f2eefb, transparent 55%),
        var(--surface);
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--line);
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}
.hero h1 {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    max-width: 820px;
    margin-bottom: 20px;
}
.hero .lede {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 640px;
    margin-bottom: 32px;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #23262f; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--surface-soft); }

/* ---------- Section shells ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--surface-soft); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 10px;
    display: block;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Domain grid ---------- */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 18px;
}
.domain-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform .15s ease, box-shadow .15s ease;
}
.domain-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.domain-card-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: var(--accent-soft);
    border-radius: 12px;
    margin-bottom: 16px;
}
.domain-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.domain-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.domain-card .card-link { font-size: 0.85rem; font-weight: 700; color: var(--accent-ink); }

.soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.soon-card {
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    background: var(--surface);
}
.soon-card .domain-card-icon { background: #fbf1de; }
.soon-card h3 { font-size: 1rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.soon-card p { color: var(--muted); font-size: 0.88rem; }

/* ---------- Connections flow (landing page) ---------- */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.flow-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.flow-chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}
.flow-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent-ink);
    padding: 6px 12px;
    border-radius: 999px;
}
.flow-arrow { color: var(--muted); font-size: 0.9rem; }
.flow-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--muted);
    padding: 18px 0;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Domain / form detail page ---------- */
.detail-hero {
    padding: 20px 0 56px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(900px 380px at 90% -10%, var(--surface-tint), transparent 60%),
        var(--surface);
}
.detail-icon {
    width: 60px; height: 60px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem;
    background: var(--accent-soft);
    border-radius: 16px;
    margin-bottom: 22px;
}
.detail-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.detail-hero .lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 700px; }

.detail-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 880px) { .detail-grid { grid-template-columns: 1fr; } }

.prose h2 { font-size: 1.3rem; margin-bottom: 14px; }
.prose p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 8px; }
.block { margin-bottom: 40px; }

.steps { counter-reset: step; }
.step {
    counter-increment: step;
    position: relative;
    padding-inline-start: 44px;
    padding-bottom: 22px;
    border-inline-start: 2px solid var(--line);
    margin-inline-start: 15px;
}
.step:last-child { border-color: transparent; padding-bottom: 0; }
.step::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: -16px;
    top: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700;
}
.step h4 { font-size: 0.98rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.92rem; }

.why-box {
    background: var(--good-soft);
    border: 1px solid #cdeadf;
    border-radius: var(--radius-lg);
    padding: 22px;
}
.why-box h2 { font-size: 1.05rem; margin-bottom: 10px; color: var(--good); }
.why-box p { color: var(--ink-soft); font-size: 0.95rem; }

/* Sidebar */
.side-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 18px;
}
.side-card h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 14px; }
.conn-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.conn-item:last-child { border-bottom: none; }
.conn-item .icn { font-size: 1.1rem; }
.conn-item a { font-weight: 700; font-size: 0.9rem; }
.conn-item p { color: var(--muted); font-size: 0.83rem; margin-top: 3px; }

.forms-list { display: flex; flex-direction: column; gap: 8px; }
.form-pill {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
}
.form-pill:hover { background: var(--surface-soft); }
.form-pill .arrow { color: var(--muted); }

.back-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.88rem; font-weight: 700; color: var(--accent-ink);
    margin-top: 24px;
}

/* ---------- Coming soon page ---------- */
.soon-hero {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 96px 0;
}
.soon-hero .detail-icon { margin: 0 auto 22px; }
.soon-hero h1 { font-size: 2rem; margin-bottom: 14px; }
.soon-hero p { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 26px; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #cbd0dc;
    padding: 56px 0 0;
    margin-top: 40px;
}
.footer-inner {
    display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
    padding-bottom: 40px;
}
.footer-brand { font-weight: 800; font-size: 1.05rem; color: #fff; max-width: 280px; }
.footer-brand .brand-mark { color: #8891ff; }
.footer-brand p { font-weight: 400; color: #9aa0b2; font-size: 0.88rem; margin-top: 10px; line-height: 1.6; }
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: #7d8296; margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.88rem; color: #cbd0dc; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #262a36;
    padding: 18px 0;
    font-size: 0.82rem;
    color: #7d8296;
}

/* ---------- RTL adjustments ---------- */
[dir="rtl"] .nav-dropdown-toggle svg { transform: scaleX(-1); }
[dir="rtl"] .flow-arrow { display: inline-block; transform: scaleX(-1); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
    .main-nav { display: none; }
    .header-inner { height: 60px; }
    .hero { padding: 56px 0 48px; }
    .section { padding: 52px 0; }
}
