/**
 * Royalty Fusion — Premium dark landing styles
 * Built on top of Onekit Bootstrap theme, no new framework dependencies.
 */

:root {
    --rf-bg: #030712;
    --rf-surface: #161e2e;
    --rf-surface-elevated: #1e293b;
    --rf-border: rgba(255, 255, 255, 0.15);
    --rf-border-strong: rgba(255, 255, 255, 0.25);
    --rf-text: #f9fafb;
    --rf-muted: #9ca3af;
    --rf-cyan: #06b6d4;
    --rf-violet: #8b5cf6;
    --rf-amber: #f59e0b;
    --rf-success: #10b981;
    --rf-radius: 1.25rem;
    --rf-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --rf-transition: 0.35s var(--rf-ease);
}

:root[data-bs-theme="light"],
[data-bs-theme="light"] {
    --rf-bg: #f8fafc;
    --rf-surface: #ffffff;
    --rf-surface-elevated: #f1f5f9;
    --rf-border: rgba(15, 23, 42, 0.12);
    --rf-border-strong: rgba(15, 23, 42, 0.2);
    --rf-text: #0f172a;
    --rf-muted: #64748b;
}

/* Global transition for smooth theme switching */
html,
body,
.rf-navbar,
.rf-navbar__menu,
.rf-bento__card,
.rf-feature,
.rf-guarantee,
.rf-cta-card,
.rf-form,
.rf-contact-details-card,
.rf-form .form-control,
.rf-form .form-select,
.rf-theme-toggle {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform var(--rf-transition);
}

/* Base override ---------------------------------------------------------- */
html,
body {
    background: var(--rf-bg);
    color: var(--rf-text);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: var(--rf-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p,
.lead {
    color: var(--rf-muted);
}

a {
    color: var(--rf-cyan);
    transition: color var(--rf-transition);
}

a:hover {
    color: var(--rf-violet);
}

/* Navbar dark premium ---------------------------------------------------- */
.rf-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 0.75rem 0;
    transition: background var(--rf-transition), box-shadow var(--rf-transition), padding var(--rf-transition);
    background: transparent;
}

.rf-navbar.is-scrolled {
    padding: 0.5rem 0;
    background: rgba(3, 7, 18, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--rf-border);
}

.rf-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rf-navbar__brand img {
    max-height: 3.25rem;
    width: auto;
    display: block;
}

.rf-navbar__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rf-navbar__menu a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: 0.25rem 0;
}

.rf-navbar__menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--rf-cyan), var(--rf-violet));
    transition: width var(--rf-transition);
    border-radius: 2px;
}

.rf-navbar__menu a:hover,
.rf-navbar__menu a:focus {
    color: var(--rf-text);
}

.rf-navbar__menu a:hover::after,
.rf-navbar__menu a:focus::after {
    width: 100%;
}

.rf-navbar__toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--rf-text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.rf-navbar__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rf-theme-toggle {
    background: transparent;
    border: 1px solid var(--rf-border);
    color: var(--rf-text);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background var(--rf-transition), color var(--rf-transition), border-color var(--rf-transition);
}

.rf-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--rf-cyan);
    color: var(--rf-cyan);
}

[data-bs-theme="light"] .rf-theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Light / Dark toggle show logic */
[data-bs-theme="dark"] .show-light-only {
    display: none !important;
}
[data-bs-theme="dark"] .show-dark-only {
    display: block !important;
}
[data-bs-theme="light"] .show-light-only {
    display: block !important;
}
[data-bs-theme="light"] .show-dark-only {
    display: none !important;
}

/* Light theme specific component overrides */
[data-bs-theme="light"] .rf-navbar.is-scrolled {
    background: rgba(248, 250, 252, 0.85);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.08);
}

[data-bs-theme="light"] .rf-navbar__menu a {
    color: rgba(15, 23, 42, 0.75);
}

[data-bs-theme="light"] .rf-navbar__menu a:hover {
    color: var(--rf-cyan);
}

@media (max-width: 991px) {
    [data-bs-theme="light"] .rf-navbar__menu {
        background: rgba(248, 250, 252, 0.98);
    }
}

