/* ==========================================================================
   RAKLE IT SOLUTIONS — Elegance Layer
   Pastel card palette · animated gradient borders · cursor spotlight
   3D tilt · shine sweep · refined footer. Loaded after rakle-design.css.
   ========================================================================== */

:root {
    /* Pastel tint palette — bg (wash), soft (icon chip), ink (accent), line (border) */
    --rk-t1-bg: #eef5ff; --rk-t1-soft: #dbeafe; --rk-t1-ink: #2563eb; --rk-t1-line: rgba(37, 99, 235, .16);
    --rk-t2-bg: #f5f1ff; --rk-t2-soft: #ede9fe; --rk-t2-ink: #7c3aed; --rk-t2-line: rgba(124, 58, 237, .16);
    --rk-t3-bg: #ecfbf4; --rk-t3-soft: #d1fae5; --rk-t3-ink: #059669; --rk-t3-line: rgba(5, 150, 105, .16);
    --rk-t4-bg: #fff5ec; --rk-t4-soft: #ffedd5; --rk-t4-ink: #ea580c; --rk-t4-line: rgba(234, 88, 12, .16);
    --rk-t5-bg: #fff1f5; --rk-t5-soft: #ffe4e6; --rk-t5-ink: #e11d48; --rk-t5-line: rgba(225, 29, 72, .15);
    --rk-t6-bg: #ecfafd; --rk-t6-soft: #cffafe; --rk-t6-ink: #0891b2; --rk-t6-line: rgba(8, 145, 178, .16);
}

@property --rk-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* --------------------------------------------------------------------------
   1. FX Card foundation (class added by rakle-elegance.js)
   -------------------------------------------------------------------------- */
.rk-fx {
    --tint-bg: var(--rk-t1-bg);
    --tint-soft: var(--rk-t1-soft);
    --tint-ink: var(--rk-t1-ink);
    --tint-line: var(--rk-t1-line);
    --mx: 50%;
    --my: 50%;
    --rx: 0deg;
    --ry: 0deg;
    --lift: 0px;
    position: relative;
    isolation: isolate;
}

.rk-fx[data-rk-tint="2"] { --tint-bg: var(--rk-t2-bg); --tint-soft: var(--rk-t2-soft); --tint-ink: var(--rk-t2-ink); --tint-line: var(--rk-t2-line); }
.rk-fx[data-rk-tint="3"] { --tint-bg: var(--rk-t3-bg); --tint-soft: var(--rk-t3-soft); --tint-ink: var(--rk-t3-ink); --tint-line: var(--rk-t3-line); }
.rk-fx[data-rk-tint="4"] { --tint-bg: var(--rk-t4-bg); --tint-soft: var(--rk-t4-soft); --tint-ink: var(--rk-t4-ink); --tint-line: var(--rk-t4-line); }
.rk-fx[data-rk-tint="5"] { --tint-bg: var(--rk-t5-bg); --tint-soft: var(--rk-t5-soft); --tint-ink: var(--rk-t5-ink); --tint-line: var(--rk-t5-line); }
.rk-fx[data-rk-tint="6"] { --tint-bg: var(--rk-t6-bg); --tint-soft: var(--rk-t6-soft); --tint-ink: var(--rk-t6-ink); --tint-line: var(--rk-t6-line); }

/* Animated conic gradient border (hidden until hover) */
.rk-fx::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--rk-angle),
            var(--tint-ink) 0%,
            #a78bfa 25%,
            #67e8f9 50%,
            #f9a8d4 75%,
            var(--tint-ink) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    opacity: 0;
    transition: opacity .45s var(--rk-ease);
    pointer-events: none;
    z-index: 2;
}

/* Cursor-following spotlight + shine sweep */
.rk-fx::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--tint-ink) 14%, transparent), transparent 45%),
        linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .35) 48%, transparent 58%) no-repeat;
    background-size: 100% 100%, 250% 100%;
    background-position: 0 0, 160% 0;
    opacity: 0;
    transition: opacity .4s var(--rk-ease);
    pointer-events: none;
    z-index: -1;
}

.rk-fx:hover::before,
.rk-fx:focus-within::before {
    opacity: 1;
    animation: rk-border-spin 5s linear infinite;
}

.rk-fx:hover::after {
    opacity: 1;
    animation: rk-shine .9s var(--rk-ease) 1 forwards;
}

@keyframes rk-border-spin {
    to { --rk-angle: 360deg; }
}

@keyframes rk-shine {
    from { background-position: 0 0, 160% 0; }
    to { background-position: 0 0, -60% 0; }
}

/* Dark cards: softer, white-ish spotlight */
.rk-fx--dark::after {
    background:
        radial-gradient(420px circle at var(--mx) var(--my), rgba(147, 197, 253, .16), transparent 45%),
        linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .08) 48%, transparent 60%) no-repeat;
    background-size: 100% 100%, 250% 100%;
    background-position: 0 0, 160% 0;
}

/* --------------------------------------------------------------------------
   2. Light pastel surfaces for every light card
   -------------------------------------------------------------------------- */
.rk-fx--light {
    background: linear-gradient(155deg, #ffffff 0%, #ffffff 38%, var(--tint-bg) 100%) !important;
    border-color: var(--tint-line) !important;
    box-shadow: 0 1px 2px rgba(11, 17, 32, .03), 0 8px 24px -12px color-mix(in srgb, var(--tint-ink) 22%, transparent);
}

.rk-fx--light:hover {
    box-shadow:
        0 2px 6px rgba(11, 17, 32, .04),
        0 28px 60px -22px color-mix(in srgb, var(--tint-ink) 42%, transparent) !important;
}

/* Soft decorative orb in the corner */
.rk-fx--light > .rk-fx-orb {
    position: absolute;
    width: 180px;
    height: 180px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tint-ink) 18%, transparent) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    transition: transform .8s var(--rk-ease);
    animation: rk-orb-breathe 7s ease-in-out infinite;
}

.rk-fx--light:hover > .rk-fx-orb {
    transform: translate(-24px, 24px) scale(1.25);
}

@keyframes rk-orb-breathe {
    0%, 100% { opacity: .75; }
    50% { opacity: 1; }
}

/* Tinted icon chips */
.rk-fx--light .rk-bento-icon,
.rk-fx--light .rk-contact-card-icon,
.rk-fx--light .rk-trust-icon-box {
    background: var(--tint-soft) !important;
    color: var(--tint-ink) !important;
    box-shadow: inset 0 0 0 1px var(--tint-line);
    transition: transform .5s var(--rk-spring), background .35s ease, color .35s ease, box-shadow .35s ease;
}

.rk-fx--light:hover .rk-bento-icon,
.rk-fx--light:hover .rk-contact-card-icon,
.rk-fx--light:hover .rk-trust-icon-box {
    background: var(--tint-ink) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px -8px var(--tint-ink);
}

.rk-fx--light .rk-bento-link,
.rk-fx--light .rk-link {
    color: var(--tint-ink);
}

.rk-fx--light h3 {
    transition: color .3s ease;
}

.rk-fx--light:hover h3 {
    color: color-mix(in srgb, var(--tint-ink) 70%, #0b1120);
}

/* --------------------------------------------------------------------------
   3. 3D tilt + lift
   -------------------------------------------------------------------------- */
.rk-fx--tilt {
    transform-style: preserve-3d;
    will-change: transform;
}

html .rk-fx--tilt:hover,
html .rk-fx--tilt.rk-in:hover {
    --lift: -6px;
    transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift)) !important;
}

html .rk-fx--tilt.is-tilting {
    transition: transform .14s linear, box-shadow .4s var(--rk-ease), border-color .3s ease, opacity .8s var(--rk-ease) !important;
}

/* Simple lift for non-tilt FX cards */
.rk-fx:not(.rk-fx--tilt):not(.rk-fx--static) {
    transition: transform .4s var(--rk-ease), box-shadow .4s var(--rk-ease), border-color .3s ease;
}

.rk-fx:not(.rk-fx--tilt):not(.rk-fx--static):hover {
    transform: translateY(-4px);
}

/* Large content cards (forms, legal text): no lift, gentle accent only */
.rk-fx--static::before { padding: 1px; }
.rk-fx--static:hover::after { animation: none; }

