/* ===========================================================================
   rx-identity.css — the Magma Solutions identity on the store platform's
   landing page ("/" on a platform host).

   The landing used to borrow a light plum/orange theme. It now wears the
   company's own identity, taken from magmasolutions.net's theme:

       dark space ground      #07040F → #120A24, violet nebula at the top
       amber / orange         #FF7A18 → #FFA53C (actions, accents, highlights)
       violet                 #8B5CF6 / #6D28D9 / #C4B5FD / #D8C7FF
       headings               Montserrat 700/800, tight tracking, white
       body                   #C9C3DC on the dark ground
       cards                  glass: rgba(255,255,255,.045), a
                              rgba(255,255,255,.09) hairline, 18px radius
       buttons                12px radius; primary = amber gradient with
                              #180A2B text and an amber glow; secondary =
                              glass with a violet edge, violet text

   Everything is scoped to html.rx-ld-home (set by js/rx-identity.js only while
   the landing itself is on the page), so the dashboards, the till, the driver
   app and the storefront keep the app's own design system untouched. The
   pricing page shares the .ld shell but not this class, so it stays as it is.
   =========================================================================== */

/* ------------------------------ the ground -------------------------------- */

/* The app's inline theme script paints the root, so the ground is forced here;
   the class is removed the moment the landing leaves the page and the app's own
   colour comes straight back. No background-attachment: fixed — a fixed
   background is painted once, for the viewport, so a long page or a full-page
   screenshot would show the light ground below the fold (and mobile Safari
   paints it badly). The space itself is on .ld, whose box is the whole page. */
html.rx-ld-home {
    color-scheme: dark;
    background-color: #07040F !important;
}

html.rx-ld-home ::selection {
    background: rgba(255, 122, 24, .28);
    color: #FFFFFF;
}

/* --------------------------- the theme values ----------------------------- */