[data-bs-theme="light"] .rf-cta-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.98));
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 24px 80px -24px rgba(15, 23, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-bs-theme="light"] .rf-cta-card::before {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(139, 92, 246, 0.25), rgba(245, 158, 11, 0.15));
}

[data-bs-theme="light"] .rf-cta-card__glow {
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.08), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.08), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.04), transparent 50%);
}

[data-bs-theme="light"] .form-control::placeholder,
[data-bs-theme="light"] .form-select::placeholder {
    color: rgba(15, 23, 42, 0.4);
}

@media (max-width: 991px) {
    .rf-navbar__toggle {
        display: block;
    }

    .rf-navbar__menu {
        position: fixed;
        inset: 0;
        top: 4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 1.5rem;
        background: rgba(3, 7, 18, 0.96);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform var(--rf-transition);
    }

    .rf-navbar__menu.is-open {
        transform: translateX(0);
    }

    .rf-navbar__menu li {
        width: 100%;
        border-bottom: 1px solid var(--rf-border);
    }

    .rf-navbar__menu a {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }
}

/* Hero ------------------------------------------------------------------- */
.rf-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 10rem 0 7rem;
    overflow: hidden;
    isolation: isolate;
}

.rf-hero__mesh {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--rf-bg);
}

.rf-hero__gradient {
    position: absolute;
    inset: -25%;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    animation: rfMeshMove 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes rfMeshMove {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(6%, -5%, 0) scale(1.08); }
}

.rf-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}

.rf-hero__content {
    position: relative;
    z-index: 1;
}

.rf-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--rf-border-strong);
    background: rgba(17, 24, 39, 0.5);
    color: var(--rf-muted);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.rf-badge::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--rf-success);
    box-shadow: 0 0 12px var(--rf-success);
    animation: rfPulse 2s infinite;
}

@keyframes rfPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.rf-hero__title {
    font-size: clamp(2.6rem, 6.2vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
}

.rf-text-gradient {
    background: linear-gradient(90deg, var(--rf-cyan), var(--rf-violet) 50%, var(--rf-amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rf-hero__lead {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--rf-muted);
    max-width: 720px;
    margin: 0 auto 2.5rem;
    line-height: 1.65;
}

.rf-hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9375rem 1.875rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background var(--rf-transition);
    border: 1px solid transparent;
    cursor: pointer;
}

.rf-btn--primary {
    background: linear-gradient(135deg, var(--rf-cyan), var(--rf-violet));
    color: white;
    box-shadow: 0 12px 32px -12px rgba(6, 182, 212, 0.45);
}

.rf-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px -12px rgba(6, 182, 212, 0.6);
    color: white;
}

.rf-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--rf-border-strong);
    color: var(--rf-text);
    backdrop-filter: blur(8px);
}

.rf-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(6, 182, 212, 0.35);
    color: var(--rf-text);
}

.rf-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    margin: 0;
    z-index: -1;
    line-height: 0;
}

.rf-hero__wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Sections --------------------------------------------------------------- */
.rf-section {
    position: relative;
    padding: clamp(3rem, 5vw, 4.5rem) 0;
}

/* Vertical rhythm system: max 100px desktop, 60px mobile */
.rf-section--sm {
    padding: clamp(2rem, 3.5vw, 3rem) 0;
}

.rf-section--lg {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
}

/* Container gap utility for explicit vertical spacing */
.rf-stack > * + * {
    margin-top: clamp(2rem, 5vw, 4rem);
}

.rf-stack--sm > * + * {
    margin-top: clamp(1rem, 3vw, 2rem);
}

.rf-stack--lg > * + * {
    margin-top: clamp(2.5rem, 6vw, 5rem);
}

@media (max-width: 991px) {
    .rf-section {
        padding: clamp(2rem, 5vw, 3rem) 0;
    }

    .rf-section--lg {
        padding: clamp(2.5rem, 6vw, 3.5rem) 0;
    }

    .rf-stack--lg > * + * {
        margin-top: clamp(1.5rem, 5vw, 3rem);
    }
}

.rf-section--dim {
    background: linear-gradient(180deg, var(--rf-bg) 0%, var(--rf-surface-elevated) 50%, var(--rf-bg) 100%);
}