/* Gradient hairline on top of content cards */
.rk-card.rk-fx--light {
    background:
        linear-gradient(90deg, var(--tint-ink), #a78bfa 50%, #67e8f9) top / 100% 3px no-repeat,
        linear-gradient(160deg, #ffffff 0%, #ffffff 55%, var(--tint-bg) 100%) !important;
}

/* --------------------------------------------------------------------------
   4. Ambient micro-animations
   -------------------------------------------------------------------------- */
/* Eyebrow pill shimmer */
.rk-eyebrow {
    position: relative;
    overflow: hidden;
}

.rk-eyebrow::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
    transform: translateX(-120%);
    animation: rk-eyebrow-shine 9s ease-in-out 2s infinite;
    pointer-events: none;
}

.rk-eyebrow--dark::after {
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
}

@keyframes rk-eyebrow-shine {
    0%, 80% { transform: translateX(-120%); }
    95%, 100% { transform: translateX(120%); }
}

/* Primary buttons: animated gradient + glow */
.rk-btn--primary {
    background-image: linear-gradient(110deg, #2563eb 0%, #7c3aed 45%, #2563eb 90%) !important;
    background-size: 220% 100% !important;
    background-position: 0% 0;
    transition: background-position .7s var(--rk-ease), box-shadow .35s var(--rk-ease), transform .3s var(--rk-ease);
}

.rk-btn--primary:hover {
    background-position: 100% 0;
    box-shadow: 0 14px 30px -10px rgba(124, 58, 237, .55);
}

/* --------------------------------------------------------------------------
   5. FOOTER — Aurora, refined columns, legal strip
   -------------------------------------------------------------------------- */
.rk-footer-v2 {
    position: relative;
    isolation: isolate;
    background: #070c18;
    padding-top: 96px;
}

.rk-footer-aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.rk-footer-aurora span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .38;
    animation: rk-aurora 22s ease-in-out infinite alternate;
}

.rk-footer-aurora span:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -160px; background: #3b82f6; }
.rk-footer-aurora span:nth-child(2) { width: 460px; height: 460px; right: -120px; top: 18%; background: #8b5cf6; animation-duration: 26s; animation-delay: -6s; }
.rk-footer-aurora span:nth-child(3) { width: 380px; height: 380px; left: 30%; bottom: -180px; background: #06b6d4; opacity: .22; animation-duration: 30s; animation-delay: -12s; }

.rk-footer-aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

@keyframes rk-aurora {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 40px) scale(1.15); }
    100% { transform: translate(-40px, 90px) scale(.95); }
}

/* CTA: glass card with animated gradient ring */
.rk-footer-cta {
    background: linear-gradient(135deg, rgba(37, 99, 235, .16) 0%, rgba(124, 58, 237, .14) 55%, rgba(6, 182, 212, .1) 100%), rgba(15, 23, 42, .6) !important;
    border: none !important;
    border-radius: 28px !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .45);
}

.rk-footer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--rk-angle), rgba(96, 165, 250, .9), rgba(167, 139, 250, .9), rgba(103, 232, 249, .9), rgba(249, 168, 212, .8), rgba(96, 165, 250, .9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: rk-border-spin 8s linear infinite;
    pointer-events: none;
}

.rk-footer-cta h2 {
    background: linear-gradient(90deg, #ffffff 0%, #c7d2fe 40%, #a5f3fc 70%, #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rk-text-flow 14s linear infinite;
}

@keyframes rk-text-flow {
    to { background-position: -200% 0; }
}

.rk-footer-cta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.rk-footer-cta-badges span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: #dbeafe;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
}

.rk-footer-cta-badges i { color: #67e8f9; font-size: 11px; }

/* Columns */
.rk-footer-v2 .rk-footer-cols-6 {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1.2fr;
    border-bottom-color: rgba(255, 255, 255, .08);
}

.rk-footer-v2 h4 {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 18px;
    color: #f8fafc;
}

.rk-footer-v2 h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transform-origin: left;
    transition: width .5s var(--rk-ease);
}

.rk-footer-col:hover h4::after {
    width: 56px;
}

.rk-footer-v2 .rk-footer-links a {
    position: relative;
    color: #94a3b8;
    padding-left: 0;
    transition: color .25s ease, padding-left .35s var(--rk-ease) !important;
}

.rk-footer-v2 .rk-footer-links a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, #60a5fa, #a78bfa);
    transition: width .35s var(--rk-ease);
}

.rk-footer-v2 .rk-footer-links a:hover {
    color: #ffffff;
    padding-left: 16px;
    transform: none !important;
}

.rk-footer-v2 .rk-footer-links a:hover::before {
    width: 10px;
}

.rk-footer-v2 .rk-footer-links .rk-ext-mini::before { display: none; }
.rk-footer-v2 .rk-footer-links .rk-ext-mini:hover { padding-left: 4px; color: #93c5fd !important; }

/* Brand dot for ecosystem items */
.rk-eco-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 9px;
    vertical-align: middle;
    background: var(--dot, #60a5fa);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, #60a5fa) 22%, transparent);
}

.rk-eco-footer-item > a:first-child:hover { padding-left: 4px !important; }
.rk-eco-footer-item > a:first-child::before { display: none; }

/* Company column */
.rk-footer-desc { color: #94a3b8; }

.rk-footer-v2 .rk-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .1);
    transition: transform .4s var(--rk-spring), background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.rk-footer-v2 .rk-social-btn:hover {
    transform: translateY(-4px) rotate(-6deg);
    background: var(--brand, #2563eb);
    border-color: var(--brand, #2563eb);
    box-shadow: 0 12px 24px -8px var(--brand, #2563eb);
}

.rk-footer-v2 .rk-social-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Contact column: icon rows */
.rk-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rk-footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    color: #cbd5e1;
    font-size: 13.5px;
    line-height: 1.5;
    transition: background .3s ease, border-color .3s ease, transform .35s var(--rk-ease);
}

a.rk-footer-contact-row:hover {
    background: rgba(96, 165, 250, .08);
    border-color: rgba(96, 165, 250, .3);
    transform: translateX(4px);
    color: #ffffff;
}

.rk-footer-contact-row i {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--ic, #93c5fd);
    background: color-mix(in srgb, var(--ic, #93c5fd) 14%, transparent);
}

.rk-footer-contact-row small {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 2px;
}

.rk-footer-contact-row strong { color: #f1f5f9; font-weight: 600; }

/* Status pill */
.rk-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: #a7f3d0;
    background: rgba(16, 185, 129, .1);
    border: 1px solid rgba(16, 185, 129, .25);
}

.rk-footer-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: rk-pulse-dot 2s ease-out infinite;
}

@keyframes rk-pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); }
    100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}

/* Legal strip */
.rk-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 8px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.rk-footer-legal-label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #64748b;
    margin-right: 8px;
}

.rk-footer-legal a {
    font-size: 12.5px;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    transition: color .25s ease, border-color .25s ease, background .25s ease, transform .3s var(--rk-ease);
}

.rk-footer-legal a:hover {
    color: #ffffff;
    border-color: rgba(167, 139, 250, .45);
    background: rgba(124, 58, 237, .12);
    transform: translateY(-2px);
}

/* Wordmark: flowing gradient + outline layer */
.rk-footer-wordmark-wrap {
    position: relative;
    border-bottom-color: rgba(255, 255, 255, .08) !important;
}

.rk-footer-wordmark {
    position: relative;
    perspective: 800px;
    -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, .25) 100%);
    mask-image: linear-gradient(180deg, #000 45%, rgba(0, 0, 0, .25) 100%);
}

