/* ============================================================================
   rx-landing.css — the Magma Solutions page shape, applied to the store
   platform's landing page.

   magmasolutions.net is: a fixed dark space backdrop (nebula clouds and a
   faint blueprint grid), a two-column hero with a copy block on one side and a
   floating "screen" on the other, then sections that always start with a small
   amber kicker, a large white heading, a hairline rule and a "see all" link,
   banded backgrounds between them, numbered items, and glass cards.

   That language is rebuilt here for the landing page's own content, scoped to
   html.rx-ld-home (set by rx-identity.js only while the landing is on screen),
   so /pricing, /login and the dashboards are never touched.

   Class prefix rxm- (magma layout) to stay clear of the platform's ld-/ms-.
   ========================================================================== */

html.rx-ld-home {
    --rxm-max: 1180px;
    --rxm-gap: 24px;
    --rxm-kicker: #FF7A18;
    --rxm-ink: #FFFFFF;
    --rxm-body: #C9C3DC;
    --rxm-dim: #9A93B4;
    --rxm-line: rgba(255, 255, 255, .09);
    --rxm-card: rgba(255, 255, 255, .045);
    --rxm-card-2: rgba(255, 255, 255, .07);
    --rxm-amber-a: #FF7A18;
    --rxm-amber-b: #FFA53C;
    --rxm-violet: #8B5CF6;
    --rxm-radius: 18px;
    color-scheme: dark;
}

/* the landing column: the app's own spacing is replaced by the sections' own */
html.rx-ld-home .ld-main {
    position: relative;
    isolation: isolate;
    /* the platform sets text-align: center on the body for its own pages; the
       landing reads the way Magma's does, from the start edge */
    text-align: start;
}

/* ---------------------------------------------------------------- backdrop */

html.rx-ld-home .rxm-space {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    background:
        radial-gradient(120% 80% at 50% -20%, #1A0F33 0%, rgba(18, 10, 36, 0) 60%),
        linear-gradient(180deg, #07040F 0%, #120A24 52%, #07040F 100%);
}

html.rx-ld-home .rxm-nebula {
    position: absolute;
    inset: -10%;
}

html.rx-ld-home .rxm-nebula span {
    position: absolute;
    display: block;
    border-radius: 50%;
    opacity: .16;
}

html.rx-ld-home .rxm-nebula span:nth-child(1) {
    width: 60vw;
    height: 60vw;
    min-width: 460px;
    min-height: 460px;
    inset-inline-start: -14vw;
    top: -16vh;
    background: radial-gradient(circle at 50% 50%, rgba(109, 40, 217, .95) 0%, rgba(109, 40, 217, .35) 42%, rgba(109, 40, 217, 0) 72%);
    animation: rxmNebA 72s linear infinite alternate;
}

html.rx-ld-home .rxm-nebula span:nth-child(2) {
    width: 46vw;
    height: 46vw;
    min-width: 360px;
    min-height: 360px;
    inset-inline-end: -12vw;
    top: 22vh;
    background: radial-gradient(circle at 50% 50%, rgba(255, 122, 24, .85) 0%, rgba(255, 122, 24, .28) 44%, rgba(255, 122, 24, 0) 72%);
    opacity: .12;
    animation: rxmNebB 88s linear infinite alternate;
}

html.rx-ld-home .rxm-nebula span:nth-child(3) {
    width: 54vw;
    height: 54vw;
    min-width: 400px;
    min-height: 400px;
    inset-inline-start: 18vw;
    bottom: -28vh;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, .85) 0%, rgba(139, 92, 246, .26) 46%, rgba(139, 92, 246, 0) 74%);
    opacity: .14;
    animation: rxmNebC 64s linear infinite alternate;
}

html.rx-ld-home .rxm-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, .10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, .10) 1px, transparent 1px);
    background-size: 72px 72px;
    opacity: .5;
    -webkit-mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, .4) 58%, transparent 94%);
    mask-image: radial-gradient(130% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, .4) 58%, transparent 94%);
}

@keyframes rxmNebA {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(6vw, 5vh, 0) scale(1.12); }
}

@keyframes rxmNebB {
    from { transform: translate3d(0, 0, 0) scale(1.05); }
    to   { transform: translate3d(-5vw, -6vh, 0) scale(1); }
}

@keyframes rxmNebC {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-7vw, -4vh, 0) scale(1.1); }
}

/* ------------------------------------------------------------------ layout */

html.rx-ld-home .rxm-container {
    width: 100%;
    max-width: var(--rxm-max);
    margin: 0 auto;
    padding: 0 var(--rxm-gap);
    box-sizing: border-box;
}

html.rx-ld-home .rxm-section {
    position: relative;
    padding: 84px 0;
}

html.rx-ld-home .rxm-section--tight {
    padding: 64px 0;
}

/* a banded section, as Magma alternates them down the page */
html.rx-ld-home .rxm-section--band {
    background: linear-gradient(180deg, rgba(139, 92, 246, .06), rgba(139, 92, 246, 0) 70%);
    border-top: 1px solid var(--rxm-line);
    border-bottom: 1px solid var(--rxm-line);
}

