/* ============================================================
   ChemRexn — Homepage Design System  ("Precision Lab")
   Refined scientific minimalism.
   Type:  Fraunces (display) · Hanken Grotesk (UI) · IBM Plex Mono (data)
   Brand: navy #0C3570 · blue #1E4F9C · green #1B5E20
   Namespace: .rx-
   ============================================================ */

:root {
    --rx-ink:        #0A1F44;
    --rx-navy:       #0C3570;
    --rx-blue:       #1E4F9C;
    --rx-blue-2:     #2E63B8;
    --rx-blue-soft:  #E9F0FB;
    --rx-green:      #1B5E20;
    --rx-green-soft: #E8F1E4;
    --rx-paper:      #FBFBF8;
    --rx-paper-2:    #F1F2EC;
    --rx-line:       rgba(10, 31, 68, .10);
    --rx-line-2:     rgba(10, 31, 68, .06);
    --rx-muted:      #5A6473;
    --rx-muted-2:    #8A93A3;

    --rx-serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
    --rx-sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --rx-mono:  'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

    --rx-maxw: 1180px;
    --rx-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- scope reset (only affects homepage main) -------------- */
.rx-home * { box-sizing: border-box; }
.rx-home {
    font-family: var(--rx-sans);
    color: var(--rx-ink);
    background: var(--rx-paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
.rx-home p { margin: 0; }
.rx-home h1, .rx-home h2, .rx-home h3, .rx-home h4 { margin: 0; font-weight: 400; }
.rx-home a {  text-decoration: none; }
.rx-home img { display: block; max-width: 100%; }
.rx-home ul { margin: 0; padding: 0; list-style: none; }

/* ---- shared building blocks -------------------------------- */
.rx-wrap { max-width: var(--rx-maxw); margin: 0 auto; padding: 0 2rem; }

.rx-kicker {
    font-family: var(--rx-mono);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--rx-blue);
    display: inline-flex;
    align-items: center;
    gap: .6em;
}
.rx-kicker::before {
    content: "";
    width: 22px; height: 1px;
    background: var(--rx-blue);
    display: inline-block;
}

.rx-h2 {
    font-family: var(--rx-serif);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -.015em;
    font-weight: 400;
}
.rx-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--rx-muted);
    max-width: 52ch;
}

.rx-btn {
    --b: var(--rx-blue);
    display: inline-flex;
    align-items: center;
    gap: .55em;
    font-family: var(--rx-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .85em 1.5em;
    border-radius: 2px;
    border: 1px solid var(--b);
    background: var(--b);
    color: #fff;
    cursor: pointer;
    transition: transform .25s var(--rx-ease), background .2s, box-shadow .25s;
    will-change: transform;
}
.rx-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(30,79,156,.55); }
.rx-btn .ti { font-size: 16px; }
.rx-btn--green { --b: var(--rx-green); }
.rx-btn--green:hover { box-shadow: 0 12px 28px -12px rgba(27,94,32,.55); }
.rx-btn--ghost {
    background: transparent;
    color: var(--rx-ink);
    border-color: var(--rx-line);
}
.rx-btn--ghost:hover { border-color: var(--rx-ink); box-shadow: none; }
.rx-btn--on-dark {
    background: #fff;
    color: var(--rx-navy);
    border-color: #fff;
    display: inline-flex;
    align-items: center;
    gap: .55em;
}
.rx-btn--on-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -12px rgba(255,255,255,.4);
}


/* .rx-btn--on-dark { background: #fff; color: var(--rx-navy); border-color: #fff; } */
.rx-btn--ghost-light {
    background: transparent; color: #fff;
    border-color: rgba(255,255,255,.28);
}
.rx-btn--ghost-light:hover { border-color: #fff; box-shadow: none; }

.rx-textlink {
    font-family: var(--rx-mono);
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--rx-blue);
    display: inline-flex;
    align-items: center;
    gap: .4em;
    transition: gap .2s var(--rx-ease);
}
.rx-textlink:hover { gap: .75em; }

/* ====================================================================
   HERO
   ==================================================================== */