/* Fallback before JS splits the letters */
.rk-footer-wordmark:not(.is-split) {
    background: linear-gradient(100deg, #ffffff 0%, #93c5fd 35%, #c4b5fd 65%, #67e8f9 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent;
}

.rk-footer-wordmark.is-split {
    background: none !important;
    -webkit-text-fill-color: initial;
}

/* Each letter carries its slice of one continuous flowing gradient */
.rk-footer-wordmark .rk-wm-char {
    display: inline-block;
    background: linear-gradient(100deg,
            #ffffff 0%, #93c5fd 18%, #c4b5fd 36%, #e2e8f0 50%,
            #67e8f9 68%, #a5b4fc 84%, #ffffff 100%);
    background-size: calc(var(--n, 5) * 200%) 100%;
    background-position: calc(var(--i, 0) * 100% / (var(--n, 5) * 2 - 1)) 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: rk-wm-flow 16s ease-in-out infinite alternate;
    transition: transform .6s var(--rk-spring);
}

@keyframes rk-wm-flow {
    to { background-position: calc((var(--i, 0) + var(--n, 5)) * 100% / (var(--n, 5) * 2 - 1)) 0; }
}

.rk-footer-wordmark-wrap:hover .rk-wm-char {
    transform: translateY(-6px);
}

.rk-footer-wordmark-wrap:hover .rk-wm-char:nth-child(2) { transition-delay: .04s; }
.rk-footer-wordmark-wrap:hover .rk-wm-char:nth-child(3) { transition-delay: .08s; }
.rk-footer-wordmark-wrap:hover .rk-wm-char:nth-child(4) { transition-delay: .12s; }
.rk-footer-wordmark-wrap:hover .rk-wm-char:nth-child(5) { transition-delay: .16s; }

/* Bottom bar */
.rk-footer-v2 .rk-footer-bottom p { color: #64748b; font-size: 13px; }
.rk-footer-v2 .rk-footer-bottom p i { color: #f43f5e; margin: 0 3px; animation: rk-heart 1.6s ease-in-out infinite; display: inline-block; }

@keyframes rk-heart {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
}

.rk-footer-v2 .rk-footer-bottom-links a,
.rk-footer-v2 .rk-cookie-settings-link { color: #94a3b8; }

@media (max-width: 1180px) {
    .rk-footer-v2 .rk-footer-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .rk-footer-v2 { padding-top: 64px; }
    .rk-footer-v2 .rk-footer-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rk-footer-legal-label { width: 100%; }
    .rk-footer-aurora span { filter: blur(70px); opacity: .28; }
}

@media (max-width: 460px) {
    .rk-footer-v2 .rk-footer-cols-6 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   6. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .rk-fx::before,
    .rk-fx::after,
    .rk-fx-orb,
    .rk-eyebrow::after,
    .rk-footer-aurora span,
    .rk-footer-cta::before,
    .rk-footer-cta h2,
    .rk-footer-wordmark,
    .rk-wm-char,
    .rk-footer-status::before,
    .rk-footer-v2 .rk-footer-bottom p i {
        animation: none !important;
    }

    html .rk-fx--tilt:hover { transform: none !important; }
}

/* Footer CTA grid follows the cursor */
.rk-footer-cta-bg {
    mask-image: radial-gradient(circle at var(--mx, 85%) var(--my, 30%), #000 10%, transparent 60%) !important;
    -webkit-mask-image: radial-gradient(circle at var(--mx, 85%) var(--my, 30%), #000 10%, transparent 60%) !important;
}

/* Neutralise the legacy footer-grid span so the 6-col layout collapses cleanly */
.rk-footer-v2 .rk-footer-cols-6 > .rk-footer-col { grid-column: auto; }

@media (max-width: 767px) {
    .rk-footer-v2 .rk-footer-cols-6 > .rk-footer-col--company,
    .rk-footer-v2 .rk-footer-cols-6 > .rk-footer-col:last-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   7. HEADER — utility bar, floating glass capsule, sliding nav glider, mega menus
   ========================================================================== */
.rk-header {
    padding: 0 !important;
    background: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transition: transform .45s var(--rk-ease) !important;
}

.rk-header.is-hidden { transform: translateY(-115%); }

/* Utility bar */
.rk-topbar {
    background: #0b1120;
    color: #94a3b8;
    font-size: 12.5px;
    max-height: 40px;
    overflow: hidden;
    transition: max-height .4s var(--rk-ease), opacity .3s ease;
    position: relative;
}

.rk-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, #06b6d4, transparent);
    background-size: 200% 100%;
    animation: rk-text-flow 10s linear infinite;
}

.rk-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 40px;
}

.rk-topbar-left,
.rk-topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.rk-topbar a { color: #cbd5e1; transition: color .2s ease; }
.rk-topbar a:hover { color: #ffffff; }
.rk-topbar a i, .rk-topbar-tag i { margin-right: 7px; color: #60a5fa; font-size: 11px; }
.rk-topbar-right a i { margin: 0; color: inherit; font-size: 12.5px; }
.rk-topbar-right { gap: 14px; }

.rk-topbar-status { display: inline-flex; align-items: center; gap: 8px; color: #a7f3d0; font-weight: 600; }
.rk-topbar-tag { color: #c4b5fd; font-weight: 600; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, .12); }

.rk-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: rk-pulse-dot 2s ease-out infinite;
}

.rk-header.rk-scrolled .rk-topbar { max-height: 0; opacity: 0; }

/* Main bar → floating capsule on scroll */
.rk-header > .rk-container { transition: padding .45s var(--rk-ease), max-width .45s var(--rk-ease); padding-top: 14px; padding-bottom: 14px; }

.rk-header-inner {
    position: relative;
    padding: 6px 0;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: background .4s ease, box-shadow .4s ease, padding .45s var(--rk-ease), border-color .4s ease;
}

.rk-header.rk-scrolled > .rk-container { padding-top: 10px; padding-bottom: 0; max-width: 1240px; }

.rk-header.rk-scrolled .rk-header-inner {
    padding: 8px 10px 8px 20px;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(18px) saturate(1.6);
    -webkit-backdrop-filter: blur(18px) saturate(1.6);
    border-color: rgba(226, 232, 240, .9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -18px rgba(37, 99, 235, .28), 0 4px 14px rgba(11, 17, 32, .05);
}

/* Logo */
.rk-logo img { height: 34px; transition: transform .5s var(--rk-spring), filter .3s ease; }
.rk-logo:hover img { transform: scale(1.06) rotate(-2deg); filter: drop-shadow(0 6px 14px rgba(220, 38, 38, .25)); }

/* Nav + sliding glider */
.rk-nav { position: relative; gap: 4px !important; }
.rk-nav-item { position: static; }
.rk-nav-item:has(.rk-dropdown--compact) { position: relative; }

.rk-nav-link {
    position: relative;
    z-index: 1;
    padding: 9px 15px !important;
    border-radius: 999px;
    white-space: nowrap;
    font-weight: 600 !important;
    font-size: 14.5px;
    color: #1e293b;
}

.rk-nav-link::after { display: none !important; }
.rk-nav-link:hover, .rk-nav-link.is-active { color: var(--rk-blue) !important; }
.rk-nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rk-blue);
    transform: translateX(-50%);
}

.rk-caret { font-size: 9px !important; opacity: .6; transition: transform .3s var(--rk-ease); }
.rk-nav-item:hover .rk-caret { transform: rotate(180deg); opacity: 1; }
.rk-nav-pill { margin-left: 0 !important; padding: 1px 7px !important; background: var(--rk-grad) !important; color: #fff !important; font-size: 10.5px !important; }

.rk-nav-glider {
    position: absolute;
    top: 50%;
    left: 0;
    height: 38px;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .09), rgba(124, 58, 237, .09));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12);
    transform: translate(var(--gx, 0), -50%);
    opacity: 0;
    transition: transform .4s var(--rk-ease), width .4s var(--rk-ease), opacity .25s ease;
    pointer-events: none;
}

.rk-nav.has-glider .rk-nav-glider { opacity: 1; }

/* Header actions */
.rk-header-actions { gap: 10px !important; }
.rk-header-cta { white-space: nowrap; position: relative; overflow: hidden; }
.rk-header-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%);
    animation: rk-eyebrow-shine 10s ease-in-out 3s infinite;
}

.rk-header-call {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rk-blue);
    background: var(--rk-blue-soft);
    border: 1px solid rgba(37, 99, 235, .14);
    transition: transform .4s var(--rk-spring), background .3s ease, color .3s ease;
}

.rk-header-call:hover { transform: rotate(-12deg) scale(1.06); background: var(--rk-blue); color: #fff; }

/* Burger */
.rk-mobile-toggle { border-radius: 12px !important; }
.rk-burger { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.rk-burger span { height: 2px; border-radius: 2px; background: var(--rk-navy); transition: width .3s var(--rk-ease); }
.rk-burger span:nth-child(2) { width: 70%; margin-left: auto; }
.rk-mobile-toggle:hover .rk-burger span:nth-child(2) { width: 100%; }

/* Mega menus */
.rk-dropdown {
    border-radius: 20px !important;
    border-color: rgba(226, 232, 240, .9) !important;
    box-shadow: 0 30px 70px -20px rgba(11, 17, 32, .25), 0 0 0 1px rgba(255, 255, 255, .6) inset !important;
    transform: translateY(14px) scale(.98) !important;
    transform-origin: top center;
    transition: opacity .28s ease, transform .35s var(--rk-ease), visibility .28s !important;
}

.rk-nav-item:hover .rk-dropdown,
.rk-nav-item:focus-within .rk-dropdown { transform: translateY(0) scale(1) !important; }

/* Invisible bridge so the menu doesn't close crossing the gap */
.rk-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }

.rk-mega {
    left: 50% !important;
    width: min(860px, calc(100vw - 48px)) !important;
    margin-left: calc(min(860px, calc(100vw - 48px)) / -2);
    top: calc(100% - 4px) !important;
    padding: 12px !important;
    grid-template-columns: 1fr 250px !important;
    gap: 12px !important;
}

.rk-mega-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    align-content: start;
}

.rk-mega-title {
    grid-column: 1 / -1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rk-muted);
    padding: 4px 12px 8px;
}

.rk-dropdown-link { padding: 10px 12px !important; border-radius: 14px !important; transition: background .25s ease, transform .3s var(--rk-ease) !important; }
.rk-dropdown-link:hover { background: linear-gradient(135deg, #f0f6ff, #f6f2ff) !important; transform: translateX(3px); }
.rk-dropdown-icon { width: 38px !important; height: 38px !important; border-radius: 11px !important; transition: transform .45s var(--rk-spring); }
.rk-dropdown-link:hover .rk-dropdown-icon { transform: scale(1.1) rotate(-6deg); }

.rk-dd-text { display: flex; flex-direction: column; line-height: 1.3; }
.rk-dd-text strong { font-size: 13.5px; font-weight: 650; color: var(--rk-navy); }
.rk-dd-text small { font-size: 12px; color: var(--rk-muted); font-weight: 450; margin-top: 2px; }
.rk-dropdown-link:hover .rk-dd-text strong { color: var(--rk-blue); }

.rk-mega-side {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 22px;
    color: #cbd5e1;
    background:
        radial-gradient(240px 160px at 100% 0%, rgba(124, 58, 237, .45), transparent 70%),
        radial-gradient(200px 160px at 0% 100%, rgba(6, 182, 212, .3), transparent 70%),
        #0b1120;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rk-mega-side::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: 22px 22px;
    pointer-events: none;
}

.rk-mega-side > * { position: relative; }
.rk-mega-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #a5f3fc; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 5px 10px; border-radius: 8px; align-self: flex-start; }
.rk-mega-code span { color: #34d399; }
.rk-mega-code::after { content: "▍"; margin-left: 2px; animation: rk-blink 1s steps(1) infinite; color: #a5f3fc; }
.rk-mega-side h5 { color: #fff; font-size: 17px; margin-top: 6px; }
.rk-mega-side p { font-size: 13px; line-height: 1.55; color: #94a3b8; }
.rk-mega-cta { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff !important; background: var(--rk-grad); transition: box-shadow .3s ease, transform .3s var(--rk-ease); }
.rk-mega-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(124, 58, 237, .7); }
.rk-mega-all { font-size: 12.5px; color: #93c5fd !important; text-align: center; }
.rk-mega-all:hover { color: #fff !important; }

@keyframes rk-blink { 50% { opacity: 0; } }

.rk-dropdown--compact { width: 280px !important; grid-template-columns: 1fr !important; left: -12px !important; padding: 10px !important; }

/* Staggered items when a menu opens */
.rk-nav-item:hover .rk-dropdown-link { animation: rk-dd-in .45s var(--rk-ease) both; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(2) { animation-delay: .03s; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(3) { animation-delay: .06s; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(4) { animation-delay: .09s; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(5) { animation-delay: .12s; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(6) { animation-delay: .15s; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(7) { animation-delay: .18s; }
.rk-nav-item:hover .rk-dropdown-link:nth-of-type(8) { animation-delay: .21s; }

@keyframes rk-dd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Mobile drawer polish */
.rk-mobile-panel { border-radius: 24px 0 0 24px; box-shadow: -30px 0 60px -20px rgba(11, 17, 32, .3); }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li { animation: rk-dd-in .5s var(--rk-ease) both; }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li:nth-child(2) { animation-delay: .04s; }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li:nth-child(3) { animation-delay: .08s; }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li:nth-child(4) { animation-delay: .12s; }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li:nth-child(5) { animation-delay: .16s; }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li:nth-child(6) { animation-delay: .2s; }
.rk-mobile-drawer.is-open .rk-mobile-panel > ul > li:nth-child(7) { animation-delay: .24s; }

@media (max-width: 1100px) {
    .rk-topbar-tag, .rk-topbar-status { display: none !important; }
    .rk-nav-link { padding: 9px 11px !important; }
    .rk-header-call { display: none; }
}

@media (max-width: 960px) {
    .rk-nav, .rk-header-actions .rk-btn { display: none !important; }
    .rk-mobile-toggle { display: inline-flex !important; }
    .rk-header-call { display: inline-flex; }
}

@media (max-width: 640px) {
    .rk-topbar { display: none; }
    .rk-header > .rk-container { padding-top: 10px; padding-bottom: 10px; }
    .rk-header.rk-scrolled > .rk-container { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .rk-topbar::after, .rk-header-cta::after, .rk-live-dot, .rk-mega-code::after { animation: none !important; }
    .rk-nav-item:hover .rk-dropdown-link { animation: none !important; }
}

/* ==========================================================================
   8. IT-COMPANY TOUCHES — hero circuit, tech marquee, gradient text, selection
   ========================================================================== */
.rk-hero { isolation: isolate; padding-top: 172px !important; }

.rk-hero-circuit {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, .07) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}

/* Cursor-reactive glow over the grid */
.rk-hero-circuit::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--hx, 70%) var(--hy, 30%), rgba(124, 58, 237, .14), transparent 60%);
    transition: background .2s linear;
}

.rk-hero:hover .rk-hero-circuit::before { background: radial-gradient(360px circle at var(--hx, 70%) var(--hy, 30%), rgba(124, 58, 237, .16), transparent 60%); }

/* Data beams travelling along grid lines */
.rk-beam { position: absolute; display: block; }

.rk-beam--h {
    top: var(--t);
    left: 0;
    width: 180px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, #3b82f6 60%, #a78bfa);
    box-shadow: 0 0 10px rgba(59, 130, 246, .6);
    animation: rk-beam-x 7s linear infinite;
    animation-delay: var(--d);
}

.rk-beam--v {
    left: var(--l);
    top: 0;
    width: 1.5px;
    height: 160px;
    background: linear-gradient(180deg, transparent, #06b6d4 60%, #3b82f6);
    box-shadow: 0 0 10px rgba(6, 182, 212, .6);
    animation: rk-beam-y 6s linear infinite;
    animation-delay: var(--d);
}

.rk-beam--rev.rk-beam--h { animation-name: rk-beam-x-rev; background: linear-gradient(270deg, transparent, #8b5cf6 60%, #f472b6); }
.rk-beam--rev.rk-beam--v { animation-name: rk-beam-y-rev; background: linear-gradient(0deg, transparent, #8b5cf6 60%, #3b82f6); }

@keyframes rk-beam-x { from { transform: translateX(-200px); } to { transform: translateX(100vw); } }
@keyframes rk-beam-x-rev { from { transform: translateX(100vw); } to { transform: translateX(-200px); } }
@keyframes rk-beam-y { from { transform: translateY(-180px); } to { transform: translateY(1000px); } }
@keyframes rk-beam-y-rev { from { transform: translateY(1000px); } to { transform: translateY(-180px); } }

.rk-node {
    position: absolute;
    top: var(--t);
    left: var(--l);
    width: 9px;
    height: 9px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #6366f1;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, .5);
    animation: rk-node-ping 3s ease-out infinite;
}

.rk-node:nth-of-type(2n) { animation-delay: -1.5s; border-color: #06b6d4; }

@keyframes rk-node-ping {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, .45); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(99, 102, 241, 0); }
}

/* Animated gradient on highlighted words (e.g. "Forward.") */
.rk-text-grad {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4, #2563eb) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    animation: rk-text-flow 10s linear infinite;
}

/* Tech marquee band */
.rk-marquee-band {
    position: relative;
    padding: 34px 0 40px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-top: 1px solid var(--rk-border);
    border-bottom: 1px solid var(--rk-border);
    overflow: hidden;
}

.rk-marquee-head { margin-bottom: 18px; text-align: center; }

.rk-marquee-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rk-muted);
}

.rk-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--rk-violet);
    background: var(--rk-violet-soft);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0;
}

.rk-marquee {
    display: flex;
    gap: 14px;
    width: max-content;
    padding: 7px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.rk-marquee-band .rk-marquee { width: 100%; overflow: hidden; }

.rk-marquee-track {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
    min-width: max-content;
    animation: rk-marquee 38s linear infinite;
}

.rk-marquee--rev .rk-marquee-track { animation-direction: reverse; animation-duration: 44s; }
.rk-marquee:hover .rk-marquee-track { animation-play-state: paused; }

@keyframes rk-marquee { to { transform: translateX(calc(-100% - 14px)); } }

.rk-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid var(--rk-border);
    font-family: var(--rk-font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--rk-navy-800);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(11, 17, 32, .03);
    transition: transform .35s var(--rk-spring), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.rk-tech-chip i { font-size: 18px; color: var(--c); transition: transform .4s var(--rk-spring); }

.rk-tech-chip:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--c) 45%, transparent);
    background: color-mix(in srgb, var(--c) 6%, #ffffff);
    box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--c) 60%, transparent);
}

.rk-tech-chip:hover i { transform: scale(1.2) rotate(-8deg); }

/* Branded text selection & scrollbar */
::selection { background: rgba(124, 58, 237, .18); color: inherit; }

@media (hover: hover) and (pointer: fine) {
    html { scrollbar-width: thin; scrollbar-color: #a5b4fc #f1f5f9; }
    ::-webkit-scrollbar { width: 10px; }
    ::-webkit-scrollbar-track { background: #f1f5f9; }
    ::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #60a5fa, #a78bfa); border-radius: 10px; border: 2px solid #f1f5f9; }
}

@media (max-width: 640px) {
    .rk-hero { padding-top: 120px !important; }
    .rk-beam--v, .rk-node { display: none; }
    .rk-tech-chip { font-size: 13px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .rk-beam, .rk-node, .rk-text-grad, .rk-marquee-track { animation: none !important; }
    .rk-beam { display: none; }
}

/* Clearance for the taller header (utility bar + capsule) */
.rk-page-hero { padding-top: 176px !important; }
.rk-page-hero, .rk-legal-header, .rk-brand-hero { isolation: isolate; }
@media (max-width: 640px) { .rk-page-hero { padding-top: 120px !important; } }
.rk-legal-header { padding-top: 160px !important; }
.rk-brand-hero { padding-top: 172px !important; }
@media (max-width: 640px) { .rk-legal-header, .rk-brand-hero { padding-top: 116px !important; } }

/* Keep decorative orbs inside their card (prevents mobile horizontal overflow) */
.rk-fx--light { overflow: clip; }
.rk-fx::before { inset: 0; }

/* CTA box: single column on small screens (was overflowing the viewport) */
@media (max-width: 900px) {
    .rk-cta-box { grid-template-columns: minmax(0, 1fr) !important; padding: 36px 24px !important; gap: 24px !important; }
    .rk-cta-copy, .rk-cta-form-wrap { grid-column: 1 / -1 !important; min-width: 0; }
}
@media (max-width: 1024px) {
    .rk-legal-layout { grid-template-columns: minmax(0, 1fr) !important; }
}
.rk-legal-sidebar { top: 104px !important; }

/* ==========================================================================
   9. HOME — chapters, highlighter marks, build console, process rail, dividers
   ========================================================================== */
.rk-home .rk-chapter { position: relative; overflow: hidden; isolation: isolate; }

/* Huge outlined chapter number in the section corner */
.rk-chapter-num {
    position: absolute;
    top: 36px;
    z-index: -1;
    font-family: var(--rk-font-display);
    font-size: clamp(7rem, 16vw, 15rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(37, 99, 235, .09);
    pointer-events: none;
    user-select: none;
}

.rk-chapter--right .rk-chapter-num { right: 2vw; }
.rk-chapter--left .rk-chapter-num { left: 2vw; }
.rk-section--navy .rk-chapter-num { -webkit-text-stroke-color: rgba(147, 197, 253, .12); }

/* Small mono index inside the eyebrow pill */
.rk-sec-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    margin-right: 8px;
    border-radius: 6px;
    background: currentColor;
    color: inherit;
    position: relative;
}

.rk-sec-no { background: rgba(37, 99, 235, .12); }
.rk-eyebrow--violet .rk-sec-no { background: rgba(124, 58, 237, .14); }
.rk-eyebrow--dark .rk-sec-no { background: rgba(255, 255, 255, .14); }

/* Gradient hairline divider at the top of each chapter */
.rk-home .rk-chapter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1100px, 86%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .35), rgba(124, 58, 237, .35), rgba(6, 182, 212, .3), transparent);
}

.rk-home .rk-section--navy.rk-chapter::before { background: linear-gradient(90deg, transparent, rgba(147, 197, 253, .4), transparent); }

/* Highlighter swipe on heading keywords */
.rk-mark {
    background-image: linear-gradient(100deg, rgba(96, 165, 250, .28), rgba(167, 139, 250, .32) 60%, rgba(103, 232, 249, .28));
    background-repeat: no-repeat;
    background-size: 0% 38%;
    background-position: 0 88%;
    padding: 0 .08em;
    transition: background-size .9s var(--rk-ease) .1s;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.rk-mark.is-on { background-size: 100% 38%; }
.rk-section--navy .rk-mark { background-image: linear-gradient(100deg, rgba(59, 130, 246, .45), rgba(139, 92, 246, .5)); }

/* ---------- Build console section ---------- */
.rk-console-section {
    background:
        radial-gradient(700px 400px at 90% 20%, rgba(124, 58, 237, .07), transparent 60%),
        radial-gradient(600px 400px at 0% 90%, rgba(6, 182, 212, .07), transparent 60%),
        #ffffff;
}

.rk-console-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.rk-console-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.rk-console-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--rk-border);
    background: #fff;
    transition: transform .35s var(--rk-ease), border-color .3s ease, box-shadow .3s ease;
}
.rk-console-points li:hover { transform: translateX(6px); border-color: color-mix(in srgb, var(--c, #2563eb) 30%, transparent); box-shadow: 0 14px 30px -18px rgba(37, 99, 235, .35); }
.rk-console-points li:has(.rk-cp-ico[style*="#059669"]):hover { --c: #059669; }
.rk-console-points strong { display: block; color: var(--rk-navy); font-size: 15px; }
.rk-console-points small { color: var(--rk-slate); font-size: 13.5px; }
.rk-cp-ico {
    flex: 0 0 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--c);
    background: color-mix(in srgb, var(--c) 12%, #fff);
}

.rk-console {
    position: relative;
    border-radius: 20px;
    background: #0a0f1c;
    border: 1px solid #1e293b;
    box-shadow: 0 40px 80px -30px rgba(37, 99, 235, .45), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    overflow: hidden;
    transform: perspective(1400px) rotateY(-4deg) rotateX(2deg);
    transition: transform .6s var(--rk-ease);
}
.rk-console:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }

.rk-console::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--rk-angle), rgba(96, 165, 250, .7), rgba(167, 139, 250, .7), rgba(103, 232, 249, .7), rgba(96, 165, 250, .7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    animation: rk-border-spin 10s linear infinite;
    pointer-events: none;
}

.rk-console-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}
.rk-console-bar .rk-dots { display: flex; gap: 6px; }
.rk-console-bar .rk-dots span { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
.rk-console-bar .rk-dots span:nth-child(2) { background: #f59e0b; }
.rk-console-bar .rk-dots span:nth-child(3) { background: #22c55e; }
.rk-console-title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #94a3b8; }
.rk-console-title i { color: #60a5fa; margin-right: 6px; }
.rk-console-badge { margin-left: auto; font-size: 10px; font-weight: 800; letter-spacing: .12em; color: #34d399; padding: 3px 8px; border-radius: 6px; background: rgba(52, 211, 153, .12); }

.rk-console-body {
    height: 330px;
    overflow: hidden;
    padding: 18px 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.95;
    color: #cbd5e1;
}

.rk-cl { opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--rk-ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-cl.is-shown { opacity: 1; transform: none; }
.rk-cl em { font-style: normal; color: #64748b; margin-left: 6px; }
.rk-cl[data-t="cmd"] { color: #f8fafc; }
.rk-pr { color: #a78bfa; margin-right: 6px; }
.rk-cl[data-t="info"] { color: #93c5fd; }
.rk-cl[data-t="ok"] { color: #86efac; }
.rk-cl[data-t="done"] { color: #fde68a; font-weight: 700; }
.rk-cl[data-t="done"].is-shown::after { content: "▍"; margin-left: 4px; animation: rk-blink 1s steps(1) infinite; color: #fde68a; }

.rk-cbar { display: inline-block; width: 70%; height: 8px; border-radius: 4px; background: #1e293b; vertical-align: middle; overflow: hidden; }
.rk-cbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4); border-radius: 4px; transition: width 1.1s var(--rk-ease); }
.rk-cl.is-shown .rk-cbar span { width: 100%; }

.rk-console-foot {
    display: flex;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid #1e293b;
    font-size: 11.5px;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Process rail ---------- */
.rk-process-rail {
    --p: 0;
    position: relative;
    height: 2px;
    margin: 8px 0 26px;
    background: rgba(148, 163, 184, .18);
    border-radius: 2px;
}

.rk-rail-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--p) * 100%);
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(96, 165, 250, .6);
}

.rk-rail-dot {
    position: absolute;
    top: 50%;
    left: calc(var(--p) * 100%);
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .35), 0 0 18px rgba(96, 165, 250, .9);
}

/* Navy process cards: numbered glow */
.rk-step-card.is-active .rk-step-num {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Why section: drifting code glyphs */
.rk-home .rk-why-grid { position: relative; }
.rk-home .rk-why-lead::after {
    content: "{ }   </>   =>   []   ( )";
    display: block;
    margin-top: 28px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 22px;
    letter-spacing: .25em;
    white-space: pre;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #06b6d4, #2563eb);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .55;
    animation: rk-text-flow 12s linear infinite;
}

.rk-why-num { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 960px) {
    .rk-console-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .rk-console { transform: none; }
    .rk-chapter-num { font-size: 6.5rem; top: 24px; }
}

@media (max-width: 640px) {
    .rk-console-body { font-size: 11.5px; height: 300px; padding: 14px; }
    .rk-process-rail { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rk-mark { transition: none; background-size: 100% 38%; }
    .rk-console::before, .rk-why-lead::after { animation: none !important; }
}

/* ==========================================================================
   10. HOME ECOSYSTEM — dark constellation hub + interactive brand explorer
   ========================================================================== */
.rk-eco-constellation {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #060a16;
    color: #cbd5e1;
}

.rk-eco-constellation .rk-h2 { color: #fff; }
.rk-eco-constellation .rk-lead { color: #94a3b8; }
.rk-eco-constellation .rk-eyebrow { color: #c7d2fe; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); }
.rk-eco-constellation .rk-eyebrow::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); }
.rk-eco-constellation .rk-sec-no { background: rgba(255, 255, 255, .14); }
.rk-eco-constellation .rk-chapter-num { -webkit-text-stroke-color: rgba(147, 197, 253, .1); }
.rk-eco-constellation .rk-mark { background-image: linear-gradient(100deg, rgba(59, 130, 246, .45), rgba(139, 92, 246, .5)); }

.rk-eco-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }

.rk-eco-aurora { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .45; animation: rk-aurora 26s ease-in-out infinite alternate; }
.rk-eco-aurora--a { width: 620px; height: 620px; left: -160px; top: 10%; background: #2563eb; }
.rk-eco-aurora--b { width: 560px; height: 560px; right: -140px; bottom: -10%; background: #7c3aed; animation-delay: -10s; }

.rk-eco-stars {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, .7), transparent),
        radial-gradient(1px 1px at 28% 72%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 46% 32%, rgba(191, 219, 254, .7), transparent),
        radial-gradient(1px 1px at 64% 84%, rgba(255, 255, 255, .5), transparent),
        radial-gradient(1.5px 1.5px at 78% 22%, rgba(196, 181, 253, .7), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, .55), transparent),
        radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, .45), transparent),
        radial-gradient(1.5px 1.5px at 56% 8%, rgba(255, 255, 255, .6), transparent);
    background-size: 100% 100%;
    animation: rk-twinkle 6s ease-in-out infinite alternate;
}

.rk-eco-stars::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, #000, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, #000, transparent 80%);
}

@keyframes rk-twinkle { from { opacity: .55; } to { opacity: 1; } }

/* Lines + travelling pulses */
.rk-eco-constellation .rk-eco-line { stroke: rgba(148, 163, 184, .22); stroke-width: 1.5; }
.rk-eco-constellation .rk-eco-line.is-active { stroke: var(--line-color); stroke-width: 2.5; filter: drop-shadow(0 0 6px var(--line-color)); }

.rk-eco-pulse {
    fill: none;
    stroke: var(--line-color, #60a5fa);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 5 95;
    stroke-dashoffset: 100;
    opacity: .85;
    filter: drop-shadow(0 0 5px var(--line-color, #60a5fa));
    animation: rk-eco-flow 3.2s linear infinite;
}

.rk-eco-pulse.is-active { stroke-width: 4; stroke-dasharray: 12 88; animation-duration: 1.6s; opacity: 1; }
@keyframes rk-eco-flow { to { stroke-dashoffset: 0; } }

/* Hub */
.rk-eco-constellation .rk-eco-hub {
    width: 196px;
    height: 196px;
    background: radial-gradient(circle at 30% 25%, #1e3a8a, #0b1120 70%);
    border: 1px solid rgba(147, 197, 253, .35);
    box-shadow: 0 0 60px rgba(59, 130, 246, .45), 0 0 120px rgba(124, 58, 237, .25), inset 0 0 30px rgba(96, 165, 250, .25);
}

.rk-eco-constellation .rk-eco-hub:hover { transform: scale(1.04); }

.rk-hub-ring { position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(96, 165, 250, .35); animation: rk-hub-pulse 3.2s ease-out infinite; pointer-events: none; }
.rk-hub-ring--2 { animation-delay: 1.6s; border-color: rgba(167, 139, 250, .35); }
@keyframes rk-hub-pulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.45); opacity: 0; } }

.rk-hub-orbit { position: absolute; inset: -34px; border-radius: 50%; border: 1px dashed rgba(148, 163, 184, .25); animation: rk-orbit-spin 24s linear infinite; pointer-events: none; }
.rk-hub-orbit i { position: absolute; width: 9px; height: 9px; margin: -4.5px; border-radius: 50%; background: #60a5fa; box-shadow: 0 0 12px #60a5fa; }
.rk-hub-orbit i:nth-child(1) { top: 0; left: 50%; }
.rk-hub-orbit i:nth-child(2) { top: 75%; left: 93%; background: #a78bfa; box-shadow: 0 0 12px #a78bfa; }
.rk-hub-orbit i:nth-child(3) { top: 75%; left: 7%; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }

.rk-hub-count { margin-top: 6px; font-size: 10.5px; color: #94a3b8; letter-spacing: .04em; }

/* Nodes as glass cards */
.rk-eco-constellation .rk-eco-node {
    background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    border: 1px solid rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .6);
    overflow: hidden;
    transition: transform .4s var(--rk-ease), border-color .3s ease, box-shadow .4s ease, opacity .35s ease, background .35s ease;
}

.rk-eco-constellation .rk-eco-node::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--node-accent);
    box-shadow: 0 0 14px var(--node-accent);
    opacity: .7;
    transition: top .35s var(--rk-ease), bottom .35s var(--rk-ease), opacity .3s ease;
}

.rk-eco-constellation .rk-eco-node::after {
    content: "\f061";
    font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 18px;
    bottom: 16px;
    font-size: 12px;
    color: var(--node-accent);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s ease, transform .3s var(--rk-ease);
}

.rk-eco-constellation .rk-eco-node h3 { color: #fff; }
.rk-eco-constellation .rk-eco-node p { color: #94a3b8; }
.rk-eco-constellation .rk-eco-node-cat { color: color-mix(in srgb, var(--node-accent) 70%, #fff); }

.rk-eco-constellation .rk-eco-node:hover {
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--node-accent) 60%, transparent);
    background: linear-gradient(145deg, color-mix(in srgb, var(--node-accent) 18%, transparent), rgba(255, 255, 255, .03));
    box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--node-accent) 70%, transparent);
}

.rk-eco-constellation .rk-eco-node:hover::before { top: 0; bottom: 0; opacity: 1; }
.rk-eco-constellation .rk-eco-node:hover::after { opacity: 1; transform: none; }
.rk-eco-constellation .rk-eco-node .rk-brand-mark { transition: transform .5s var(--rk-spring); box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6); }
.rk-eco-constellation .rk-eco-node:hover .rk-brand-mark { transform: rotate(-8deg) scale(1.08); }

/* Focus mode: dim the others */
.rk-eco-diagram.is-focusing .rk-eco-node:not(:hover) { opacity: .4; }
.rk-eco-diagram.is-focusing .rk-eco-line:not(.is-active),
.rk-eco-diagram.is-focusing .rk-eco-pulse:not(.is-active) { opacity: .15; }

/* Stats strip */
.rk-eco-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 48px;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .08);
}

.rk-eco-strip > div {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    padding: 20px 22px;
    background: rgba(6, 10, 22, .85);
    transition: background .3s ease;
}

.rk-eco-strip > div:hover { background: rgba(30, 41, 59, .85); }
.rk-eco-strip i { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #93c5fd; background: rgba(59, 130, 246, .14); }
.rk-eco-strip strong { font-family: var(--rk-font-display); font-size: 24px; color: #fff; line-height: 1.1; }
.rk-eco-strip span { font-size: 13px; color: #94a3b8; }

/* ---------- Brand explorer ---------- */
.rk-bx-section {
    background:
        radial-gradient(600px 360px at 100% 0%, rgba(124, 58, 237, .06), transparent 60%),
        radial-gradient(600px 360px at 0% 100%, rgba(37, 99, 235, .06), transparent 60%),
        #f8fafc;
}

.rk-bx {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.rk-bx-tabs { display: flex; flex-direction: column; gap: 8px; }

.rk-bx-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    font: inherit;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .35s var(--rk-ease);
}

.rk-bx-tab:hover { background: #fff; border-color: var(--rk-border); transform: translateX(4px); }

.rk-bx-tab.is-active {
    background: #fff;
    border-color: color-mix(in srgb, var(--acc) 35%, transparent);
    box-shadow: 0 16px 34px -22px var(--acc);
    transform: translateX(8px);
}

.rk-bx-mark { flex: 0 0 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; transition: transform .5s var(--rk-spring); }
.rk-bx-tab.is-active .rk-bx-mark { transform: rotate(-8deg) scale(1.06); }
.rk-bx-tab-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rk-bx-tab-text strong { font-family: var(--rk-font-display); font-size: 15.5px; color: var(--rk-navy); }
.rk-bx-tab-text small { font-size: 12px; color: var(--rk-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-bx-tab.is-active .rk-bx-tab-text small { color: var(--acc); }
.rk-bx-no { margin-left: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; color: #cbd5e1; }
.rk-bx-tab.is-active .rk-bx-no { color: var(--acc); }

.rk-bx-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--acc); }
.rk-bx.is-auto .rk-bx-tab.is-active .rk-bx-progress { animation: rk-bx-progress var(--bx-dur, 6s) linear forwards; }
@keyframes rk-bx-progress { to { width: 100%; } }

.rk-bx-stage { position: relative; min-height: 440px; }

.rk-bx-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    height: 100%;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--acc) 22%, var(--rk-border));
    box-shadow: 0 40px 70px -44px var(--acc);
}

.rk-bx-panel[hidden] { display: none; }
.rk-bx-panel.is-entering { animation: rk-bx-in .55s var(--rk-ease) both; }
@keyframes rk-bx-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.rk-bx-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    overflow: hidden;
    background: var(--bg);
}

.rk-bx-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--fg) 12%, transparent) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 70%);
}

.rk-bx-glow { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--fg) 40%, transparent), transparent 70%); filter: blur(10px); animation: rk-orb-breathe 5s ease-in-out infinite; }
.rk-bx-ring { position: absolute; width: 210px; height: 210px; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--fg) 45%, transparent); animation: rk-orbit-spin 30s linear infinite; }

.rk-bx-big {
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--fg);
    background: color-mix(in srgb, var(--fg) 12%, var(--bg));
    border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
    box-shadow: 0 24px 50px -20px color-mix(in srgb, var(--fg) 60%, transparent);
    animation: rk-core-float 5s ease-in-out infinite;
}

.rk-bx-domain {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    white-space: nowrap;
    color: var(--fg);
    background: color-mix(in srgb, var(--bg) 70%, rgba(0, 0, 0, .25));
    border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
    backdrop-filter: blur(6px);
}

.rk-bx-domain i { font-size: 10px; margin-right: 4px; opacity: .8; }

.rk-bx-info { display: flex; flex-direction: column; gap: 14px; padding: 34px 36px; background: linear-gradient(160deg, #fff 50%, color-mix(in srgb, var(--acc) 6%, #fff)); }
.rk-bx-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.rk-bx-cat { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--acc) 10%, #fff); }
.rk-bx-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #047857; }
.rk-bx-info h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.rk-bx-info p { color: var(--rk-slate); font-size: 15.5px; line-height: 1.65; }
.rk-bx-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rk-bx-tags span { padding: 7px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--rk-navy-800); background: #fff; border: 1px solid color-mix(in srgb, var(--acc) 25%, var(--rk-border)); }
.rk-bx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.rk-bx-link { font-weight: 700; font-size: 14px; color: var(--acc); }
.rk-bx-link i { font-size: 11px; margin-left: 3px; }
.rk-bx-comp { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--rk-border); font-size: 13px; color: var(--rk-muted); }
.rk-bx-comp i { color: var(--acc); margin-right: 6px; }
.rk-bx-comp:hover { color: var(--acc); }

@media (max-width: 1080px) {
    .rk-bx { grid-template-columns: minmax(0, 1fr); }
    .rk-bx-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
    .rk-bx-tabs::-webkit-scrollbar { display: none; }
    .rk-bx-tab { flex: 0 0 auto; width: auto; scroll-snap-align: start; background: #fff; border-color: var(--rk-border); }
    .rk-bx-tab.is-active, .rk-bx-tab:hover { transform: none; }
    .rk-bx-no { display: none; }
    .rk-eco-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
    .rk-eco-constellation .rk-eco-hub {
        width: 170px;
        height: 170px;
        border-radius: 50%;
        flex-direction: column;
        gap: 0;
        padding: 18px;
        justify-self: center;
        margin: 34px auto 40px;
    }
    .rk-eco-constellation .rk-eco-hub img { margin-bottom: 6px; height: 34px; }
    .rk-hub-orbit { inset: -26px; }
    .rk-hub-count { white-space: nowrap; }
}

@media (max-width: 720px) {
    .rk-bx-panel { grid-template-columns: minmax(0, 1fr); }
    .rk-bx-visual { min-height: 220px; }
    .rk-bx-info { padding: 24px 22px; }
    .rk-bx-tab-text small { display: none; }
    .rk-eco-strip { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .rk-eco-aurora, .rk-eco-stars, .rk-eco-pulse, .rk-hub-ring, .rk-hub-orbit, .rk-bx-glow, .rk-bx-ring, .rk-bx-big, .rk-bx-progress { animation: none !important; }
    .rk-eco-pulse { display: none; }
}

/* ==========================================================================
   11. ECOSYSTEM CARD ANIMATIONS
   ========================================================================== */

/* ---------- Constellation: cards fly in toward the hub ---------- */
.rk-eco-diagram.is-armed .rk-eco-node { opacity: 0; filter: blur(6px); }
.rk-eco-diagram.is-armed .rk-eco-node[data-pos$="l"] { translate: -70px 0; }
.rk-eco-diagram.is-armed .rk-eco-node[data-pos$="r"] { translate: 70px 0; }
.rk-eco-diagram.is-armed .rk-eco-lines { opacity: 0; transition: opacity .6s ease; }
.rk-eco-diagram.is-armed.is-linked .rk-eco-lines { opacity: 1; }

.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos] {
    opacity: 1;
    filter: none;
    translate: 0 0;
    transition: translate .9s cubic-bezier(.16, 1, .3, 1), opacity .7s ease, filter .7s ease,
                transform .4s var(--rk-ease), border-color .3s ease, box-shadow .4s ease, background .35s ease;
}

.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos="ml"],
.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos="mr"] { transition-delay: .08s, .08s, .08s, 0s, 0s, 0s, 0s; }
.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos="tl"],
.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos="tr"] { transition-delay: .2s, .2s, .2s, 0s, 0s, 0s, 0s; }
.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos="bl"],
.rk-eco-diagram.is-armed.is-revealed .rk-eco-node[data-pos="br"] { transition-delay: .32s, .32s, .32s, 0s, 0s, 0s, 0s; }

/* ---------- Constellation: 3D tilt + cursor spotlight + shine ---------- */
.rk-eco-constellation .rk-eco-node {
    --rx: 0deg;
    --ry: 0deg;
    --mx: 50%;
    --my: 50%;
    transform-style: preserve-3d;
}

.rk-eco-constellation .rk-eco-node:hover {
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px);
}

/* spotlight layer sits behind content */
.rk-eco-constellation .rk-eco-node > div { position: relative; z-index: 1; }
.rk-eco-constellation .rk-eco-node > .rk-brand-mark { position: relative; z-index: 1; }

.rk-eco-constellation .rk-eco-node {
    background-image:
        radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--node-accent) 22%, transparent), transparent 60%),
        linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    background-size: 100% 100%;
}