html.rx-ld-home .ld {
    --ld-plum: #8B5CF6;
    --ld-deep: #6D28D9;
    --ld-ink: #FFFFFF;
    --ld-body: #C9C3DC;
    --ld-orange: #FF7A18;
    --ld-orange-h: #FFA53C;
    --ld-ghost: rgba(255, 255, 255, .04);
    --ld-ghost-2: rgba(255, 255, 255, .09);
    --ld-page: #07040F;
    --ld-card: rgba(255, 255, 255, .045);
    --ld-line: rgba(255, 255, 255, .09);
    --ld-lilac: #C4B5FD;
    --ld-lav: rgba(255, 255, 255, .05);
    --ld-peach: #FFA53C;
    --ld-peach-soft: rgba(255, 122, 24, .20);
    --ld-panel-a: #2A1150;
    --ld-panel-b: #120A24;
    --ld-head-bg: rgba(7, 4, 15, .82);

    /* one display face for every heading, with Cairo behind it so an Arabic
       heading is never a row of boxes */
    --rx-display: "Montserrat", "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    --rx-body: "Poppins", "Cairo", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    --rx-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    color: var(--ld-body);

    /* the space: a violet nebula at the top, a warm one at the top right, a
       quiet violet at the foot, over a near-black that lifts in the middle */
    background-color: #07040F;
    background-image:
        radial-gradient(1200px 760px at 14% 0%, rgba(109, 40, 217, .50) 0%, rgba(109, 40, 217, 0) 62%),
        radial-gradient(1000px 640px at 86% 0%, rgba(255, 122, 24, .18) 0%, rgba(255, 122, 24, 0) 60%),
        radial-gradient(1100px 700px at 50% 100%, rgba(109, 40, 217, .18) 0%, rgba(109, 40, 217, 0) 65%),
        linear-gradient(180deg, #120A24 0%, #07040F 38%, #0A0616 100%);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

/* ------------------------------- header ---------------------------------- */

html.rx-ld-home .ld-head {
    background: var(--ld-head-bg);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    backdrop-filter: blur(12px) saturate(120%);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

/* the wordmark is the white artwork on this ground */
html.rx-ld-home .ld-logo,
html.rx-ld-home .ld-hero-logo,
html.rx-ld-home .ld-foot-logo {
    content: url("/images/magma-logo-white.png");
}

html.rx-ld-home .ld-head-link {
    color: #C9C3DC;
    border-radius: 10px;
}

html.rx-ld-home .ld-head-link:hover {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #FFFFFF;
}

html.rx-ld-home .ld-head-link.is-on {
    background: rgba(139, 92, 246, .16);
    border-color: rgba(139, 92, 246, .34);
    color: #FFFFFF;
    box-shadow: inset 0 -2px 0 var(--ld-orange);
}

/* the language pill, in the identity's hairline glass */
html.rx-ld-home .ld .sf-lang {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: #E9E4F7;
    font-weight: 700;
}

html.rx-ld-home .ld .sf-lang:hover {
    background: rgba(255, 122, 24, .16);
    border-color: rgba(255, 122, 24, .45);
    color: var(--ld-orange-h);
}

/* ------------------------------- buttons --------------------------------- */

html.rx-ld-home .ld .ms-btn {
    border-width: 1px;
    border-radius: 12px;
    font-family: var(--rx-body);
}

html.rx-ld-home .ld .ms-btn-primary {
    background-color: #FF7A18;
    background-image: linear-gradient(135deg, #FF7A18 0%, #FFA53C 100%);
    border-color: transparent;
    color: #180A2B;
    font-weight: 700;
    box-shadow: 0 14px 34px rgba(255, 122, 24, .30);
}

html.rx-ld-home .ld .ms-btn-primary:hover,
html.rx-ld-home .ld .ms-btn-primary:active {
    background-color: #FF8A2B;
    background-image: linear-gradient(135deg, #FF7A18 0%, #FFA53C 100%);
    border-color: transparent;
    color: #180A2B;
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(255, 122, 24, .42);
}

html.rx-ld-home .ld .ms-btn-ghost {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(139, 92, 246, .45);
    color: #D8C7FF;
    font-weight: 700;
}

html.rx-ld-home .ld .ms-btn-ghost:hover,
html.rx-ld-home .ld .ms-btn-ghost:active {
    background: rgba(109, 40, 217, .26);
    border-color: rgba(255, 122, 24, .55);
    color: var(--ld-orange-h);
}

/* -------------------------------- hero ----------------------------------- */

/* the glowing grid horizon behind the hero's top edge */
html.rx-ld-home .ld-hero::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 0;
    width: min(1400px, 130vw);
    height: 340px;
    transform: translateX(-50%);
    background-image:
        linear-gradient(rgba(139, 92, 246, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, .16) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
    mask-image: radial-gradient(80% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
    pointer-events: none;
}

/* the one lit hairline along the top of the hero */
html.rx-ld-home .ld-hero::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg,
            rgba(255, 122, 24, 0) 0%,
            rgba(255, 122, 24, .55) 22%,
            rgba(139, 92, 246, .75) 55%,
            rgba(255, 122, 24, 0) 100%);
    box-shadow: 0 0 26px rgba(139, 92, 246, .55);
    pointer-events: none;
}

/* the ornaments become soft light, not flat discs */
html.rx-ld-home .ld-orn-peach {
    background: radial-gradient(circle, rgba(255, 122, 24, .13) 0%, rgba(255, 122, 24, 0) 70%);
}

html.rx-ld-home .ld-orn-plum {
    background: radial-gradient(circle, rgba(109, 40, 217, .30) 0%, rgba(109, 40, 217, 0) 70%);
}

html.rx-ld-home .ld-orn-ring {
    border-color: rgba(139, 92, 246, .28);
}

html.rx-ld-home .ld-orn-orange {
    background: linear-gradient(135deg, #FF7A18 0%, #FFA53C 100%);
    box-shadow: 0 14px 34px rgba(255, 122, 24, .35);
}

/* the illustration's panel: deep violet, one lighter sweep, an amber rim */
html.rx-ld-home .ld-hero-art {
    border: 1px solid rgba(139, 92, 246, .22);
    background-image:
        linear-gradient(118deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 48%),
        linear-gradient(145deg, var(--ld-panel-a), var(--ld-panel-b));
    box-shadow: 0 18px 48px rgba(0, 0, 0, .42);
}

html.rx-ld-home .ld-lead {
    color: #FFFFFF;
    font-weight: 700;
}

html.rx-ld-home .ld[dir="ltr"] .ld-lead,
html.rx-ld-home .ld:not([dir]) .ld-lead {
    letter-spacing: -.01em;
}

html.rx-ld-home .ld-sub {
    color: #C9C3DC;
}

/* ----------------------------- sections ---------------------------------- */

html.rx-ld-home .ld-h2 {
    font-family: var(--rx-display);
    font-weight: 800;
    color: #FFFFFF;
}

html.rx-ld-home .ld[dir="ltr"] .ld-h2,
html.rx-ld-home .ld:not([dir]) .ld-h2 {
    letter-spacing: -.015em;
}

/* the highlighted words of a title: the amber, not a peach strip */
html.rx-ld-home .ld-hl {
    background-image: none;
    color: var(--ld-orange-h);
}

html.rx-ld-home .ld-p {
    color: #C9C3DC;
}

html.rx-ld-home .ld-note {
    color: var(--ld-orange-h);
}

html.rx-ld-home .ld-li {
    color: #C9C3DC;
}

html.rx-ld-home .ld-tick {
    color: var(--ld-orange-h);
}

html.rx-ld-home .ld-code {
    background: rgba(139, 92, 246, .16);
    border-color: rgba(139, 92, 246, .30);
    color: #D8C7FF;
    border-radius: 6px;
}

/* the dashboard's sections: small uppercase glass pills, violet type */
html.rx-ld-home .ld-chip {
    background: rgba(255, 255, 255, .045);
    border-color: rgba(255, 255, 255, .10);
    color: #D8C7FF;
    font-size: 10.5px;
    font-weight: 700;
    padding: 5px 10px;
}

/* the small uppercase eyebrow is a Latin detail: Arabic keeps its own letter
   joins, so the tracking and the caps are only ever applied to English */
html.rx-ld-home .ld[dir="ltr"] .ld-chip,
html.rx-ld-home .ld:not([dir]) .ld-chip {
    letter-spacing: .06em;
    text-transform: uppercase;
}

html.rx-ld-home .ld-ico {
    background: rgba(139, 92, 246, .14);
    border-color: rgba(139, 92, 246, .30);
    color: #C4B5FD;
    box-shadow: none;
}

/* the identity's card: glass, a hairline, 18px; it lifts on hover */
html.rx-ld-home .ld-card {
    background: var(--ld-card);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
    html.rx-ld-home .ld-card:hover {
        border-color: rgba(255, 122, 24, .35);
        transform: translateY(-3px);
        box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    }
}

/* ---------------------------- how it works -------------------------------- */

html.rx-ld-home .ld-how-title {
    font-family: var(--rx-display);
    font-weight: 800;
    color: #FFFFFF;
}

html.rx-ld-home .ld[dir="ltr"] .ld-how-title,
html.rx-ld-home .ld:not([dir]) .ld-how-title {
    letter-spacing: -.015em;
}

html.rx-ld-home .ld-step {
    background: var(--ld-card);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 14px;
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    backdrop-filter: blur(10px) saturate(120%);
}

html.rx-ld-home .ld-step + .ld-step::before {
    background: repeating-linear-gradient(to bottom, rgba(255, 122, 24, .45) 0 4px, transparent 4px 8px);
}

@media (min-width: 760px) {
    html.rx-ld-home .ld-step + .ld-step::before {
        background: repeating-linear-gradient(to right, rgba(255, 122, 24, .45) 0 4px, transparent 4px 8px);
    }
}

/* the numeral: amber on the dark ground, in the identity's mono face */
html.rx-ld-home .ld-step-n {
    background: rgba(7, 4, 15, .55);
    border: 2px solid var(--ld-orange);
    color: var(--ld-orange-h);
    font-family: var(--rx-mono);
    font-size: 12.5px;
    font-weight: 700;
    box-shadow: 0 0 18px rgba(255, 122, 24, .22);
}

html.rx-ld-home .ld-step-t {
    color: #EDE9F8;
}

/* -------------------------------- footer --------------------------------- */

html.rx-ld-home .ld-foot {
    background: linear-gradient(180deg, rgba(18, 10, 36, .92) 0%, #07040F 100%);
    border-top: 1px solid rgba(255, 255, 255, .09);
}

/* the white mark needs no plate on this ground */
html.rx-ld-home .ld-foot-logo {
    padding: 0;
    background: transparent;
}

html.rx-ld-home .ld-foot-name {
    color: #FFFFFF;
}

html.rx-ld-home .ld-foot-link {
    color: #D8C7FF;
}

html.rx-ld-home .ld-foot-link:hover {
    color: var(--ld-orange-h);
}

/* ------------------------- the drawings' palette -------------------------- */

html.rx-ld-home .ld-art-card {
    fill: #150E27;
    stroke: rgba(255, 255, 255, .12);
}

html.rx-ld-home .ld-art-phone {
    fill: #1B1130;
    stroke: var(--ld-orange);
}

html.rx-ld-home .ld-art-soft {
    fill: #1E1436;
}

html.rx-ld-home .ld-art-soft2 {
    fill: #251A45;
}

html.rx-ld-home .ld-art-ink {
    fill: #3A2C63;
}

html.rx-ld-home .ld-art-acc {
    fill: #8B5CF6;
}

html.rx-ld-home .ld-art-acc2 {
    fill: #C4B5FD;
}

html.rx-ld-home .ld-art-accsoft {
    fill: rgba(139, 92, 246, .28);
}

html.rx-ld-home .ld-art-orange {
    fill: #FFA53C;
}

html.rx-ld-home .ld-art-peach {
    fill: #FF7A18;
}

html.rx-ld-home .ld-art-line {
    stroke: rgba(255, 255, 255, .14);
}

html.rx-ld-home .ld-art-outline,
html.rx-ld-home .ld-art-scanframe {
    stroke: #FFA53C;
}

html.rx-ld-home .ld-qr-ring {
    stroke: #C4B5FD;
}

html.rx-ld-home .ld-art-dash {
    stroke: rgba(196, 181, 253, .35);
}

html.rx-ld-home .ld-art-txt {
    fill: #C4B5FD;
}

/* the app's small print on this page keeps the identity's own face */
html.rx-ld-home .ld,
html.rx-ld-home .ld .ms-wrap {
    font-family: var(--rx-body);
}