/* ------------------------------------------------------------- section head */

html.rx-ld-home .rxm-sec-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
    flex-wrap: wrap;
}

html.rx-ld-home .rxm-sec-head-main {
    min-width: 0;
    flex: 0 1 auto;
}

html.rx-ld-home .rxm-kicker {
    display: block;
    margin: 0 0 10px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--rxm-kicker);
    letter-spacing: .18em;
    text-transform: uppercase;
}

html.rx-ld-home .ld[dir="rtl"] .rxm-kicker,
html.rx-ld-home .ld[dir="rtl"] .rxm-chip {
    letter-spacing: 0;
    text-transform: none;
}

html.rx-ld-home .rxm-h2 {
    margin: 0;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--rxm-ink);
}

html.rx-ld-home .rxm-rule {
    flex: 1 1 80px;
    height: 1px;
    min-width: 40px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
}

html.rx-ld-home .rxm-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--rxm-amber-b);
    text-decoration: none;
    white-space: nowrap;
}

html.rx-ld-home .rxm-see-all:hover {
    color: #FFC072;
}

html.rx-ld-home .rxm-see-all .rxm-arr {
    transition: transform .2s ease;
}

html.rx-ld-home .rxm-see-all:hover .rxm-arr {
    transform: translateX(3px);
}

html.rx-ld-home .ld[dir="rtl"] .rxm-arr {
    transform: scaleX(-1);
}

html.rx-ld-home .ld[dir="rtl"] .rxm-see-all:hover .rxm-arr {
    transform: scaleX(-1) translateX(3px);
}

/* the closing band stays centred, as it is a single centred block */
html.rx-ld-home .rxm-ctaband {
    text-align: center;
}

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

html.rx-ld-home .rxm-hero {
    padding: 56px 0 76px;
}

html.rx-ld-home .rxm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 44px;
    align-items: center;
}

html.rx-ld-home .rxm-hero-copy {
    min-width: 0;
}

html.rx-ld-home .rxm-h1 {
    margin: 0 0 18px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(32px, 4.6vw, 58px);
    font-weight: 900;
    line-height: 1.04;
    color: var(--rxm-ink);
}

html.rx-ld-home .rxm-accent {
    background: linear-gradient(135deg, var(--rxm-amber-a) 10%, var(--rxm-amber-b) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html.rx-ld-home .rxm-lead {
    margin: 0 0 26px;
    max-width: 54ch;
    font-size: clamp(15px, 1.35vw, 17px);
    line-height: 1.72;
    color: var(--rxm-body);
}

html.rx-ld-home .rxm-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

html.rx-ld-home .rxm-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}

html.rx-ld-home .rxm-btn--primary {
    color: #1B0B02;
    background-image: linear-gradient(135deg, var(--rxm-amber-a), var(--rxm-amber-b));
    box-shadow: 0 10px 26px -12px rgba(255, 122, 24, .7);
}

html.rx-ld-home .rxm-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px -12px rgba(255, 122, 24, .85);
}

html.rx-ld-home .rxm-btn--ghost {
    color: var(--rxm-ink);
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .16);
}

html.rx-ld-home .rxm-btn--ghost:hover {
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 165, 60, .5);
}

html.rx-ld-home .rxm-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

html.rx-ld-home .rxm-chip {
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    font-family: var(--rx-mono, ui-monospace, monospace);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #D8C7FF;
    white-space: nowrap;
}

/* the floating screen beside the hero copy: a window frame around the
   platform's own dashboard illustration, as Magma floats its code mock */
html.rx-ld-home .rxm-hero-panel {
    min-width: 0;
}

html.rx-ld-home .rxm-screen {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .12);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 24, .16), rgba(255, 122, 24, 0) 58%),
        linear-gradient(160deg, rgba(30, 18, 56, .96), rgba(12, 7, 24, .98));
    box-shadow:
        0 40px 90px -40px rgba(0, 0, 0, .95),
        0 0 0 1px rgba(139, 92, 246, .18) inset;
    overflow: hidden;
}

html.rx-ld-home .rxm-screen-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
}

html.rx-ld-home .rxm-dots {
    display: inline-flex;
    gap: 5px;
}

html.rx-ld-home .rxm-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

html.rx-ld-home .rxm-dots i:first-child { background: rgba(255, 122, 24, .8); }
html.rx-ld-home .rxm-dots i:nth-child(2) { background: rgba(139, 92, 246, .8); }