.rk-eco-constellation .rk-eco-node:hover {
    background-image:
        radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--node-accent) 26%, transparent), transparent 60%),
        linear-gradient(145deg, color-mix(in srgb, var(--node-accent) 14%, transparent), rgba(255, 255, 255, .03));
}

/* brand mark: soft idle float + halo ping on hover */
.rk-eco-constellation .rk-eco-node .rk-brand-mark { animation: rk-mark-float 5s ease-in-out infinite; }
.rk-eco-constellation .rk-eco-node[data-pos="ml"] .rk-brand-mark,
.rk-eco-constellation .rk-eco-node[data-pos="mr"] .rk-brand-mark { animation-delay: -1.6s; }
.rk-eco-constellation .rk-eco-node[data-pos="bl"] .rk-brand-mark,
.rk-eco-constellation .rk-eco-node[data-pos="br"] .rk-brand-mark { animation-delay: -3.2s; }

@keyframes rk-mark-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }

.rk-eco-constellation .rk-eco-node:hover .rk-brand-mark {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--node-accent) 60%, transparent), 0 8px 18px -8px rgba(0, 0, 0, .6);
    animation: rk-mark-ping 1.4s ease-out infinite;
}

@keyframes rk-mark-ping {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--node-accent) 55%, transparent), 0 8px 18px -8px rgba(0, 0, 0, .6); }
    100% { box-shadow: 0 0 0 14px transparent, 0 8px 18px -8px rgba(0, 0, 0, .6); }
}