.rf-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.rf-section__subtitle {
    color: var(--rf-muted);
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* Bento Grid ------------------------------------------------------------- */
.rf-bento {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .rf-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .rf-bento {
        grid-template-columns: repeat(4, 1fr);
    }

    .rf-bento__card--wide {
        grid-column: span 2;
    }

    .rf-bento__card--tall {
        grid-row: span 2;
    }
}

.rf-bento__card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    overflow: hidden;
    transition: transform var(--rf-transition), border-color var(--rf-transition), box-shadow var(--rf-transition);
    min-height: 220px;
}

.rf-bento__card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.4), rgba(139, 92, 246, 0.25), transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--rf-transition);
    pointer-events: none;
}

.rf-bento__card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 20px 50px -18px rgba(6, 182, 212, 0.2);
}

.rf-bento__card:hover::before {
    opacity: 1;
}

.rf-bento__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(6, 182, 212, 0.12),
        transparent 40%
    );
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.rf-bento__card:hover .rf-bento__glow {
    opacity: 1;
}

.rf-bento__icon {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    display: grid;
    place-items: center;
    border-radius: 0.875rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--rf-cyan);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.rf-bento__card h3 {
    position: relative;
    z-index: 1;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--rf-text);
}

.rf-bento__card p {
    position: relative;
    z-index: 1;
    color: var(--rf-muted);
    margin: 0;
    line-height: 1.65;
}

.rf-bento__card ul {
    position: relative;
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    color: var(--rf-muted);
}

.rf-bento__card li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.rf-bento__card li::before {
    content: "\2713";
    color: var(--rf-cyan);
    font-weight: 700;
    flex-shrink: 0;
}

/* About ------------------------------------------------------------------ */
.rf-about__text {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--rf-muted);
}

.rf-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.rf-stat__value {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rf-cyan), var(--rf-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rf-stat__label {
    font-size: 0.875rem;
    color: var(--rf-muted);
    margin-top: 0.25rem;
}

/* Tech marquee ----------------------------------------------------------- */
.rf-marquee {
    --gap: 1.5rem;
    overflow: hidden;
    user-select: none;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.rf-marquee__track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    animation: rfMarquee 38s linear infinite;
}

.rf-marquee:hover .rf-marquee__track {
    animation-play-state: paused;
}

@keyframes rfMarquee {
    to { transform: translateX(-50%); }
}

.rf-marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid var(--rf-border);
    background: var(--rf-surface);
    color: var(--rf-text);
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    transition: border-color var(--rf-transition), color var(--rf-transition), background var(--rf-transition);
}

.rf-marquee__item:hover {
    border-color: var(--rf-cyan);
    color: var(--rf-cyan);
    background: var(--rf-surface-elevated);
}

.rf-marquee__item i {
    color: var(--rf-cyan);
}

/* Why us ----------------------------------------------------------------- */
.rf-features {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .rf-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rf-feature {
    padding: 2rem;
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    transition: transform var(--rf-transition), border-color var(--rf-transition);
}

.rf-feature:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
}

.rf-feature__icon {
    font-size: 1.75rem;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    color: var(--rf-violet);
    margin-bottom: 1.25rem;
}

.rf-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rf-feature p {
    margin: 0;
    line-height: 1.6;
}

/* Process ---------------------------------------------------------------- */
.rf-process {
    display: grid;
    gap: 0;
    position: relative;
}

@media (min-width: 992px) {
    .rf-process {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

.rf-process__list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.rf-process__list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--rf-cyan), var(--rf-violet), var(--rf-amber));
    opacity: 0.35;
    animation: rfLineFlow 3s linear infinite;
    background-size: 100% 200%;
}

@keyframes rfLineFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

.rf-process__item {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 2.5rem;
}

.rf-process__item:last-child {
    padding-bottom: 0;
}

.rf-process__number {
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border-strong);
    color: var(--rf-cyan);
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: 0 0 24px rgba(6, 182, 212, 0.15);
    transition: box-shadow 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.rf-process__item:hover .rf-process__number {
    color: var(--rf-violet);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 0 32px rgba(139, 92, 246, 0.3);
}

.rf-process__item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.rf-process__item p {
    color: var(--rf-muted);
    line-height: 1.65;
    margin-bottom: 0.75rem;
}