html.rx-ld-home .rxm-screen-title {
    font-family: var(--rx-mono, ui-monospace, monospace);
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--rxm-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html.rx-ld-home .rxm-screen-body {
    padding: 16px;
    direction: ltr;
}

/* the platform's own illustration, freed from its old panel so it reads as
   the screen's content */
html.rx-ld-home .rxm-screen-body .ld-hero-art {
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background: transparent;
    overflow: visible;
}

/* ------------------------------------------------------------------- cards */

html.rx-ld-home .rxm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

html.rx-ld-home .rxm-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

html.rx-ld-home .rxm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px 22px;
    border-radius: var(--rxm-radius);
    border: 1px solid var(--rxm-line);
    background: var(--rxm-card);
    min-width: 0;
    overflow: hidden;
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

html.rx-ld-home .rxm-card::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 122, 24, .65), rgba(139, 92, 246, .35) 46%, rgba(255, 255, 255, 0));
    opacity: .7;
}

html.rx-ld-home .rxm-card:hover {
    border-color: rgba(255, 165, 60, .34);
    background: var(--rxm-card-2);
    transform: translateY(-2px);
}

html.rx-ld-home .rxm-card-tag {
    font-family: var(--rx-mono, ui-monospace, monospace);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rxm-amber-b);
}

html.rx-ld-home .ld[dir="rtl"] .rxm-card-tag {
    letter-spacing: 0;
    text-transform: none;
    font-size: 11px;
}

html.rx-ld-home .rxm-card-title {
    margin: 0;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 700;
    line-height: 1.3;
    color: var(--rxm-ink);
}

html.rx-ld-home .rxm-card-text {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--rxm-body);
}

/* ------------------------------------------------------------ numbered steps */

html.rx-ld-home .rxm-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rxmstep;
}

html.rx-ld-home .rxm-step {
    position: relative;
    padding: 22px 22px 24px;
    border-radius: var(--rxm-radius);
    border: 1px solid var(--rxm-line);
    background: linear-gradient(160deg, rgba(139, 92, 246, .10), rgba(255, 255, 255, .03));
    min-width: 0;
}

html.rx-ld-home .rxm-step-num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--rx-mono, ui-monospace, monospace);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: rgba(255, 165, 60, .9);
}

html.rx-ld-home .rxm-step-title {
    display: block;
    margin-bottom: 6px;
    font-family: var(--rx-display, Montserrat, sans-serif);
    font-size: 17px;
    font-weight: 700;
    color: var(--rxm-ink);
}

html.rx-ld-home .rxm-step-text {
    display: block;
    font-size: 14px;
    line-height: 1.7;
    color: var(--rxm-body);
}

/* ---------------------------------------------------------------- CTA band */

html.rx-ld-home .rxm-ctaband {
    position: relative;
    padding: 54px 40px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, .11);
    background:
        radial-gradient(80% 120% at 8% 0%, rgba(255, 122, 24, .20), rgba(255, 122, 24, 0) 62%),
        radial-gradient(90% 120% at 92% 100%, rgba(109, 40, 217, .34), rgba(109, 40, 217, 0) 64%),
        linear-gradient(160deg, rgba(24, 14, 46, .95), rgba(10, 6, 20, .97));
    text-align: center;
    overflow: hidden;
}

html.rx-ld-home .rxm-ctaband .rxm-h2 {
    max-width: 22ch;
    margin: 0 auto 14px;
}

html.rx-ld-home .rxm-ctaband .rxm-lead {
    margin: 0 auto 26px;
    max-width: 52ch;
}

html.rx-ld-home .rxm-ctaband .rxm-cta {
    justify-content: center;
}

/* --------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
    html.rx-ld-home .rxm-hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }

    html.rx-ld-home .rxm-hero-panel {
        order: 2;
        max-width: 560px;
        width: 100%;
        margin-inline: auto;
    }

    html.rx-ld-home .rxm-grid--3,
    html.rx-ld-home .rxm-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    html.rx-ld-home {
        --rxm-gap: 18px;
    }

    html.rx-ld-home .rxm-hero {
        padding: 34px 0 52px;
    }

    html.rx-ld-home .rxm-section {
        padding: 56px 0;
    }

    html.rx-ld-home .rxm-section--tight {
        padding: 44px 0;
    }

    html.rx-ld-home .rxm-sec-head {
        gap: 12px;
        margin-bottom: 24px;
    }

    html.rx-ld-home .rxm-rule {
        display: none;
    }

    html.rx-ld-home .rxm-grid--3,
    html.rx-ld-home .rxm-steps {
        grid-template-columns: minmax(0, 1fr);
    }

    html.rx-ld-home .rxm-btn {
        width: 100%;
        justify-content: center;
    }

    html.rx-ld-home .rxm-ctaband {
        padding: 38px 22px;
        border-radius: 20px;
    }
}

/* less motion when the visitor asks for it: the clouds stop drifting */
@media (prefers-reduced-motion: reduce) {
    html.rx-ld-home .rxm-nebula span {
        animation: none;
    }

    html.rx-ld-home .rxm-card:hover,
    html.rx-ld-home .rxm-btn--primary:hover {
        transform: none;
    }
}

/* the backdrop already carries a blueprint grid; the hero's own one would
   double it, so only the lit hairline along its top edge stays */
html.rx-ld-home .rxm-hero::before {
    display: none;
}