/* title underline sweep */
.rk-eco-constellation .rk-eco-node h3 {
    display: table;
    background: linear-gradient(90deg, var(--node-accent), transparent) no-repeat 0 100% / 0% 2px;
    padding-bottom: 2px;
    transition: background-size .45s var(--rk-ease);
}

.rk-eco-constellation .rk-eco-node:hover h3 { background-size: 100% 2px; }

/* ---------- Stats strip: staggered rise + icon bounce ---------- */
.rk-eco-strip > div { opacity: 0; translate: 0 18px; transition: opacity .6s ease, translate .7s cubic-bezier(.16, 1, .3, 1), background .3s ease; }
.rk-eco-strip.is-counted > div { opacity: 1; translate: 0 0; }
.rk-eco-strip.is-counted > div:nth-child(2) { transition-delay: .08s, .08s, 0s; }
.rk-eco-strip.is-counted > div:nth-child(3) { transition-delay: .16s, .16s, 0s; }
.rk-eco-strip.is-counted > div:nth-child(4) { transition-delay: .24s, .24s, 0s; }
.rk-eco-strip i { transition: transform .5s var(--rk-spring), background .3s ease, color .3s ease; }
.rk-eco-strip > div:hover i { transform: translateY(-4px) rotate(-8deg); background: #3b82f6; color: #fff; }

/* ---------- Explorer: direction-aware panel transition ---------- */
.rk-bx[data-dir="next"] .rk-bx-panel.is-entering { animation: rk-bx-next .6s cubic-bezier(.16, 1, .3, 1) both; }
.rk-bx[data-dir="prev"] .rk-bx-panel.is-entering { animation: rk-bx-prev .6s cubic-bezier(.16, 1, .3, 1) both; }

@keyframes rk-bx-next {
    from { opacity: 0; transform: perspective(1400px) translateY(26px) rotateX(-6deg) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes rk-bx-prev {
    from { opacity: 0; transform: perspective(1400px) translateY(-26px) rotateX(6deg) scale(.98); }
    to { opacity: 1; transform: none; }
}

/* staggered content inside the panel */
.rk-bx-panel.is-entering .rk-bx-info > * { animation: rk-bx-item .55s cubic-bezier(.16, 1, .3, 1) both; }
.rk-bx-panel.is-entering .rk-bx-info > *:nth-child(1) { animation-delay: .08s; }
.rk-bx-panel.is-entering .rk-bx-info > *:nth-child(2) { animation-delay: .14s; }
.rk-bx-panel.is-entering .rk-bx-info > *:nth-child(3) { animation-delay: .2s; }
.rk-bx-panel.is-entering .rk-bx-info > *:nth-child(4) { animation-delay: .26s; }
.rk-bx-panel.is-entering .rk-bx-info > *:nth-child(5) { animation-delay: .32s; }
.rk-bx-panel.is-entering .rk-bx-info > *:nth-child(6) { animation-delay: .38s; }
@keyframes rk-bx-item { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }

/* tags pop in one by one */
.rk-bx-panel.is-entering .rk-bx-tags span { animation: rk-bx-tag .45s var(--rk-spring) both; }
.rk-bx-panel.is-entering .rk-bx-tags span:nth-child(1) { animation-delay: .3s; }
.rk-bx-panel.is-entering .rk-bx-tags span:nth-child(2) { animation-delay: .36s; }
.rk-bx-panel.is-entering .rk-bx-tags span:nth-child(3) { animation-delay: .42s; }
@keyframes rk-bx-tag { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
.rk-bx-tags span { transition: transform .3s var(--rk-spring), background .25s ease, color .25s ease, border-color .25s ease; }
.rk-bx-tags span:hover { transform: translateY(-3px); background: var(--acc); color: #fff; border-color: var(--acc); }

/* big brand icon spins in, then follows the cursor (parallax) */
.rk-bx-panel { --px: 0; --py: 0; --mx: 50%; --my: 50%; }
.rk-bx-panel.is-entering .rk-bx-big { animation: rk-bx-big-in .8s cubic-bezier(.16, 1, .3, 1) both, rk-core-float 5s ease-in-out .8s infinite; }
@keyframes rk-bx-big-in { from { opacity: 0; transform: scale(.4) rotate(-90deg); } to { opacity: 1; transform: none; } }

.rk-bx-big { translate: calc(var(--px) * 26px) calc(var(--py) * 26px); transition: translate .25s ease-out; }
.rk-bx-glow { translate: calc(var(--px) * -40px) calc(var(--py) * -40px); transition: translate .3s ease-out; }
.rk-bx-ring { translate: calc(var(--px) * 12px) calc(var(--py) * 12px); transition: translate .3s ease-out; }
.rk-bx-panel.is-entering .rk-bx-domain { animation: rk-bx-domain .6s cubic-bezier(.16, 1, .3, 1) .35s both; }
@keyframes rk-bx-domain { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }

/* cursor spotlight over the info side */
.rk-bx-info { position: relative; }
.rk-bx-info::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(340px circle at var(--mx) var(--my), color-mix(in srgb, var(--acc) 10%, transparent), transparent 60%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.rk-bx-stage:hover .rk-bx-info::before { opacity: 1; }
.rk-bx-info > * { position: relative; }

/* light sweep across the visual when a brand opens */
.rk-bx-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .22) 50%, transparent 65%) no-repeat;
    background-size: 250% 100%;
    background-position: 160% 0;
    pointer-events: none;
}
.rk-bx-panel.is-entering .rk-bx-visual::after { animation: rk-shine 1.1s ease .2s both; }

/* ---------- Explorer tabs: icon wiggle + sliding accent bar ---------- */
.rk-bx-tab::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    border-radius: 0 3px 3px 0;
    background: var(--acc);
    transform: translateY(-50%);
    transition: height .4s cubic-bezier(.16, 1, .3, 1);
}

.rk-bx-tab.is-active::before { height: 60%; }
.rk-bx-tab:hover .rk-bx-mark { animation: rk-wiggle .5s ease; }
@keyframes rk-wiggle { 25% { rotate: -10deg; } 50% { rotate: 8deg; } 75% { rotate: -4deg; } }


@media (prefers-reduced-motion: reduce) {
    .rk-eco-diagram.is-armed .rk-eco-node { opacity: 1; filter: none; translate: none; }
    .rk-eco-strip > div { opacity: 1; translate: none; }
    .rk-eco-constellation .rk-eco-node .rk-brand-mark,
    .rk-bx-panel.is-entering, .rk-bx-panel.is-entering *, .rk-bx-tab .rk-bx-mark, .rk-bx-visual::after { animation: none !important; }
    .rk-bx-big, .rk-bx-glow, .rk-bx-ring { translate: none !important; }
}