.rf-process__item ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--rf-muted);
}

.rf-process__item li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    font-size: 0.9375rem;
}

.rf-process__item li::before {
    content: "\2713";
    color: var(--rf-cyan);
    font-weight: 700;
    flex-shrink: 0;
}

/* Guarantees ------------------------------------------------------------- */
.rf-guarantees {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .rf-guarantees {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rf-guarantee {
    text-align: center;
    padding: 2rem;
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    transition: transform var(--rf-transition), border-color var(--rf-transition);
}

.rf-guarantee:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.35);
}

.rf-guarantee__icon {
    font-size: 2.25rem;
    color: var(--rf-amber);
    margin-bottom: 1rem;
}

.rf-guarantee h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.rf-guarantee p {
    margin: 0;
}

/* CTA -------------------------------------------------------------------- */
.rf-cta-card {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
    border-radius: 2rem;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(11, 16, 33, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    box-shadow:
        0 24px 80px -24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.rf-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.5), rgba(139, 92, 246, 0.4), rgba(245, 158, 11, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.rf-cta-card__glow {
    position: absolute;
    inset: -50%;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.18), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.18), transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.08), transparent 50%);
    animation: rfMeshMove 20s ease-in-out infinite alternate;
    pointer-events: none;
}

.rf-cta-card__shine {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
    pointer-events: none;
}

.rf-cta-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rf-cta-card__icon {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--rf-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.rf-cta__title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.rf-cta__text {
    font-size: 1.125rem;
    color: var(--rf-muted);
    max-width: 650px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

.rf-cta__benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.rf-cta__benefit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 9999px;
    background: var(--rf-surface-elevated);
    border: 1px solid var(--rf-border);
    color: var(--rf-text);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.rf-cta__benefit:hover {
    transform: translateY(-3px);
    background: rgba(6, 182, 212, 0.08);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--rf-cyan);
}

.rf-cta__benefit i {
    color: var(--rf-cyan);
}

.rf-btn--lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.1rem;
}

/* Contact ---------------------------------------------------------------- */
.rf-form {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="light"] .rf-form {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.rf-contact-details-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

[data-bs-theme="light"] .rf-contact-details-card {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.rf-contact__info p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--rf-text);
}

.rf-contact__info p:last-child {
    margin-bottom: 0;
}

.rf-contact__info i {
    color: var(--rf-cyan);
    font-size: 1.25rem;
    width: 1.5rem;
    text-align: center;
}

.rf-form .form-control,
.rf-form .form-select {
    background: var(--rf-surface-elevated);
    border: 1px solid var(--rf-border);
    color: var(--rf-text);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    transition: border-color var(--rf-transition), box-shadow var(--rf-transition), background var(--rf-transition);
}

.rf-form .form-control:focus,
.rf-form .form-select:focus {
    background: var(--rf-surface);
    border-color: var(--rf-cyan);
    color: var(--rf-text);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.rf-form .form-label {
    color: var(--rf-muted);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.rf-form textarea.form-control {
    min-height: 160px;
}
/* Subpage Hero Header ---------------------------------------------------- */
.rf-subpage-hero {
    position: relative;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--rf-bg) 0%, var(--rf-surface) 100%);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

[data-bs-theme="light"] .rf-subpage-hero {
    background: linear-gradient(135deg, var(--rf-bg) 0%, var(--rf-surface-elevated) 100%);
}

.rf-subpage-hero__glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.12) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.rf-subpage-hero__title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.rf-subpage-hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--rf-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.rf-subpage-hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    margin: 0;
    z-index: -1;
    line-height: 0;
}

.rf-subpage-hero__wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Footer ----------------------------------------------------------------- */
.rf-footer {
    background: var(--rf-surface);
    border-top: 1px solid var(--rf-border);
    padding: 4rem 0 2rem;
}

.rf-footer__brand {
    max-height: 3rem;
    width: auto;
    margin-bottom: 1.25rem;
}