.rx-hero {
    position: relative;
    background:
        radial-gradient(120% 90% at 88% 8%, rgba(46,99,184,.55) 0%, rgba(12,53,112,0) 55%),
        radial-gradient(80% 80% at 0% 100%, rgba(27,94,32,.35) 0%, rgba(12,53,112,0) 50%),
        linear-gradient(160deg, #0B2C5E 0%, #0C3570 48%, #103E84 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
/* blueprint grid */
.rx-hero::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(110% 100% at 70% 0%, #000 35%, transparent 78%);
            mask-image: radial-gradient(110% 100% at 70% 0%, #000 35%, transparent 78%);
    z-index: -1;
}
.rx-hero__inner {
    max-width: var(--rx-maxw);
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6rem) 2rem clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 3.5rem;
    align-items: center;
}
.rx-hero__kicker {
    color: #9DC0F2;
    margin-bottom: 1.6rem;
}
.rx-hero__kicker::before { background: #9DC0F2; }
.rx-hero h1 {
    font-family: var(--rx-serif);
    font-weight: 400;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.02;
    letter-spacing: -.025em;
}
.rx-hero h1 em {
    font-style: italic;
    color: #BFE3C2;
}
.rx-hero__sub {
    margin-top: 1.6rem;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255,255,255,.72);
    max-width: 46ch;
}
.rx-hero__ctas {
    margin-top: 2.2rem;
    display: flex;
    gap: .85rem;
    flex-wrap: wrap;
}
/* hero spec card */
.rx-spec {
    border: 1px solid rgba(255,255,255,.16);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    backdrop-filter: blur(8px);
    border-radius: 6px;
    padding: 1.4rem 1.5rem;
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.rx-spec__top {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 1rem; margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.rx-spec__badge {
    font-family: var(--rx-mono);
    font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
    color: #BFE3C2;
    display: inline-flex; align-items: center; gap: .5em;
}
.rx-spec__badge .ti { font-size: 13px; }
.rx-spec__dot { font-family: var(--rx-mono); font-size: 11px; color: rgba(255,255,255,.4); }
.rx-spec__row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: .55rem 0;
    font-family: var(--rx-mono);
    font-size: 12.5px;
}
.rx-spec__row span:first-child { color: rgba(255,255,255,.55); }
.rx-spec__row span:last-child { color: #fff; letter-spacing: .02em; }
.rx-spec__formula {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.12);
    font-family: var(--rx-serif);
    font-size: 30px;
    letter-spacing: .02em;
    color: #fff;
}
.rx-spec__formula sub { font-size: .6em; }

/* hero stat ribbon */
.rx-hero__ribbon {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.12);
}
.rx-hero__ribbon-inner {
    max-width: var(--rx-maxw);
    margin: 0 auto; padding: 0 2rem;
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.rx-stat { padding: 1.5rem 0; }
.rx-stat + .rx-stat { border-left: 1px solid rgba(255,255,255,.1); padding-left: 1.6rem; }
.rx-stat__num {
    font-family: var(--rx-serif);
    font-size: 30px; line-height: 1;
    color: #fff;
}
.rx-stat__num small { font-size: .5em; color: #BFE3C2; vertical-align: super; margin-left: 2px; }
.rx-stat__label {
    font-family: var(--rx-mono);
    font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,.55);
    margin-top: .5rem;
}

/* ====================================================================
   TRUST STRIP
   ==================================================================== */
.rx-trust {
    border-bottom: 1px solid var(--rx-line);
    background: var(--rx-paper);
}
.rx-trust__inner {
    max-width: var(--rx-maxw); margin: 0 auto; padding: 1.4rem 2rem;
    display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap;
}
.rx-trust__label {
    font-family: var(--rx-mono);
    font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
    color: var(--rx-muted-2);
}
.rx-trust__items { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.rx-trust__items span {
    font-size: 14px; font-weight: 600; color: var(--rx-muted);
    letter-spacing: -.01em;
}

/* ====================================================================
   SECTION SHELL
   ==================================================================== */
.rx-section { padding: clamp(3.5rem, 6vw, 6rem) 0; }
.rx-section--paper2 { background: var(--rx-paper-2); }
.rx-section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 1.5rem; margin-bottom: 2.5rem; flex-wrap: wrap;
}
.rx-section__head .rx-h2 { margin-top: .9rem; max-width: 18ch; }

/* ====================================================================
   CATEGORY GRID
   ==================================================================== */
.rx-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--rx-line); border: 1px solid var(--rx-line); }
.rx-cat {
    background: var(--rx-paper);
    padding: 1.8rem 1.5rem 1.6rem;
    display: flex; flex-direction: column; gap: .9rem;
    position: relative;
    transition: background .25s var(--rx-ease);
}
.rx-cat:hover { background: #fff; }
.rx-cat__no { font-family: var(--rx-mono); font-size: 11px; letter-spacing: .1em; color: var(--rx-muted-2); }
.rx-cat__icon {
    width: 40px; height: 40px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--rx-blue-soft); color: var(--rx-blue);
}
.rx-cat:nth-child(even) .rx-cat__icon { background: var(--rx-green-soft); color: var(--rx-green); }
.rx-cat__name { font-family: var(--rx-serif); font-size: 21px; letter-spacing: -.01em; }
.rx-cat__sub { font-size: 13px; color: var(--rx-muted); line-height: 1.55; }
.rx-cat__go {
    margin-top: auto; padding-top: .4rem;
    color: var(--rx-blue); font-size: 18px;
    transform: translateX(0); transition: transform .25s var(--rx-ease);
}
.rx-cat:hover .rx-cat__go { transform: translateX(5px); }

/* ====================================================================
   FEATURED PRODUCTS
   ==================================================================== */
.rx-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.rx-prod {
    border: 1px solid var(--rx-line);
    background: var(--rx-paper);
    border-radius: 5px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s var(--rx-ease), box-shadow .3s var(--rx-ease), border-color .3s;
}
.rx-prod:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px -26px rgba(10,31,68,.4);
    border-color: rgba(30,79,156,.4);
}
.rx-prod__media {
    position: relative;
    aspect-ratio: 5 / 3;
    background:
        radial-gradient(80% 80% at 70% 20%, rgba(30,79,156,.07), transparent 60%),
        var(--rx-paper-2);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.rx-prod__media img { width: 100%; height: 100%; object-fit: cover; }
.rx-prod__ph { font-size: 40px; color: rgba(30,79,156,.28); }
.rx-prod__flag {
    position: absolute; top: 12px; left: 12px;
    font-family: var(--rx-mono);
    font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
    background: var(--rx-green); color: #fff;
    padding: .35em .7em; border-radius: 2px;
}
.rx-prod__body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.rx-prod__cat { font-family: var(--rx-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--rx-blue); }
.rx-prod__name { font-family: var(--rx-serif); font-size: 20px; line-height: 1.2; letter-spacing: -.01em; }
.rx-prod__meta { font-family: var(--rx-mono); font-size: 12px; color: var(--rx-muted); }
.rx-prod__foot {
    margin-top: auto; padding-top: 1rem;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--rx-line-2);
}
.rx-prod__price { font-size: 16px; font-weight: 700; color: var(--rx-ink); }
.rx-prod__price small { font-family: var(--rx-mono); font-size: 11px; font-weight: 400; color: var(--rx-muted-2); }
.rx-prod__add {
    display: inline-flex; align-items: center; gap: .4em;
    font-size: 13px; font-weight: 600;
    color: var(--rx-green);
    padding: .5em .9em; border: 1px solid var(--rx-green-soft);
    border-radius: 2px; background: var(--rx-green-soft);
    transition: background .2s, color .2s;
}
.rx-prod__add:hover { background: var(--rx-green); color: #fff; }

/* ====================================================================
   CAPABILITIES (WHY)
   ==================================================================== */
.rx-caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.2rem; }
.rx-cap { display: flex; flex-direction: column; gap: .8rem; }
.rx-cap__ico {
    width: 44px; height: 44px; border-radius: 3px;
    display: flex; align-items: center; justify-content: center; font-size: 21px;
    background: #fff; border: 1px solid var(--rx-line);
    color: var(--rx-blue);
}
.rx-cap:nth-child(even) .rx-cap__ico { color: var(--rx-green); }
.rx-cap__t { font-family: var(--rx-serif); font-size: 19px; }
.rx-cap__d { font-size: 13.5px; line-height: 1.6; color: var(--rx-muted); }