.rf-footer p {
    color: var(--rf-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.rf-footer address {
    color: var(--rf-muted);
    font-style: normal;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.rf-footer__title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-text);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.rf-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rf-footer__links li {
    margin-bottom: 0.75rem;
}

.rf-footer__links a {
    color: var(--rf-muted);
    text-decoration: none;
    transition: color var(--rf-transition);
}

.rf-footer__links a:hover {
    color: var(--rf-cyan);
}

.rf-social {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.rf-social a {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--rf-border-strong);
    color: var(--rf-muted);
    transition: color var(--rf-transition), border-color var(--rf-transition), transform var(--rf-transition);
}

.rf-social a:hover {
    color: var(--rf-cyan);
    border-color: var(--rf-cyan);
    transform: translateY(-2px);
}

.rf-footer__bottom {
    border-top: 1px solid var(--rf-border);
    margin-top: 3rem;
    padding-top: 1.75rem;
    text-align: center;
    color: var(--rf-muted);
    font-size: 0.9375rem;
}

.rf-backtop {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1000;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--rf-surface);
    border: 1px solid var(--rf-border-strong);
    color: var(--rf-cyan);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--rf-transition), transform var(--rf-transition), background var(--rf-transition);
    pointer-events: none;
}

.rf-backtop.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.rf-backtop:hover {
    background: var(--rf-cyan);
    color: var(--rf-bg);
    border-color: var(--rf-cyan);
}

/* Scroll reveal ---------------------------------------------------------- */
.rf-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--rf-ease), transform 0.75s var(--rf-ease);
    will-change: opacity, transform;
}

.rf-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children via inline style delays handled by JS or CSS utility */
.rf-reveal-delay-1 { transition-delay: 0.08s; }
.rf-reveal-delay-2 { transition-delay: 0.16s; }
.rf-reveal-delay-3 { transition-delay: 0.24s; }
.rf-reveal-delay-4 { transition-delay: 0.32s; }
.rf-reveal-delay-5 { transition-delay: 0.40s; }
.rf-reveal-delay-6 { transition-delay: 0.48s; }

/* Custom cursor ---------------------------------------------------------- */
.rf-cursor,
.rf-cursor__halo {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rf-cursor {
    width: 10px;
    height: 10px;
    background: var(--rf-cyan);
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rf-cursor.is-active {
    opacity: 1;
}

.rf-cursor__halo {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: width 0.35s ease, height 0.35s ease, border-color 0.35s ease, background 0.35s ease, opacity 0.3s ease;
}

.rf-cursor.is-active + .rf-cursor__halo {
    opacity: 1;
}

.rf-cursor.is-hovering .rf-cursor__halo {
    width: 64px;
    height: 64px;
    border-color: rgba(139, 92, 246, 0.6);
    background: rgba(139, 92, 246, 0.08);
}

.rf-cursor.is-clicking .rf-cursor__halo {
    width: 28px;
    height: 28px;
}

@media (pointer: coarse), (max-width: 991px) {
    .rf-cursor,
    .rf-cursor__halo {
        display: none;
    }
}

/* Particle canvas -------------------------------------------------------- */
.rf-particles {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.7;
}

/* Aurora borealis background --------------------------------------------- */
.rf-aurora {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
    opacity: 0.5;
}

.rf-aurora__band {
    position: absolute;
    width: 200%;
    height: 60%;
    top: -20%;
    left: -50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: rfAurora 18s ease-in-out infinite alternate;
    will-change: transform;
}

.rf-aurora__band:nth-child(1) {
    background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.35), transparent);
    animation-duration: 16s;
    top: -10%;
}

.rf-aurora__band:nth-child(2) {
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent);
    animation-duration: 22s;
    animation-delay: -4s;
    top: 20%;
}

.rf-aurora__band:nth-child(3) {
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    animation-duration: 20s;
    animation-delay: -8s;
    top: 50%;
}

@keyframes rfAurora {
    0% { transform: translateX(-25%) skewX(-8deg); }
    100% { transform: translateX(15%) skewX(8deg); }
}

/* Floating orbs ---------------------------------------------------------- */
.rf-orbs {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.rf-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    animation: rfFloat 14s ease-in-out infinite alternate;
    will-change: transform;
}

.rf-orb--cyan {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.35);
    top: 15%;
    left: -5%;
    animation-duration: 16s;
}

.rf-orb--violet {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.3);
    top: 40%;
    right: -10%;
    animation-duration: 20s;
    animation-delay: -6s;
}