/* ====================================================================
   PROCESS  (Source → Verify → Deliver)
   ==================================================================== */
.rx-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rx-line); }
.rx-step { padding: 2.2rem 1.8rem; position: relative; }
.rx-step + .rx-step { border-left: 1px solid var(--rx-line); }
.rx-step__no {
    font-family: var(--rx-mono); font-size: 12px; letter-spacing: .1em;
    color: var(--rx-blue); margin-bottom: 1.4rem; display: block;
}
.rx-step__t { font-family: var(--rx-serif); font-size: 23px; margin-bottom: .7rem; }
.rx-step__d { font-size: 14px; line-height: 1.65; color: var(--rx-muted); }
.rx-step__arrow {
    position: absolute; right: -11px; top: 2.4rem; z-index: 2;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--rx-paper); border: 1px solid var(--rx-line);
    display: flex; align-items: center; justify-content: center;
    color: var(--rx-blue); font-size: 13px;
}
.rx-section--paper2 .rx-step__arrow { background: var(--rx-paper-2); }

/* ====================================================================
   CTA BAND
   ==================================================================== */
.rx-cta {
    position: relative; overflow: hidden; isolation: isolate;
    border-radius: 8px;
    background:
        radial-gradient(90% 140% at 100% 0%, rgba(46,99,184,.5), transparent 55%),
        linear-gradient(135deg, #0C3570, #16407E);
    color: #fff;
    padding: clamp(2.4rem, 4vw, 3.4rem);
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.rx-cta::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 38px 38px;
    -webkit-mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%);
            mask-image: radial-gradient(100% 100% at 100% 0%, #000, transparent 70%);
}
.rx-cta__kicker { color: #BFE3C2; margin-bottom: 1rem; }
.rx-cta__kicker::before { background: #BFE3C2; }
.rx-cta h2 { font-family: var(--rx-serif); font-size: clamp(24px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -.02em; max-width: 18ch; }
.rx-cta p { margin-top: .9rem; color: rgba(255,255,255,.72); max-width: 42ch; font-size: 15px; line-height: 1.65; }
.rx-cta__btns { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ====================================================================
   LOAD ANIMATION
   ==================================================================== */
@keyframes rxUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rx-anim { opacity: 0; animation: rxUp .8s var(--rx-ease) forwards; }
.rx-d1 { animation-delay: .05s; }
.rx-d2 { animation-delay: .15s; }
.rx-d3 { animation-delay: .28s; }
.rx-d4 { animation-delay: .42s; }
@media (prefers-reduced-motion: reduce) {
    .rx-anim { animation: none; opacity: 1; }
    .rx-btn:hover, .rx-prod:hover { transform: none; }
}

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 960px) {
    .rx-hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .rx-spec { max-width: 420px; }
    .rx-cats { grid-template-columns: repeat(2, 1fr); }
    .rx-products { grid-template-columns: repeat(2, 1fr); }
    .rx-caps { grid-template-columns: repeat(2, 1fr); }
    .rx-flow { grid-template-columns: 1fr; }
    .rx-step + .rx-step { border-left: none; border-top: 1px solid var(--rx-line); }
    .rx-step__arrow { display: none; }
}
@media (max-width: 600px) {
    .rx-wrap, .rx-hero__inner, .rx-trust__inner, .rx-hero__ribbon-inner { padding-left: 1.25rem; padding-right: 1.25rem; }
    .rx-hero__ribbon-inner { grid-template-columns: repeat(2, 1fr); }
    .rx-stat + .rx-stat { border-left: none; padding-left: 0; }
    .rx-stat:nth-child(even) { border-left: 1px solid rgba(255,255,255,.1); padding-left: 1.6rem; }
    .rx-cats { grid-template-columns: 1fr; }
    .rx-products { grid-template-columns: 1fr; }
    .rx-caps { grid-template-columns: 1fr; }
    .rx-cta { flex-direction: column; align-items: flex-start; }
}