.rf-orb--amber {
    width: 320px;
    height: 320px;
    background: rgba(245, 158, 11, 0.25);
    bottom: 10%;
    left: 30%;
    animation-duration: 18s;
    animation-delay: -10s;
}

@keyframes rfFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(30px, -40px, 0) scale(1.08); }
}

/* 3D Tilt cards ---------------------------------------------------------- */
.rf-tilt {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.rf-tilt__inner {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
}

.rf-tilt__shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255, 255, 255, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.rf-tilt:hover .rf-tilt__shine {
    opacity: 1;
}

/* Magnetic buttons ------------------------------------------------------- */
.rf-magnetic {
    display: inline-flex;
    transition: transform 0.2s ease-out;
}

.rf-magnetic__inner {
    transition: transform 0.2s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Text decode / scramble ------------------------------------------------- */
.rf-decode {
    display: inline-block;
    min-height: 1.2em;
}

/* Animated gradient border ----------------------------------------------- */
.rf-border-gradient {
    position: relative;
    border-radius: var(--rf-radius);
    background: var(--rf-surface);
    z-index: 0;
    overflow: hidden;
}

.rf-border-gradient::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: conic-gradient(from 0deg, var(--rf-cyan), var(--rf-violet), var(--rf-amber), var(--rf-cyan));
    animation: rfSpin 4s linear infinite;
    z-index: -1;
    border-radius: inherit;
}

.rf-border-gradient::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--rf-surface);
    border-radius: inherit;
    z-index: -1;
}

@keyframes rfSpin {
    to { transform: rotate(360deg); }
}

/* Floating animation utility --------------------------------------------- */
.rf-float {
    animation: rfFloatSoft 6s ease-in-out infinite alternate;
}

@keyframes rfFloatSoft {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

/* Glowing line divider --------------------------------------------------- */
.rf-glow-line {
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rf-cyan), var(--rf-violet), var(--rf-amber));
    margin: 1rem auto 2rem;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
    animation: rfGlowPulse 2.5s ease-in-out infinite alternate;
}

@keyframes rfGlowPulse {
    0% { opacity: 0.6; box-shadow: 0 0 12px rgba(6, 182, 212, 0.4); }
    100% { opacity: 1; box-shadow: 0 0 28px rgba(139, 92, 246, 0.6); }
}

/* Counter animation placeholder ------------------------------------------ */
.rf-counter {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--rf-cyan), var(--rf-violet));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

/* Noise texture overlay -------------------------------------------------- */
.rf-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Scroll progress bar ---------------------------------------------------- */
.rf-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    z-index: 10000;
    background: linear-gradient(90deg, var(--rf-cyan), var(--rf-violet), var(--rf-amber));
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
    transition: width 0.1s linear;
}

/* Enhanced reveal variants ----------------------------------------------- */
.rf-reveal--left {
    transform: translateX(-40px);
}

.rf-reveal--right {
    transform: translateX(40px);
}

.rf-reveal--scale {
    transform: scale(0.92);
}

.rf-reveal--left.is-visible,
.rf-reveal--right.is-visible,
.rf-reveal--scale.is-visible {
    opacity: 1;
    transform: none;
}

/* Shimmer effect for badges ---------------------------------------------- */
.rf-badge--shimmer {
    position: relative;
    overflow: hidden;
}

.rf-badge--shimmer::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: rfShimmer 3s infinite;
}

@keyframes rfShimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .rf-reveal {
        opacity: 1;
        transform: none;
    }
}

/* Override Onekit legacy light artifacts --------------------------------- */
.footer-dark,
.bg-secondary {
    background: var(--rf-surface) !important;
}

#footer-content.footer-dark {
    background: var(--rf-surface) !important;
}

.navbar-dark .navbar-toggler-icon {
    filter: invert(1);
}

/* Keep old body bg consistent -------------------------------------------- */
body#top {
    background-color: var(--rf-bg) !important;
}

/* Hide native cursor on desktop for custom cursor experience ------------- */
@media (pointer: fine) {
    body,
    a,
    button,
    input,
    textarea,
    [role="button"],
    label {
        cursor: none;
    }
}
